CN107368348A - Virtual machine cloning process and device - Google Patents
Virtual machine cloning process and device Download PDFInfo
- Publication number
- CN107368348A CN107368348A CN201610321423.2A CN201610321423A CN107368348A CN 107368348 A CN107368348 A CN 107368348A CN 201610321423 A CN201610321423 A CN 201610321423A CN 107368348 A CN107368348 A CN 107368348A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- mirror image
- increment
- image
- original
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Abstract
The invention discloses a kind of virtual machine cloning process, the virtual machine cloning process comprises the following steps:The image file of original virtual machine is set as base mirror image;According to base mirror image generation for the first increment mirror image that original virtual machine is run and the second increment mirror image for cloning the operation of obtained target virtual machine in advance, and the first increment mirror image is identical with the second increment mirror image;Target virtual machine is obtained according to the second increment echo cloning.The invention also discloses virtual machine clone device.Present invention reduces the clone-time of virtual machine, the efficiency of clone is improved.
Description
Technical field
The present invention relates to virtual machine technique field, more particularly to a kind of virtual machine cloning process and device.
Background technology
It is well known that completely clone is one virtual machine of complete duplication to existing virtual machine.But due to
The image file of virtual machine is as a rule all very big, therefore when copying virtual machine image file, takes
It is longer so that the cloning efficiency of virtual machine is relatively low.
The content of the invention
It is a primary object of the present invention to provide a kind of virtual machine cloning process and device, it is intended to shorten virtual
The clone-time of machine, improve the efficiency of clone.
To achieve the above object, a kind of virtual machine cloning process provided by the invention, the virtual machine clone
Method comprises the following steps:
The image file of original virtual machine is set as base mirror image;
What the first increment mirror image and pre- clone run according to base mirror image generation for original virtual machine obtained
Second increment mirror image of target virtual machine operation, and the first increment mirror image is identical with the second increment mirror image;
Target virtual machine is obtained according to the second increment echo cloning.
Preferably, it is described that the image file of original virtual machine is set as that base mirror image includes:
The image file of original virtual machine is moved under the first preset catalogue, and the mirror image after movement is literary
Part is set as base mirror image.
Preferably, it is described according to the base mirror image generation for original virtual machine run the first increment mirror image and
Cloning the second increment mirror image of obtained target virtual machine operation in advance includes:
First increment mirror image is created according to the base mirror image;
The second increment mirror image will be formed under the first increment mirror-image copies to the second preset catalogue.
Preferably, the image file of original virtual machine is moved under the first preset catalogue includes:
Judge whether the original virtual machine is open state;
If so, then control the original virtual machine operation suspension, and after unloading image file, by the mirror
As file is moved under the first preset catalogue;
If it is not, then image file corresponding to the original virtual machine is moved under the first preset catalogue.
Preferably, it is described according to the base mirror image generation for original virtual machine run the first increment mirror image and
Clone the second increment mirror step of obtained target virtual machine operation in advance also includes afterwards:
When the original virtual machine is open state, the original virtual machine loading described first is controlled to increase
Mirror image is measured, is run with recovering the original virtual machine.
In addition, to achieve the above object, the present invention also provides a kind of virtual machine clone device, described virtual
Machine clone device includes:
Control module, for the image file of original virtual machine to be set as into base mirror image;
Processing module, for the first increment mirror image run according to base mirror image generation for original virtual machine
With the second increment mirror image for cloning obtained target virtual machine operation in advance, and the first increment mirror image and the
Two increment mirror images are identical;
Cloning module, for obtaining target virtual machine according to the second increment echo cloning.
Preferably, the control module is pre- specifically for the image file of original virtual machine is moved into first
Put under catalogue, and the image file after movement is set as base mirror image.
Preferably, the processing module includes:
Processing unit, for creating the first increment mirror image according to the base mirror image;
Copy cell, increase for second will to be formed under the first increment mirror-image copies to the second preset catalogue
Measure mirror image.
Preferably, control module includes:
Judging unit, for judging whether the original virtual machine is open state;
Control unit, for when the original virtual machine is off-mode, by the original virtual machine pair
The image file answered is moved under the first preset catalogue;For when the original virtual machine is open state,
The original virtual machine operation suspension is controlled, and after unloading image file, the image file is moved to
Under first preset catalogue.
Preferably, the virtual machine clone device also includes:
Recovery module, for when the original virtual machine is open state, controlling the original virtual machine
The first increment mirror image is loaded, is run with recovering the original virtual machine.
Preferably, the virtual machine clone device also includes:
Load-on module, for controlling the second increment mirror image described in the target virtual machine load operating.
The embodiment of the present invention by the image file of original virtual machine by being set as base mirror image;According to the base
Mirror image generation is run for the first increment mirror image of original virtual machine operation with obtained target virtual machine is cloned in advance
The second increment mirror image, and the first increment mirror image is identical with the second increment mirror image;According to described second
Increment echo cloning obtains target virtual machine.Because as long as the embodiment of the present invention according to base mirror image obtains second
Increment mirror image, you can cloned to obtain target virtual machine, relative to prior art, the embodiment of the present invention
Image file need not be copied, therefore shortens the clone-time of virtual machine, improves the efficiency of clone.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of virtual machine cloning process first embodiment of the present invention;
Fig. 2 is to obtain the first increment mirror according to base mirror image in virtual machine cloning process second embodiment of the present invention
The refinement schematic flow sheet of picture and the second increment mirror image;
Fig. 3 is according to the refinement stream of mobile mirror file in virtual machine cloning process 3rd embodiment of the present invention
Journey schematic diagram;
Fig. 4 is the functional module structure schematic diagram of virtual machine clone device first embodiment of the present invention;
Fig. 5 is the refinement functional module knot of processing module in virtual machine clone device second embodiment of the present invention
Structure schematic diagram;
Fig. 6 is the refinement functional module knot of control module in virtual machine clone device 3rd embodiment of the present invention
Structure schematic diagram.
The realization, functional characteristics and advantage of the object of the invention will be done further referring to the drawings in conjunction with the embodiments
Explanation.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to limit
The fixed present invention.
A kind of virtual machine cloning process of present invention offer, reference picture 1, in one embodiment, the virtual machine gram
Grand method comprises the following steps:
Step S10, the image file of original virtual machine is set as base mirror image;
Virtual machine cloning process provided in an embodiment of the present invention is mainly used in virtual machine clone's application, with
Realize quick clone virtual machine.
Specifically, in virtualization product clone virtual machine that is will replicate a virtual machine into individually solely
Another vertical virtual machine, the virtual machine cloned and original virtual machine are all individually independent, using mutual
Do not influence.Clone is exactly that virtual machine image file is replicated to a, content and original striking resemblances.
The image file of above-mentioned virtual machine refers to disk mirroring file, in virtual machine internal virtual machine image just
It is the disk that virtual machine uses, does not have difference using upper and physical disk.On virtual platform, virtual machine
Mirror image is exactly a file, and the disk that virtual machine uses is exactly this file (i.e. the image file of virtual machine).
Because the position where the image file of the virtual machine of clone is inconsistent, in order to form gram of standardization
Grand demand, it is preferable that in the present embodiment, above-mentioned steps S10 is by the image file of original virtual machine
It is moved under the first preset catalogue, and the image file after movement is set as base mirror image.
Above-mentioned first preset catalogue is user's assigned catalogue, can preset the path address of the catalogue.
Specifically, the image file of original virtual machine is moved under the first preset catalogue, is in the present embodiment
Refer to, image file is moved under the first catalogue by image file in the form of shearing.
Step S20, according to base mirror image generation for the first increment mirror image of original virtual machine operation and pre- gram
Second increment mirror image of grand obtained target virtual machine operation, and the first increment mirror image and the second increment
Mirror image is identical;
In the present embodiment, above-mentioned base mirror image is also the image file of a virtual machine, and simply this file is
One parent, this parent are individually independent, and this parent can derive many daughters, daughter
And an image file, simply this daughter is individually but not independent, and it depends on parent, son
It is that individually and independently, daughter can also be a base mirror image between body and daughter.
Above-mentioned increment mirror image is that the daughter being derived by base mirror image is formed, can be by upper in the present embodiment
State base mirror image and generate two identical individual increment mirror images, one of increment mirror image is the first increment mirror image, separately
One increment mirror image is the second increment mirror image.
Step S30, target virtual machine is obtained according to the second increment echo cloning.
Because above-mentioned first increment mirror image and the second increment mirror image are completely the same, therefore according to the second increment
Mirror image is cloned obtained target virtual machine and original virtual machine is completely the same.
The embodiment of the present invention by the image file of original virtual machine by being set as base mirror image;According to the base
Mirror image generation is run for the first increment mirror image of original virtual machine operation with obtained target virtual machine is cloned in advance
The second increment mirror image, and the first increment mirror image is identical with the second increment mirror image;According to described second
Increment echo cloning obtains target virtual machine.Because as long as the embodiment of the present invention according to base mirror image obtains second
Increment mirror image, you can cloned to obtain target virtual machine, relative to prior art, the embodiment of the present invention
Image file need not be copied, therefore shortens the clone-time of virtual machine, improves the efficiency of clone.
Further, reference picture 2, based on virtual machine cloning process first embodiment of the present invention, it is proposed that this
Invention virtual machine cloning process second embodiment, the area with virtual machine cloning process first embodiment of the present invention
It is not, in the present embodiment, the second increment mirror image is obtained by the way of the first increment mirror image is copied.
Specifically, in virtual machine cloning process second embodiment of the present invention, the above-mentioned mirror image by original virtual machine
File, which is moved under the first preset catalogue, to be included:
Step S21, the first increment mirror image is created according to the base mirror image;
Step S22, the second increment mirror will be formed under the first increment mirror-image copies to the second preset catalogue
Picture.
In the present embodiment, in order to ensure the uniformity of the second increment mirror image and the first increment mirror image, first root
Derive to obtain the first increment mirror image according to base mirror image, it is then that the first increment mirror-image copies are pre- to second specified
Put and the second increment mirror image is formed under catalogue.Specifically, the second preset above-mentioned first preset catalogue of catalogue is not
For same catalogue, the second preset catalogue can be user's catalogue set in advance, in establishment
State the catalogue of target virtual machine operation when institute's load operating the second increment mirror image.In the present embodiment, by
In only need copy the first increment mirror image, but due to just start create increment mirror image relative to base mirror
Much smaller as, the increment mirror image for generally starting to create only has several million or so, therefore relative to existing
For complete image file is copied in technology, the time of copy increment mirror image of the embodiment of the present invention is shorter, from
And improve the efficiency of clone.
Further, reference picture 3, based on virtual machine cloning process first embodiment of the present invention, it is proposed that this
Invention virtual machine cloning process 3rd embodiment, the area with virtual machine cloning process first embodiment of the present invention
It is not, in the present embodiment, the operation to mobile mirror file is further limited.Specifically
Ground, in virtual machine cloning process 3rd embodiment of the present invention, above-mentioned steps S10 includes:
Step S11, judge whether the original virtual machine is open state;If so, step S12 is then performed,
Otherwise step S13 is performed;
Step S12, the original virtual machine operation suspension is controlled, and after unloading image file, by the mirror
As file is moved under the first preset catalogue;
Step S13, image file corresponding to the original virtual machine is moved under the first preset catalogue.
In the present embodiment, when original virtual machine is run under open state, image file will be loaded in
Run in virtual machine, will be unable to direct mobile mirror file;Now, virtual machine pause fortune will be controlled first
OK, image file is then unloaded from original virtual machine again, it is preset that image file finally is moved into first
Under catalogue;, then can direct mobile mirror file when original virtual machine is currently off-mode.
It should be noted that in the present embodiment, suspending to original virtual machine, and do not terminate directly,
Can be after subsequently target virtual machine have been cloned, then recover the startup of original virtual machine, so as to prevent behaviour
Interrupt, improve the Experience Degree of user.Simultaneously, original virtual machine is again started up without user,
Therefore the flexibility of operation is improved.The process for recovering original virtual machine operation will be made specifically below
It is bright.
Specifically, also include after above-mentioned steps S20:
When the original virtual machine is open state, the original virtual machine loading described first is controlled to increase
Mirror image is measured, is run with recovering the original virtual machine.
In the present embodiment, after above-mentioned first increment mirror image and the second increment mirror image is obtained, it can be determined that former
Whether beginning virtual machine is open state.If being before start halted state, need to control original virtual machine
Load operating the first increment mirror image, so as to recover the running status of original virtual machine, to ensure original virtual
The normal operation of machine.
In addition, in the present embodiment, above-mentioned virtual machine cloning process also includes:
Control the second increment mirror image described in the target virtual machine load operating.
In the present embodiment, the target virtual machine after clone is consistent with original virtual machine, and target virtual machine
Second increment mirror image of load operating is consistent with the first increment mirror image of original virtual machine load operating, therefore
The running status of first virtual machine and the running status of the second virtual machine can be consistent.Furthermore, it is necessary to illustrate
, due to the target virtual machine operation after clone the first increment mirror image and original virtual machine operation the
Two increment mirror images are the same, so the virtual machine of target and original virtual machine are the same after clone
's.Due to the base mirror image of the first increment mirror image and the second increment mirror image be it is the same, and increment mirror image it
Between be individually and independently, so clone after target virtual machine and original virtual machine be independent again.
Further, reference picture 4, the present invention also propose a kind of virtual machine clone device first embodiment,
In virtual machine clone device first embodiment of the present invention, the virtual machine clone device includes:
Control module 10, for the image file of original virtual machine to be set as into base mirror image;
Virtual machine clone device provided in an embodiment of the present invention is mainly used in virtual machine clone's application, with
Realize quick clone virtual machine.
Specifically, in virtualization product clone virtual machine that is will replicate a virtual machine into individually solely
Another vertical virtual machine, the virtual machine cloned and original virtual machine are all individually independent, using mutual
Do not influence.Clone is exactly that virtual machine image file is replicated to a, content and original striking resemblances.
The image file of above-mentioned virtual machine refers to disk mirroring file, in virtual machine internal virtual machine image just
It is the disk that virtual machine uses, does not have difference using upper and physical disk.On virtual platform, virtual machine
Mirror image is exactly a file, and the disk that virtual machine uses is exactly this file (i.e. the image file of virtual machine).
Because the position where the image file of the virtual machine of clone is inconsistent, in order to form gram of standardization
Grand demand, it is preferable that in the present embodiment, control module 10 is specifically used for the mirror image of original virtual machine
File is moved under the first preset catalogue, and the image file after movement is set as into base mirror image.
Above-mentioned first preset catalogue is user's assigned catalogue, can preset the path address of the catalogue.
Specifically, the image file of original virtual machine is moved under the first preset catalogue, is in the present embodiment
Refer to, image file is moved under the first catalogue by image file in the form of shearing.
Processing module 20, for the first increment mirror run according to base mirror image generation for original virtual machine
The second increment mirror image that the target virtual machine that picture and clone in advance obtains is run, and the first increment mirror image and
Second increment mirror image is identical;
In the present embodiment, above-mentioned base mirror image is also the image file of a virtual machine, and simply this file is
One parent, this parent are individually independent, and this parent can derive many daughters, daughter
And an image file, simply this daughter is individually but not independent, and it depends on parent, son
It is that individually and independently, daughter can also be a base mirror image between body and daughter.
Above-mentioned increment mirror image is that the daughter being derived by base mirror image is formed, can be by upper in the present embodiment
State base mirror image and generate two identical individual increment mirror images, one of increment mirror image is the first increment mirror image, separately
One increment mirror image is the second increment mirror image.
Cloning module 30, for obtaining target virtual machine according to the second increment echo cloning.
Because above-mentioned first increment mirror image and the second increment mirror image are completely the same, therefore according to the second increment
Mirror image is cloned obtained target virtual machine and original virtual machine is completely the same.
The embodiment of the present invention by the image file of original virtual machine by being set as base mirror image;According to the base
Mirror image generation is run for the first increment mirror image of original virtual machine operation with obtained target virtual machine is cloned in advance
The second increment mirror image, and the first increment mirror image is identical with the second increment mirror image;According to described second
Increment echo cloning obtains target virtual machine.Because as long as the embodiment of the present invention according to base mirror image obtains second
Increment mirror image, you can cloned to obtain target virtual machine, relative to prior art, the embodiment of the present invention
Image file need not be copied, therefore shortens the clone-time of virtual machine, improves the efficiency of clone.
Further, reference picture 5, based on virtual machine clone device first embodiment of the present invention, it is proposed that this
Invention virtual machine clone device second embodiment, the area with virtual machine clone device first embodiment of the present invention
It is not, in the present embodiment, the second increment mirror image is obtained by the way of the first increment mirror image is copied.
Specifically, in virtual machine clone device second embodiment of the present invention, above-mentioned processing module 20 includes:
Processing unit 21, for creating the first increment mirror image according to the base mirror image;
Copy cell 22, for second will to be formed under the first increment mirror-image copies to the second preset catalogue
Increment mirror image.
In the present embodiment, in order to ensure the uniformity of the second increment mirror image and the first increment mirror image, first root
Derive to obtain the first increment mirror image according to base mirror image, it is then that the first increment mirror-image copies are pre- to second specified
Put and the second increment mirror image is formed under catalogue.Specifically, the second preset above-mentioned first preset catalogue of catalogue is not
For same catalogue, the second preset catalogue can be user's catalogue set in advance, in establishment
State the catalogue of target virtual machine operation when institute's load operating the second increment mirror image.In the present embodiment, by
In only need copy the first increment mirror image, but due to just start create increment mirror image relative to base mirror
Much smaller as, the increment mirror image for generally starting to create only has several million or so, therefore relative to existing
For complete image file is copied in technology, the time of copy increment mirror image of the embodiment of the present invention is shorter, from
And improve the efficiency of clone.
Further, reference picture 6, based on virtual machine clone device first embodiment of the present invention, it is proposed that this
Invention virtual machine clone device 3rd embodiment, the area with virtual machine clone device first embodiment of the present invention
It is not, in the present embodiment, the operation to mobile mirror file is further limited.Specifically
Ground, in virtual machine clone device 3rd embodiment of the present invention, above-mentioned control module 10 includes:
Judging unit 11, for judging whether the original virtual machine is open state;
Control unit 12, for when the original virtual machine is off-mode, by the original virtual machine
Corresponding image file is moved under the first preset catalogue;For being open state when the original virtual machine
When, the original virtual machine operation suspension is controlled, and after unloading image file, the image file is moved
Move under the first preset catalogue.
In the present embodiment, when original virtual machine is run under open state, image file will be loaded in
Run in virtual machine, will be unable to direct mobile mirror file;Now, virtual machine pause fortune will be controlled first
OK, image file is then unloaded from original virtual machine again, it is preset that image file finally is moved into first
Under catalogue;, then can direct mobile mirror file when original virtual machine is currently off-mode.
It should be noted that in the present embodiment, suspending to original virtual machine, and do not terminate directly,
Can be after subsequently target virtual machine have been cloned, then recover the startup of original virtual machine, so as to prevent behaviour
Interrupt, improve the Experience Degree of user.Simultaneously, original virtual machine is again started up without user,
Therefore the flexibility of operation is improved.The process for recovering original virtual machine operation will be made specifically below
It is bright.
Specifically, above-mentioned virtual machine clone device also includes:
Recovery module, for when the original virtual machine is open state, controlling the original virtual machine
The first increment mirror image is loaded, is run with recovering the original virtual machine.
In the present embodiment, after above-mentioned first increment mirror image and the second increment mirror image is obtained, it can be determined that former
Whether beginning virtual machine is open state.If being before start halted state, need to control original virtual machine
Load operating the first increment mirror image, so as to recover the running status of original virtual machine, to ensure original virtual
The normal operation of machine.
In addition, in the present embodiment, above-mentioned virtual machine clone device also includes:
Load-on module, for controlling the second increment mirror image described in the target virtual machine load operating.
In the present embodiment, the target virtual machine after clone is consistent with original virtual machine, and target virtual machine
Second increment mirror image of load operating is consistent with the first increment mirror image of original virtual machine load operating, therefore
The running status of first virtual machine and the running status of the second virtual machine can be consistent.Furthermore, it is necessary to illustrate
, due to the target virtual machine operation after clone the first increment mirror image and original virtual machine operation the
Two increment mirror images are the same, so the virtual machine of target and original virtual machine are the same after clone
's.Due to the base mirror image of the first increment mirror image and the second increment mirror image be it is the same, and increment mirror image it
Between be individually and independently, so clone after target virtual machine and original virtual machine be independent again.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.Pass through the above
Embodiment description, those skilled in the art can be understood that above-described embodiment method can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware, but very
The former is more preferably embodiment in the case of more.Based on such understanding, technical scheme essence
On the part that is contributed in other words to prior art can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including
Some instructions are make it that a station terminal equipment (can be mobile phone, computer, server, or network
Equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every
The equivalent structure or equivalent flow conversion made using description of the invention and accompanying drawing content, or directly or
Connect and be used in other related technical areas, be included within the scope of the present invention.
Claims (10)
1. a kind of virtual machine cloning process, it is characterised in that the virtual machine cloning process includes following step
Suddenly:
The image file of original virtual machine is set as base mirror image;
What the first increment mirror image and pre- clone run according to base mirror image generation for original virtual machine obtained
Second increment mirror image of target virtual machine operation, and the first increment mirror image is identical with the second increment mirror image;
Target virtual machine is obtained according to the second increment echo cloning.
2. virtual machine cloning process as claimed in claim 1, it is characterised in that described by original virtual
The image file of machine is set as that base mirror image includes:
The image file of original virtual machine is moved under the first preset catalogue, and the mirror image after movement is literary
Part is set as base mirror image.
3. virtual machine cloning process as claimed in claim 1, it is characterised in that described according to the base
Mirror image generation is run for the first increment mirror image of original virtual machine operation with obtained target virtual machine is cloned in advance
The second increment mirror image include:
First increment mirror image is created according to the base mirror image;
The second increment mirror image will be formed under the first increment mirror-image copies to the second preset catalogue.
4. virtual machine cloning process as claimed in claim 2, it is characterised in that by original virtual machine
Image file, which is moved under the first preset catalogue, to be included:
Judge whether the original virtual machine is open state;
If so, then control the original virtual machine operation suspension, and after unloading image file, by the mirror
As file is moved under the first preset catalogue;
If it is not, then image file corresponding to the original virtual machine is moved under the first preset catalogue.
5. virtual machine cloning process as claimed in claim 4, it is characterised in that described according to the base
Mirror image generation is run for the first increment mirror image of original virtual machine operation with obtained target virtual machine is cloned in advance
The second increment mirror step after also include:
When the original virtual machine is open state, the original virtual machine loading described first is controlled to increase
Mirror image is measured, is run with recovering the original virtual machine.
6. a kind of virtual machine clone device, it is characterised in that the virtual machine clone device includes:
Control module, for the image file of original virtual machine to be set as into base mirror image;
Processing module, for the first increment mirror image run according to base mirror image generation for original virtual machine
With the second increment mirror image for cloning obtained target virtual machine operation in advance, and the first increment mirror image and the
Two increment mirror images are identical;
Cloning module, for obtaining target virtual machine according to the second increment echo cloning.
7. virtual machine clone device as claimed in claim 6, it is characterised in that the control module tool
Body is used to the image file of original virtual machine being moved under the first preset catalogue, and by the mirror image after movement
File configuration is base mirror image.
8. virtual machine clone device as claimed in claim 6, it is characterised in that the processing module bag
Include:
Processing unit, for creating the first increment mirror image according to the base mirror image;
Copy cell, increase for second will to be formed under the first increment mirror-image copies to the second preset catalogue
Measure mirror image.
9. virtual machine clone device as claimed in claim 7, it is characterised in that control module includes:
Judging unit, for judging whether the original virtual machine is open state;
Control unit, for when the original virtual machine is off-mode, by the original virtual machine pair
The image file answered is moved under the first preset catalogue;For when the original virtual machine is open state,
The original virtual machine operation suspension is controlled, and after unloading image file, the image file is moved to
Under first preset catalogue.
10. virtual machine clone device as claimed in claim 9, it is characterised in that the virtual machine gram
Grand device also includes:
Recovery module, for when the original virtual machine is open state, controlling the original virtual machine
The first increment mirror image is loaded, is run with recovering the original virtual machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610321423.2A CN107368348A (en) | 2016-05-13 | 2016-05-13 | Virtual machine cloning process and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610321423.2A CN107368348A (en) | 2016-05-13 | 2016-05-13 | Virtual machine cloning process and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107368348A true CN107368348A (en) | 2017-11-21 |
Family
ID=60304220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610321423.2A Pending CN107368348A (en) | 2016-05-13 | 2016-05-13 | Virtual machine cloning process and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107368348A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970585A (en) * | 2013-01-31 | 2014-08-06 | 杭州华三通信技术有限公司 | Method and device for creating virtual machine |
CN104468734A (en) * | 2014-11-18 | 2015-03-25 | 国云科技股份有限公司 | Virtual cluster expanding method based on cloning |
CN104679579A (en) * | 2015-03-19 | 2015-06-03 | 杭州华三通信技术有限公司 | Virtual machine migration method and device in cluster system |
US9317375B1 (en) * | 2012-03-30 | 2016-04-19 | Lenovoemc Limited | Managing cache backup and restore for continuous data replication and protection |
-
2016
- 2016-05-13 CN CN201610321423.2A patent/CN107368348A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9317375B1 (en) * | 2012-03-30 | 2016-04-19 | Lenovoemc Limited | Managing cache backup and restore for continuous data replication and protection |
CN103970585A (en) * | 2013-01-31 | 2014-08-06 | 杭州华三通信技术有限公司 | Method and device for creating virtual machine |
CN104468734A (en) * | 2014-11-18 | 2015-03-25 | 国云科技股份有限公司 | Virtual cluster expanding method based on cloning |
CN104679579A (en) * | 2015-03-19 | 2015-06-03 | 杭州华三通信技术有限公司 | Virtual machine migration method and device in cluster system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103136094B (en) | A kind of page method of testing and device | |
CN104572178B (en) | Electric energy meter embedded software remote differential upgrade method and upgrade-system | |
CN109697060A (en) | Special video effect software and its generation method, device, equipment and storage medium | |
CN111783230A (en) | Simulation test method and device for automatic driving algorithm | |
CN105546724B (en) | Sound control method and system, client, control device | |
CN106789202A (en) | service management device and method | |
WO2016184058A1 (en) | Terminal exception recovery method and terminal | |
CN104978433A (en) | Web page display method and device | |
CN109788029A (en) | Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services | |
CN106598774A (en) | Virtual machine backup restoring method and apparatus | |
WO2013185549A2 (en) | Picture displaying method and device, mobile terminal and computer storage medium | |
CN104679497A (en) | Mobile terminal control method, device and mobile terminal | |
CN107368348A (en) | Virtual machine cloning process and device | |
CN105094860A (en) | Terminal software online upgrade method and device | |
CN104866282B (en) | A kind of method and electronic equipment of control electronics | |
CN107179934A (en) | The method and system of virtual machine automatic reduction in cloud computing environment | |
CN111384753B (en) | State machine-based charge control strategy design method, device, equipment and medium | |
CN106708478A (en) | Scroll view display method and device | |
CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
CN107491353A (en) | Method for recovering internal storage, device and computer-readable recording medium | |
CN109634778A (en) | A kind of method, apparatus and electronic equipment of factory reset | |
CN104751084A (en) | Information processing method and electronic equipment | |
CN104135627A (en) | A method and a system for shooting an object motion trail | |
CN108933681A (en) | A kind of cloud computing system configuration update method, control centre and cloud computing node | |
CN113014996A (en) | Video generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171121 |
|
RJ01 | Rejection of invention patent application after publication |