CN104407916A - Cloning method and device of virtual machine - Google Patents

Cloning method and device of virtual machine Download PDF

Info

Publication number
CN104407916A
CN104407916A CN201410779059.5A CN201410779059A CN104407916A CN 104407916 A CN104407916 A CN 104407916A CN 201410779059 A CN201410779059 A CN 201410779059A CN 104407916 A CN104407916 A CN 104407916A
Authority
CN
China
Prior art keywords
virtual machine
template
virtual
cloning
target
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
CN201410779059.5A
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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410779059.5A priority Critical patent/CN104407916A/en
Publication of CN104407916A publication Critical patent/CN104407916A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a cloning method of a virtual machine and a cloning device thereof. The cloning method comprises the following steps of: acquiring a virtual machine template to clone the virtual machine; cloning one or more virtual machines corresponding to the virtual machine template on a physical machine according to the virtual machine template. The method and the device can solve the problem that time and production cost are consumed by the virtual machine cloning method provided by Hyper-v in relevant technologies.

Description

The cloning process of virtual machine and device
Technical field
The present invention relates to internet arena, in particular to a kind of cloning process and device of virtual machine.
Background technology
Hyper-v is the virtualization product of Microsoft, is that Microsoft first adopts similar Vmware with Citrix to increase income the same technology based on hypervisor of Xen.If want to run multiple virtual machine on Hyper-v server, then need for it creates multiple virtual machine, and correspondingly install repeatedly virtual opetrating system, not only elapsed time is long for this, but also consumes production cost.This is because, in the related, the virtual machine clone flow process that Hyper-v provides is as follows: first imported and exported by the virtual machine newly built up by Hyper-v, again by the SCVMM in System Center or third party's instrument according to the corresponding virtual machine of related data Direct Cloning of the virtual machine imported and exported, and import and export the related data not only complicated operation of virtual machine, and elapsed time, and SCVMM needs to buy.
For the virtual machine cloning process not only elapsed time that Hyper-v in correlation technique provides, but also consume the problem of production cost, not yet propose effective solution at present.
Summary of the invention
Fundamental purpose of the present invention is the cloning process and the device that provide a kind of virtual machine, and to solve the virtual machine cloning process that Hyper-v in correlation technique provides, not only elapsed time is long, but also consumes the problem of production cost.
To achieve these goals, according to an aspect of the present invention, a kind of cloning process of virtual machine is provided.The method comprises: obtain virtual machine template, above-mentioned virtual machine template is the template for cloning virtual machine; And in physical machine, clone one or more virtual machine corresponding with above-mentioned virtual machine template according to above-mentioned virtual machine template.
Further, above-mentioned virtual machine template is created in the following manner: create target virtual machine; Encapsulation process is carried out to above-mentioned target virtual machine, obtains the virtual machine after encapsulating; And using the virtual machine after above-mentioned encapsulation as above-mentioned virtual machine template.
Further, using the virtual machine after above-mentioned encapsulation as after above-mentioned virtual machine template, above-mentioned data method also comprises: the virtual disk files generating above-mentioned virtual machine template, wherein, in above-mentioned physical machine, one or more virtual machine corresponding with above-mentioned virtual machine template is cloned according to the above-mentioned virtual disk files of above-mentioned virtual machine template.
Further, encapsulation process is carried out to above-mentioned target virtual machine, obtain the virtual machine after encapsulating and comprise: judge whether above-mentioned target virtual machine is the virtual machine be initialized; If judge that above-mentioned target virtual machine is not the above-mentioned virtual machine be initialized, then initialization process is carried out to above-mentioned target virtual machine, obtain the above-mentioned virtual machine be initialized.
Further, carry out initialization process to above-mentioned target virtual machine to comprise: search the individual cultivation parameter on above-mentioned target virtual machine; Above-mentioned individual cultivation parameter on the above-mentioned target virtual machine found is deleted; And generate the system identification of virtual system of above-mentioned target virtual machine.
To achieve these goals, according to a further aspect in the invention, a kind of clone device of virtual machine is provided.This device comprises: acquiring unit, and for obtaining virtual machine template, above-mentioned virtual machine template is the template for cloning virtual machine; And cloned unit, for cloning one or more virtual machine corresponding with above-mentioned virtual machine template according to above-mentioned virtual machine template in physical machine.
Further, above-mentioned clone device also comprises: creating unit, and for creating above-mentioned virtual machine template in the following manner, above-mentioned creating unit has: creation module, for creating target virtual machine; Package module, for carrying out encapsulation process to above-mentioned target virtual machine, obtains the virtual machine after encapsulating; And determination module, for using the virtual machine after above-mentioned encapsulation as above-mentioned virtual machine template.
Further, above-mentioned creating unit also comprises: generation module, for using the virtual machine after above-mentioned encapsulation as after above-mentioned virtual machine template, generate the virtual disk files of above-mentioned virtual machine template, wherein, above-mentioned cloned unit also for cloning one or more virtual machine corresponding with above-mentioned virtual machine template according to the above-mentioned virtual disk files of above-mentioned virtual machine template in above-mentioned physical machine.
Further, above-mentioned package module comprises: judge submodule, for judging whether above-mentioned target virtual machine is the virtual machine be initialized; Initialization submodule, for when judging above-mentioned target virtual machine not for the above-mentioned virtual machine be initialized, carrying out initialization process to above-mentioned target virtual machine, obtaining the above-mentioned virtual machine be initialized.
Further, above-mentioned initialization submodule comprises: search grandson's module, for searching the individual cultivation parameter on above-mentioned target virtual machine; Delete grandson's module, the above-mentioned individual cultivation parameter on the above-mentioned target virtual machine that will find is deleted; And generate grandson's module, for generating the system identification of the virtual system of above-mentioned target virtual machine.
By the present invention, adopt and obtain virtual machine template, virtual machine template is the template for cloning virtual machine; And in physical machine, clone one or more virtual machine corresponding with virtual machine template according to virtual machine template, not only elapsed time is long to solve the virtual machine cloning process that Hyper-v in correlation technique provides, but also consume the problem of production cost, and then it is short and without the need to spending the effect of cost to reach elapsed time.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the cloning process of virtual machine according to the embodiment of the present invention; And
Fig. 2 is the schematic diagram of the clone device of virtual machine according to the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the instructions of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
According to embodiments of the invention, provide a kind of cloning process of virtual machine.The cloning process of this virtual machine may operate on computer-processing equipment.
Fig. 1 is the process flow diagram of the cloning process of virtual machine according to the embodiment of the present invention.As shown in Figure 1, the method comprises following step S102 to step S104:
Step S102, obtains virtual machine template.
Virtual machine template is the template for cloning virtual machine.Before enforcement virtual machine clone, virtual machine template can be pre-created.Contain the full detail of virtual machine in virtual machine template, such as, it can comprise: the hardware configuration information of virtual machine, memory configurations information and operation system information etc.
Step S104, clones one or more virtual machine corresponding with virtual machine template according to virtual machine template in physical machine.
During enforcement, if want to create virtual machine in physical machine, then virtual machine template can be utilized to create virtual hardware configuration, virtual internal memory and the virtual operating system etc. of virtual machine respectively.It should be noted that, can create in virtual machine template complete, after virtual machine shutdown, in physical machine, clone one or more virtual machine corresponding with virtual machine template according to virtual machine template.
By the embodiment of the present invention, adopt and obtain virtual machine template, virtual machine template is the template for cloning virtual machine; And in physical machine, clone one or more virtual machine corresponding with virtual machine template according to virtual machine template, not only elapsed time is long to solve the virtual machine cloning process that Hyper-v in correlation technique provides, but also consume the problem of production cost, and then it is short and without the need to spending the effect of cost to reach elapsed time.
Preferably, in embodiments of the present invention, virtual machine template can be created in the following manner:
S2, creates target virtual machine.
Target virtual machine is for as creating other the virtual machine of template of virtual machine.During enforcement, Hyper-v can be utilized to set up a virtual machine, comprise the virtual hardware framework, virtual memory, virtual opetrating system etc. that create virtual machine, further, while the above-mentioned virtual component of establishment, can be respectively it and configure the parameter of specifying.
It should be noted that, target virtual machine can be initialized virtual machine, or can be through the virtual machine of individual cultivation.
S4, carries out encapsulation process to target virtual machine, obtains the virtual machine after encapsulating.
During enforcement, need to perform corresponding encapsulation operation under virtual machine shutdown mode, such as, the sysprep instrument encapsulation virtual machine that Windows can be adopted to carry.In actual package process, " entering system complete new experience " pattern and " general " pattern can be selected.Wherein, after selection " general ", can the secure identifier (Security Identifiers, referred to as SID) of virtual system of generating virtual machines.
It should be noted that, SID is unique number of identifying user, group and computer account.When first time creates computer account, server will issue a unique SID to each account on network.Internal process in Windows is by the user of the SID instead of account that quote account or group name.If create account, then delete account, then use identical user name to create another account, then new account will not have the power or authority that license to previous account, and reason is that this account has different No. SID.Secure identifier is also referred to as safe ID or SID.
It should be noted that, encapsulation process is carried out to target virtual machine, before obtaining the virtual machine after encapsulating, first can judge that target virtual machine is the virtual machine of initialized virtual machine or personalization.If judge that target virtual machine is initialized virtual machine, then can skip this step, directly using the template of target virtual machine as other virtual machines of clone; If judge that target virtual machine is personalized virtual machine, then can perform this step, after now the virtual machine of personalization being encapsulated, then using the template of the virtual machine after encapsulation as other virtual machines of clone.Encapsulation process is carried out to target virtual machine, also, initialization process is carried out to target virtual machine.It should be noted that, after encapsulation is complete, need to close target virtual machine.
S6, using the virtual machine after encapsulation as virtual machine template.
By the embodiment of the present invention, owing to can delete the individual cultivation parameter on target virtual machine to virtual machine execution encapsulation process, virtual machine template therefore can be made to have more versatility.
Further preferably, in embodiments of the present invention, S6 using the virtual machine after encapsulation as after virtual machine template, this data method can also comprise:
S8, the virtual disk files of generating virtual machines template, wherein, after the virtual disk files of generating virtual machines template, clones one or more virtual machine corresponding with virtual machine template according to the virtual disk files of virtual machine template in physical machine.
Also be, during enforcement, can the virtual disk files (Virtual Hard Disk, referred to as VHD file) of direct copying virtual machine template, and when setting up new virtual machine, in disk option, select the VHD file copied to carry out the additional clone that can complete new virtual machine.
VHD is the abbreviation of MICROSOFT VIRTUAL disk file (Microsoft Virtual Hard Disk format).Can by Microsoft Virtual PC2007, Windows Vista, Windows 7/8, establishment such as Hyper-V, Windows Server2008R2/2012, Microsoft Virtual Server 2005 grade, Virtual Box, VMWare etc. can use by carry.VHD file layout can be compressed into Single document and leave in the file system of host machine, mainly comprises system file needed for virtual machine activation.
Such as, Virtual PC is a kind of windows virtual machine, it can the windows of virtual various version, a windows should be contained on a fdisk, and it is virtual windows, a fdisk can not be marked separately install to it, so the file that the required system file of its startup is all compressed into a VHD form is placed on hard disk.VHD form is also applied in the Business of Windows Vista, in Enterprise and Ultimate version, can carry out complete system backup.
By the embodiment of the present invention, due to the clone adopting the principle of the newly-built virtual machine of Hyper-V to realize virtual machine, therefore reach the effect of quick clone.
Further preferably, in embodiments of the present invention, S4 carries out encapsulation process to target virtual machine, and obtaining the virtual machine after encapsulating can comprise:
S10, judges whether target virtual machine is the virtual machine be initialized;
S12, if judge the virtual machine of target virtual machine not for being initialized, then carrying out initialization process to target virtual machine, obtaining the virtual machine be initialized.
During enforcement, Windows can be adopted to carry instrument sysprep and to encapsulate initialized virtual machine, during encapsulation, select " entering system complete new experience (OOBE) " and " general ", select shutdown mode.
By the embodiment of the present invention, due to the clone that the principle of Windows system initialization instrument and the newly-built empty machine of Hyper-V can be utilized to realize virtual machine, reach cloning process simple and clone fireballing effect.
Further preferably, in embodiments of the present invention, S4 carries out initialization process to target virtual machine and can comprise:
S14, searches the individual cultivation parameter on target virtual machine;
S16, deletes the individual cultivation parameter on the target virtual machine found; And
S18, generates the system identification of the virtual system of target virtual machine.
By the embodiment of the present invention, owing to can delete the individual cultivation parameter on target virtual machine to virtual machine execution encapsulation process, virtual machine template therefore can be made to have more versatility.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
According to embodiments of the invention, provide a kind of clone device of virtual machine.It should be noted that, the cloning process of the virtual machine that the embodiment of the present invention provides can be performed by the clone device of the virtual machine of the embodiment of the present invention, and the clone device of the virtual machine of the embodiment of the present invention also may be used for the cloning process of the virtual machine performing the embodiment of the present invention.
Fig. 2 is the schematic diagram of the clone device of virtual machine according to the embodiment of the present invention.As shown in Figure 2, this device can comprise: acquiring unit 10 and cloned unit 20.
Acquiring unit 10 is for obtaining virtual machine template.
Virtual machine template is the template for cloning virtual machine.Before enforcement virtual machine clone, virtual machine template can be pre-created.Contain the full detail of virtual machine in virtual machine template, such as, it can comprise: the hardware configuration information of virtual machine, memory configurations information and operation system information etc.
Cloned unit 20 for cloning one or more virtual machine corresponding with virtual machine template according to virtual machine template in physical machine.
During enforcement, if want to create virtual machine in physical machine, then virtual machine template can be utilized to create virtual hardware configuration, virtual internal memory and the virtual operating system etc. of virtual machine respectively.It should be noted that, can create in virtual machine template complete, after virtual machine shutdown, in physical machine, clone one or more virtual machine corresponding with virtual machine template according to virtual machine template.
By the embodiment of the present invention, adopt and obtain virtual machine template, virtual machine template is the template for cloning virtual machine; And in physical machine, clone one or more virtual machine corresponding with virtual machine template according to virtual machine template, not only elapsed time is long to solve the virtual machine cloning process that Hyper-v in correlation technique provides, but also consume the problem of production cost, and then it is short and without the need to spending the effect of cost to reach elapsed time.
Preferably, in embodiments of the present invention, this clone device can also comprise: creating unit.Creating unit is used for creating virtual machine template in the following manner.Creating unit has creation module, package module and determination module.
Creation module is for creating target virtual machine.
Target virtual machine is for as creating other the virtual machine of template of virtual machine.During enforcement, Hyper-v can be utilized to set up a virtual machine, comprise the virtual hardware framework, virtual memory, virtual opetrating system etc. that create virtual machine, further, while the above-mentioned virtual component of establishment, can be respectively it and configure the parameter of specifying.
It should be noted that, target virtual machine can be initialized virtual machine, or can be through the virtual machine of individual cultivation.
Package module is used for carrying out encapsulation process to target virtual machine, obtains the virtual machine after encapsulating.
During enforcement, need to perform corresponding encapsulation operation under virtual machine shutdown mode, such as, the sysprep instrument encapsulation virtual machine that Windows can be adopted to carry.In actual package process, " entering system complete new experience " pattern and " general " pattern can be selected.Wherein, after selection " general ", can the secure identifier (Security Identifiers, referred to as SID) of virtual system of generating virtual machines.
It should be noted that, SID is unique number of identifying user, group and computer account.When first time creates computer account, server will issue a unique SID to each account on network.Internal process in Windows is by the user of the SID instead of account that quote account or group name.If create account, then delete account, then use identical user name to create another account, then new account will not have the power or authority that license to previous account, and reason is that this account has different No. SID.Secure identifier is also referred to as safe ID or SID.
It should be noted that, encapsulation process is carried out to target virtual machine, before obtaining the virtual machine after encapsulating, first can judge that target virtual machine is the virtual machine of initialized virtual machine or personalization.If judge that target virtual machine is initialized virtual machine, then can skip this step, directly using the template of target virtual machine as other virtual machines of clone; If judge that target virtual machine is personalized virtual machine, then can perform this step, after now the virtual machine of personalization being encapsulated, then using the template of the virtual machine after encapsulation as other virtual machines of clone.Encapsulation process is carried out to target virtual machine, also, initialization process is carried out to target virtual machine.It should be noted that, after encapsulation is complete, need to close target virtual machine.
Determination module is used for the virtual machine after using encapsulation as virtual machine template.
By the embodiment of the present invention, owing to can delete the individual cultivation parameter on target virtual machine to virtual machine execution encapsulation process, virtual machine template therefore can be made to have more versatility.
Further preferably, in embodiments of the present invention, creating unit can also comprise: generation module.Generation module be used for using the virtual machine after encapsulation as after virtual machine template, the virtual disk files of generating virtual machines template, wherein, cloned unit also for cloning one or more virtual machine corresponding with virtual machine template according to the virtual disk files of virtual machine template in physical machine.
Also be, during enforcement, can the virtual disk files (Virtual Hard Disk, referred to as VHD file) of direct copying virtual machine template, and when setting up new virtual machine, in disk option, select the VHD file copied to carry out the additional clone that can complete new virtual machine.
VHD is the abbreviation of MICROSOFT VIRTUAL disk file (Microsoft Virtual Hard Disk format).Can by Microsoft Virtual PC2007, Windows Vista, Windows 7/8, establishment such as Hyper-V, Windows Server2008R2/2012, Microsoft Virtual Server 2005 grade, Virtual Box, VMWare etc. can use by carry.VHD file layout can be compressed into Single document and leave in the file system of host machine, mainly comprises system file needed for virtual machine activation.
Such as, Virtual PC is a kind of windows virtual machine, it can the windows of virtual various version, a windows should be contained on a fdisk, and it is virtual windows, a fdisk can not be marked separately install to it, so the file that the required system file of its startup is all compressed into a VHD form is placed on hard disk.VHD form is also applied in the Business of Windows Vista, in Enterprise and Ultimate version, can carry out complete system backup.
By the embodiment of the present invention, due to the clone adopting the principle of the newly-built virtual machine of Hyper-V to realize virtual machine, therefore reach the effect of quick clone.
Further preferably, in embodiments of the present invention, package module can comprise: judge submodule and initialization submodule.Judge that submodule is for judging whether target virtual machine is the virtual machine be initialized; Initialization submodule be used for judge target virtual machine not for be initialized virtual machine time, initialization process is carried out to target virtual machine, obtains the virtual machine be initialized.
During enforcement, Windows can be adopted to carry instrument sysprep and to encapsulate initialized virtual machine, during encapsulation, select " entering system complete new experience (OOBE) " and " general ", select shutdown mode.
By the embodiment of the present invention, due to the clone that the principle of Windows system initialization instrument and the newly-built empty machine of Hyper-V can be utilized to realize virtual machine, reach cloning process simple and clone fireballing effect.
Further preferably, in embodiments of the present invention, initialization submodule can comprise: search grandson's module, delete grandson's module and generate grandson's module.Search grandson's module for searching the individual cultivation parameter on target virtual machine; Delete the individual cultivation parameter of grandson's module on the target virtual machine that will find to delete; And generate grandson's module for generating the system identification of the virtual system of target virtual machine.
By the embodiment of the present invention, owing to can delete the individual cultivation parameter on target virtual machine to virtual machine execution encapsulation process, virtual machine template therefore can be made to have more versatility.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a cloning process for virtual machine, is characterized in that, comprising:
Obtain virtual machine template, described virtual machine template is the template for cloning virtual machine; And
In physical machine, one or more virtual machine corresponding with described virtual machine template is cloned according to described virtual machine template.
2. the cloning process of virtual machine according to claim 1, is characterized in that, creates described virtual machine template in the following manner:
Create target virtual machine;
Encapsulation process is carried out to described target virtual machine, obtains the virtual machine after encapsulating; And
Using the virtual machine after described encapsulation as described virtual machine template.
3. the cloning process of virtual machine according to claim 2, is characterized in that, using the virtual machine after described encapsulation as after described virtual machine template, described cloning process also comprises:
Generate the virtual disk files of described virtual machine template,
Wherein, after the virtual disk files generating described virtual machine template, the described virtual disk files according to described virtual machine template clones one or more virtual machine corresponding with described virtual machine template in described physical machine.
4. the cloning process of virtual machine according to claim 2, is characterized in that, carries out encapsulation process to described target virtual machine, obtains the virtual machine after encapsulating and comprises:
Judge whether described target virtual machine is the virtual machine be initialized;
If judge described target virtual machine not for described in the virtual machine that is initialized, then initialization process is carried out to described target virtual machine, the virtual machine be initialized described in obtaining.
5. the cloning process of virtual machine according to claim 4, is characterized in that, carries out initialization process comprise described target virtual machine:
Search the individual cultivation parameter on described target virtual machine;
Described individual cultivation parameter on the described target virtual machine found is deleted; And
Generate the system identification of the virtual system of described target virtual machine.
6. a clone device for virtual machine, is characterized in that, comprising:
Acquiring unit, for obtaining virtual machine template, described virtual machine template is the template for cloning virtual machine; And
Cloned unit, for cloning one or more virtual machine corresponding with described virtual machine template according to described virtual machine template in physical machine.
7. the clone device of virtual machine according to claim 6, is characterized in that, described clone device also comprises: creating unit, and for creating described virtual machine template in the following manner, described creating unit has:
Creation module, for creating target virtual machine;
Package module, for carrying out encapsulation process to described target virtual machine, obtains the virtual machine after encapsulating; And
Determination module, for using the virtual machine after described encapsulation as described virtual machine template.
8. the clone device of virtual machine according to claim 7, is characterized in that, described creating unit also comprises:
Generation module, for using the virtual machine after described encapsulation as after described virtual machine template, generate the virtual disk files of described virtual machine template,
Wherein, described cloned unit is also for after the virtual disk files generating described virtual machine template, and the described virtual disk files according to described virtual machine template clones one or more virtual machine corresponding with described virtual machine template in described physical machine.
9. the clone device of virtual machine according to claim 7, is characterized in that, described package module comprises:
Judge submodule, for judging whether described target virtual machine is the virtual machine be initialized;
Initialization submodule, for judge described target virtual machine not for described in be initialized virtual machine time, initialization process is carried out to described target virtual machine, the virtual machine be initialized described in obtaining.
10. the clone device of virtual machine according to claim 9, is characterized in that, described initialization submodule comprises:
Search grandson's module, for searching the individual cultivation parameter on described target virtual machine;
Delete grandson's module, the described individual cultivation parameter on the described target virtual machine that will find is deleted; And
Generate grandson's module, for generating the system identification of the virtual system of described target virtual machine.
CN201410779059.5A 2014-12-15 2014-12-15 Cloning method and device of virtual machine Pending CN104407916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410779059.5A CN104407916A (en) 2014-12-15 2014-12-15 Cloning method and device of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779059.5A CN104407916A (en) 2014-12-15 2014-12-15 Cloning method and device of virtual machine

Publications (1)

Publication Number Publication Date
CN104407916A true CN104407916A (en) 2015-03-11

Family

ID=52645549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410779059.5A Pending CN104407916A (en) 2014-12-15 2014-12-15 Cloning method and device of virtual machine

Country Status (1)

Country Link
CN (1) CN104407916A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653348A (en) * 2015-12-30 2016-06-08 深圳市创想天空科技股份有限公司 Virtual machine clone method and system
CN105740047A (en) * 2016-01-26 2016-07-06 中标软件有限公司 Cloud computing based virtual machine template management system and method
CN105808323A (en) * 2016-04-05 2016-07-27 浪潮电子信息产业股份有限公司 Virtual machine creation method and system
CN106406980A (en) * 2016-09-06 2017-02-15 青岛海信传媒网络技术有限公司 Deployment method and device for virtual machines
CN106610864A (en) * 2017-01-01 2017-05-03 国云科技股份有限公司 Detection method for cloning integrity of virtual machine
CN106775956A (en) * 2017-01-14 2017-05-31 中国人民解放军国防科学技术大学 Xen virtual machine Fork Mechanism establishing methods
CN107102889A (en) * 2017-05-31 2017-08-29 郑州云海信息技术有限公司 A kind of resources of virtual machine method of adjustment and device
CN107463426A (en) * 2016-06-06 2017-12-12 阿里巴巴集团控股有限公司 The method and device that virtual machine is cloned under a kind of KVM virtualization
CN107656797A (en) * 2017-09-27 2018-02-02 郑州云海信息技术有限公司 The method and apparatus of across virtual platform migration virtual machine
CN107885574A (en) * 2016-09-30 2018-04-06 华为技术有限公司 A kind of dispositions method of virtual machine, service node, control device and control node
CN107908460A (en) * 2017-11-23 2018-04-13 平安科技(深圳)有限公司 Virtual machine rapid volume-expanding method, device, equipment and storage medium
CN108090333A (en) * 2017-12-29 2018-05-29 佛山市幻云科技有限公司 Apparatus control method, device, server and system based on virtual machine
CN108133127A (en) * 2017-12-29 2018-06-08 佛山市幻云科技有限公司 Apparatus control method, device, server and system
CN110058925A (en) * 2019-04-30 2019-07-26 黑龙江电力调度实业有限公司 A method of creating virtual machine in cloud computing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
US20120323853A1 (en) * 2011-06-17 2012-12-20 Microsoft Corporation Virtual machine snapshotting and analysis
CN103019802A (en) * 2012-11-20 2013-04-03 中标软件有限公司 Virtual machine management method and virtual machine management platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120323853A1 (en) * 2011-06-17 2012-12-20 Microsoft Corporation Virtual machine snapshotting and analysis
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN103019802A (en) * 2012-11-20 2013-04-03 中标软件有限公司 Virtual machine management method and virtual machine management platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MSNBA: ""[Hyber-V]制作一个干净的操作系统模板"", 《HTTP://TINYURL.COM/H8RGSK3》 *
MSNBA: ""[Hyper-V]使用操作系统模板创建新的虚拟机"", 《HTTP://TINYURL.COM/ZMBGWVL》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653348A (en) * 2015-12-30 2016-06-08 深圳市创想天空科技股份有限公司 Virtual machine clone method and system
CN105740047A (en) * 2016-01-26 2016-07-06 中标软件有限公司 Cloud computing based virtual machine template management system and method
CN105808323A (en) * 2016-04-05 2016-07-27 浪潮电子信息产业股份有限公司 Virtual machine creation method and system
CN107463426A (en) * 2016-06-06 2017-12-12 阿里巴巴集团控股有限公司 The method and device that virtual machine is cloned under a kind of KVM virtualization
CN107463426B (en) * 2016-06-06 2020-11-27 阿里巴巴集团控股有限公司 Method and device for cloning virtual machine under KVM virtualization
CN106406980A (en) * 2016-09-06 2017-02-15 青岛海信传媒网络技术有限公司 Deployment method and device for virtual machines
CN107885574A (en) * 2016-09-30 2018-04-06 华为技术有限公司 A kind of dispositions method of virtual machine, service node, control device and control node
CN107885574B (en) * 2016-09-30 2021-02-09 华为技术有限公司 Deployment method of virtual machine, service node, control device and control node
CN106610864A (en) * 2017-01-01 2017-05-03 国云科技股份有限公司 Detection method for cloning integrity of virtual machine
CN106775956A (en) * 2017-01-14 2017-05-31 中国人民解放军国防科学技术大学 Xen virtual machine Fork Mechanism establishing methods
CN106775956B (en) * 2017-01-14 2019-09-06 中国人民解放军国防科学技术大学 Xen virtual machine Fork Mechanism establishing method
CN107102889A (en) * 2017-05-31 2017-08-29 郑州云海信息技术有限公司 A kind of resources of virtual machine method of adjustment and device
CN107102889B (en) * 2017-05-31 2021-02-02 苏州浪潮智能科技有限公司 Virtual machine resource adjusting method and device
CN107656797A (en) * 2017-09-27 2018-02-02 郑州云海信息技术有限公司 The method and apparatus of across virtual platform migration virtual machine
CN107908460A (en) * 2017-11-23 2018-04-13 平安科技(深圳)有限公司 Virtual machine rapid volume-expanding method, device, equipment and storage medium
CN108133127A (en) * 2017-12-29 2018-06-08 佛山市幻云科技有限公司 Apparatus control method, device, server and system
CN108090333A (en) * 2017-12-29 2018-05-29 佛山市幻云科技有限公司 Apparatus control method, device, server and system based on virtual machine
CN110058925A (en) * 2019-04-30 2019-07-26 黑龙江电力调度实业有限公司 A method of creating virtual machine in cloud computing system

Similar Documents

Publication Publication Date Title
CN104407916A (en) Cloning method and device of virtual machine
US8887227B2 (en) Network policy implementation for a multi-virtual machine appliance within a virtualization environtment
CN102460382B (en) Annotating virtual application processes
US20150215120A1 (en) Storage Encryption
US20100042994A1 (en) Transportation of a Workspace from One Machine to Another in a Virtualized Computing Environment without Installing an Operating System
CN106776067B (en) Method and device for managing system resources in multi-container system
US20130091183A1 (en) Volume Management
CN106796508A (en) Rapid deployment in cloud platform
CN108021400B (en) Data processing method and device, computer storage medium and equipment
US20220255966A1 (en) Method and System for Secure Container Application Framework
CN103309721A (en) Virtual machine monitor management system and method
CN111736922B (en) Plug-in calling method and device, electronic equipment and storage medium
CN103617070A (en) Virtual machine migration method and device
US20160042030A1 (en) Performing actions on objects as a result of applying tags to the objects
EP3066604B1 (en) Data accessibility control
US20220247636A1 (en) Secure management of devices
CN113544679A (en) Incremental decryption and integrity verification of secure operating system images
Sule et al. Deploying trusted cloud computing for data intensive power system applications
US9824224B2 (en) Security-minded cloning method, system and program
CN114936365B (en) System, method and device for protecting secret data
US11799629B2 (en) Access authorization utilizing homomorphically encrypted access authorization objects
CN114586032B (en) Secure workload configuration
WO2022170157A1 (en) Method and system for secure container application framework
CN108021801B (en) Virtual desktop-based anti-leakage method, server and storage medium
KR20170080773A (en) LIGHTWEIGHT PaaS SYSTEM AND METHOD THEREOF

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150311