CN103729237A - Method for transferring virtual machine across storage pools - Google Patents
Method for transferring virtual machine across storage pools Download PDFInfo
- Publication number
- CN103729237A CN103729237A CN201410007248.0A CN201410007248A CN103729237A CN 103729237 A CN103729237 A CN 103729237A CN 201410007248 A CN201410007248 A CN 201410007248A CN 103729237 A CN103729237 A CN 103729237A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- source
- virtualized environment
- source virtual
- information
- 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
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000011084 recovery Methods 0.000 claims abstract description 4
- 238000013508 migration Methods 0.000 claims description 15
- 230000005012 migration Effects 0.000 claims description 15
- 230000006399 behavior Effects 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 5
- 238000012360 testing method Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 description 7
- 238000004321 preservation Methods 0.000 description 2
- 208000036829 Device dislocation Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method for transferring a virtual machine across storage pools. The method includes the steps of setting up network connection between a source virtualized environment and a target virtualized environment, detecting whether the target virtualized environment meets the requirement for transferring a source virtual machine in the source virtualized environment or not, if yes, setting up a target virtual machine with the same configuration as that of the source virtual machine in the target virtualized environment, conducting snapshoot operation on the source virtual machine, transmitting a source virtual machine running state save file generated through the snapshoot operation and a virtual machine mirror image of the source virtual machine to the target virtualized environment, and executing the virtual machine recovery operation based on the source virtual machine running state save file. According to the method, the source virtual machine can be transferred in the multiple virtualized environments.
Description
Technical field
The present invention relates to computer virtualized field, be specifically related to a kind of method across storage pool migration virtual machine.
Background technology
Existing virtualized environment is roughly disposed as the mode of Fig. 1, control end, computing node, the network equipment, memory device or storage pool, consists of.The mirror image of virtual machine and configuration information are kept on shared memory device or storage pool, and due to the equal energy of all computing nodes accessing storage device, so virtual machine may operate on any computing node, this technology is referred to as the static migrating of virtual machine.Utilize Intel Virtualization Technology, state when virtual machine can be moved (CPU, internal storage location, IO, equipment) is preserved, the content file of preservation is called to state and preserves file, state is preserved to file copy to an other computer node, utilize the Intel Virtualization Technology of this node, can rebuild virtual machine and the state of preservation is recovered, this newly-built virtual machine can return to original state.This technology is referred to as dynamic migration.As mentioned above, the main points that realize dynamic migration are that all computing nodes need to be shared same memory device or storage pool with access virtual machine image wherein.
For the service ability consideration of shared storage device, the computing node quantity of whole virtualized environment should not exceed the service ability upper limit of memory device.This also just causes the range of operation of virtual machine to be limited within the scope of the computing node of sharing storage support.In actual use, in order to realize across data center or trans-regional computing power redundancy, need virtual machine in a plurality of virtualized environments, to move, and because different virtualized environments cannot be realized sharing of memory device.So cannot realize the dynamic migration of virtual machine between different virtual environment.
Summary of the invention
The technical issues that need to address of the present invention are to provide a kind of method and system across storage pool dynamic migration virtual machine.In the situation that not changing existing Intel Virtualization Technology and virtual deployed environment framework, realize dynamic migration virtual machine between different storage pools.
In order to solve the problems of the technologies described above, the invention provides a kind of method across storage pool dynamic migration virtual machine, comprising:
Step 1: the network of setting up between source virtualized environment and object virtualized environment connects;
Step 2: whether testing goal virtualized environment possesses the condition of the source virtual machine in the virtualized environment of migration source, if met, enters step 3, otherwise this method stops;
Step 3: set up an object virtual machine with the identical configuration of source virtual machine in object virtualized environment, source virtual machine is carried out to snapshot operation, the virtual machine image that the run time behaviour of the source virtual machine that snapshot operation is produced is preserved file and source virtual machine transfers in object virtualized environment, and the run time behaviour based on described source virtual machine is preserved file execution recovery virtual machine operations.
The invention has the beneficial effects as follows that can realize virtual machine moves in a plurality of virtualized environments.
Accompanying drawing explanation
Fig. 1 is the virtualized environment pie graph providing in prior art.
Fig. 2 is the virtual machine migration method schematic diagram across storage that the present invention proposes.
Embodiment
With reference to the accompanying drawings 2, content of the present invention is described to the content of whole invention across the treatment scheme of memory device migration with virtual machine.
With reference to accompanying drawing 2, the architecture of the technical scheme that the present invention proposes comprises: virtualized environment H1 and virtualized environment H2.Wherein, virtualized environment H1 comprises controller A1, virtual computer node S1, memory device M1 and the network equipment, the upper operation of above-mentioned virtual computing node S1 virtual machine V; Virtualized environment H2 comprises controller A2, virtual computer node S2, memory device M2 and the network equipment, on above-mentioned virtual computing node S2, can move virtual machine V '.Defining virtual environment H1 is source virtualized environment, and virtualized environment H2 is object virtualized environment.In memory device M1, store the virtual machine image IMG of virtual machine V, this virtual machine image 1MG is copied in the memory device M2 in object virtualized environment H2, be called virtual machine image IMG ', state during virtual machine V operation is stored in run time behaviour and preserves in file F, this state is preserved file F and is copied in the virtual machine V ' in object virtualized environment H2, is called run time behaviour and preserves file F '.
The method that the present invention proposes can be by the virtual machine V dynamic migration in virtualized environment H1 to virtual machine environment H2, and the method comprises the steps:
1: collect the information for the treatment of dynamic migration virtual machine V, comprise the configuration information of virtual machine V, as cpu resource, memory source, virtual machine V facility information, virtual machine V mirror image amount of capacity, use Internet resources situation etc.
2: the controller A1 in virtualized environment H1 and the controller A2 in virtualized environment H2 carry out network connection by the corresponding network equipment.Source and destination virtualized environment spacing can connect by netting twine with interior at 200M, and farther distance needs to connect by VPN network.
3: between controller A1 and controller A2, move front communication.The object of described communication is the condition whether testing goal virtualized environment possesses the virtual machine in the virtualized environment of migration source, for example whether the remaining space of the memory device M2 in virtualized environment H2 can hold the virtual machine image IMG of virtual machine V, whether the resource distribution of virtualized environment H2 meets the requirement of virtual machine V, such as the needed cpu resource of virtual machine V, memory source, Internet resources etc.
4: if step 3 detects successfully, the virtual machine V of the upper operation of virtual computing node S1 in virtualized environment H1 is carried out to snapshot operation, the run time behaviour of generating virtual machines V is preserved file F.
5: on the virtual computing node S2 in virtualized environment H2, create virtual machine V '.Virtual machine V ' has the title identical with virtual machine V, virtual machine UUID, memory source, virtual hardware equipment, Network resource allocation and virtual machine internal representation structure.
6: by the communication of controller A1 and controller A2, the virtual machine image IMG of virtual machine V is sent to the memory device M2 in virtualized environment H2, is expressed as virtual machine image IMG ', replace original virtual machine image of virtual machine V '.
7: by the communication of controller A1 and controller A2, the run time behaviour of virtual machine V is preserved to file F and be copied in the respective file catalogue on the virtual computing node S2 in virtualized environment H2, be expressed as run time behaviour and preserve file F '.
8: on the virtual computing node S2 in virtualized environment H2, based on virtual machine run time behaviour, preserve file F ' and carry out recovery virtual machine operations.
9: the virtual machine V in virtualized environment H1 is migrated in virtualized environment H2, and normally operation.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of claim of the present invention.
Claims (6)
1. across a method for storage pool migration virtual machine, it is characterized in that comprising:
Step 1: the network of setting up between source virtualized environment and object virtualized environment connects;
Step 2: whether testing goal virtualized environment possesses the condition of the source virtual machine in the virtualized environment of migration source, if met, enters step 3, otherwise this method stops;
Step 3: set up an object virtual machine with the identical configuration of source virtual machine in object virtualized environment, source virtual machine is carried out to snapshot operation, the virtual machine image that the run time behaviour of the source virtual machine that snapshot operation is produced is preserved file and source virtual machine transfers in object virtualized environment, and the run time behaviour based on described source virtual machine is preserved file execution recovery virtual machine operations.
2. the method for claim 1, is characterized in that, also comprises steps A: collect the information of described source virtual machine, described information comprises the configuration information of source virtual machine before described step 1.
3. method as claimed in claim 2, it is characterized in that, the configuration information of described source virtual machine comprises: the cpu resource information that source virtual machine is used, memory source information, virtual machine facility information, virtual machine image amount of capacity, and the network resource information using.
4. the method for claim 1, it is characterized in that, described step 2 is specially: between the controller A1 in the virtualized environment of described source and the controller A2 in object virtualized environment, move front communication, whether the remaining space of the memory device in testing goal virtualized environment can hold the virtual machine image of source virtual machine, and whether the resource distribution in object virtualized environment meets the demand of source virtual machine.
5. method as claimed in claim 4, it is characterized in that, the demand whether resource distribution in described object virtualized environment meets source virtual machine is specially: whether described resource distribution meets cpu resource, memory source and the Internet resources of source virtual machine needs.
6. the method for claim 1, is characterized in that: described object virtual machine has the internal representation structure in the title identical with source virtual machine, virtual machine UUID, memory source, virtual hardware equipment, network configuration and virtualized environment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410007248.0A CN103729237A (en) | 2014-01-07 | 2014-01-07 | Method for transferring virtual machine across storage pools |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410007248.0A CN103729237A (en) | 2014-01-07 | 2014-01-07 | Method for transferring virtual machine across storage pools |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103729237A true CN103729237A (en) | 2014-04-16 |
Family
ID=50453320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410007248.0A Pending CN103729237A (en) | 2014-01-07 | 2014-01-07 | Method for transferring virtual machine across storage pools |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103729237A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468521A (en) * | 2014-11-13 | 2015-03-25 | 华为技术有限公司 | Online migration method, device and system |
CN104699540A (en) * | 2015-03-24 | 2015-06-10 | 杭州华三通信技术有限公司 | Equilibrium method and device for storage resource |
CN106201702A (en) * | 2016-07-19 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | The method of virtual machine (vm) migration, system and cloud computing management platform |
CN106557265A (en) * | 2015-09-25 | 2017-04-05 | 伊姆西公司 | The configuration change of the data storage object to the feature with activation is selectively allowed for using labelling |
CN107566470A (en) * | 2017-08-25 | 2018-01-09 | 郑州云海信息技术有限公司 | The method and apparatus that virtual machine is managed in cloud data system |
CN108182107A (en) * | 2018-01-02 | 2018-06-19 | 郑州云海信息技术有限公司 | The detection method and equipment of a kind of virtual machine (vm) migration |
CN108763405A (en) * | 2018-05-22 | 2018-11-06 | 深信服网络科技(深圳)有限公司 | Service data migration method, device and system and readable storage medium |
CN112445571A (en) * | 2019-09-05 | 2021-03-05 | 中移(苏州)软件技术有限公司 | Virtual machine migration and management method, server and computer readable storage medium |
-
2014
- 2014-01-07 CN CN201410007248.0A patent/CN103729237A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468521A (en) * | 2014-11-13 | 2015-03-25 | 华为技术有限公司 | Online migration method, device and system |
CN104468521B (en) * | 2014-11-13 | 2017-12-29 | 华为技术有限公司 | Online moving method, device and system |
CN104699540A (en) * | 2015-03-24 | 2015-06-10 | 杭州华三通信技术有限公司 | Equilibrium method and device for storage resource |
CN104699540B (en) * | 2015-03-24 | 2018-07-31 | 新华三技术有限公司 | A kind of storage resource equalization methods and device |
CN106557265A (en) * | 2015-09-25 | 2017-04-05 | 伊姆西公司 | The configuration change of the data storage object to the feature with activation is selectively allowed for using labelling |
US10235073B2 (en) | 2015-09-25 | 2019-03-19 | EMC IP Holding Company LLC | Using a flag to selectively permit configuration changes to a data storage object having an activated feature |
CN106201702A (en) * | 2016-07-19 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | The method of virtual machine (vm) migration, system and cloud computing management platform |
CN107566470A (en) * | 2017-08-25 | 2018-01-09 | 郑州云海信息技术有限公司 | The method and apparatus that virtual machine is managed in cloud data system |
CN107566470B (en) * | 2017-08-25 | 2021-01-15 | 苏州浪潮智能科技有限公司 | Method and device for managing virtual machine in cloud data system |
CN108182107A (en) * | 2018-01-02 | 2018-06-19 | 郑州云海信息技术有限公司 | The detection method and equipment of a kind of virtual machine (vm) migration |
CN108763405A (en) * | 2018-05-22 | 2018-11-06 | 深信服网络科技(深圳)有限公司 | Service data migration method, device and system and readable storage medium |
CN112445571A (en) * | 2019-09-05 | 2021-03-05 | 中移(苏州)软件技术有限公司 | Virtual machine migration and management method, server and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103729237A (en) | Method for transferring virtual machine across storage pools | |
US9633040B2 (en) | Distributed processing system including a name node and a plurality of data nodes, and method of operating the same | |
US10394467B2 (en) | Flexible deployment and migration of virtual machines | |
US10157214B1 (en) | Process for data migration between document stores | |
US9558025B2 (en) | Inter-board virtualization management for managing hardware resources corresponding to interrupts | |
US9256463B2 (en) | Method and apparatus to replicate stateful virtual machines between clouds | |
US9483315B2 (en) | Autonomous dynamic optimization of platform resources | |
US8856585B2 (en) | Hardware failure mitigation | |
EP3276490B1 (en) | Extension of a private cloud end-point group to a public cloud | |
US20060212871A1 (en) | Resource allocation in computing systems | |
US9882775B1 (en) | Dependent network resources | |
CN105429776A (en) | Method and system for virtual network function management | |
US20160269439A1 (en) | Deploying a security appliance system in a high availability environment without extra network burden | |
US10860375B1 (en) | Singleton coordination in an actor-based system | |
CN105468296A (en) | No-sharing storage management method based on virtualization platform | |
US9106676B1 (en) | Grid-based server messaging infrastructure | |
US9891954B2 (en) | Cluster resource management in a virtualized computing environment | |
CN103019847A (en) | Method and system for migrating data of virtual machine | |
US9069594B1 (en) | Burst buffer appliance comprising multiple virtual machines | |
US11144354B2 (en) | Method for repointing resources between hosts | |
CN104618191B (en) | Communication fault detection method and device between a kind of host and naked memory block | |
CN107704618B (en) | Thermal migration method and system based on aufs file system | |
US11188393B1 (en) | Systems and methods for performing load balancing and distributed high-availability | |
US9348672B1 (en) | Singleton coordination in an actor-based system | |
US11625358B1 (en) | Automatic object archiving based on user selections |
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: 20140416 |