CN103810016B - Realize method, device and the group system of virtual machine (vm) migration - Google Patents
Realize method, device and the group system of virtual machine (vm) migration Download PDFInfo
- Publication number
- CN103810016B CN103810016B CN201210447904.XA CN201210447904A CN103810016B CN 103810016 B CN103810016 B CN 103810016B CN 201210447904 A CN201210447904 A CN 201210447904A CN 103810016 B CN103810016 B CN 103810016B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- migration
- physical host
- physical
- main frame
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Hardware Redundancy (AREA)
Abstract
The present invention provides a kind of method for realizing virtual machine (vm) migration, device and group system, and wherein method includes:It is determined that after source physical host and the virtual machine of required migration, determine virtual machine (vm) migration sequentially, and multiple physical host resource using informations of current operation in group system are analyzed, multiple physical hosts are carried out into physical host sequence according to resource using information priority;Sorted since virtual machine (vm) migration order most preceding virtual machine, according to virtual machine (vm) migration order, order performs multiple virtual machine (vm) migrations to the operation of target physical main frame, until the operation of all of virtual machine (vm) migration all terminates.What the present invention was provided realizes method, device and the group system of virtual machine (vm) migration on the premise of virtual machine (vm) migration reliability, ensures the high efficiency and security of virtual machine image in group system.
Description
Technical field
The present invention relates to computer information technology field, more particularly to a kind of method for realizing virtual machine (vm) migration, device
And group system.
Background technology
Virtual machine refer to by software simulate it is with complete hardware system function, operate in a completely isolated environment
Complete computer.By software virtual machine, it is virtual that you can simulate one or more on a physical computer
Computer, these virtual machines are operated just as real computer completely, and for example you can be with installation operation system, peaces
Dress application program, access Internet resources etc..For you, it is that operated on your physical computer applies journey
Sequence, but for the application program run in virtual machine, it is exactly a real computer.
Shared storage, refers to the same subregion that multiple servers access same storage device, and system allows multiple
The same text document of users to share.Solve the waste in space that different user has a respective backup of same text document and causes, many
Main frame shared memory systems, realize each main frame can mutually efficient shared data and transmission data, and realize data preserve
And defencive function.
HA technologies, when IP does heartbeat detection excessively, cluster management end can periodically send mutually detection by heartbeat path
Test bag, if now machine breaks down, cluster management end will be considered that after the continuous detection bag for losing setting number
Whether main frame breaks down, and has second heartbeat at this moment being set for cluster management end automatic detection, if without second heart
If jump, cluster management end starts virtual machine (vm) migration task then according to the rule for having set.
When virtual machine performs offline migration:Virtual machine is suspended before migration, if shared storage, only copy is
System state finally rebuilds virtual machine state to destination host in destination host, recovers to perform.If using being locally stored, needed
Virtual machine image and state to target physical main frame are copied simultaneously.The transition process of this mode needs the stopping of virtual machine to transport
OK.From in terms of user perspective, there is clear and definite one section of service disabled time, this migration pattern is simple and easy to apply, it is adaptable to clothes
The not strict occasion of business availability requirement.
However, virtual machine possesses the resource sizes such as CPU, internal memory when creating, it takes physical host CPU, memory source,
If simple specify migration destination host, when having multiple virtual machines on the physical host for especially needing migration, arriving causes to move
Virtual machine runnability declines after moving virtual machine mission failure, or migration, causes group system fluctuation of service.
Therefore for prior art, if without a kind of good migration strategy, on the physical host for needing migration
During multiple virtual machines, it is impossible to ensure all successes of migration virtual machine, all or part of virtual machine operation after causing or migrating
Hydraulic performance decline and unstable.
The content of the invention
It is right efficiently to realize the invention provides a kind of method for realizing virtual machine (vm) migration, device and group system
Virtual machine (vm) migration simultaneously ensures the reliability service of group system.
Based on above mentioned problem, a kind of method for realizing virtual machine (vm) migration provided in an embodiment of the present invention is comprised the following steps:
The virtual machine migrated according to needed for source physical host determines, and obtain one or more virtual machines of required migration
Configuration information, the configuration information according to the virtual machine determines virtual machine (vm) migration sequentially;
Multiple physical host resource using informations of current operation in analysis group system, by multiple physical hosts according to money
Source use information priority carries out physical host sequence;
Sorted since virtual machine (vm) migration order most preceding virtual machine, according to virtual machine (vm) migration order, sequentially held
Row multiple virtual machine (vm) migrations to target physical main frame operation, until all of virtual machine (vm) migration operate all terminate;Migrating
Cheng Zhong, selects the most preceding physical host of physical host collating sequence as target physical main frame, until presently described target physical
The memory source of main frame can not meet the virutal machine memory for being currently needed for migrating and take resource or reach default horizontal redundancy bar
During part, the next physical host in selection physical host collating sequence is used as new target physical main frame.
It is preferred that as a kind of embodiment, before the determination needs the virtual machine and migration order of migration, also wrapping
Include following steps:
Heartbeat detection, the multiple physics masters run in detection group system are periodically done by IP according to the default time cycle
The running status of machine, and determine the source physical host for breaking down.
It is preferred that used as a kind of embodiment, the configuration information according to virtual machine determines virtual machine (vm) migration sequentially
Specifically include following steps:
According to the configuration information of the virtual machine for obtaining, migration set in advance is determined whether sequentially, if, it is determined that it is empty
The migration of plan machine order for migration set in advance sequentially;If not, it is determined that virtual machine (vm) migration order is virtual in configuration information
Machine creation time is sequentially;
The configuration information of the virtual machine includes:The size information of virutal machine memory, multiple virtual machine creating time sequencings
Information or migration order information set in advance.
It is preferred that used as a kind of embodiment, the physical host resource using information is surplus including present physical main frame
Remaining internal memory and present physical host CPU utilization rate.
Further, it is described that physical host row is carried out according to resource using information priority as a kind of embodiment
Sequence specifically includes following steps:
According to the size of present physical main frame free memory, descending sort is carried out;
If the magnitude difference of present physical host memory adjacent in sequence is less than default memory threshold after arrangement,
According to CPU usage size, ascending order arrangement is carried out to the adjacent physical host and the physical host sequence is finally determined;
Wherein, the default memory threshold is 128M.
It is preferred that used as a kind of embodiment, the default horizontal redundancy condition is:After performing virtual machine (vm) migration
20% of the free memory of target physical main frame less than the total internal memory of physical host;
The free memory size of the target physical main frame after the virtual machine (vm) migration is equal to present physical main frame free memory
Size subtracts the size of the virutal machine memory for moving to the physical host.
Further, as a kind of embodiment, after the migration operation of execution multiple virtual machines, also including with
Lower step:
Multiple virtual machine (vm) migrations simultaneously change multiple virtual to the original running status of virtual machine after target physical main frame, is recovered
The configuration information that machine physical host affiliated respectively changes by virtual machine (vm) migration operation.
Correspondingly, present invention also offers the device for realizing virtual machine (vm) migration, the device bag for realizing virtual machine (vm) migration
Virtual machine order module, physical host order module and migration process module are included, wherein:
The virtual machine order module, the virtual machine migrated needed for for being determined according to source physical host, and obtain required
The configuration information of one or more virtual machines of migration, the configuration information according to the virtual machine determines virtual machine (vm) migration sequentially;
The physical host order module, the multiple physical host resources for analyzing current operation in group system are used
Multiple physical hosts are carried out physical host sequence by information according to resource using information priority;
The migration process module, for being sorted most preceding virtual machine since virtual machine (vm) migration order, according to
Sequentially, order performs multiple virtual machine (vm) migrations to the operation of target physical main frame to virtual machine (vm) migration, until all of virtual machine is moved
Operation is moved all to terminate;In transition process, the most preceding physical host of physical host collating sequence is selected as target physical main frame,
Until presently described target physical main frame memory source can not meet be currently needed for migration virutal machine memory take resource or
When reaching default horizontal redundancy condition, the next physical host in selection physical host collating sequence is used as new object
Reason main frame.
It is preferred that used as a kind of embodiment, the device for realizing virtual machine (vm) migration also includes heart beat detection module,
Wherein:
The heart beat detection module, for periodically doing heartbeat detection by IP according to the default time cycle, detects cluster
The running status of the multiple physical hosts run in system, and determine the source physical host for breaking down.
Further, as a kind of embodiment, the virtual machine order module includes judging submodule, wherein:
The judging submodule, for the configuration information according to the virtual machine for obtaining, determines whether set in advance moving
Shifting sequentially, if, it is determined that virtual machine (vm) migration order for migration set in advance sequentially;If not, it is determined that virtual machine (vm) migration is suitable
Sequence is the virtual machine creating time sequencing in configuration information;
The configuration information of the virtual machine includes:The size information of virutal machine memory, multiple virtual machine creating time sequencings
Information or migration order information set in advance.
Further, as a kind of embodiment, the physical host order module includes physical host sequence submodule
Block, wherein:
The physical host sorting sub-module, for the size according to present physical main frame free memory, carries out descending row
Sequence;
If the magnitude difference of present physical host memory adjacent in sequence is less than default memory threshold after arrangement,
According to CPU usage size, ascending order arrangement is carried out to the adjacent physical host and the physical host sequence is finally determined;
Wherein, the default memory threshold is 128M.
It is preferred that used as a kind of embodiment, the device for realizing virtual machine (vm) migration also includes recovery module, its
In:
The recovery module, for after multiple virtual machine (vm) migrations to target physical main frame, recovering the original fortune of virtual machine
Row state simultaneously changes the configuration information that multiple virtual machines physical host affiliated respectively changes by virtual machine (vm) migration operation.
Correspondingly, it is described including group system multiple physical host, each institute present invention also offers a kind of group system
Stating can be provided with one or more virtual machines on physical host, the group system also includes above-mentioned virtual machine (vm) migration device;
The virtual machine (vm) migration device is used to, when source physical host breaks down, the virtual machine on the physical host of source be moved
Move to target physical main frame.
Beneficial effects of the present invention include:
A kind of method for realizing virtual machine (vm) migration, device and group system that the present invention is provided, wherein method include:True
After determining the virtual machine of source physical host and required migration, virtual machine (vm) migration is determined sequentially, and analyze and currently run in group system
Multiple physical host resource using informations, multiple physical hosts are carried out into physical host row according to resource using information priority
Sequence;Sorted since virtual machine (vm) migration order most preceding virtual machine, according to virtual machine (vm) migration order, order performs multiple virtual
Machine moves to the operation of target physical main frame, until the operation of all of virtual machine (vm) migration all terminates.The realization that the present invention is provided is empty
Method, device and the group system that plan machine is migrated ensure virtual machine in group system on the premise of virtual machine (vm) migration reliability
The high efficiency and security of mirror image.
Brief description of the drawings
Fig. 1 is the flow chart of the one embodiment for the method that the present invention realizes virtual machine (vm) migration;
Fig. 2 is the structural representation of the one embodiment for the device that the present invention realizes virtual machine (vm) migration.
Specific embodiment
With reference to Figure of description, to the embodiment of the present invention in the methods, devices and systems for realizing virtual machine (vm) migration
Specific embodiment illustrate.
A kind of method for realizing virtual machine (vm) migration provided in an embodiment of the present invention, the money for migrating virtual machine as needed
Source occupancy situation, virtual machine is migrated under same cluster on most suitable physical host.
Fig. 1 is the method flow diagram for realizing virtual machine (vm) migration of the embodiment of the present invention.As shown in figure 1, the present embodiment is made
Method includes following several steps:
Step S100, the virtual machine migrated according to needed for source physical host determines, and obtain one or many of required migration
The configuration information of individual virtual machine, the configuration information according to the virtual machine determines virtual machine (vm) migration sequentially;
Multiple physical host resource using informations of current operation in step S200, analysis group system, by multiple physics
Main frame carries out physical host sequence according to resource using information priority;
Step S300, sort most preceding virtual machine since virtual machine (vm) migration order, it is suitable according to virtual machine (vm) migration
Sequence, order performs multiple virtual machine (vm) migrations to the operation of target physical main frame, until the operation of all of virtual machine (vm) migration all terminates;
In transition process, the most preceding physical host of physical host collating sequence is selected as target physical main frame, until presently described
The memory source of target physical main frame can not meet the virutal machine memory for being currently needed for migrating and take resource or reach default water
During flat redundancy condition, the next physical host in selection physical host collating sequence is used as new target physical main frame.
In the specific implementation, above steps can be by realizing that the method for virtual machine (vm) migration, device are come for the embodiment of the present invention
Complete.Above steps is described in detail below:
It is preferred that as a kind of embodiment, before the step S100, also comprising the following steps:
Heartbeat detection, the multiple physics masters run in detection group system are periodically done by IP according to the default time cycle
The running status of machine, and determine the source physical host for breaking down.
In above-mentioned steps, heartbeat detection is done by IP, physical host periodically sends mutually inspection by heartbeat path
The test bag of survey, if certain physical host breaks down in the multiple physical hosts for now being run in group system(Such as:Firmly
Disk, internal memory, CPU, mainboard, I/O plates and power failure), then now this physical host will not produce response(It is i.e. continuous to lose
Set the detection bag of number), so then judge that this physical host breaks down, at this moment can then determine the source thing for breaking down
Reason main frame.
It is preferred that used as a kind of embodiment, in the step S100, the determination virtual machine (vm) migration order is specific
Comprise the following steps:
According to the configuration information of the virtual machine for obtaining, migration set in advance is determined whether sequentially, if, it is determined that it is empty
The migration of plan machine order for migration set in advance sequentially;If not, it is determined that virtual machine (vm) migration order is virtual in configuration information
Machine creation time is sequentially;
The configuration information of the virtual machine includes:The size information of virutal machine memory, multiple virtual machine creating time sequencings
Information or migration order information set in advance.
In the present invention is implemented, it is determined that after the source physical host for breaking down, which has on inquiry faulty physical main frame
A little virtual machines, clearly which one or more virtual machine are to be migrated on other most suitable target physical main frames;
User can be analyzed according to the configuration information of virtual machine and learn, migration order information condition is set with user
It is lower, it is necessary to migration set in advance sequentially;Under conditions of without setting migration order, according to the virtual machine creating time(Virtually
The configuration information of machine)Order as virtual machine migration sequentially, wherein, virtual machine (vm) migration order for virtual machine creating when
Between order from front to back order arrange.
It is preferred that used as a kind of embodiment, the physical host resource using information is surplus including present physical main frame
Remaining internal memory and present physical host CPU utilization rate.
Further, it is described preferential according to resource using information in the step S200 as a kind of embodiment
Level carries out physical host sequence and specifically includes:
According to the size of present physical main frame free memory, descending sort is carried out;
If the magnitude difference of present physical host memory adjacent in sequence is less than default memory threshold after arrangement,
According to CPU usage size, ascending order arrangement is carried out to the adjacent physical host and the physical host sequence is finally determined;
Wherein, the default memory threshold is 128M.
In above-mentioned steps, physics host resource use information is analyzed, determine the reception resources of virtual machine of physical host(Mirror
Picture)Priority, perform physical host sequence, inquiry obtains the resource of the physical host of normal operation under cluster, present physical
Host CPU utilization rate, present physical main frame free memory size, first by present physical main frame free memory size as sequence
Standard, is ranked up from big to small, if memory size is more or less the same(In difference 128M), the small physical host of CPU usage
Ranking is preceding.
It is preferred that used as a kind of embodiment, the default horizontal redundancy condition is:After performing virtual machine (vm) migration
20% of the free memory of target physical main frame less than the total internal memory of physical host;
The free memory size of the target physical main frame after the virtual machine (vm) migration is equal to present physical main frame free memory
Size subtracts the size of the virutal machine memory for moving to the physical host.
Further, as a kind of embodiment, also include after the migration operation of execution multiple virtual machines with
Lower step:
Multiple virtual machine (vm) migrations simultaneously change multiple virtual to the original running status of virtual machine after target physical main frame, is recovered
The configuration information that machine physical host affiliated respectively changes by virtual machine (vm) migration operation.
In above-mentioned steps S300, for example, first by the most preceding First that sorted in virtual machine (vm) migration order
Virtual machine correspondence is migrated to the most preceding target physical main frame of physical host collating sequence, is terminated in the operation of First virtual machine (vm) migration
Afterwards, if free memory of the now most preceding target physical main frame after First virtual machine (vm) migration is less than the total internal memory of the physical host
20% condition when(Reach default horizontal redundancy condition)Or the memory source of most preceding target physical main frame can not meet
The virutal machine memory for being currently needed for migration takes resource, and the next physical host in selection physical host collating sequence is used as new
Target physical main frame;Continue second virtual machine (vm) migration in virtual machine (vm) migration order to new target physical main frame, this
Sample repetitive sequence performs the migration operation of multiple virtual machines until the migration of all of virtual machine all terminates.
Obviously, First virtual machine target physical main frame is to arrange most preceding physical host, after the migration of this physical host
The free memory size of target physical main frame is the memory size before the migration of this physical host(Present physical host memory it is big
It is small)Subtract the virutal machine memory size for moving to the physical host;After First virtual machine (vm) migration, if this physical host
Internal memory meets second virutal machine memory and takes resource(While not up to default horizontal redundancy condition), then this physical host
It is second target physical main frame of virtual machine to continue, after this physical host free memory is less than total internal memory 20%, migration
Goal displacement is next physical host, and each migration target physical main frame of virtual machine is determined by this rule;
In order to the method for realizing virtual machine (vm) migration provided in an embodiment of the present invention is better described, for an example for reality
The step of virtual machine is illustrated on realizing sequence and virtual machine (vm) migration.For example:
Following physical host and virtual machine are installed in a group system:
So, physical host sequence is carried out according to resource using information priority, the order after physical host sequence is:Thing
Reason main frame 3, physical host 1, physical host 2.
Virtual machine is ordered as:VM1、VM2、VM3.
First, VM1 is performed and migrated to the operation of target physical main frame 3, the free memory value of target physical main frame after migration
The memory value for subtracting VM1 equal to the physical host free memory value before migration is i.e.:6G-2G=4G;
Second step, whether the free memory value of target physical main frame 3 meets second virutal machine memory after judging to migrate
(2G is saved as in VM2)Take resource(While not up to default horizontal redundancy condition), it is clear that target physical main frame 3 using as
The target physical main frame of VM2;After VM2 migrations, the free memory of target physical main frame machine 3 is:4G-2G=2G;Can not now expire
The 3rd virutal machine memory of foot(3G is saved as in VM3)Take resource;
3rd step, according to physical host clooating sequence, the next physical host in selection physical host collating sequence is made
It is new target physical main frame(Physical host 1), continue the 3rd virtual machine (vm) migration in virtual machine (vm) migration order to new
Target physical main frame, the free memory of target physical main frame 1 where VM3 after so migrating is:5G-2G=3G.
Subsequent migration and perform virtual machine recovering step with step S100 ~ step S300 in the embodiment of the present invention it is similar it
Place, it is no longer repeated.
The embodiment of the present invention can as needed migrate the occupation condition of virtual machine, reach and be migrated to virtual machine
Purpose under same cluster on most suitable physical host, and ensure the high-caliber reliability of group system and security.
It will be understood by those skilled in the art that the resource of physical host involved in the embodiment of the present invention is standard
Change(Physical host involved by the embodiment of the present invention is x86 servers), telescopic and dynamic change at any time, it should have
The redundancy of some levels is to ensure high-caliber availability, but it is important that this redundancy is allowed for application demand
Increase and easily extend;Need the use resource of the physical host of normal operation under computing cluster, including present physical main frame
CUP, the memory source of present physical main frame;Calculate the resources of virtual machine capacity of all migrations;Successively according to resources of virtual machine
Capacity distributes most suitable migration target physical main frame in the cluster.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of device for realizing virtual machine (vm) migration, due to this
The principle of device solve problem is similar to a kind of foregoing method for realizing virtual machine (vm) migration, therefore the implementation of the device may refer to
The implementation of preceding method, repeats part and repeats no more.
Correspondingly, present invention also offers the device for realizing virtual machine (vm) migration, the device 1 for realizing virtual machine (vm) migration is wrapped
Virtual machine order module 10, physical host order module 20 and migration process module 30 are included, as shown in Fig. 2 wherein:
The virtual machine order module 10, the virtual machine migrated needed for for being determined according to source physical host, and obtain institute
The configuration information of one or more virtual machines that need to be migrated, the configuration information according to the virtual machine determines that virtual machine (vm) migration is suitable
Sequence;
The physical host order module 20, the multiple physical host resources for analyzing current operation in group system make
With information, multiple physical hosts are carried out into physical host sequence according to resource using information priority;
The migration process module 30, for being sorted most preceding virtual machine since virtual machine (vm) migration order, presses
According to virtual machine (vm) migration order, order performs multiple virtual machine (vm) migrations to the operation of target physical main frame, until all of virtual machine
Migration operation all terminates;In transition process, the most preceding physical host of selection physical host collating sequence is used as target physical master
Machine, until the memory source of presently described target physical main frame can not meet the virutal machine memory occupancy resource for being currently needed for migration
Or when reaching default horizontal redundancy condition, the next physical host in selection physical host collating sequence is used as new target
Physical host.
It is preferred that used as a kind of embodiment, the device 1 for realizing virtual machine (vm) migration also includes heart beat detection module
40, wherein:
The heart beat detection module 40, for periodically doing heartbeat detection, detection collection by IP according to the default time cycle
The running status of the multiple physical hosts run in group's system, and determine the source physical host for breaking down.
Further, as a kind of embodiment, the virtual machine order module includes judging submodule, wherein:
The judging submodule, for the configuration information according to the virtual machine for obtaining, determines whether set in advance moving
Shifting sequentially, if, it is determined that virtual machine (vm) migration order for migration set in advance sequentially;If not, it is determined that virtual machine (vm) migration is suitable
Sequence is the virtual machine creating time sequencing in configuration information;
The configuration information of the virtual machine includes:The size information of virutal machine memory, multiple virtual machine creating time sequencings
Information or migration order information set in advance.
Further, as a kind of embodiment, the physical host order module includes physical host sequence submodule
Block, wherein:
The physical host sorting sub-module, for the size according to present physical main frame free memory, carries out descending row
Sequence;
If the magnitude difference of present physical host memory adjacent in sequence is less than default memory threshold after arrangement,
According to CPU usage size, ascending order arrangement is carried out to the adjacent physical host and the physical host sequence is finally determined;
Wherein, the default memory threshold is 128M.
It is preferred that used as a kind of embodiment, the device 1 for realizing virtual machine (vm) migration also includes recovery module 50,
Wherein:
The recovery module 50, for after multiple virtual machine (vm) migrations to target physical main frame, recovering virtual machine original
Running status simultaneously changes the configuration information that multiple virtual machines physical host affiliated respectively changes by virtual machine (vm) migration operation.
Correspondingly, it is described including group system multiple physical host, each institute present invention also offers a kind of group system
Stating can be provided with one or more virtual machines on physical host, the group system also includes above-mentioned virtual machine (vm) migration device;
The virtual machine (vm) migration device is used to, when source physical host breaks down, the virtual machine on the physical host of source be moved
Move to target physical main frame.
A kind of method for realizing virtual machine (vm) migration provided in an embodiment of the present invention, device and group system, wherein method bag
Include:It is determined that after source physical host and the virtual machine of required migration, determine virtual machine (vm) migration sequentially, and analyze group system and be taken in
Multiple physical hosts are carried out physics by multiple physical host resource using informations of preceding operation according to resource using information priority
Main frame sorts;Sorted since virtual machine (vm) migration order most preceding virtual machine, according to virtual machine (vm) migration order, order performs many
Individual virtual machine (vm) migration to target physical main frame operation, until all of virtual machine (vm) migration operation all terminate.The embodiment of the present invention
What is provided realizes method, device and the group system of virtual machine (vm) migration on the premise of virtual machine (vm) migration reliability, ensures cluster
The high efficiency and security of virtual machine image in system.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Shield scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (11)
1. a kind of method for realizing virtual machine (vm) migration, it is characterised in that comprise the following steps:
The virtual machine migrated according to needed for source physical host determines, and obtain the configuration of one or more virtual machines of required migration
Information, the configuration information according to the virtual machine determines virtual machine (vm) migration sequentially;
Multiple physical host resource using informations of current operation, multiple physical hosts are made according to resource in analysis group system
Physical host sequence is carried out with information priorities, wherein, the multiple physical host is according to resource using sorting from less to more;
Sorted since virtual machine (vm) migration order most preceding virtual machine, according to virtual machine (vm) migration order, order performs many
Individual virtual machine (vm) migration to target physical main frame operation, until all of virtual machine (vm) migration operation all terminate;
In transition process, the most preceding physical host of physical host collating sequence is selected as target physical main frame, until currently
The memory source of the target physical main frame can not meet the virutal machine memory for being currently needed for migrating and take resource or reach default
Horizontal redundancy condition when, selection physical host collating sequence in next physical host as new target physical main frame;
It is further comprising the steps of before the virtual machine for determining to need migration and migration order:
Heartbeat detection is periodically done by IP according to the default time cycle, the multiple physical hosts run in detection group system
Running status, and determine the source physical host for breaking down.
2. the method for realizing virtual machine (vm) migration according to claim 1, it is characterised in that the configuration according to virtual machine
Information determines that virtual machine (vm) migration sequentially, comprises the following steps:
According to the configuration information of the virtual machine for obtaining, migration set in advance is determined whether sequentially;
If, it is determined that virtual machine (vm) migration order for migration set in advance sequentially;If not, it is determined that virtual machine (vm) migration order be
Virtual machine creating time sequencing in configuration information;
The configuration information of the virtual machine includes:The size information of virutal machine memory, multiple virtual machine creating time sequencing information
Or migration order information set in advance.
3. the method for realizing virtual machine (vm) migration according to claim 1, it is characterised in that the physical host resource is used
Information includes present physical main frame free memory and present physical host CPU utilization rate.
4. the method for realizing virtual machine (vm) migration according to claim 1 or 3, it is characterised in that described to be used according to resource
Information priorities carry out physical host sequence, comprise the following steps:
According to the size of present physical main frame free memory, descending sort is carried out;
If the magnitude difference of present physical host memory adjacent in sequence is less than default memory threshold after arrangement, according to
CPU usage size, ascending order arrangement is carried out to the adjacent physical host and the physical host sequence is finally determined;
Wherein, the default memory threshold is 128M.
5. the method for realizing virtual machine (vm) migration according to claim 1, it is characterised in that the default horizontal redundancy bar
Part is:The free memory of the target physical main frame after virtual machine (vm) migration is performed less than the 20% of the total internal memory of physical host;
The free memory size of the target physical main frame after the virtual machine (vm) migration is equal to present physical main frame free memory size
Subtract the size of the virutal machine memory for moving to the physical host.
6. the method for realizing virtual machine (vm) migration according to claim 1, it is characterised in that the execution multiple virtual machines
After migration operation, also comprise the following steps:
Multiple virtual machine (vm) migrations simultaneously change multiple virtual machines point to the original running status of virtual machine after target physical main frame, is recovered
The configuration information that not affiliated physical host changes by virtual machine (vm) migration operation.
7. a kind of device for realizing virtual machine (vm) migration, it is characterised in that including virtual machine order module, physical host order module
With migration process module, wherein:
The virtual machine order module, the virtual machine migrated needed for for being determined according to source physical host, and obtain required migration
One or more virtual machines configuration information, the configuration information according to the virtual machine determines virtual machine (vm) migration sequentially;
The physical host order module, the multiple physical host resources for analyzing current operation in group system use letter
Multiple physical hosts are carried out physical host sequence by breath according to resource using information priority, wherein, the multiple physical host
According to resource using sorting from less to more;
The migration process module, for being sorted most preceding virtual machine since virtual machine (vm) migration order, according to virtual
Sequentially, order performs multiple virtual machine (vm) migrations to the operation of target physical main frame for machine migration, until all of virtual machine (vm) migration is grasped
All terminate;In transition process, the most preceding physical host of physical host collating sequence is selected as target physical main frame, until
The memory source of presently described target physical main frame can not meet the virutal machine memory for being currently needed for migrating and take resource or reach
During default horizontal redundancy condition, the next physical host in selection physical host collating sequence is used as new target physical master
Machine;
Also include heart beat detection module, wherein:
The heart beat detection module, for periodically doing heartbeat detection by IP according to the default time cycle, detects group system
The running status of multiple physical hosts of upper operation, and determine the source physical host for breaking down.
8. the device for realizing virtual machine (vm) migration according to claim 7, it is characterised in that the virtual machine order module bag
Judging submodule is included, wherein:
The judging submodule, for the configuration information according to the virtual machine for obtaining, determines whether that migration set in advance is suitable
Sequence, if, it is determined that virtual machine (vm) migration order for migration set in advance sequentially;If not, it is determined that virtual machine (vm) migration order be
Virtual machine creating time sequencing in configuration information;
The configuration information of the virtual machine includes:The size information of virutal machine memory, multiple virtual machine creating time sequencing information
Or migration order information set in advance.
9. the device for realizing virtual machine (vm) migration according to claim 7 or 8, it is characterised in that the physical host sequence
Module includes physical host sorting sub-module, wherein:
The physical host sorting sub-module, for the size according to present physical main frame free memory, carries out descending sort;
If the magnitude difference of present physical host memory adjacent in sequence is less than default memory threshold after arrangement, according to
CPU usage size, ascending order arrangement is carried out to the adjacent physical host and the physical host sequence is finally determined;
Wherein, the default memory threshold is 128M.
10. the device for realizing virtual machine (vm) migration according to claim 7, it is characterised in that also including recovery module, its
In:
The recovery module, for after multiple virtual machine (vm) migrations to target physical main frame, recovering the original operation shape of virtual machine
State simultaneously changes the configuration information that multiple virtual machines physical host affiliated respectively changes by virtual machine (vm) migration operation.
A kind of 11. group systems, including multiple physical hosts, can be provided with one or more virtual on each physical host
Machine, it is characterised in that the group system also includes the virtual machine (vm) migration device described in claim any one of 7-10;
The virtual machine (vm) migration device is used for when source physical host breaks down, by the virtual machine (vm) migration on the physical host of source extremely
Target physical main frame.
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 CN103810016A (en) | 2014-05-21 |
CN103810016B true 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) |
Families Citing this family (33)
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 |
CN104283943A (en) * | 2014-09-22 | 2015-01-14 | 珠海许继芝电网自动化有限公司 | Communication optimizing method for cluster server |
CN104407912B (en) * | 2014-12-25 | 2018-08-17 | 无锡清华信息科学与技术国家实验室物联网技术中心 | A kind of virtual machine configuration method and device |
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 |
CN105281949B (en) * | 2015-09-09 | 2018-06-15 | 浪潮(北京)电子信息产业有限公司 | Mix the partition method and isolating device of host in memory module |
US20180246751A1 (en) * | 2015-09-25 | 2018-08-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 |
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 |
CN106230954B (en) * | 2016-08-05 | 2020-10-02 | 广州久邦世纪科技有限公司 | Virtualization management platform |
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 |
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 |
CN107491352B (en) * | 2017-08-22 | 2020-09-08 | 郑州云海信息技术有限公司 | Resource scheduling method and device |
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 |
CN109960564B (en) * | 2017-12-22 | 2023-04-11 | 上海盛霄云计算技术有限公司 | Virtual machine migration method |
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 |
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 |
CN112052066A (en) * | 2019-06-05 | 2020-12-08 | 中兴通讯股份有限公司 | Method and device for reducing cluster power consumption of virtual machine |
CN110297692B (en) * | 2019-07-04 | 2020-12-15 | 北京伟杰东博信息科技有限公司 | Distributed software task dynamic management method and system |
CN110532135B (en) * | 2019-08-16 | 2022-11-08 | 苏州浪潮智能科技有限公司 | Service migration method, system, equipment and storage medium of cluster system |
CN110795211A (en) * | 2019-10-25 | 2020-02-14 | 北京金山云网络技术有限公司 | Method and device for upgrading configuration of virtual machine, electronic equipment and readable storage medium |
CN111381934B (en) * | 2020-03-11 | 2023-07-21 | 重庆邮电大学 | Method for improving quick migration reliability of virtual machine under disaster risk model |
CN113778607A (en) * | 2020-06-10 | 2021-12-10 | 中兴通讯股份有限公司 | Method and device for realizing high availability of virtual machine, cloud management platform and storage medium |
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 |
CN114489930A (en) * | 2021-12-23 | 2022-05-13 | 天翼云科技有限公司 | Virtual machine live migration method, device and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8468230B2 (en) * | 2007-10-18 | 2013-06-18 | Fujitsu Limited | Method, apparatus and recording medium for migrating a virtual machine |
-
2012
- 2012-11-09 CN CN201210447904.XA patent/CN103810016B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103810016A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103810016B (en) | Realize method, device and the group system of virtual machine (vm) migration | |
Sun et al. | A new technique for efficient live migration of multiple virtual machines | |
CN104484220B (en) | The method and device of the dynamic resource scheduling of virtual cluster | |
US20140082202A1 (en) | Method and Apparatus for Integration of Virtual Cluster and Virtual Cluster System | |
US9292320B2 (en) | Virtual machine packing method using scarcity | |
US20120011254A1 (en) | Network-aware virtual machine migration in datacenters | |
US20210373971A1 (en) | Cross-cluster load balancer | |
CN110347498B (en) | Load dynamic migration method in container and virtual machine mixed cloud environment | |
US20200151018A1 (en) | Workload placement and balancing within a containerized infrastructure | |
CN104375897B (en) | Cloud computing resource scheduling method based on the unbalanced degree of minimum relative load | |
CN104580194B (en) | Towards the virtual resources management method and device of Video Applications | |
WO2014002102A1 (en) | Optimizing placement of virtual machines | |
CN106681839B (en) | Elastic calculation dynamic allocation method | |
US20200192692A1 (en) | Containerized workload scheduling | |
Wood | Improving data center resource management, deployment, and availability with virtualization | |
CN102541467B (en) | Scheduling method for read-write requests of object data server | |
CN109558216B (en) | Single root I/O virtualization optimization method and system based on online migration | |
CN103034526B (en) | A kind of implementation method of virtualization services and device | |
US9317340B2 (en) | Intelligent virtual machine (VM) re-location | |
CN109976879B (en) | Cloud computing virtual machine placement method based on resource usage curve complementation | |
CN113778627A (en) | Scheduling method for creating cloud resources | |
CN106020971B (en) | CPU scheduling method and device in cloud host system | |
CN107423114B (en) | Virtual machine dynamic migration method based on service classification | |
CN109656714A (en) | A kind of GPU resource dispatching method virtualizing video card | |
CN105930202B (en) | A kind of virtual machine migration method of three threshold values |
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 |