CN101876909A - Method for local physical to virtual conversion in computer virtualization - Google Patents

Method for local physical to virtual conversion in computer virtualization Download PDF

Info

Publication number
CN101876909A
CN101876909A CN2009100832755A CN200910083275A CN101876909A CN 101876909 A CN101876909 A CN 101876909A CN 2009100832755 A CN2009100832755 A CN 2009100832755A CN 200910083275 A CN200910083275 A CN 200910083275A CN 101876909 A CN101876909 A CN 101876909A
Authority
CN
China
Prior art keywords
operating system
virtual
physical
territory
file
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
CN2009100832755A
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.)
BEIJING SHIJIHONGSHAN TECHNOLOGY Co Ltd
Original Assignee
BEIJING SHIJIHONGSHAN TECHNOLOGY 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 BEIJING SHIJIHONGSHAN TECHNOLOGY Co Ltd filed Critical BEIJING SHIJIHONGSHAN TECHNOLOGY Co Ltd
Priority to CN2009100832755A priority Critical patent/CN101876909A/en
Publication of CN101876909A publication Critical patent/CN101876909A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method for local physical to virtual conversion, which comprises an installing part and a start operation part, wherein the installing part comprises the step of operating a physical to virtual installing program on the operation system of a physical machine, wherein the installing program establishes a file in a file system managed by the operation system and installs a master domain in the file; and the start operation part comprises the steps of loading the master domain after the computer is energized, and then guiding and operating the original operation system in a virtual machine by the master domain so that the physical to virtual conversion is realized. The method of the invention achieves the purpose of simplifying the virtualization allocation by the local physical to virtual conversion.

Description

The local method that realizes physical to virtual in computer virtualized
Technical field
The present invention relates to a kind of computer virtualized technology, exactly, relate to a kind of local method that realizes physical to virtual, belong to computer virtualized middle physical to virtual and transform the field.
Background technology
The computer hardware of industry widespread use all comprises central processing unit (Central Processing Unit), internal memory (Main Memory) and memory device (Storage).In not disposing virtualized computer system, operating system is on physical computer, and such department of computer science is referred to as physical machine.In virtualized computer system, operating system may operate on the virtual machine (Virtual Machine) of virtual machine monitor (Virtual MachineMonitor) support, and such operating system is called objective operating system (Guest Operating System).
Computer virtualizedly can be divided into Fig. 1 and two kinds of models of Fig. 2 substantially according to implementation.The virtual model that is based on master operating system (Host Operating System) that Fig. 1 describes, an operating system runs directly on the computer hardware, be called master operating system, virtual machine monitor operates on this master operating system and is supporting one or more virtual machines (having only a virtual machine in the diagram), and the operating system of moving on the virtual machine is objective operating system.The operating system that master operating system is normally general, for example present widely used Windows operating system etc.Another kind of model as shown in Figure 2, virtual machine monitor runs directly on the computer hardware, this virtual machine monitor is also referred to as super monitor (Hypervisor).The objective operating system of operation on the virtual machine that super monitor is supported.In some configuration surroundings, super monitor can license to one or several some privilege of objective operating system, and this operating system is called as franchise objective operating system, and other operating system is common objective operating system.Typical example is that franchise objective operating system can directly be visited some computer resource, and other common objective operating systems by with these computer resources of the mutual dereference of the objective operating system of privilege, such design has aspect such as security usually and is worth.
Though Intel Virtualization Technology has difference on implementation,, in the technology of the present invention category, we are indifferent to these difference, but are two kinds of unit with the software abstract in the virtualization computer system: main territory and objective territory.Visitor's operating system is objective territory, and other parts are main territories.Such as, in first kind of model based on master operating system, virtual machine monitor on the master operating system provides virtual machine to support the objective operating system of operation, and the present invention is called main territory with this master operating system (containing virtual machine monitor), and objective operating system is called objective territory.Similarly, in the model based on super monitor, we claim that super monitor is main territory, and objective operating system is objective territory.Need to prove, in the model of super monitor, if disposed franchise objective operating system, and the service that other objective operating system needs franchise objective operating system to provide, we also draw the objective operating system of privilege in the main territory so, and common objective operating system is objective territory.
Below our emphasis virtual deployment techniques related to the present invention is once described.A kind of simple method is that main territory is installed earlier on computer hardware, starts virtual machine by main territory then, and objective operating system is installed in virtual machine again.Yet the computer system in now a lot of the use is not dispose virtualizedly, and operating system is directly installed on the physical computer, uses installation and operation on the operating system and by the data on the operating system access memory device.Along with virtualized popular, an important problem is how this installation and operation (also can be comprised the application of installation and operation on operating system in the operating system on the physical computer, and the data on the memory device of operating system management, here we are unified represents with operating system) transfer on the virtual machine, as the objective territory on the virtualized computer system.And thisly operating system on the physical computer is transferred to the technology of moving on the virtual machine call physical to virtual (P2V, Physical to Virtual) technology.Current physical to virtual technology is usually directed to the clone and disposes two aspects.The clone refers to the operating system on the already present physical computer is copied in the computer system that main territory is installed, and is guided and move the operation system image of described copy then in virtual machine by the virtual machine monitor in this main territory.Because being originally, the operation system image of this copy operates on the physical computer, the configuration of operating system is corresponding to the hardware configuration of physical computer, virtual hardware structure common and virtual machine is also inconsistent, the physical to virtual configuration mainly is that some configuration information of revising in the operation system image of copy makes it consistent with the hardware environment of virtual machine, and this reflection through the physical to virtual configuration just can move in virtual machine.Above-mentioned physical to virtual technology can be transferred to another to the operating system on the physical machine eaily and dispose on the virtualized computing machine, yet local computer is directly realized the demand of the conversion of physical to virtual and popularly also become urgently along with client is virtualized.
In a word, how to solve computer virtualized this locality better and realize that the conversion of physical to virtual has just become a technical matters that needs to be resolved hurrily.
Summary of the invention
In view of this, the purpose of this invention is to provide a kind of local method that realizes physical to virtual.In the method for the invention, by operation physical to virtual installation procedure on physical machine, realize the conversion of physical to virtual, and the operating system on the original physical machine does not need to clone on the virtual machine that main territory is supported in the computer system that can run directly in after the conversion, thereby has solved the defective of prior art preferably.
In order to achieve the above object, the invention provides a kind of local method that realizes physical to virtual, this method comprises installing and starting moves two parts, it is characterized in that: the mounting portion is by operation physical to virtual installation procedure on the operating system of physical machine, in the file system of described operating system management, create file, and in the file of described establishment, main territory is installed.Start the operation part and comprise that computing machine powers up the startup back and loads the operation of main territory, in virtual machine, guide and move original operating system by main territory then, thereby realize the conversion of physical to virtual.
The mounting portion of the inventive method comprises following operation steps:
(1) described installation procedure is created file in the file system that the operating system of physical machine is managed
(2) described installation procedure is installed main territory in the file of described establishment
Above-mentioned physical to virtual installation procedure is general application program, application programming interface (the API of the operating system of this installation procedure by calling physical machine, Application Programming Interface), the file system that realization is managed physical machine conducts interviews and create one or more files in this document system, and main territory is installed on the file of described establishment then.
In the step (1) of the mounting portion of the inventive method, each file that installation procedure is created is that the address is continuous on memory device.If there is the continuous free space in enough addresses in file system, then described installation procedure can directly be created the address contiguous file in the above; The free space that if there is no enough addresses are continuous, then described installation procedure can obtain continuous free space and is used to create file by moving the already used storage space of part.
In virtualized computer system, the load operating in main territory will be early than objective territory.Above-mentioned installation procedure can revise on this computing machine boot and/or with the relevant boot configuration of guiding, make computing machine after powering up, can load main territory and move.
The startup operation part of the inventive method comprises following operation steps:
(1) after powering up, computing machine at first loads the operation of main territory.
(2) described main territory guides and moves the operating system on the original physical machine in virtual machine
Because the memory device of the operating system access on the physical machine originally comprises the zone at place, main territory; after physical to virtual transforms; this part zone may also will be visited in the objective territory that described operating system is transformed; in the step (2) of described startup operation part; for the safety in main territory, main territory need be protected the zone at place, main territory on the memory device.The visitor territory is by main domain browsing memory device the time, and main territory checks whether the zone of visit is the position at place, main territory, if judgement is then by the muteization processing that conducts interviews of main territory, to prevent that objective territory from obtaining main domain information or destroying the data in main territory.
In a word, the invention provides a kind of local easily method that realizes physical to virtual, can simplify process greatly, have good popularization and application prospect from physical to virtual.
Description of drawings
Fig. 1 is based on the virtualization computer system structural representation that master operating system is realized.
Fig. 2 is based on the virtualization computer system structural representation that super monitor is realized.
Fig. 3 creates file and main territory synoptic diagram is installed in file system
Fig. 4 master checks in the territory objective territory storage device access and protects main territory synoptic diagram
The operation steps process flow diagram of Fig. 5 physical to virtual.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Referring to Fig. 3, introduce the mounting portion of physical to virtual of the present invention.Common physical machine system comprises two parts: computer hardware device and the software that moves on this computer hardware device, wherein computer hardware device 300 is provided with central processing unit 301, internal memory 302 and memory device 303 at least.Software comprises operating system nucleus 500 and operating system application layer 100.File system 501 is based upon on the memory device 303 by operating system.The application programming interface 102 that physical to virtual installation procedure 101 provides by the call operation system is set up the file set 502 that one or more files are formed on file system 501.Physical to virtual installation procedure 101 is installed to main territory on the file in the file set 502 by invokes application DLL (dynamic link library) 102, and by operating system nucleus 500 file content is synchronized on the memory device 303.
The mounting portion of the inventive method comprises following operation steps:
(1) the physical to virtual installation procedure call operation API of system creates out one or more files in the file system of physical machine operating system management.
(2) this physical to virtual installation procedure call operation API of system is installed to main territory in the file of described establishment.
In the step (1) of the mounting portion of described the inventive method, each file is that the address is continuous on memory device 303 in the file set 502 that installation procedure 101 is created.
Referring to Fig. 4, introduce the startup operation part of physical to virtual of the present invention.The startup of the inventive method moves part, it is characterized in that: computing machine powers up the back and loads 200 operations of main territory, and is moved as objective territory 100 by the operating system on the guiding operation original physical machine of virtual machine monitor 203 in virtual machine 400 in main territory 200.
The startup operation part of the inventive method comprises following operation steps:
(1) after powering up, computing machine at first loads the operation of main territory.
(2) virtual machine monitor in main territory guides the operating system on the operation original physical machine in virtual machine.
Figure 4 shows that by after the physical to virtual installation process situation that objective territory 100 is moved on main territory 200.Visitor territory 100 is transformed behind physical to virtual by the operating system of original physical machine, for objective territory 100 and the memory device 303 and the file system 501 of the operating system access of original physical machine are consistent, the virtual memory facilities 403 that the visitor visits in virtual machine 400 in territory 100 is consistent with the memory device on the hardware 300 303, when the application 101 in the objective territory 100 the visit objective operating system nucleus 500 file system 501 in file the time, main territory 200 will be judged this operation, when the zone of judging visit belonged to 200 places, main territory regional, main territory was by the dummy device 202 muteization operational processes that conducts interviews.Such as, use zone 404 on 101 pairs of virtual memory facilitieses 403 when carrying out read operations, because the zone 304 at the place, main territory on should zone corresponding stored equipment 303, complete 0 data can be returned by dummy device 202 in main territory, when write operations were carried out in the zone 404 on using 101 pairs of virtual memory facilitieses 403, main territory can all abandon the content that will write and not write the zone 304 at place, main territory on the memory device 303 veritably by dummy device 202.The data of main territory 100 on memory device 303 have been protected so effectively.
Innovation part of the present invention is: can directly finish the conversion process to physical to virtual in this locality, need not clone and not destroy all data on original physical machine, physical to virtual process of the present invention has been simplified the degree that the user need participate in greatly simultaneously, and is convenient at various computing machine deploy virtualization softwares.
Need to prove that the computer hardware device among the present invention can comprise the various computing machines of smart machines such as mainframe computer, small-size computer, server, workstation, personal computer and mobile phone.In addition, Fig. 4 is based on the virtual model of super monitor and describes method of the present invention, and this is convenient explanation, and the virtual model of other computing machines is all in the scope of application of the present invention.

Claims (6)

1. method that realizes physical to virtual in this locality, this method comprises installing and starting moves two parts, it is characterized in that: the mounting portion is included on the operating system of physical machine the operation installation procedure and creates file in the file system of described operating system management, and in the file of described establishment main territory is installed; Start the operation part and comprise that computing machine powers up the startup back and loads described main territory operation, in virtual machine, guide and move original operating system by described main territory then, thereby realize the conversion of physical to virtual.
2. method according to claim 1 is characterized in that the mounting portion of described method comprises following operation steps:
(1) described installation procedure is created file in the file system that the operating system of physical machine is managed
(2) described installation procedure is installed main territory in the file of described establishment
3. method according to claim 1 is characterized in that the startup operation part of described method comprises following operation steps:
(1) computing machine powers up the back and loads described main territory operation
(2) described main territory guides and moves original operating system in virtual machine
4. method according to claim 1 is characterized in that: described mounting portion also comprises the boot of revising computing machine and/or the configuration relevant with guiding, computing machine is powered up start boot program loads master territory, back to move.
5. method according to claim 1 is characterized in that: the file that described installation procedure is created is that the address is continuous on computer memory device.
6. method according to claim 5; it is characterized in that: main territory is when objective territory is by main domain browsing memory device; main territory checks whether the memory device zone of objective domain browsing is the position at place, main territory, if so main territory conducts interviews muteization processing to protect main territory.
CN2009100832755A 2009-04-30 2009-04-30 Method for local physical to virtual conversion in computer virtualization Pending CN101876909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100832755A CN101876909A (en) 2009-04-30 2009-04-30 Method for local physical to virtual conversion in computer virtualization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100832755A CN101876909A (en) 2009-04-30 2009-04-30 Method for local physical to virtual conversion in computer virtualization

Publications (1)

Publication Number Publication Date
CN101876909A true CN101876909A (en) 2010-11-03

Family

ID=43019471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100832755A Pending CN101876909A (en) 2009-04-30 2009-04-30 Method for local physical to virtual conversion in computer virtualization

Country Status (1)

Country Link
CN (1) CN101876909A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799483A (en) * 2012-06-28 2012-11-28 北京奇虎科技有限公司 Method and device for converting runtime environments of operating system
CN103294765A (en) * 2012-03-01 2013-09-11 国际商业机器公司 Policy-based approach and system for provisioning and transforming virtual appliances
CN103605561A (en) * 2013-11-28 2014-02-26 中标软件有限公司 Cloud computing cluster system and method for on-line migration of physical server thereof
WO2014180290A1 (en) * 2013-05-06 2014-11-13 中国银联股份有限公司 Stateless virtual machine in cloud computing environment and application thereof
CN104298559A (en) * 2014-09-30 2015-01-21 深圳市深信服电子科技有限公司 Method and device for virtualizing physical host system
CN104461757A (en) * 2014-11-03 2015-03-25 中国联合网络通信集团有限公司 Method and device for restoring virtual machines
CN104866372A (en) * 2015-05-13 2015-08-26 华中科技大学 Server integration oriented high efficiency physical machine to virtual machine conversion method
TWI498750B (en) * 2013-06-24 2015-09-01 Chunghwa Telecom Co Ltd Method and system of intelligent cloud migration

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916854A (en) * 2005-08-19 2007-02-21 联想(北京)有限公司 System the method for managing and configuring virtual machine
US20090094603A1 (en) * 2007-10-09 2009-04-09 Vmware, Inc. In-Place Conversion of Virtual Machine State

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916854A (en) * 2005-08-19 2007-02-21 联想(北京)有限公司 System the method for managing and configuring virtual machine
US20090094603A1 (en) * 2007-10-09 2009-04-09 Vmware, Inc. In-Place Conversion of Virtual Machine State

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294765B (en) * 2012-03-01 2016-11-02 国际商业机器公司 For supplying and changing the method and system based on tactful method of virtual unit
CN103294765A (en) * 2012-03-01 2013-09-11 国际商业机器公司 Policy-based approach and system for provisioning and transforming virtual appliances
CN102799483B (en) * 2012-06-28 2015-08-05 北京奇虎科技有限公司 A kind of method and apparatus for conversion operations system running environment
CN102799483A (en) * 2012-06-28 2012-11-28 北京奇虎科技有限公司 Method and device for converting runtime environments of operating system
WO2014180290A1 (en) * 2013-05-06 2014-11-13 中国银联股份有限公司 Stateless virtual machine in cloud computing environment and application thereof
US9965305B2 (en) 2013-05-06 2018-05-08 China Unionpay Co., Ltd. Stateless virtual machine in cloud computing environment and application thereof
TWI498750B (en) * 2013-06-24 2015-09-01 Chunghwa Telecom Co Ltd Method and system of intelligent cloud migration
CN103605561A (en) * 2013-11-28 2014-02-26 中标软件有限公司 Cloud computing cluster system and method for on-line migration of physical server thereof
CN104298559A (en) * 2014-09-30 2015-01-21 深圳市深信服电子科技有限公司 Method and device for virtualizing physical host system
CN104298559B (en) * 2014-09-30 2018-03-02 深信服科技股份有限公司 The method and device of physical host system virtualization
CN104461757A (en) * 2014-11-03 2015-03-25 中国联合网络通信集团有限公司 Method and device for restoring virtual machines
CN104866372A (en) * 2015-05-13 2015-08-26 华中科技大学 Server integration oriented high efficiency physical machine to virtual machine conversion method
CN104866372B (en) * 2015-05-13 2018-02-27 华中科技大学 The efficient physical machine that a kind of service-oriented device is integrated is to virtual machine conversion method

Similar Documents

Publication Publication Date Title
CN101876909A (en) Method for local physical to virtual conversion in computer virtualization
CN102662741B (en) Method, device and system for realizing virtual desktop
CN103597495B (en) Signal conditioning package, information processing method, integrated circuit
CN101322106B (en) Method and apparatus for hardware-based dynamic escape detection in managed run-time environments
US9459899B2 (en) Apparatus and method for providing services using a virtual operating system
US20130014111A1 (en) Optimization of Virtual Appliance Deployment
CN102279765A (en) Pre-compiling hosted managed code
CN102279748A (en) Method, system, server and client side for remotely storing locally executed software
CN102834822A (en) Express-full backup of a cluster shared virtual machine
Gilbert et al. Pocket ISR: Virtual machines anywhere
JP6412276B2 (en) Virtual machine creation method and apparatus
KR20110128846A (en) Programming model for synchronizing browser caches across devices and web services
CN105164657A (en) Selective backup of program data to non-volatile memory
KR20110055391A (en) Hypervisor file system
CN103902265A (en) Application implementation method and application implementation device
CN101095111A (en) A method of maintaining applications in a computing device
CN109271211B (en) Method, device, equipment and medium for separating application program
CN101297280A (en) Configuration of isolated extensions and device drivers
CN101484876A (en) Heap organization for a multitasking virtual machine
CN101091161A (en) An apparatus and method for cooperative guest firmware
CN101403966B (en) Method for implementing portable software
CN100507850C (en) Method for embedding inner core drive program in Window operation system by USB apparatus start-up
CN103685408A (en) Server for providing reading base mirror by storage area network, host and method
CN104714792A (en) Multi-process shared data processing method and device
CN101236498B (en) Method for embedding inner core drive program in Window operation system by PCI card start-up

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
DD01 Delivery of document by public notice

Addressee: Zhang Yukun

Document name: Notification of Publication of the Application for Invention

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Beijing Shijihongshan Technology Co., Ltd.

Document name: the First Notification of an Office Action

DD01 Delivery of document by public notice

Addressee: Zhang Yukun

Document name: Notification that Application Deemed to be Withdrawn

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20101103