Android Mobile Terminal Virtualization Based on Linux Container

Author
ChenXiao
Advisor
WangZhenYu , MaoZuTie
School
South China University of Technology
Major
Software Engineering
Classification
TP316.81
Degree
Master's thesis
Year
2013
Downloads
29
Citations
0

Request the full text

Abstract

With the rapid increase in the number of mobile intelligent terminal and the rise ofwearable devices, how to use the resources of intelligent terminals effectively and dealingwith different application scenarios become a research focus. Combining the traditionalvirtualization technology and mobile intelligent terminals together, we can see a newdevelopment direction. Applying the virtualization technology to intelligent mobile terminal,can not only meet the needs of running different OS on single terminal which is saving thecost of developing the software with same usage on differnet platform, but also can bringisolation on a single terminal to achieve the separation of enterprise system and personalsystem to guard against the potential hazards of the processes on the personal system to theenterprise which meets the needs of “BYOD”. From a market perspective, virtualizationtechnology can greatly reduce the cost of producing low-end smartphones, so that the low-endsingle-OS smartphones can carry more functionality.Based on the above background, this paper introduces the traditional virtualization andmobile virtualization implementations gernerally. As one way of virtualization,Operating-System-Level virtualization has advantages in performance and deploymentcompared to Hypervisor Architecture. After thar, this paper starts the Linux Containertechonoly research from the Operating-System-Level virtualization hierarchy and analysistwo critical parts of the container technology: Cgroup system and Namespace including theirarchitecture and implementation princicle. First, this paper will focus on introducing theCgroup system and the analysis of its implementation of system resource management,involves the main research content includes:(1)By combining the analysis of the generic datastructure, given the system view and hierarchy of Cgroup system;(2)Describe theimplementation principle of Cgroup controller subsystem on detail, including CPU controller,Memory controller, Devices controller and so on.(3)By analyzing the process of mountingthe Cgroup file system, viewing and modifying the resource management information, giventhe implementation principle of the mounting of Cgroup file system along with the functionalinterface. After that, this paper looks into the Namespace architecture in Linux OS byanalyzing each sub-modules, given the source-level analysis of the structure of eachnamespace and the principle implementation of process resource isolation.Finally, this paper presents a LinuxContainer-based Android mobile terminalvirtualization program based on above research result. In this program, the Android kernel has to be modified adapting the function of LXC userspace tools and a Debian OS has to be builton the SD card as the Host system of OS-level virtualization management. In the environment,by configuring the Android root file system, network facility, other devices in the container sothat a container where an Android OS can run in it will be created and we can run themodified Android OS in the container to achieve mobile virtualization solution. At the end,through the analysis of the results, given the conclusions that Android system using thecontainer virtualization technology has advantages in isolation-efficiency equilibrium.

Table of contents

Abstract 5-6 Abstract 6-11 Chapter 1 Introduction 11-16 1.1 Background and Significance 11- 12 1.2 current research research 12-14 1.3 article 14-15 1.4 papers organizational structure 15-16 Chapter 2 theory and technology 16-22 2.1 traditional virtualization technology and general infrastructure 16-17 2.2 virtualization technology on the mobile terminal and general framework 17-18 analysis 2.3 mobile virtualization solutions comparison 18-21 2.3.1 PikeOS 18-19 2.3. 2 OKL4 19-20 2.3.3 NOVA 20-21 2.3.4 Codezero 21 2.4 chapter Summary 21- 22 Chapter 3 Linux container technology 22-36 3.1 operating system -level virtualization 22-25 3.1.1 background 22 3.1.2 design ideas 22-23 3.1.3 advantages and Disadvantages of 23-25 ?? 3.2 container-based virtualization system architecture technology 25 Comparative Analysis of -26 3.3 application container virtualization technology solutions 26-31 3.3.1 Linux-VServer 26-27 3.3.2 OpenVZ 27-28 3.3.3 Solaris Containers 28-29 3.3.4 LXC 29-30 3.3.5 solution compare 30-31 3.4 Linux containers key technology 31-35 3.4.1 resource Management subsystem Cgroup 31-33 3.4.2 naming space mechanism Namespace 33-35 3.5 Summary 35-36 Chapter 4 Cgroup system analysis 36-67 overall structure 4.1 Cgroup system 36-37 nbsp 4.2 common data structure ; 37-45 4.2.1 Cgroup core data structure system 37-41 4.2.2 Cgroup file system architecture 41-43 4.2.3 Cgroup subsystem controller general structure 43-45 4.3 Cgroup system initialization 45-47 4.4 Cgroup file system 47-50 4.4.1 Cgroup mount the file system 47-48 function 4.4.2 Cgroup file system interface 48-50 4.5 Cgroup resource control subsystem detailed implementation 50-66 4.5.1 CPU controller 51-54 4.5.2 memory Controller 54-58 4.5.3 CPUSET controller 58-63 4.5.4 DEVICES controller 63-66 4.6 chapter Summary 66- 67 Chapter 5 namespace mechanism 67-76 5.1 namespace proxy create and replicate 67-69 5.2 namespace 69-70 5.3 PID namespace 70-73 5.3.1 PID and UPID create 71-73 5.3.2 PID namespace 73 5.4 MNT namespace overall view 73-75 5.4.1 MNT namespace underlying 73-74 5.4.2 MNT namespace achieve 74-75 5.5 Chapter Summary Chapter 6 moves 75-76 application container technology virtualization solutions 76-92 6.1 system architecture design 76-77 6.2 adapter Android kernel 77-81 6.2.1 config configuration 77-79 6.2.2 kernel source code modifications 79-80 6.2.3 kernel boot parameter modification and boot partitions generate 80-81 6.3 build host host environment 81-85 6.3.1 Debian host system loading to SD card 81-82 6.3.2 Configuring the host system 82-85 6.4 transplant LXC build Android container 85-88 6.4.1 lxc user toolset 85-86 6.4.2 set up virtual bridge 86-87 6.4.3 Creating Android root file system 87 6.4.4 Creating container configuration file run with the results of 87-88 6.5 Android vessel analysis 88-91 6.6 Summary 91 -92 conclusion 92-95 references 95-97 obtained a master's degree during the research 97-98 Thanks 98-99 Accessories 99