CN103092675A - Virtual environment construction method - Google Patents

Virtual environment construction method Download PDF

Info

Publication number
CN103092675A
CN103092675A CN 201210566310 CN201210566310A CN103092675A CN 103092675 A CN103092675 A CN 103092675A CN 201210566310 CN201210566310 CN 201210566310 CN 201210566310 A CN201210566310 A CN 201210566310A CN 103092675 A CN103092675 A CN 103092675A
Authority
CN
China
Prior art keywords
virtual
subprocess
operating system
construction method
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201210566310
Other languages
Chinese (zh)
Inventor
李瑞平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHADOWIN TECHNOLOGIES Inc
BEIJING SHADOWIN TECHNOLOGIES Co Ltd
Original Assignee
SHADOWIN TECHNOLOGIES Inc
BEIJING SHADOWIN TECHNOLOGIES Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHADOWIN TECHNOLOGIES Inc, BEIJING SHADOWIN TECHNOLOGIES Co Ltd filed Critical SHADOWIN TECHNOLOGIES Inc
Priority to CN 201210566310 priority Critical patent/CN103092675A/en
Publication of CN103092675A publication Critical patent/CN103092675A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a virtual environment construction method. A virtual file is created in advance. The method comprises that an initial process of a virtual system is started and a logical processing module is conducted in a static load mode; the logical processing module is started to take over subsequent subprocesses of the initial process; the subprocesses are started and the subprocesses are set labels to identify and discriminate virtual machines; the subprocesses are placed in corresponding containers, wherein the subprocesses have the same labels; a serving control supervisor of a operating system is taken over and independent system service of virtual environment is obtained. The virtual system environment construction method can imitate a new operating system on the basis of an original operating system, wherein the new operating system is a virtual operating system. A user can install software and allocate environment as using a standalone operating system and the original operating system can note be affected. Property of the system is improved.

Description

A kind of construction method of virtual environment
Technical field
The present invention relates to the virtual machine technique field, specifically, relate to a kind of construction method of virtual environment.
Background technology
In prior art, development along with computer technology, the function of computing machine from strength to strength, although movable storage device or storage server have brought a lot of convenience to the user, the user can be worked on different computing machines, but, because the application software of the working environment of different computing machines and installation is far from each other, therefore bring great puzzlement to the user.In order to address the above problem, virtual opetrating system (VirtualOperating System; Hereinafter to be referred as: VOS) technology arises.VOS can allow the user use other operating system on the operating system of the machine, and each virtual opetrating system can have system configuration, document, the application program of oneself.Independent of one another between virtual opetrating system, can not interfere with each other.The user can prepare a plurality of virtual opetrating systems simultaneously on an operating system, each virtual opetrating system can have different purposes, for example, and game, office, artistic creation etc.
A kind of mode that creates virtual opetrating system in prior art is virtual machine (the Heavy-Weight Virtual Machine by heavyweight; Hereinafter to be referred as: HWVM) set up a plurality of isolated virtual opetrating systems.Fig. 1 is the principle of work schematic diagram of prior art middle heavyweight virtual machine, as shown in Figure 1, if at virtual machine (Virtual Machine; Hereinafter to be referred as VM) on install and run application, must first reinstall a cover operating system (being the child-operation system, Guest OS) on VM, then could install normally and run application.It is the machine that needs a sky of simulation due to VM, therefore, the application program of operation (for example, reading and writing of files, demonstration forms etc.) when needs call hardware resource in VM, each instruction of assigning must see through conversion layer by layer could true(-)running with reception and registration.In above-mentioned prior art, there are the following problems at least: 1, under the environment of heavyweight virtual machine, if install and run application, just must be first on virtual machine, reinstall a cover operating system, then could install normally and run application, make the efficient of setting up virtual opetrating system very low; These operating systems also can cause adverse influence to the system effectiveness of integral body simultaneously, if use simultaneously a plurality of operating environments just must reinstall a plurality of operating systems, efficient is very low, and has taken larger system resource.
Also having in the prior art another kind of mode in virtual environment lower linking tube application program is that direct modeling goes out another operating system (OS on OS) on an operating system.Guest OS and HostOS in this mode can be identical or different, and by revising the kernel of Host OS, make Host OS can support function and the api interface of GuestOS.In actual applications, (for example, Linux), can directly revise kernel code, then compile the Host OS of the support Guest OS that makes new advances if the source code of Host OS kernel can get.If the source code non-availability of Host OS kernel (for example, Windows), is utilized driver to tackle and take over the service interface of Host OS kernel, and Guest OS function and the interface that simulates is provided.The mode of revising kernel in said method make the program of virtual opetrating system and the kernel dependence extremely strong, even the small upgrading of HostOS also easily causes the program of virtual opetrating system to move; Revise the kernel of Host OS due to needs, therefore, designing bad or wrong more virtual opetrating system will affect original operating system, be easy to cause the lowly collapse even fully of usefulness of system.
Summary of the invention
The invention provides a kind of construction method of virtual environment, can simulate another new operating system environment on original operating system, and not affect original operating system.
The invention provides a kind of construction method of virtual environment, be pre-created the virtual system file, as according to host system, simulate the operating system basic document (include file and configuration database) that constructs virtual machine; The method comprises the steps:
Start the initial processes of virtual system, and the static loading logic processing module;
The operation logic processing module is taken over the follow-up subprocess that described initial processes starts;
The promoter process also arranges label for each subprocess, with sign, differentiation virtual machine;
The subprocess that label is identical is placed in cell therefor respectively;
Take over the Service controll manager of operating system, obtain the autonomous system service of this virtual environment.
More appropriately, the method also comprises:
Start the step of figure shell, so that system resource is graphically called for the user.
The present invention also provides a kind of system that realizes virtual environment, comprising:
Start module, start the initial processes of virtual system, and the static loading logic processing module;
Logic processing module is used for taking over the follow-up subprocess that described initial processes starts;
Module is set, and the promoter process also arranges label for each subprocess, with sign, differentiation virtual machine;
Program containers, for the subprocess of depositing, the subprocess that label is identical is placed in same program containers;
Take over module, be used for taking over the Service controll manager of operating system, obtain the autonomous system service of this virtual environment.
This system also comprises:
Figure shell module is used for system resource is graphically called for the user;
After described adapter module is taken over the Service controll manager of operating system, show the figure shell of virtual environment.
The invention provides a kind of construction method of virtual environment, by a specific program of carrying out on original operating system, simulate another new operating system, be virtual opetrating system (Virtual OS, VOS), allow the user can mounting software, configuration surroundings, and can not affect original operating system, just as using a new operating system of installing.Technic relization scheme provided by the invention due to the kernel that does not need to revise the in-local system, therefore, can not cause the low or collapse of the usefulness of system, has improved the performance of system.In addition, because virtual opetrating system and the kernel of the embodiment of the present invention are isolated, can not affect original operating system.
Description of drawings
Fig. 1 is the principle of work schematic diagram of prior art middle heavyweight virtual machine;
Fig. 2 is the structure principle schematic of virtual opetrating system environment provided by the invention;
Fig. 3 covers signal for the vegetation that is provided with regional area constraint condition that provides in the embodiment of the present invention;
Fig. 4 is a kind of system architecture schematic diagram of realizing virtual environment provided by the invention.
Embodiment
In view of the deficiencies in the prior art and defective, the invention provides a kind of construction method of virtual environment, by a specific program of carrying out on original operating system, simulate another new operating system, i.e. virtual opetrating system (Virtual OS, VOS), allow the user can mounting software, configuration surroundings, and can not affect original operating system, just as using a new operating system of installing.
According to the present invention, can directly utilize the in-local system to complete the structure of at least one virtual opetrating system, the virtual opetrating system compatible with the in-local system that simulates, Fig. 2 is the structure principle schematic of virtual opetrating system environment provided by the invention, as shown in Figure 2, under user's application program, be directly to use in-local system simulation virtual opetrating system out, under virtual opetrating system, be that the in-local system controls the entity hardware under it.Therefore, installation and operation application software in the virtual opetrating system that builds does not need the extra cover operating system of installing.
With reference to Fig. 3, the invention provides a kind of construction method of virtual environment, at first, create the required virtual system file of virtual environment, as according to host system, the operating system basic document (include file and configuration database) of virtual machine is constructed in simulation, then starts and loads, and the method comprises the steps:
S301, the initial processes of startup virtual system, and static loading logic processing module;
S302, the operation logic processing module is taken over the follow-up subprocess that described initial processes starts;
S303, the promoter process also arranges label for each subprocess, and with sign, differentiation virtual machine, and the subprocess that label is identical is placed in cell therefor respectively;
S304 takes over the Service controll manager of operating system, obtains the autonomous system service of this virtual environment.
Further, the method also comprises:
S305, the step of startup figure shell is graphically to call system resource for the user.
The initial processes of the startup virtual system in step S301 is specially:
Start the corresponding application program of loader operation, the logic of operation virtual machine oneself.
The follow-up subprocess that described initial processes in step S302 starts comprises:
Described initial processes continues procreation, obtains subprocess, Sun Jincheng, to such an extent as to produce an ethnic process that obtains this initial processes.
One of them ethnic process has identical label, is placed in same container.
The manager of Service controll described in step S304 is used for starting and managing the background service program, and described adapter Service controll manager comprises a series of related service process of taking over.
For making principle of the present invention clearer, the below describes the structure flow process of a kind of virtual environment provided by the invention in detail.
The first step-startup loader:
Described loader is mainly be used to allowing the user move the implementing procedure of other application programs, is the virtual machine process that at first starts, and loader is understood the static loading logic processing module as first process of virtual system, the logic of operation virtual machine oneself.
Second step-operation logic processing module: comprise interception injection module, file system module, configuration data module and mixed-media network modules mixed-media etc. in this logic processing module.
This logic processing module has the logic process of joining two pipes together exactly, as its name suggests, subprocess by first process initiation all will be taken over, image is exactly that first process can create subprocess, this subprocess can produce again the subprocess (being called " Sun Jincheng ") that makes new advances, continue like this procreation, formed an ethnic process.The group of the ethnic process of saying here can liken a present operating system to, can certainly be virtual system.
When program design, some concrete functional modules can realize by different forms such as function or threads.For same process, these functions, thread all are present under same address space, and when carrying out, mostly only more relative data are processed.If there is certain mistake in algorithm, might destroy some other important content of the address space that exists together with it, this will cause more serious consequence.Can consider those operation parts that need to conduct interviews to the data in address space are put in the address space of another one process for the content of protection in address space and move, and only allow related data in the former process address space of its access.Concrete, can create a subprocess according to existing method.Subprocess is all only conducting interviews to the related data in the parent process address space in processing procedures, thereby can protect in the parent process address space and the current subprocess irrelevant total data of executing the task.For this situation, the effect that subprocess embodies is more similar with thread with function, can regard parent process as in a process of run duration.For this reason, need to by parent process grasp subprocess startup, carry out and withdraw from.
The 3rd the step-process is put into program containers:
In operating system, several program is placed in a container and (is called " program containers ", Process Container), authority can be deleted or arrange to convenient management simultaneously.
During the promoter process, it is exactly when the subprocess that starts that logic processing module has again a logic, before this (child) process is arranged label startup loader, generating an identifier is global unique identification symbol (GUID, Globally Unique Identifier) number assignment is to loader, by the unique virtual machine of this segment number code sign, which program containers is identification process belong to, the subprocess that label is identical is placed in same container, and namely each virtual machine takies a program containers.The group of a foregoing class race process just takies a program containers.This process of description of image, a yellow's offspring is exactly the yellow exactly, constantly inverting is also the yellow, this has obvious color distinction with Black people and white man, so be easy to recognize and belong to the sort of people, this colour of skin just is equal to the label of process, and then the process with all same labels is referred in a container, the user of convenient sign virtual machine.N user's virtual machine independently is independent of each other fully like this.
the operation of carrying out in corresponding virtual opetrating system in order to put down in writing the user, also need at least one configuration database is written into internal memory, wherein, configuration database is used for the configuration data of the subsystem of record virtual opetrating system, user's deposit data position, and described user operate in corresponding virtual opetrating system record deposit position, wherein, described subsystem can comprise following one of at least: file subsystem, the configuration data subsystem, the interception subsystem, filter subsystem, the separaant system, the Service controll subsystem, network control subsystem etc., each subsystem function is as follows:
File subsystem: be used for the reorientation of file path;
Configuration data subsystem: be used for the reorientation in configuration data path;
The interception subsystem: being used for interception is the operation entry point, and derives from the succession operation;
Filter subsystem: be used for the file resource filtering screening;
Separaant system: be used for the reorientation of kernel objects;
Service controll subsystem: be used for the processing of Service Privileges;
Network control subsystem: be used for the distribution of virtual IP address.
In the application of reality, if build a plurality of virtual (operating system) environment, can a configuration database (memory database) all be set for each virtual opetrating system; Also a configuration database can only be set, and this configuration database is shared for a plurality of virtual opetrating systems.When configuration database was set to a plurality of virtual opetrating systems and shares, the configuration in a virtual opetrating system can be applied to a plurality of virtual opetrating systems; For example, configure MSN in a virtual opetrating system, shared if configuration database is set to a plurality of virtual opetrating systems, be equivalent to also be equipped with in other virtual opetrating systems MSN.
The 4th go on foot-takes over and starts system service:
Take over the service manager of operating system, service manager is called again Service Manager orSuper Daemon, is mainly start and manage the background service program.
The 5th step-startup figure shell:
The figure shell is the Shell program, is used for showing all program of desktop.If it is uncultivated that this program of off-duty, desktop will be a slices, the user can't operate this desktop fully.
Starting the figure shell can such as the user can see file, see catalogue, see the hard drive space of oneself with the calling to the user of system resource " graphically ", and the figure shell of virtual environment is shown to the manipulable resources of virtual machine of user exactly.
With reference to Fig. 4, the present invention also provides a kind of system that realizes virtual environment, and 400, comprising:
Start module 41, start the initial processes of virtual system, and the static loading logic processing module;
Logic processing module 42 is used for taking over the follow-up subprocess that described initial processes starts;
Module 43 is set, and the promoter process also arranges label for each subprocess, with sign, differentiation virtual machine;
Program containers 44 is used for depositing subprocess, and the identical subprocess of label that module 43 settings are set is placed in same program containers;
Take over module 45, be used for taking over the Service controll manager of operating system, obtain the autonomous system service of this virtual environment.
This system also comprises:
Figure shell module 46 is used for system resource is graphically called for the user;
After described adapter module is taken over the Service controll manager of operating system, show the figure shell of virtual environment.
The embodiment of the present invention is due to the kernel that does not need to revise the in-local system, therefore, can not cause the low or collapse of the usefulness of system; Improved the performance of system.In addition, because virtual opetrating system and the kernel of the embodiment of the present invention are isolated, can not affect original operating system, even the in-local system upgrades, can not cause the program of virtual opetrating system to move yet.
Although the present invention with exemplary embodiment openly as above; but it is not to limit the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can make possible change and modification, so protection scope of the present invention should be as the criterion with the scope that claim of the present invention was defined.

Claims (9)

1. the construction method of a virtual environment, is characterized in that, the method comprises the steps:
Start the initial processes of virtual system, and the static loading logic processing module;
The operation logic processing module is taken over the follow-up subprocess that described initial processes starts;
The promoter process also arranges label for each subprocess, with sign, differentiation virtual machine;
The subprocess that label is identical is placed in cell therefor respectively;
Take over the Service controll manager of operating system, obtain the autonomous system service of this virtual environment.
2. construction method as claimed in claim 1, is characterized in that, also comprises the step that is pre-created the virtual system file, is specially:
Operating system basic document, include file and the configuration database of virtual machine constructed in simulation according to host system.
3. construction method as claimed in claim 1, is characterized in that, also comprises:
Start the step of figure shell, so that system resource is graphically called for the user.
4. construction method as claimed in claim 1, is characterized in that, the initial processes of described startup virtual system is specially:
Start the corresponding application program of loader operation, the logic of operation virtual machine oneself.
5. construction method as claimed in claim 1, is characterized in that,
The follow-up subprocess that described initial processes starts comprises:
Described initial processes continues procreation, obtains subprocess, Sun Jincheng, to such an extent as to produce an ethnic process that obtains this initial processes.
6. construction method as claimed in claim 4, is characterized in that, a described ethnic process has identical label, is placed in same container.
7. construction method as claimed in claim 1, is characterized in that, described Service controll manager is used for starting and managing the background service program, and described adapter Service controll manager comprises a series of related service process of taking over.
8. a system that realizes virtual environment, is characterized in that, comprising:
Start module, start the initial processes of virtual system, and the static loading logic processing module;
Logic processing module is used for taking over the follow-up subprocess that described initial processes starts;
Module is set, and the promoter process also arranges label for each subprocess, with sign, differentiation virtual machine;
Program containers, for the subprocess of depositing, the subprocess that label is identical is placed in same program containers;
Take over module, be used for taking over the Service controll manager of operating system, obtain the autonomous system service of this virtual environment.
9. system as claimed in claim 8, is characterized in that, also comprises:
Figure shell module is used for system resource is graphically called for the user;
After described adapter module is taken over the Service controll manager of operating system, show the figure shell of virtual environment.
CN 201210566310 2012-12-24 2012-12-24 Virtual environment construction method Pending CN103092675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210566310 CN103092675A (en) 2012-12-24 2012-12-24 Virtual environment construction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210566310 CN103092675A (en) 2012-12-24 2012-12-24 Virtual environment construction method

Publications (1)

Publication Number Publication Date
CN103092675A true CN103092675A (en) 2013-05-08

Family

ID=48205285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210566310 Pending CN103092675A (en) 2012-12-24 2012-12-24 Virtual environment construction method

Country Status (1)

Country Link
CN (1) CN103092675A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106796530A (en) * 2016-12-22 2017-05-31 深圳前海达闼云端智能科技有限公司 A kind of virtual method, device and electronic equipment, computer program product
CN107800779A (en) * 2017-09-30 2018-03-13 北京京东尚科信息技术有限公司 Optimize the method and system of load balancing
WO2018141242A1 (en) * 2017-02-06 2018-08-09 腾讯科技(深圳)有限公司 Resource scheduling method, system, server and storage medium
CN109032602A (en) * 2018-06-07 2018-12-18 山东超越数控电子股份有限公司 A kind of method of software automatic adaptation operating system
CN109947576A (en) * 2017-12-21 2019-06-28 上海盛霄云计算技术有限公司 A kind of method of virtual machine internal broker program management
CN110427248A (en) * 2019-07-12 2019-11-08 中国人民解放军国防科技大学 Container-based lightweight user environment construction method, system and medium
CN111026449A (en) * 2019-12-10 2020-04-17 深圳市智多互动科技有限公司 Method for running virtual android system on android system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106796530A (en) * 2016-12-22 2017-05-31 深圳前海达闼云端智能科技有限公司 A kind of virtual method, device and electronic equipment, computer program product
WO2018112855A1 (en) * 2016-12-22 2018-06-28 深圳前海达闼云端智能科技有限公司 Virtualisation method and device, electronic device, and computer program product
CN106796530B (en) * 2016-12-22 2019-01-25 深圳前海达闼云端智能科技有限公司 A kind of virtual method, device and electronic equipment, computer program product
WO2018141242A1 (en) * 2017-02-06 2018-08-09 腾讯科技(深圳)有限公司 Resource scheduling method, system, server and storage medium
US11442790B2 (en) 2017-02-06 2022-09-13 Tencent Technology (Shenzhen) Company Limited Resource scheduling system, method and server for ensuring high availability of services
CN107800779A (en) * 2017-09-30 2018-03-13 北京京东尚科信息技术有限公司 Optimize the method and system of load balancing
CN109947576A (en) * 2017-12-21 2019-06-28 上海盛霄云计算技术有限公司 A kind of method of virtual machine internal broker program management
CN109947576B (en) * 2017-12-21 2022-12-06 上海盛霄云计算技术有限公司 Method for managing internal agent program of virtual machine
CN109032602A (en) * 2018-06-07 2018-12-18 山东超越数控电子股份有限公司 A kind of method of software automatic adaptation operating system
CN110427248A (en) * 2019-07-12 2019-11-08 中国人民解放军国防科技大学 Container-based lightweight user environment construction method, system and medium
CN110427248B (en) * 2019-07-12 2021-10-01 中国人民解放军国防科技大学 Container-based lightweight user environment construction method, system and medium
CN111026449A (en) * 2019-12-10 2020-04-17 深圳市智多互动科技有限公司 Method for running virtual android system on android system
CN111026449B (en) * 2019-12-10 2024-04-19 深圳市智多互动科技有限公司 Method for running virtual android system on android system

Similar Documents

Publication Publication Date Title
CN103092675A (en) Virtual environment construction method
US11765034B2 (en) Enforcing policies in cloud domains with different application nomenclatures
US12026538B2 (en) Distributed and associative container platform system
US9459850B2 (en) Adaptive cloud aware just-in-time (JIT) compilation
CN108376100A (en) Container scheduling based on safety
EP3014435A1 (en) Hook framework
WO2012131507A1 (en) Running a plurality of instances of an application
CN113986449A (en) Container-oriented Linux kernel virtualization system and method
CN104754032A (en) Method and device for deploying OpenStack
US20210141645A1 (en) Just-in-Time Containers
CN112242920B (en) Cloud platform deployment method, device and node
JP4874908B2 (en) Information processing system and monitoring method
US8856775B2 (en) Unstacking software components for migration to virtualized environments
CN115617364B (en) GPU virtualization deployment method, system, computer equipment and storage medium
CN101655804B (en) Method and device for building virtual operating system
CN114610334A (en) Product visualization deployment method, device, system and storage medium
US10241816B2 (en) Tag inheritance
CN111027221B (en) Modular comprehensive avionics simulation training system based on components
CN103632090B (en) A kind of virtual machine runs the method for virtual firewall
CN103051668B (en) A kind of server resource management system and management method
CN113722045B (en) Cluster application deployment method and device
CN116932130A (en) Simulation experiment environment deployment method based on OpenStack
CN108021442A (en) The system of release physical memory, device and method
CN113031964A (en) Management method, device, equipment and storage medium for big data application
CN112799788B (en) Parallel behavior execution conflict detection method in simulation operation and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130508