CN103810016A - Method and device for realizing virtual machine migration and cluster system - Google Patents

Method and device for realizing virtual machine migration and cluster system Download PDF

Info

Publication number
CN103810016A
CN103810016A CN201210447904.XA CN201210447904A CN103810016A CN 103810016 A CN103810016 A CN 103810016A CN 201210447904 A CN201210447904 A CN 201210447904A CN 103810016 A CN103810016 A CN 103810016A
Authority
CN
China
Prior art keywords
virtual machine
migration
physical host
order
physical
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.)
Granted
Application number
CN201210447904.XA
Other languages
Chinese (zh)
Other versions
CN103810016B (en
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 Teamsun Technology Co Ltd
Original Assignee
Beijing Teamsun 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 Teamsun Technology Co Ltd filed Critical Beijing Teamsun Technology Co Ltd
Priority to CN201210447904.XA priority Critical patent/CN103810016B/en
Publication of CN103810016A publication Critical patent/CN103810016A/en
Application granted granted Critical
Publication of CN103810016B publication Critical patent/CN103810016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention provides a method and a device for realizing virtual machine migration and a cluster system, wherein the method comprises the following steps that after a source physical host machine and virtual machines to be migrated are determined, the migration sequence of the virtual machines is determined, in addition, the resource use information of a plurality of current operating physical host machines on the cluster system is analyzed, and the physical host machines are subjected to physical host machine sequencing according to the resource use information priority; from the virtual machine with the forefront sequence in the virtual machine migration sequence, the operation of migrating a plurality of virtual machines to a target physical host machine is sequentially executed according to the virtual machine migration sequence until the migration operation of all of the virtual machines is completed. The method and the device for realizing the virtual machine migration and the cluster system provided by the invention have the advantage that on the premise of ensuring the migration reliability of the virtual machines, the high efficiency and the safety of the virtual machine images in the cluster system are guaranteed.

Description

Realize method, device and the group system of virtual machine (vm) migration
Technical field
The present invention relates to computer information technology field, particularly relate to a kind of method, device and group system that realizes virtual machine (vm) migration.
Background technology
Virtual machine refer to by software simulation have complete hardware system function, operate in a complete computer in complete isolation environment.Pass through software virtual machine, you can simulate one or more virtual computing machine on a physical computer, these virtual machines carry out work completely just as real computing machine, for example you can installing operating system, set up applications, accesses network resource etc.For you, it just operates in an application program on your physical computer, but for the application program of moving in virtual machine, it is exactly a real computing machine.
Share storage, refer to multiple servers and access the same subregion of same memory device, system allows multiple users to share with a file.Solving different user has the waste in the space of causing with the backup separately of a file, and multiple host shared memory systems is realized each main frame high efficiency shared data and transmit data mutually, and realized data preservation and defencive function.
HA technology, when crossing IP and doing heartbeat detection, cluster management end can pass through heartbeat path, periodically sends the test pack of mutual detection, if now a machine breaks down, cluster management end is being lost after the detection bag of setting number continuously, can think that main frame breaks down, at this moment whether standby cluster management end has the second heartbeat in automatically detecting and arranging, if there is no the second heartbeat, cluster management end, according to the rule of having set, starts virtual machine (vm) migration task.
In the time that virtual machine is carried out off-line migration: before migration, virtual machine is suspended, if share storage, a copy system state, to destination host, is finally rebuild virtual machine state at destination host, recovers to carry out.If use local storage, need to copy virtual machine image and state to target physical main frame simultaneously.The transition process of this mode needs the out of service of virtual machine.From user perspective, there is the one clear and definite disabled period of service, this migration pattern is simple, is applicable to service availability to require undemanding occasion.
But, virtual machine has the resource size such as CPU, internal memory in the time creating, it takies physical host CPU, memory source, specify migration destination host if simple, especially while having multiple virtual machine on the physical host that needs to move, arrive and cause moving virtual machine mission failure, or after migration, virtual machine runnability declines, and causes group system fluctuation of service.
Therefore for prior art, if there is no a kind of good migration strategy, when multiple virtual machine on the physical host of needs migrations, can not guarantee to move all successes of virtual machine, will cause or move that afterwards all or part of virtual machine runnability declines and unstable.
Summary of the invention
The invention provides a kind of method, device and group system that realizes virtual machine (vm) migration, in order to realize efficiently virtual machine (vm) migration and to ensure the reliability service of group system.
Based on the problems referred to above, a kind of method that realizes virtual machine (vm) migration that the embodiment of the present invention provides, comprises the following steps:
Determine the virtual machine of required migration according to source physical host, and obtain the configuration information of one or more virtual machines of required migration, determine virtual machine (vm) migration order according to the configuration information of described virtual machine;
Multiple physical host resource using informations of analyzing current operation in group system, carry out physical host sequence by multiple physical hosts according to resource using information priority;
From described virtual machine (vm) migration order, the most front virtual machine of sequence starts, and according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes; In transition process, select the most front physical host of physical host collating sequence as target physical main frame, until the memory source of current described target physical main frame can not meet the virutal machine memory of current needs migration when taking resource or reaching default horizontal redundancy condition, select next physical host in physical host collating sequence as new target physical main frame.
Preferably, as a kind of embodiment, before described definite virtual machine and migration order that needs migration, further comprising the steps of:
Regularly do heartbeat detection by IP according to the default time cycle, detect the running status of the multiple physical hosts that move in group system, and determine the source physical host breaking down.
Preferably, as a kind of embodiment, the described configuration information according to virtual machine determines that virtual machine (vm) migration order specifically comprises the following steps:
According to the configuration information of the virtual machine obtaining, judge whether predefined migration order, if so, determine that virtual machine (vm) migration order is predefined migration order; If not, determine that virtual machine (vm) migration order is the virtual machine creating time sequencing in configuration information;
The configuration information of described virtual machine comprises: the size information of virutal machine memory, multiple virtual machine creating time sequencing information or predefined migration order information.
Preferably, as a kind of embodiment, described physical host resource using information comprises current physical host free memory and current physical host CPU usage.
Further, as a kind of embodiment, describedly carry out physical host sequence according to resource using information priority and specifically comprise the following steps:
According to the size of current physical host free memory, carry out descending sort;
If the magnitude difference of arranging current physical host internal memory adjacent in rear sequence, lower than default memory threshold, according to CPU usage size, is carried out ascending order to described adjacent physical host and is arranged also final definite described physical host sequence;
Wherein, described default memory threshold is 128M.
Preferably, as a kind of embodiment, described default horizontal redundancy condition is: the free memory of carrying out the target physical main frame after virtual machine (vm) migration is less than 20% of the total internal memory of physical host;
The free memory size of the target physical main frame after described virtual machine (vm) migration equals current physical host free memory size and deducts the size of the virutal machine memory that moves to described physical host.
Further, as a kind of embodiment, after the migration operation of the multiple virtual machines of described execution, further comprising the steps of:
Multiple virtual machine (vm) migrations are to after target physical main frame, recover the original running status of virtual machine and revise the physical host of multiple virtual machines under respectively to operate the configuration information changing because of virtual machine (vm) migration.
Correspondingly, the present invention also provides the device of realizing virtual machine (vm) migration, and the described device of realizing virtual machine (vm) migration comprises virtual machine order module, physical host order module and migration process module, wherein:
Described virtual machine order module, for determine the virtual machine of required migration according to source physical host, and obtains the configuration information of one or more virtual machines of required migration, determines virtual machine (vm) migration order according to the configuration information of described virtual machine;
Described physical host order module, for analyzing multiple physical host resource using informations of current operation in group system, carries out physical host sequence by multiple physical hosts according to resource using information priority;
Described migration process module, starts for the virtual machine from the sequence of described virtual machine (vm) migration order, and according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes; In transition process, select the most front physical host of physical host collating sequence as target physical main frame, until the memory source of current described target physical main frame can not meet the virutal machine memory of current needs migration when taking resource or reaching default horizontal redundancy condition, select next physical host in physical host collating sequence as new target physical main frame.
Preferably, as a kind of embodiment, the described device of realizing virtual machine (vm) migration also comprises heartbeat detection module, wherein:
Described heartbeat detection module, for regularly doing heartbeat detection by IP according to the default time cycle, detects the running status of the multiple physical hosts that move in group system, and determines the source physical host breaking down.
Further, as a kind of embodiment, described virtual machine order module comprises judgement submodule, wherein:
Described judgement submodule, for according to the configuration information of the virtual machine obtaining, has judged whether predefined migration order, if so, determines that virtual machine (vm) migration order is predefined migration order; If not, determine that virtual machine (vm) migration order is the virtual machine creating time sequencing in configuration information;
The configuration information of described virtual machine comprises: the size information of virutal machine memory, multiple virtual machine creating time sequencing information or predefined migration order information.
Further, as a kind of embodiment, described physical host order module comprises physical host sequence submodule, wherein:
Described physical host sequence submodule, for according to the size of current physical host free memory, carries out descending sort;
If the magnitude difference of arranging current physical host internal memory adjacent in rear sequence, lower than default memory threshold, according to CPU usage size, is carried out ascending order to described adjacent physical host and is arranged also final definite described physical host sequence;
Wherein, described default memory threshold is 128M.
Preferably, as a kind of embodiment, the described device of realizing virtual machine (vm) migration also comprises recovery module, wherein:
Described recovery module, at multiple virtual machine (vm) migrations to after target physical main frame, recover the original running status of virtual machine and revise the physical host of multiple virtual machines under respectively to operate the configuration information changing because of virtual machine (vm) migration.
Correspondingly, the present invention also provides a kind of group system, described in comprise the multiple physical hosts of group system, on each described physical host, one or more virtual machines can be installed, described group system also comprises above-mentioned virtual machine (vm) migration device;
Described virtual machine (vm) migration device is in the time that source physical host breaks down, by the virtual machine (vm) migration on the physical host of source to target physical main frame.
Beneficial effect of the present invention comprises:
A kind of method, device and group system that realizes virtual machine (vm) migration provided by the invention, wherein method comprises: determining after the virtual machine of source physical host and required migration, determine virtual machine (vm) migration order, and analyze multiple physical host resource using informations of current operation in group system, multiple physical hosts are carried out to physical host sequence according to resource using information priority; From virtual machine (vm) migration order, the most front virtual machine of sequence starts, and according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes.Method, device and the group system that realizes virtual machine (vm) migration provided by the invention, under the prerequisite of virtual machine (vm) migration reliability, ensures high efficiency and the security of virtual machine image in group system.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of an embodiment of the present invention's method of realizing virtual machine (vm) migration;
Fig. 2 is the structural representation of an embodiment of the present invention's device of realizing virtual machine (vm) migration.
Embodiment
Below in conjunction with Figure of description, the embodiment of the methods, devices and systems of realizing virtual machine (vm) migration in the embodiment of the present invention is described.
A kind of method that realizes virtual machine (vm) migration that the embodiment of the present invention provides, for moving as required the occupation condition of virtual machine, is migrated to virtual machine under same cluster on most suitable physical host.
Fig. 1 is the method flow diagram of realizing virtual machine (vm) migration of the embodiment of the present invention.As shown in Figure 1, the method that the present embodiment uses comprises following several step:
Step S100, determine the virtual machine of required migration according to source physical host, and obtain the configuration information of one or more virtual machines of required migration, determine virtual machine (vm) migration order according to the configuration information of described virtual machine;
In step S200, analysis group system, multiple physical host resource using informations of current operation, carry out physical host sequence by multiple physical hosts according to resource using information priority;
Step S300, the most front virtual machine that sorts from described virtual machine (vm) migration order start, and according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes; In transition process, select the most front physical host of physical host collating sequence as target physical main frame, until the memory source of current described target physical main frame can not meet the virutal machine memory of current needs migration when taking resource or reaching default horizontal redundancy condition, select next physical host in physical host collating sequence as new target physical main frame.
In the specific implementation, above steps can be completed by method, the device of realizing virtual machine (vm) migration the embodiment of the present invention.Below above steps is elaborated:
Preferably, as a kind of embodiment, before described step S100, also comprise the steps:
Regularly do heartbeat detection by IP according to the default time cycle, detect the running status of the multiple physical hosts that move in group system, and determine the source physical host breaking down.
In above-mentioned steps, do heartbeat detection by IP, physical host passes through heartbeat path, periodically send the test pack of mutual detection, if in the multiple physical hosts that now move in group system, certain physical host breaks down (as: hard disk, internal memory, CPU, mainboard, I/O plate and power fail), now this physical host can not produce response (losing continuously the detection bag of setting number), so judge that this physical host breaks down, at this moment can determine the source physical host breaking down.
Preferably, as a kind of embodiment, in described step S100, described definite virtual machine (vm) migration order specifically comprises the following steps:
According to the configuration information of the virtual machine obtaining, judge whether predefined migration order, if so, determine that virtual machine (vm) migration order is predefined migration order; If not, determine that virtual machine (vm) migration order is the virtual machine creating time sequencing in configuration information;
The configuration information of described virtual machine comprises: the size information of virutal machine memory, multiple virtual machine creating time sequencing information or predefined migration order information.
In the invention process, after determining the source physical host breaking down, on inquiry fault physical host, there is which virtual machine, clear and definite which one or more virtual machine will be migrated on other most suitable target physical main frames;
User can analyze and learn according to the configuration information of virtual machine, is set with under migration order information condition user, needs predefined migration order; Do not setting under the condition of migration order, the migration order according to virtual machine creating time (configuration information of virtual machine) order as virtual machine, wherein, the time sequencing that described virtual machine (vm) migration order is virtual machine creating from front to back order is arranged.
Preferably, as a kind of embodiment, described physical host resource using information comprises current physical host free memory and current physical host CPU usage.
Further, as a kind of embodiment, in described step S200, describedly carry out physical host sequence according to resource using information priority and specifically comprise:
According to the size of current physical host free memory, carry out descending sort;
If the magnitude difference of arranging current physical host internal memory adjacent in rear sequence, lower than default memory threshold, according to CPU usage size, is carried out ascending order to described adjacent physical host and is arranged also final definite described physical host sequence;
Wherein, described default memory threshold is 128M.
In above-mentioned steps, analyze physics host resource and use information, determine the priority of the sink virtual machine resource (mirror image) of physical host, the sequence of execution physical host, inquiry obtains the resource of the physical host of normal operation under cluster, current physical host CPU usage, current physical host free memory size, first press current physical host free memory size as order standard, sort from big to small, if memory size is more or less the same (difference 128M in), the little physical host rank of CPU usage is front.
Preferably, as a kind of embodiment, described default horizontal redundancy condition is: the free memory of carrying out the target physical main frame after virtual machine (vm) migration is less than 20% of the total internal memory of physical host;
The free memory size of the target physical main frame after described virtual machine (vm) migration equals current physical host free memory size and deducts the size of the virutal machine memory that moves to described physical host.
Further, as a kind of embodiment, further comprising the steps of after the migration operation of the multiple virtual machines of described execution:
Multiple virtual machine (vm) migrations are to after target physical main frame, recover the original running status of virtual machine and revise the physical host of multiple virtual machines under respectively to operate the configuration information changing because of virtual machine (vm) migration.
In above-mentioned steps S300, illustrate, first the most front First virtual machine correspondence of sequence in described virtual machine (vm) migration order is migrated to the most front target physical main frame of physical host collating sequence, after First virtual machine (vm) migration EO, if the virutal machine memory that when now the free memory of the most front target physical main frame after First virtual machine (vm) migration is less than 20% condition of the total internal memory of this physical host, the memory source of (reaching default horizontal redundancy condition) or the most front target physical main frame can not meet current needs migration takies resource, next physical host in selection physical host collating sequence is as new target physical main frame, continue second virtual machine (vm) migration in virtual machine (vm) migration order to new target physical main frame, like this repetitive sequence carry out multiple virtual machines migration operation until the migration of all virtual machines all finish.
Obviously, First virtual machine target physical main frame is to arrange the most front physical host, and the free memory size of the target physical main frame after this physical host migration is that the memory size (size of current physical host internal memory) before this physical host migration deducts the virutal machine memory size that moves to this physical host; After First virtual machine (vm) migration, if meeting second virutal machine memory, this physical host internal memory takies resource (not reaching default horizontal redundancy condition simultaneously), to continue be the target physical main frame of second virtual machine to this physical host, until this physical host free memory is less than after total internal memory 20%, migration goal displacement is next physical host, determines the migration target physical main frame of each virtual machine by this rule;
For the method that realizes virtual machine (vm) migration that illustrates that better the embodiment of the present invention provides, be illustrated virtual machine about the step that realizes sequence and virtual machine (vm) migration for an actual example.For instance:
Following physical host and virtual machine are installed in a group system:
Figure BDA00002381629900091
Like this, carry out physical host sequence according to resource using information priority, the order after physical host sequence is: physical host 3, physical host 1, physical host 2.
Virtual machine sequence is: VM1, VM2, VM3.
First, VM1 carries out and migrates to the operation of target physical main frame 3, and after migration, the free memory value of target physical main frame equals memory value that physical host free memory value before migration subtracts VM1: 6G-2G=4G;
Second step, judge that whether the free memory value of target physical main frame 3 after migration meets second virutal machine memory (VM2 in save as 2G) and take resource (not reaching default horizontal redundancy condition simultaneously), obviously target physical main frame 3 is using the target physical main frame as VM2; After VM2 migration, target physical main frame machine 3 free memories are: 4G-2G=2G; Now can not meet the 3rd virutal machine memory (VM3 in save as 3G) and take resource;
The 3rd step, according to physical host clooating sequence, next physical host in selection physical host collating sequence is as new target physical main frame (physical host 1), continue extremely new target physical main frame of the 3rd virtual machine (vm) migration in virtual machine (vm) migration order, the free memory of the target physical main frame 1 at the VM3 place after migration is like this: 5G-2G=3G.
Follow-up migration and execution virtual machine recovering step are with step S100 ~ step S300 similarity in the embodiment of the present invention, and it is no longer repeated.
The embodiment of the present invention can be moved the occupation condition of virtual machine as required, reaches virtual machine is migrated to the object on most suitable physical host under same cluster, and ensure the high-caliber reliability of group system and security.
Those skilled in the art are to be understood that, in the embodiment of the present invention, the resource of related physical host is standardized (the related physical host of the embodiment of the present invention is x86 server), telescopic and dynamic change at any time, should have the redundancy of some levels to guarantee high-caliber availability, but importantly this redundancy must be expanded like a cork along with the growth of application demand; The use resource that need to calculate the physical host of normal operation under cluster, comprises the CUP of current physical host, the memory source of current physical host; Calculate the resources of virtual machine capacity of all migrations; In cluster, distribute most suitable migration target physical main frame according to resources of virtual machine capacity successively.
Based on same inventive concept, the embodiment of the present invention also provides a kind of device of realizing virtual machine (vm) migration, the principle of dealing with problems due to this device is similar to a kind of aforementioned method that realizes virtual machine (vm) migration, and therefore the enforcement of this device can be referring to the enforcement of preceding method, repeats part and repeat no more.
Correspondingly, the present invention also provides the device of realizing virtual machine (vm) migration, and the described device 1 of realizing virtual machine (vm) migration comprises virtual machine order module 10, physical host order module 20 and migration process module 30, as shown in Figure 2, wherein:
Described virtual machine order module 10, for determine the virtual machine of required migration according to source physical host, and obtains the configuration information of one or more virtual machines of required migration, determines virtual machine (vm) migration order according to the configuration information of described virtual machine;
Described physical host order module 20, for analyzing multiple physical host resource using informations of current operation in group system, carries out physical host sequence by multiple physical hosts according to resource using information priority;
Described migration process module 30, start for the virtual machine from the sequence of described virtual machine (vm) migration order, according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes; In transition process, select the most front physical host of physical host collating sequence as target physical main frame, until the memory source of current described target physical main frame can not meet the virutal machine memory of current needs migration when taking resource or reaching default horizontal redundancy condition, select next physical host in physical host collating sequence as new target physical main frame.
Preferably, as a kind of embodiment, the described device 1 of realizing virtual machine (vm) migration also comprises heartbeat detection module 40, wherein:
Described heartbeat detection module 40, for regularly doing heartbeat detection by IP according to the default time cycle, detects the running status of the multiple physical hosts that move in group system, and determines the source physical host breaking down.
Further, as a kind of embodiment, described virtual machine order module comprises judgement submodule, wherein:
Described judgement submodule, for according to the configuration information of the virtual machine obtaining, has judged whether predefined migration order, if so, determines that virtual machine (vm) migration order is predefined migration order; If not, determine that virtual machine (vm) migration order is the virtual machine creating time sequencing in configuration information;
The configuration information of described virtual machine comprises: the size information of virutal machine memory, multiple virtual machine creating time sequencing information or predefined migration order information.
Further, as a kind of embodiment, described physical host order module comprises physical host sequence submodule, wherein:
Described physical host sequence submodule, for according to the size of current physical host free memory, carries out descending sort;
If the magnitude difference of arranging current physical host internal memory adjacent in rear sequence, lower than default memory threshold, according to CPU usage size, is carried out ascending order to described adjacent physical host and is arranged also final definite described physical host sequence;
Wherein, described default memory threshold is 128M.
Preferably, as a kind of embodiment, the described device 1 of realizing virtual machine (vm) migration also comprises recovery module 50, wherein:
Described recovery module 50, at multiple virtual machine (vm) migrations to after target physical main frame, recover the original running status of virtual machine and revise the physical host of multiple virtual machines under respectively to operate the configuration information changing because of virtual machine (vm) migration.
Correspondingly, the present invention also provides a kind of group system, described in comprise the multiple physical hosts of group system, on each described physical host, one or more virtual machines can be installed, described group system also comprises above-mentioned virtual machine (vm) migration device;
Described virtual machine (vm) migration device is in the time that source physical host breaks down, by the virtual machine (vm) migration on the physical host of source to target physical main frame.
A kind of method, device and group system that realizes virtual machine (vm) migration that the embodiment of the present invention provides, wherein method comprises: determining after the virtual machine of source physical host and required migration, determine virtual machine (vm) migration order, and analyze multiple physical host resource using informations of current operation in group system, multiple physical hosts are carried out to physical host sequence according to resource using information priority; From virtual machine (vm) migration order, the most front virtual machine of sequence starts, and according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes.What the embodiment of the present invention provided realizes method, device and the group system of virtual machine (vm) migration under the prerequisite of virtual machine (vm) migration reliability, ensures high efficiency and the security of virtual machine image in group system.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (13)

1. a method that realizes virtual machine (vm) migration, is characterized in that, comprises the following steps:
Determine the virtual machine of required migration according to source physical host, and obtain the configuration information of one or more virtual machines of required migration, determine virtual machine (vm) migration order according to the configuration information of described virtual machine;
Multiple physical host resource using informations of analyzing current operation in group system, carry out physical host sequence by multiple physical hosts according to resource using information priority;
From described virtual machine (vm) migration order, the most front virtual machine of sequence starts, and according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes;
In transition process, select the most front physical host of physical host collating sequence as target physical main frame, until the memory source of current described target physical main frame can not meet the virutal machine memory of current needs migration when taking resource or reaching default horizontal redundancy condition, select next physical host in physical host collating sequence as new target physical main frame.
2. the method that realizes virtual machine (vm) migration according to claim 1, is characterized in that, before described definite virtual machine and migration order that needs migration, further comprising the steps of:
Regularly do heartbeat detection by IP according to the default time cycle, detect the running status of the multiple physical hosts that move in group system, and determine the source physical host breaking down.
3. the method that realizes virtual machine (vm) migration according to claim 1, is characterized in that, the described configuration information according to virtual machine is determined virtual machine (vm) migration order, comprises the steps:
According to the configuration information of the virtual machine obtaining, judge whether predefined migration order;
If so, determine that virtual machine (vm) migration order is predefined migration order; If not, determine that virtual machine (vm) migration order is the virtual machine creating time sequencing in configuration information;
The configuration information of described virtual machine comprises: the size information of virutal machine memory, multiple virtual machine creating time sequencing information or predefined migration order information.
4. the method that realizes virtual machine (vm) migration according to claim 1, is characterized in that, described physical host resource using information comprises current physical host free memory and current physical host CPU usage.
5. according to the method that realizes virtual machine (vm) migration described in claim 1 or 4, it is characterized in that, describedly carry out physical host sequence according to resource using information priority, comprise the steps:
According to the size of current physical host free memory, carry out descending sort;
If the magnitude difference of arranging current physical host internal memory adjacent in rear sequence, lower than default memory threshold, according to CPU usage size, is carried out ascending order to described adjacent physical host and is arranged also final definite described physical host sequence;
Wherein, described default memory threshold is 128M.
6. the method that realizes virtual machine (vm) migration according to claim 1, is characterized in that, described default horizontal redundancy condition is: the free memory of carrying out the target physical main frame after virtual machine (vm) migration is less than 20% of the total internal memory of physical host;
The free memory size of the target physical main frame after described virtual machine (vm) migration equals current physical host free memory size and deducts the size of the virutal machine memory that moves to described physical host.
7. the method that realizes virtual machine (vm) migration according to claim 1, is characterized in that, after the migration operation of the multiple virtual machines of described execution, also comprises the steps:
Multiple virtual machine (vm) migrations are to after target physical main frame, recover the original running status of virtual machine and revise the physical host of multiple virtual machines under respectively to operate the configuration information changing because of virtual machine (vm) migration.
8. a device of realizing virtual machine (vm) migration, is characterized in that, comprises virtual machine order module, physical host order module and migration process module, wherein:
Described virtual machine order module, for determine the virtual machine of required migration according to source physical host, and obtains the configuration information of one or more virtual machines of required migration, determines virtual machine (vm) migration order according to the configuration information of described virtual machine;
Described physical host order module, for analyzing multiple physical host resource using informations of current operation in group system, carries out physical host sequence by multiple physical hosts according to resource using information priority;
Described migration process module, starts for the virtual machine from the sequence of described virtual machine (vm) migration order, and according to virtual machine (vm) migration order, order is carried out the operation of multiple virtual machine (vm) migrations to target physical main frame, until the operation of all virtual machine (vm) migrations all finishes; In transition process, select the most front physical host of physical host collating sequence as target physical main frame, until the memory source of current described target physical main frame can not meet the virutal machine memory of current needs migration when taking resource or reaching default horizontal redundancy condition, select next physical host in physical host collating sequence as new target physical main frame.
9. the device of realizing virtual machine (vm) migration according to claim 8, is characterized in that, also comprises heartbeat detection module, wherein:
Described heartbeat detection module, for regularly doing heartbeat detection by IP according to the default time cycle, detects the running status of the multiple physical hosts that move in group system, and determines the source physical host breaking down.
10. the device of realizing virtual machine (vm) migration according to claim 8, is characterized in that, described virtual machine order module comprises judgement submodule, wherein:
Described judgement submodule, for according to the configuration information of the virtual machine obtaining, has judged whether predefined migration order, if so, determines that virtual machine (vm) migration order is predefined migration order; If not, determine that virtual machine (vm) migration order is the virtual machine creating time sequencing in configuration information;
The configuration information of described virtual machine comprises: the size information of virutal machine memory, multiple virtual machine creating time sequencing information or predefined migration order information.
The device of realizing virtual machine (vm) migration described in 11. according to Claim 8 or 10, is characterized in that, described physical host order module comprises physical host sequence submodule, wherein:
Described physical host sequence submodule, for according to the size of current physical host free memory, carries out descending sort;
If the magnitude difference of arranging current physical host internal memory adjacent in rear sequence, lower than default memory threshold, according to CPU usage size, is carried out ascending order to described adjacent physical host and is arranged also final definite described physical host sequence;
Wherein, described default memory threshold is 128M.
12. devices of realizing virtual machine (vm) migration according to claim 8, is characterized in that, also comprise recovery module, wherein:
Described recovery module, at multiple virtual machine (vm) migrations to after target physical main frame, recover the original running status of virtual machine and revise the physical host of multiple virtual machines under respectively to operate the configuration information changing because of virtual machine (vm) migration.
13. 1 kinds of group systems, comprise multiple physical hosts, on each physical host, one or more virtual machines can be installed, and it is characterized in that, described group system also comprises the virtual machine (vm) migration device described in claim 8-12 any one;
Described virtual machine (vm) migration device is in the time that source physical host breaks down, by the virtual machine (vm) migration on the physical host of source to target physical main frame.
CN201210447904.XA 2012-11-09 2012-11-09 Realize method, device and the group system of virtual machine (vm) migration Active CN103810016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210447904.XA CN103810016B (en) 2012-11-09 2012-11-09 Realize method, device and the group system of virtual machine (vm) migration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210447904.XA CN103810016B (en) 2012-11-09 2012-11-09 Realize method, device and the group system of virtual machine (vm) migration

Publications (2)

Publication Number Publication Date
CN103810016A true CN103810016A (en) 2014-05-21
CN103810016B CN103810016B (en) 2017-07-07

Family

ID=50706828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210447904.XA Active CN103810016B (en) 2012-11-09 2012-11-09 Realize method, device and the group system of virtual machine (vm) migration

Country Status (1)

Country Link
CN (1) CN103810016B (en)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283943A (en) * 2014-09-22 2015-01-14 珠海许继芝电网自动化有限公司 Communication optimizing method for cluster server
CN104407912A (en) * 2014-12-25 2015-03-11 无锡清华信息科学与技术国家实验室物联网技术中心 Virtual machine configuration method and device
US9069594B1 (en) * 2012-12-27 2015-06-30 Emc Corporation Burst buffer appliance comprising multiple virtual machines
CN105242998A (en) * 2015-09-01 2016-01-13 福建新大陆软件工程有限公司 HDFS (Hadoop Distributed File System) based disk fault detection method and system
CN105281949A (en) * 2015-09-09 2016-01-27 浪潮(北京)电子信息产业有限公司 Host fence method and fence device in mixed storage mode
CN105743696A (en) * 2016-01-26 2016-07-06 中标软件有限公司 Cloud computing platform management method
CN106095531A (en) * 2016-06-08 2016-11-09 北京航空航天大学 A kind of dispatching method of virtual machine loaded based on grade and physical machine in cloud platform
CN106230954A (en) * 2016-08-05 2016-12-14 广州市久邦数码科技有限公司 A kind of virtual management platform
CN106293871A (en) * 2016-07-22 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of resource regulating method of cluster virtual machine
CN106469117A (en) * 2015-08-14 2017-03-01 中国电信股份有限公司 A kind of SRM method and device for virtual machine storage migration
WO2017049617A1 (en) * 2015-09-25 2017-03-30 Intel Corporation Techniques to select virtual machines for migration
CN106776113A (en) * 2016-02-18 2017-05-31 新华三技术有限公司 A kind of virtual machine backup method and device
CN107301088A (en) * 2017-07-14 2017-10-27 郑州云海信息技术有限公司 A kind of method and apparatus for managing virtual machine batch migration
CN107391229A (en) * 2017-07-26 2017-11-24 郑州云海信息技术有限公司 A kind of cluster based on vmware virtualizations fills up method and device
CN107391233A (en) * 2017-08-09 2017-11-24 郑州云海信息技术有限公司 A kind of virtual machine migration method and system
CN107491352A (en) * 2017-08-22 2017-12-19 郑州云海信息技术有限公司 A kind of resource regulating method and device
CN107491344A (en) * 2017-09-26 2017-12-19 北京思特奇信息技术股份有限公司 A kind of method and device for realizing virtual machine high availability
CN107885575A (en) * 2017-03-13 2018-04-06 平安科技(深圳)有限公司 The moving method and device of virtual machine
CN109739614A (en) * 2018-11-22 2019-05-10 杭州数梦工场科技有限公司 Virtual machine rebuilding method, device and equipment
CN109800058A (en) * 2019-01-23 2019-05-24 山东超越数控电子股份有限公司 A kind of virtual machine Autonomic Migration Framework method
CN109947530A (en) * 2019-01-25 2019-06-28 西安交通大学 A kind of various dimensions virtual machine mapping method for cloud platform
CN109960564A (en) * 2017-12-22 2019-07-02 上海盛霄云计算技术有限公司 A kind of method of virtual machine (vm) migration
CN110069471A (en) * 2017-12-07 2019-07-30 航天信息软件技术有限公司 A kind of moving method and system of data
CN110297692A (en) * 2019-07-04 2019-10-01 北京伟杰东博信息科技有限公司 A kind of method and its system of the management of distributed software task dynamic
CN110532135A (en) * 2019-08-16 2019-12-03 苏州浪潮智能科技有限公司 A kind of services migrating method, system, equipment and the storage medium of group system
CN110795211A (en) * 2019-10-25 2020-02-14 北京金山云网络技术有限公司 Method and device for upgrading configuration of virtual machine, electronic equipment and readable storage medium
CN111324413A (en) * 2018-12-14 2020-06-23 中移(杭州)信息技术有限公司 Data migration method and data migration management equipment
CN111381934A (en) * 2020-03-11 2020-07-07 重庆邮电大学 Method for improving rapid migration reliability of virtual machine under disaster risk model
CN114048004A (en) * 2021-11-22 2022-02-15 北京志凌海纳科技有限公司 High-availability batch scheduling method, device, equipment and storage medium for virtual machines
CN114217905A (en) * 2021-12-17 2022-03-22 北京志凌海纳科技有限公司 High-availability recovery processing method and system for virtual machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106409A1 (en) * 2007-10-18 2009-04-23 Fujitsu Limited Method, apparatus and recording medium for migrating a virtual machine
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106409A1 (en) * 2007-10-18 2009-04-23 Fujitsu Limited Method, apparatus and recording medium for migrating a virtual machine
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system

Cited By (46)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9069594B1 (en) * 2012-12-27 2015-06-30 Emc Corporation Burst buffer appliance comprising multiple virtual machines
US9690728B1 (en) 2012-12-27 2017-06-27 EMC IP Holding Company LLC Burst buffer appliance comprising multiple virtual machines
CN104283943A (en) * 2014-09-22 2015-01-14 珠海许继芝电网自动化有限公司 Communication optimizing method for cluster server
CN104407912A (en) * 2014-12-25 2015-03-11 无锡清华信息科学与技术国家实验室物联网技术中心 Virtual machine configuration method and device
CN104407912B (en) * 2014-12-25 2018-08-17 无锡清华信息科学与技术国家实验室物联网技术中心 A kind of virtual machine configuration method and device
CN106469117A (en) * 2015-08-14 2017-03-01 中国电信股份有限公司 A kind of SRM method and device for virtual machine storage migration
CN106469117B (en) * 2015-08-14 2020-07-31 中国电信股份有限公司 Storage resource management method and device for virtual machine storage migration
CN105242998B (en) * 2015-09-01 2019-05-14 福建新大陆软件工程有限公司 A kind of disk failure detection method and system based on HDFS
CN105242998A (en) * 2015-09-01 2016-01-13 福建新大陆软件工程有限公司 HDFS (Hadoop Distributed File System) based disk fault detection method and system
CN105281949B (en) * 2015-09-09 2018-06-15 浪潮(北京)电子信息产业有限公司 Mix the partition method and isolating device of host in memory module
CN105281949A (en) * 2015-09-09 2016-01-27 浪潮(北京)电子信息产业有限公司 Host fence method and fence device in mixed storage mode
WO2017049617A1 (en) * 2015-09-25 2017-03-30 Intel Corporation Techniques to select virtual machines for migration
CN105743696A (en) * 2016-01-26 2016-07-06 中标软件有限公司 Cloud computing platform management method
CN106776113B (en) * 2016-02-18 2021-03-02 新华三技术有限公司 Virtual machine backup method and device
CN106776113A (en) * 2016-02-18 2017-05-31 新华三技术有限公司 A kind of virtual machine backup method and device
CN106095531A (en) * 2016-06-08 2016-11-09 北京航空航天大学 A kind of dispatching method of virtual machine loaded based on grade and physical machine in cloud platform
CN106095531B (en) * 2016-06-08 2019-06-11 北京航空航天大学 A kind of dispatching method of virtual machine loaded based on grade and physical machine in cloud platform
CN106293871A (en) * 2016-07-22 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of resource regulating method of cluster virtual machine
CN106230954A (en) * 2016-08-05 2016-12-14 广州市久邦数码科技有限公司 A kind of virtual management platform
CN107885575A (en) * 2017-03-13 2018-04-06 平安科技(深圳)有限公司 The moving method and device of virtual machine
CN107885575B (en) * 2017-03-13 2021-04-27 平安科技(深圳)有限公司 Virtual machine migration method and device
CN107301088A (en) * 2017-07-14 2017-10-27 郑州云海信息技术有限公司 A kind of method and apparatus for managing virtual machine batch migration
CN107391229A (en) * 2017-07-26 2017-11-24 郑州云海信息技术有限公司 A kind of cluster based on vmware virtualizations fills up method and device
CN107391229B (en) * 2017-07-26 2020-09-08 郑州云海信息技术有限公司 Cluster filling method and device based on vmware virtualization
CN107391233A (en) * 2017-08-09 2017-11-24 郑州云海信息技术有限公司 A kind of virtual machine migration method and system
CN107491352A (en) * 2017-08-22 2017-12-19 郑州云海信息技术有限公司 A kind of resource regulating method and device
CN107491352B (en) * 2017-08-22 2020-09-08 郑州云海信息技术有限公司 Resource scheduling method and device
CN107491344A (en) * 2017-09-26 2017-12-19 北京思特奇信息技术股份有限公司 A kind of method and device for realizing virtual machine high availability
CN107491344B (en) * 2017-09-26 2020-09-01 北京思特奇信息技术股份有限公司 Method and device for realizing high availability of virtual machine
CN110069471A (en) * 2017-12-07 2019-07-30 航天信息软件技术有限公司 A kind of moving method and system of data
CN109960564A (en) * 2017-12-22 2019-07-02 上海盛霄云计算技术有限公司 A kind of method of virtual machine (vm) migration
CN109739614A (en) * 2018-11-22 2019-05-10 杭州数梦工场科技有限公司 Virtual machine rebuilding method, device and equipment
CN111324413B (en) * 2018-12-14 2023-08-15 中移(杭州)信息技术有限公司 Data migration method and data migration management equipment
CN111324413A (en) * 2018-12-14 2020-06-23 中移(杭州)信息技术有限公司 Data migration method and data migration management equipment
CN109800058A (en) * 2019-01-23 2019-05-24 山东超越数控电子股份有限公司 A kind of virtual machine Autonomic Migration Framework method
CN109947530B (en) * 2019-01-25 2021-09-07 西安交通大学 Multi-dimensional virtual machine mapping method for cloud platform
CN109947530A (en) * 2019-01-25 2019-06-28 西安交通大学 A kind of various dimensions virtual machine mapping method for cloud platform
CN110297692B (en) * 2019-07-04 2020-12-15 北京伟杰东博信息科技有限公司 Distributed software task dynamic management method and system
CN110297692A (en) * 2019-07-04 2019-10-01 北京伟杰东博信息科技有限公司 A kind of method and its system of the management of distributed software task dynamic
CN110532135B (en) * 2019-08-16 2022-11-08 苏州浪潮智能科技有限公司 Service migration method, system, equipment and storage medium of cluster system
CN110532135A (en) * 2019-08-16 2019-12-03 苏州浪潮智能科技有限公司 A kind of services migrating method, system, equipment and the storage medium of group system
CN110795211A (en) * 2019-10-25 2020-02-14 北京金山云网络技术有限公司 Method and device for upgrading configuration of virtual machine, electronic equipment and readable storage medium
CN111381934A (en) * 2020-03-11 2020-07-07 重庆邮电大学 Method for improving rapid migration reliability of virtual machine under disaster risk model
CN111381934B (en) * 2020-03-11 2023-07-21 重庆邮电大学 Method for improving quick migration reliability of virtual machine under disaster risk model
CN114048004A (en) * 2021-11-22 2022-02-15 北京志凌海纳科技有限公司 High-availability batch scheduling method, device, equipment and storage medium for virtual machines
CN114217905A (en) * 2021-12-17 2022-03-22 北京志凌海纳科技有限公司 High-availability recovery processing method and system for virtual machine

Also Published As

Publication number Publication date
CN103810016B (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN103810016A (en) Method and device for realizing virtual machine migration and cluster system
EP3799653B1 (en) Multi-phase cloud service node error prediction
US10977086B2 (en) Workload placement and balancing within a containerized infrastructure
US11074092B2 (en) Virtual machine batch live migration
Ren et al. A methodology towards virtualisation-based high performance simulation platform supporting multidisciplinary design of complex products
CN103631633B (en) Virtual machine total-system online migration method, device and system
CN106528327B (en) A kind of data processing method and backup server
WO2018099299A1 (en) Graphic data processing method, device and system
US11755385B2 (en) Cross-cluster load balancer
US20140082202A1 (en) Method and Apparatus for Integration of Virtual Cluster and Virtual Cluster System
CN104899095A (en) Resource adjustment method and system for virtual machine
CN111381928B (en) Virtual machine migration method, cloud computing management platform and storage medium
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
CN106681839B (en) Elastic calculation dynamic allocation method
Wood Improving data center resource management, deployment, and availability with virtualization
CN104580194A (en) Virtual resource management method and device oriented to video applications
US20130138686A1 (en) Device and method for arranging query
US9317340B2 (en) Intelligent virtual machine (VM) re-location
WO2021164385A1 (en) Virtualization method, apparatus and device for internet of things device system, and storage medium
CN103856502A (en) Method and NAS cluster system for realizing mirror image document thermal migration of virtual machine
CN105487946A (en) Fault computer automatic switching method and device
Kale Virtual machine migration techniques in cloud environment: A survey
Xiang et al. Optimizing job reliability through contention-free, distributed checkpoint scheduling
CN112202866B (en) Method, device and equipment for task scheduling
Chen et al. Optimized self-adaptive fault tolerance strategy in simulation system based on virtualization technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant