CN107783826A - A kind of virtual machine migration method, apparatus and system - Google Patents

A kind of virtual machine migration method, apparatus and system Download PDF

Info

Publication number
CN107783826A
CN107783826A CN201610737726.2A CN201610737726A CN107783826A CN 107783826 A CN107783826 A CN 107783826A CN 201610737726 A CN201610737726 A CN 201610737726A CN 107783826 A CN107783826 A CN 107783826A
Authority
CN
China
Prior art keywords
physical machine
source
machine
virtual machine
data
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
CN201610737726.2A
Other languages
Chinese (zh)
Other versions
CN107783826B (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 Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201610737726.2A priority Critical patent/CN107783826B/en
Publication of CN107783826A publication Critical patent/CN107783826A/en
Application granted granted Critical
Publication of CN107783826B publication Critical patent/CN107783826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present invention provides a kind of virtual machine migration method, apparatus and system, and the virtual machine migration method includes:Reception source physical machine sends blank coil request to create, and purpose data blank coil is created in purpose physical machine;The backup data file of reception source physical machine transmission is simultaneously restored it into purpose data blank coil, obtains the purpose book with valid data;String of binary characters corresponding to the system volume of reception source, purpose system volume is generated in purpose physical machine;Purpose virtual machine is created based on purpose system volume and purpose book, completes the migration of virtual machine to be migrated.When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, be not by source data roll up corresponding to complete string of binary characters be transferred in purpose physical machine, but purpose data blank coil is first created in purpose physical machine, the backup data file of source physical machine transmission is received again, and restore it into created purpose data blank coil, substantially reduce time of the virtual machine offline required for migration.

Description

A kind of virtual machine migration method, apparatus and system
Technical field
The present invention relates to virtual machine migration technology field, more particularly to a kind of virtual machine migration method, apparatus and system.
Background technology
With the development of virtual technology, virtual machine is widely used.And in practical application, often due to certain Reason needs to migrate the virtual machine disposed in physical machine, for example, can be influenceed when the load too high of physical machine virtual The business of machine performs, and just needs to migrate the virtual machine in physical machine in this case.In general, virtual machine are by system What volume and book were formed, and the system volume and book in virtual machine are only a kind of virtual disks, and this virtual disk can Be not understood as a string of binary characters for not indicating that valid data content (such as can with the string of binary characters for being all 0 come Represent, can also be represented, etc. with the string of binary characters for being all 1).When in book write valid data when, it is necessary to Original string of binary characters fragment in book is covered with the binary representation of the valid data.
Generally, according to the running status of virtual machine in transition process, the migration of virtual machine can be divided into online migration With offline migration.Wherein, online migration be being in the virtual machine (vm) migration of running status in the physical machine of source to purpose physical machine, Offline migration is on the virtual machine (vm) migration in off-mode in the physical machine of source to purpose physical machine.Further, since move online The requirement moved to purpose physical machine is especially high, for example, the kernel version of purpose physical machine is consistent with source physical machine, CPU The producer of (Central Processing Unit, central processing unit) and model etc. are also required to strictly match, therefore online migration Method is all inapplicable under many scenes.
In the prior art, there is provided such a offline migration scheme:When carrying out the migration of book, source physical machine will Complete string of binary characters is transferred in purpose physical machine corresponding to the book of virtual machine to be migrated;Carrying out moving for system volume During shifting, source physical machine is by calling the physical layer interface of virtual machine technique that string of binary characters corresponding to system volume is transferred into purpose Physical machine;Now, each self-corresponding string of binary characters of system volume and book that purpose physical machine is transmitted with source physical machine Based on create new virtual machine, and then complete the migration of virtual machine to be migrated.
Although above-mentioned offline migration scheme can realize the migration to virtual machine, such scheme is needed void to be migrated Complete string of binary characters is transferred in purpose physical machine corresponding to the book of plan machine, and actually may be only in the book Seldom valid data are written with, it is, representing that the string of binary characters of valid data can be solely a data volume very little String of binary characters fragment, therefore using such scheme carry out virtual machine migrate offline when, easily cause virtual machine to move offline Shift time is grown, and especially when the data volume of string of binary characters corresponding to the book is very big, also easily causes to wait to move The break period for moving the business that virtual machine is provided is oversize.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of virtual machine migration method, apparatus and system, to shorten virtual machine Time required for offline migration, and shorten business interruption time.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of virtual machine migration method, applied to needed for virtual machine Migrate to purpose physical machine, methods described includes:
The blank coil request to create for source data volume that reception source physical machine is sent;
After the blank coil request to create is received, purpose data blank coil is created in the purpose physical machine;
The backup data file of the source physical machine transmission is received, and the backup data file is recovered to the purpose In data blank coil, the purpose book with valid data is obtained;Wherein, the backup data file is the source physical machine pair The source data volume file that incrementally data backup mode generates, and the source number is stored with the backup data file According to the current valid data in target location and the target location that data are write in volume;
String of binary characters corresponding to the source system volume that the source physical machine is transmitted is received, and in the purpose physical machine Middle generation purpose system volume;Wherein, string of binary characters corresponding to the purpose system volume and the source system volume corresponding two System character string is consistent;
Purpose virtual machine is created based on the purpose system volume and the purpose book, completes virtual machine to be migrated Migration.
Optionally, the string of binary characters that the source data volume can represent is carried in the blank coil request to create The size of data volume;
Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not less than institute State the data volume for the string of binary characters that source data volume entrained in blank coil request to create can represent.
Optionally, in addition to:After the completion of purpose data blank coil establishment, purpose data are sent to the source physical machine The feedback signal that blank coil has created;
Correspondingly, the backup data file source physical machine is transmitted after the feedback signal is received.
Optionally, the purpose physical machine is, the virtual machine in the source physical machine meet default transition condition and The source physical machine is sent to management server obtain being asked of purpose physical machine after, be based on by the management server Default purpose physical machine determines that rule is determined from each physical machine managed.
Optionally, judge to meet the default transition condition when meeting at least one of the situation of being exemplified below:
(1) the virtual machine quantity created in the source physical machine is more than default virtual machine quantity;
(2) the source physical machine failure;
(3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the source physical machine.
Optionally, the management server determines rule from each physical machine managed based on default purpose physical machine In determine, including:
The management server is according to the current available money of each physical machine in addition to the source physical machine managed Source and/or central processor CPU utilization rate determine purpose physical machine.
Optionally, string of binary characters corresponding to the source system volume for receiving the source physical machine and being transmitted, including:
Two enter corresponding to receiving the source system volume that the source physical machine calls the physical layer interface of virtual machine technology to be transmitted Character string processed.
Optionally, it is described that purpose virtual machine is created based on the purpose system volume and the purpose book, complete After the migration of virtual machine to be migrated, in addition to:
Start the purpose virtual machine created in the purpose physical machine;
After the purpose virtual machine successfully starts up, sent to the source physical machine for having shown the purpose virtual machine The signal successfully started up, so as to the source physical machine receive delete after the signal in the source physical machine this is to be migrated virtual Machine.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of virtual machine (vm) migration device, applied to needed for virtual machine Migrate to purpose physical machine, described device includes:
Request receiving module, the blank coil request to create for source data volume sent for receiving source physical machine;
Blank coil creation module, for after the request receiving module receives the blank coil request to create, in the mesh Physical machine in create purpose data blank coil;
Book generation module, for receiving the backup data file of the source physical machine transmission, and the data are standby Part file access pattern obtains the purpose book with valid data into the purpose data blank coil;Wherein, the data backup File rolls up the file that incrementally data backup mode generates, and the data backup to the source data for the source physical machine It is stored with file in the source data volume and writes the target location of data and the valid data that the target location is current;
System volume generation module, binary-coded character corresponding to the source system volume transmitted for receiving the source physical machine String, and purpose system volume is generated in the purpose physical machine;Wherein, string of binary characters corresponding to the purpose system volume with String of binary characters corresponding to the source system volume is consistent;
Virtual machine (vm) migration module, it is virtual for creating purpose based on the purpose system volume and the purpose book Machine, complete the migration of virtual machine to be migrated.
Optionally, the string of binary characters that the source data volume can represent is carried in the blank coil request to create The size of data volume;
Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not less than institute State the data volume for the string of binary characters that source data volume entrained in blank coil request to create can represent.
Optionally, in addition to:Signal feedback module, after the completion of being created in the purpose data blank coil, to the source Physical machine sends the feedback signal that purpose data blank coil has created;
Correspondingly, the backup data file source physical machine is transmitted after the feedback signal is received.
Optionally, the purpose physical machine is, the virtual machine in the source physical machine meet default transition condition and The source physical machine is sent to management server obtain being asked of purpose physical machine after, be based on by the management server Default purpose physical machine determines that rule is determined from each physical machine managed.
Optionally, judge to meet the default transition condition when meeting at least one of the situation of being exemplified below:
(1) the virtual machine quantity created in the source physical machine is more than default virtual machine quantity;
(2) the source physical machine failure;
(3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the source physical machine.
Optionally, the management server determines rule from each physical machine managed based on default purpose physical machine In determine, including:
The management server is according to the current available money of each physical machine in addition to the source physical machine managed Source and/or central processor CPU utilization rate determine purpose physical machine.
Optionally, the system volume generation module, is specifically used for:
Two enter corresponding to receiving the source system volume that the source physical machine calls the physical layer interface of virtual machine technology to be transmitted Character string processed, and purpose system volume is generated in the purpose physical machine.
Optionally, in addition to:Virtual machine starting module, for completing virtual machine to be migrated in the virtual machine (vm) migration module Migration after, start the purpose virtual machine created in the purpose physical machine;
Virtual machine removing module, for after the purpose virtual machine successfully starts up, sending and being used for the source physical machine Show the signal that the purpose virtual machine has successfully started up, the source thing is deleted after receiving the signal so as to the source physical machine The virtual machine to be migrated in reason machine.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of virtual machine (vm) migration system, including:Virtual machine to be migrated Migrated needed for the source physical machine at place and the virtual machine to be migrated to purpose physical machine;Wherein,
The source physical machine, for sending the blank coil request to create for source data volume to the purpose physical machine;To institute State purpose physical machine transmission backup data file;And to binary-coded character corresponding to the purpose physical machine transmission sources system volume String;
The backup data file is that to source data volume, incrementally data backup mode generates the source physical machine File, and be stored with the backup data file in source data volume and write the target location of data and the target The current valid data in position;
The purpose physical machine, the blank coil request to create sent for receiving the source physical machine, receiving After stating blank coil request to create, purpose data blank coil is created in the purpose physical machine;Receive the number of the source physical machine transmission Recover according to backup file, and by the backup data file into the purpose data blank coil, obtain the mesh with valid data Book;String of binary characters corresponding to the source system volume that the source physical machine is transmitted is received, and in the purpose physics Purpose system volume is generated in machine;Purpose virtual machine is created based on the purpose system volume and the purpose book, is completed The migration of virtual machine to be migrated;
Wherein, string of binary characters corresponding to the purpose system volume is equal to binary system corresponding with the source system volume Character string is consistent.
Optionally, the string of binary characters that the source data volume can represent is carried in the blank coil request to create The size of data volume;
Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not less than institute State the data volume for the string of binary characters that source data volume entrained in blank coil request to create can represent.
Optionally, the purpose physical machine is additionally operable to after the completion of the purpose data blank coil creates, to the source physics Machine sends the feedback signal that purpose data blank coil has created;
Correspondingly, the backup data file source physical machine is transmitted after the feedback signal is received.
Optionally, in addition to:Management server, for managing more physical machines;Virtual machine in the source physical machine When meeting default transition condition, being asked for the acquisition purpose physical machine that the source physical machine is sent is received, and receiving To after described asked, determine that rule determines a thing from each physical machine managed based on default purpose physical machine Reason machine is the purpose physical machine.
Optionally, judge to meet the default transition condition when meeting at least one of the situation of being exemplified below:
(1) the virtual machine quantity created in the source physical machine is more than default virtual machine quantity;
(2) the source physical machine failure;
(3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the source physical machine.
Optionally, the management server, is specifically used for:
According to the current available resources of each physical machine in addition to the source physical machine managed and/or CPU centers Processor utilization rate determines purpose physical machine.
Optionally, the purpose physical machine, is specifically used for:
Two enter corresponding to receiving the source system volume that the source physical machine calls the physical layer interface of virtual machine technology to be transmitted Character string processed.
Optionally, the purpose physical machine, it is additionally operable to after the migration of virtual machine to be migrated is completed, starts the purpose The purpose virtual machine created in physical machine;After the purpose virtual machine successfully starts up, send and be used for the source physical machine Show the signal that the purpose virtual machine has successfully started up;
The source physical machine, it is additionally operable to receiving the signal for being used to show that the purpose virtual machine has successfully started up Afterwards, the virtual machine to be migrated in the source physical machine is deleted.
When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, be not by source data roll up corresponding to it is complete String of binary characters is transferred in purpose physical machine, but purpose data blank coil is first created in purpose physical machine, then receives source The backup data file of physical machine transmission, and restore it into created purpose data blank coil, it is effective so as to obtain having The purpose book of data, it is seen then that when the valid data in source data volume are the string of binary characters piece of a data volume very little Duan Shi, the data volume for the backup data file that source physical machine is transmitted to purpose physical machine will be substantially less that source data is complete corresponding to rolling up The data volume of whole string of binary characters, therefore, substantially reduce time of the virtual machine offline required for migration.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of virtual machine migration method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another virtual machine migration method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of virtual machine (vm) migration device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another virtual machine (vm) migration device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of virtual machine (vm) migration system provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another virtual machine (vm) migration system provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
In order to shorten the virtual machine migration required time, and shorten business interruption time, the embodiment of the present invention offline Provide a kind of virtual machine migration method, apparatus and system.
It should be noted that virtual machine (vm) migration scheme provided in an embodiment of the present invention can apply to field of cloud calculation.Its In, virtual machine technique is a key technology in field of cloud calculation, by that can be transported in one physical machine of the virtual machine technique More virtual machines of row, and each virtual machine is an autonomous system, is independent of each other.At present, cloud computation data center master , can be by the calculating in each physical machine in the building process of cloud computation data center if being built based on virtual machine technique The resources such as resource, storage resource and network invent a resource pool, so as to which each virtual machine can use virtual pool on demand In various resources, it is clear that be advantageous to carry out resource expansion, improve resource utilization rate.
A kind of virtual machine migration method provided in an embodiment of the present invention is introduced first below.
It should be noted that a kind of virtual machine migration method provided in an embodiment of the present invention is applied to migrate needed for virtual machine Purpose physical machine extremely.
In computer science, virtual machine refers to a kind of special software that can be run as actual physical machine, specifically , virtual machine can create a kind of environment between computer platform and terminal user, and terminal user can be soft based on this Environment that part is created is operated.
Wherein, purpose physical machine is, the virtual machine in the physical machine of source meet default transition condition and source physical machine to Management server is sent obtain the ask of purpose physical machine after, it is true based on default purpose physical machine by management server Set pattern is then determined from each physical machine managed;Source physical machine is the physical machine where virtual machine to be migrated.
Specifically, when the virtual machine in the physical machine of source meets above-mentioned default transition condition, the virtual machine is true It is set to virtual machine to be migrated;Before the migration of virtual machine to be migrated is carried out, virtual machine needs to send one to management server Asked, the purpose of acquisition request is the address information for obtaining purpose physical machine;Management server receive this please After asking, it can determine that rule determines a physical machine from the multiple physical machines managed according to above-mentioned default purpose physical machine For purpose physical machine, and the address information for the purpose physical machine determined is fed back into the source physical machine, to cause the source thing Reason machine can be communicatively coupled based on the address information obtained and the purpose physical machine, follow-up to be migrated virtual so as to carry out Data transfer of the machine in transition process.It should be noted that management server can be managed including purpose physical machine and source physics Multiple physical machines including machine, the running state parameter of each physical machine is stored with management server.For example, the operation State parameter can be available resources, CPU usage etc..
Wherein, judge to meet default transition condition when meeting at least one of the situation of being exemplified below:
(1) the virtual machine quantity created in the physical machine of source is more than default virtual machine quantity;
(2) source physical machine failure;
(3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the physical machine of source.
In a kind of implementation, management server can be according to each physics being managed, in addition to the source physical machine The current available resources of machine and/or CPU usage determine purpose physical machine.For example, can be by the most thing of available resources Reason machine is defined as purpose physical machine, the minimum physical machine of CPU usage can also be defined as into purpose physical machine, can also integrated Two factors of available resources and CPU are considered to determine purpose physical machine, and CPU usage can be such as no more than to 30% and can use money The most physical machine in source is defined as purpose physical machine.It should be noted that it is above-mentioned only list it is several according to available resources and/ Or CPU usage determines the instantiation of purpose physical machine, when management server determines purpose physical machine, it is not limited on State cited several instantiations.
Specifically, the virtual machine migration method shown in Fig. 1 may comprise steps of:
S101:The blank coil request to create for source data volume that reception source physical machine is sent.
Specifically, after the purpose physical machine that source physical machine and management server are determined is established and communicated to connect, can To enter the transition process of virtual machine to be migrated, source physical machine first needs to create to purpose physical machine one blank coil of transmission and asked Ask, then purpose physical machine is performing follow-up the step of creating purpose book blank coil after receiving the blank coil request to create.
S102:After blank coil request to create is received, purpose data blank coil is created in purpose physical machine.
Specifically, in the blank coil request to create that source physical machine is sent, active data volume can represent two can be carried The size of the data volume of system character string, naturally it is also possible to do not carry the number for the string of binary characters that source data volume can represent According to the size of amount.For the former, binary system that the purpose data blank coil that is created in purpose physical machine can represent The data volume of character string is not less than the string of binary characters that source data volume entrained in blank coil request to create can represent Data volume;And for the latter, binary word that the purpose data blank coil that is created in purpose physical machine can represent The data volume of symbol string is not less than default data volume size, and the default data volume size can be technology people in the art Member is set based on experience value, and the typically larger than data volume for the string of binary characters that source data volume can represent.Need Illustrate, the embodiment of the present invention does not limit the binary-coded character that source data volume can represent whether is carried in the physical machine of source The size of the data volume of string, those skilled in the art can reasonably be set according to the concrete condition in practical application Put.
Specifically, purpose physical machine receive the blank coil transmitted by the physical machine of source wear part request after, in purpose physical machine A purpose book blank coil is locallyd create, it is necessary to which explanation, the purpose book blank coil are one and do not indicate that valid data The string of binary characters of content, the purpose book blank coil created can be interpreted as one and not write the virtual of valid data Disk.
S103:The backup data file of reception source physical machine transmission, and backup data file is recovered empty to purpose data In volume, the purpose book with valid data is obtained.
Wherein, backup data file is the file that source physical machine rolls up that incrementally data backup mode generates to source data, And the target location that data are write in active data volume and the valid data that target location is current are stored in backup data file.
In a kind of implementation, after the completion of the establishment of purpose data blank coil, purpose data blank coil has been sent to source physical machine The feedback signal of establishment;Correspondingly, the backup data file is transmitted by source physical machine after the feedback signal is received.Tool Body, after the completion of the establishment of purpose data blank coil, purpose physical machine needs to send one for showing purpose number to source physical machine The feedback signal created according to blank coil;After source physical machine receives the feedback signal, source data is directed to the transmission of purpose physical machine The backup data file of volume, and then purpose physical machine can be recovered backup data file to mesh according to existing refitting technology Data blank coil in, so as to obtain the purpose book with valid data.
It should be noted that the backup data file is the source physical machine text that incrementally data backup mode is generated Part, so-called incremental data backup are one kind in data backup, and for which when carrying out data backup, only backup is last standby All files for having modification after part;For example, if the t1 moment to source data volume backed up, it is assumed that from the t1 moment to Only file 1 is modified between the t2 moment, then when being backed up again to source data volume at the t2 moment, it is only necessary to Data backup is carried out to the file 1 for having modification in the period corresponding to the t1 moment to t2 moment.
In addition, for the data volume for the string of binary characters that can be represented compared to source data volume, backup data file Data volume is generally much smaller, therefore, the time required for purpose book is generated according to step S101-S103, will be much small Time required for complete string of binary characters corresponding to directly source data is rolled up is transferred in purpose physical machine, therefore, have Beneficial to the time shortened required for virtual machine migrates offline.
It should be noted that purpose physical machine creates purpose data blank coil and the two steps of its backup reception data file Between and strict priority execution sequence is not present, still, purpose physical machine must be in the sky for receiving source physical machine and sending Between create after request to create, and backup data file must receive before data recovery to purpose data blank coil is carried out Arrive, just can be by the backup data file only in the case that purpose data blank coil and backup data file are provided simultaneously with Recover into the purpose data blank coil, and then obtain the purpose book with valid data.
S104:String of binary characters corresponding to the source system volume that reception source physical machine is transmitted, and in purpose physical machine Generate purpose system volume.
Wherein, the string of binary characters corresponding with source system volume of string of binary characters corresponding to purpose system volume is consistent.
In a kind of implementation, it can receive in such a way two corresponding to the source system volume that source physical machine is transmitted System character string:
Reception source physical machine calls binary word corresponding to the source system volume that the physical layer interface of virtual machine technology is transmitted Symbol string.
It should be noted that source physical machine sends request transmission time, the He Yuan of blank coil request to create to purpose physical machine Between the transmission time of string of binary characters corresponding to physical machine to purpose physical machine Transmission system volume, and strict elder generation is not present Order afterwards, that is to say, that source physical machine first can send blank coil request to create to purpose physical machine, can also be first to purpose physics String of binary characters corresponding to machine Transmission system volume.
Accordingly, the embodiment of the present invention is entered also without to the execution sequence between step S101-S103 and step S104 The strict restriction of row, that is to say, that when source physical machine first sends blank coil request to create to purpose physical machine, purpose physical machine can To first carry out step S101-S103 to create purpose book;First roll up and correspond to purpose physical machine Transmission system when source physical machine String of binary characters when, purpose physical machine can first carry out step S104 to create purpose system volume.
S105:Purpose virtual machine is created based on purpose system volume and purpose book, completes virtual machine to be migrated Migration.
It should be noted that after purpose system volume and purpose book create completion, just can be in purpose physics The virtual machine corresponding with the purpose system volume and purpose book is created on machine, in the virtual machine created and source physical machine The business function that virtual machine to be migrated is completed is consistent, it is achieved thereby that the virtual machine to be migrated in the physical machine of source moves Move.
When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, be not by source data roll up corresponding to it is complete String of binary characters is transferred in purpose physical machine, but purpose data blank coil is first created in purpose physical machine, then receives source The backup data file of physical machine transmission, and restore it into created purpose data blank coil, it is effective so as to obtain having The purpose book of data, it is seen then that when the valid data in source data volume are the string of binary characters piece of a data volume very little Duan Shi, the data volume for the backup data file that source physical machine is transmitted to purpose physical machine will be substantially less that source data is complete corresponding to rolling up The data volume of whole string of binary characters, therefore, substantially reduce time of the virtual machine offline required for migration.
As shown in Fig. 2 being another virtual machine migration method provided in an embodiment of the present invention, implement in method shown in Fig. 1 On the basis of example, after step S105, it can also comprise the following steps:
S106:Start the purpose virtual machine created in purpose physical machine.
Specifically, after purpose virtual machine is being created in purpose physical machine, virtual machine tool software can be utilized (such as The farsighted software virtual machine of VMware prestige) start created purpose virtual machine.
S107:After purpose virtual machine successfully starts up, sent to source physical machine for showing that purpose virtual machine has successfully opened Dynamic signal, so that source physical machine receives the virtual machine to be migrated deleted after the signal in the physical machine of source.
After purpose virtual machine successfully starts up, illustrating virtual machine to be migrated, Successful migration to purpose physical machine suffers, It is used for the signal for showing that purpose virtual machine has successfully started up so as to which purpose physical machine can send one to source physical machine;So, After when source, physical machine receives the signal, it may be determined that Successful migration to purpose physical machine suffers virtual machine to be migrated, so as to Source physical machine can carry out corresponding deletion action to virtual machine to be migrated, and then by source physics shared by the virtual machine to be migrated Resource in machine discharges.
When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, except with embodiment of the method shown in Fig. 1 Beneficial effect outside, purpose physical machine after purpose virtual machine is successfully started up, to source physical machine send signal so that source Physical machine in time can delete the virtual machine to be migrated that completed migration from the physical machine of source, and then by the virtual machine to be migrated Resource in shared source physical machine discharges, and is advantageous to the reasonable employment of the resource in the physical machine of source.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of virtual machine (vm) migration device.Below to this A kind of virtual machine (vm) migration device that inventive embodiments provide illustrates.
As shown in figure 3, be a kind of virtual machine (vm) migration device provided by the invention, applied to migrated needed for virtual machine to mesh Physical machine.
In one particular embodiment of the present invention, purpose physical machine is that the virtual machine in the physical machine of source meets default Transition condition and source physical machine sent to management server after obtaining being asked of purpose physical machine, by management server Determine that rule is determined from each physical machine managed based on default purpose physical machine.
Specifically, judge to meet default transition condition when meeting at least one of the situation of being exemplified below:
(1) the virtual machine quantity created in the physical machine of source is more than default virtual machine quantity;
(2) source physical machine failure;
(3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the physical machine of source.
In a kind of implementation, management server is according to each physical machine in addition to the physical machine of source managed current Available resources and/or CPU usage determine purpose physical machine.
Specifically, the virtual machine (vm) migration device shown in Fig. 3 can include with lower module:
Request receiving module 210, the blank coil request to create for source data volume sent for receiving source physical machine;Its In, source physical machine is the physical machine where virtual machine to be migrated, and source data volume is the book of virtual machine to be migrated.
Blank coil creation module 220, for after request receiving module 210 receives blank coil request to create, in purpose physics Purpose data blank coil is created in machine.
Book generation module 230, for receiving the backup data file of source physical machine transmission, and by backup data file Recover into purpose data blank coil, obtain the purpose book with valid data.
Wherein, backup data file is the file that source physical machine rolls up that incrementally data backup mode generates to source data, And the target location that data are write in active data volume and the valid data that target location is current are stored in backup data file.
System volume generation module 240, string of binary characters corresponding to the source system volume transmitted for receiving source physical machine, And purpose system volume is generated in purpose physical machine.
Wherein, the string of binary characters corresponding with source system volume of string of binary characters corresponding to purpose system volume is consistent.
Virtual machine (vm) migration module 250, it is complete for creating purpose virtual machine based on purpose system volume and purpose book Into the migration of virtual machine to be migrated.
The string of binary characters that active data volume can represent is carried in a kind of implementation, in blank coil request to create The size of data volume;Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not less than The data volume for the string of binary characters that entrained source data volume can represent in blank coil request to create.
Specifically, the virtual machine (vm) migration device can also include:Signal feedback module, for being created in purpose data blank coil After the completion of, send the feedback signal that has created of purpose data blank coil to source physical machine;Correspondingly, backup data file is source physics What machine was transmitted after feedback signal is received.
In a kind of implementation, system volume generation module 240, it is specifically used for:
Reception source physical machine calls binary word corresponding to the source system volume that the physical layer interface of virtual machine technology is transmitted Symbol string, and purpose system volume is generated in purpose physical machine.
When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, be not by source data roll up corresponding to it is complete String of binary characters is transferred in purpose physical machine, but purpose data blank coil is first created in purpose physical machine, then receives source The backup data file of physical machine transmission, and restore it into created purpose data blank coil, it is effective so as to obtain having The purpose book of data, it is seen then that when the valid data in source data volume are the string of binary characters piece of a data volume very little Duan Shi, the data volume for the backup data file that source physical machine is transmitted to purpose physical machine will be substantially less that source data is complete corresponding to rolling up The data volume of whole string of binary characters, therefore, substantially reduce time of the virtual machine offline required for migration.
As shown in figure 4, be another virtual machine (vm) migration device provided in an embodiment of the present invention, it is real in the device shown in Fig. 3 Apply on the basis of example, can also include with lower module:
Virtual machine starting module 260, for complete virtual machine to be migrated in virtual machine (vm) migration module 250 migration after, Start the purpose virtual machine created in purpose physical machine.
Virtual machine removing module 270, for after purpose virtual machine successfully starts up, being sent to source physical machine for showing mesh The signal that has successfully started up of virtual machine, so that source physical machine receives the void to be migrated deleted after the signal in the physical machine of source Plan machine.
When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, except with Fig. 3 shown device embodiments Beneficial effect outside, purpose physical machine after purpose virtual machine is successfully started up, to source physical machine send signal so that source Physical machine in time can delete the virtual machine to be migrated that completed migration from the physical machine of source, and then by the virtual machine to be migrated Resource in shared source physical machine discharges, and is advantageous to the reasonable employment of the resource in the physical machine of source.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of virtual machine (vm) migration system.It is right again below A kind of virtual machine (vm) migration system provided in an embodiment of the present invention illustrates.
As shown in figure 5, being a kind of virtual machine (vm) migration system provided in an embodiment of the present invention, can include:It is to be migrated virtual Migrated needed for source physical machine 310 and virtual machine to be migrated where machine to purpose physical machine 320.
Wherein, source physical machine 310, for sending the blank coil request to create for source data volume to purpose physical machine 320;To Purpose physical machine 320 transmits backup data file;And to binary-coded character corresponding to the transmission sources system volume of purpose physical machine 320 String.
Wherein, source data volume is the book of virtual machine to be migrated;Backup data file is source physical machine 310 to source data The volume file that incrementally data backup mode generates, and the mesh that data are write in active data volume is stored in backup data file The current valid data of cursor position and target location.
Purpose physical machine 320, for receiving the blank coil request to create of the transmission of source physical machine 310, created receiving blank coil After request, purpose data blank coil is created in purpose physical machine 320;The backup data file that reception source physical machine 310 is transmitted, and Backup data file is recovered into purpose data blank coil, obtains the purpose book with valid data;Reception source physical machine String of binary characters corresponding to the 310 source system volumes transmitted, and purpose system volume is generated in purpose physical machine 320;With mesh System volume and purpose book based on create purpose virtual machine, complete the migration of virtual machine to be migrated.
Wherein, the data volume for the string of binary characters that purpose data blank coil can represent is not less than in blank coil request to create The data volume for the string of binary characters that entrained source data volume can represent;Wherein, binary system corresponding to purpose system volume It is consistent that character string is equal to string of binary characters corresponding with source system volume.
The string of binary characters that active data volume can represent is carried in a kind of implementation, in the blank coil request to create Data volume size;Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not small The data volume for the string of binary characters that entrained source data volume can represent in blank coil request to create.
Specifically, purpose physical machine 320 is additionally operable to after the completion of purpose data blank coil creates, purpose is sent to source physical machine The feedback signal that data blank coil has created;Correspondingly, the backup data file for source physical machine the institute after feedback signal is received Transmission.
When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, be not by source data roll up corresponding to it is complete String of binary characters is transferred in purpose physical machine, but purpose data blank coil is first created in purpose physical machine, then receives source The backup data file of physical machine transmission, and restore it into created purpose data blank coil, it is effective so as to obtain having The purpose book of data, it is seen then that when the valid data in source data volume are the string of binary characters piece of a data volume very little Duan Shi, the data volume for the backup data file that source physical machine is transmitted to purpose physical machine will be substantially less that source data is complete corresponding to rolling up The data volume of whole string of binary characters, therefore, substantially reduce time of the virtual machine offline required for migration.
As shown in fig. 6, be another virtual machine (vm) migration system provided in an embodiment of the present invention, it is real in the system shown in Fig. 5 Apply on the basis of example, can also include:
Management server 330, for managing more physical machines;Virtual machine in source physical machine 310 meets default move During shifting condition, being asked for the acquisition purpose physical machine 320 that source physical machine 310 is sent is received, and asked receiving Afterwards, determine rule from each physical machine managed for the purpose of one physical machine of determination based on default purpose physical machine 320 Physical machine 320.
Specifically, judge to meet default transition condition when meeting at least one of the situation of being exemplified below:
(1) the virtual machine quantity created in source physical machine 310 is more than default virtual machine quantity;
(2) failure of source physical machine 310;
(3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in source physical machine 310.
Wherein, management server 330, it is specifically used for:
According to the current available resources of each physical machine in addition to source physical machine 310 managed and/or CPU usage Determine purpose physical machine 320.
Wherein, purpose physical machine 320, is specifically used for:
Reception source physical machine 310 calls binary system corresponding to the source system volume that the physical layer interface of virtual machine technology is transmitted Character string.
In a kind of implementation, purpose physical machine 320, it is additionally operable to after the migration of virtual machine to be migrated is completed, starts The purpose virtual machine created in purpose physical machine 320;After purpose virtual machine successfully starts up, send and use to source physical machine 310 In the signal for showing purpose virtual machine and having successfully started up;
Source physical machine 310, it is additionally operable to after the signal successfully started up for showing purpose virtual machine is received, deletes source The virtual machine to be migrated in physical machine 310.
When carrying out virtual machine (vm) migration using scheme provided in an embodiment of the present invention, except with system shown in Figure 5 embodiment Beneficial effect outside, purpose physical machine after purpose virtual machine is successfully started up, to source physical machine send signal so that source Physical machine in time can delete the virtual machine to be migrated that completed migration from the physical machine of source, and then by the virtual machine to be migrated Resource in shared source physical machine discharges, and is advantageous to the reasonable employment of the resource in the physical machine of source.
For system or device embodiment, because it is substantially similar to embodiment of the method, so describing simpler Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is To instruct the hardware of correlation to complete by program, described program can be stored in computer read/write memory medium, Storage medium designated herein, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (24)

  1. A kind of 1. virtual machine migration method, it is characterised in that applied to migrated needed for virtual machine to purpose physical machine, the side Method includes:
    The blank coil request to create for source data volume that reception source physical machine is sent;
    After the blank coil request to create is received, purpose data blank coil is created in the purpose physical machine;
    The backup data file of the source physical machine transmission is received, and the backup data file is recovered to the purpose data In blank coil, the purpose book with valid data is obtained;Wherein, the backup data file is the source physical machine to described The source data volume file that incrementally data backup mode generates, and the source data volume is stored with the backup data file The current valid data in target location and the target location of middle write-in data;
    String of binary characters corresponding to the source system volume that the source physical machine is transmitted is received, and it is raw in the purpose physical machine Into purpose system volume;Wherein, the binary system corresponding with the source system volume of string of binary characters corresponding to the purpose system volume Character string is consistent;
    Purpose virtual machine is created based on the purpose system volume and the purpose book, completes moving for virtual machine to be migrated Move.
  2. 2. according to the method for claim 1, it is characterised in that the source data volume is carried in the blank coil request to create The size of the data volume for the string of binary characters that can be represented;
    Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not less than the sky The data volume for the string of binary characters that entrained source data volume can represent in volume request to create.
  3. 3. according to the method for claim 1, it is characterised in that also include:
    After the completion of purpose data blank coil establishment, the feedback letter that has created of purpose data blank coil is sent to the source physical machine Number;
    Correspondingly, the backup data file source physical machine is transmitted after the feedback signal is received.
  4. 4. according to the method described in claim any one of 1-3, it is characterised in that the purpose physical machine is, in the source thing Virtual machine in reason machine meets default transition condition and the source physical machine sends to management server and obtains purpose physical machine Asked after, determine rule from each physics managed based on default purpose physical machine by the management server Determined in machine.
  5. 5. according to the method for claim 4, it is characterised in that judge when meeting at least one of the situation of being exemplified below Meet the default transition condition:
    (1) the virtual machine quantity created in the source physical machine is more than default virtual machine quantity;
    (2) the source physical machine failure;
    (3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the source physical machine.
  6. 6. according to the method for claim 4, it is characterised in that it is true that the management server is based on default purpose physical machine Establish rules and then determined from each physical machine managed, including:
    The management server according to the current available resources of each physical machine in addition to the source physical machine managed and/ Or central processor CPU utilization rate determines purpose physical machine.
  7. 7. according to the method described in claim any one of 1-3, it is characterised in that described to receive what the source physical machine was transmitted String of binary characters corresponding to the system volume of source, including:
    Receive binary word corresponding to the source system volume that the source physical machine calls the physical layer interface of virtual machine technology to be transmitted Symbol string.
  8. 8. according to the method described in claim any one of 1-3, it is characterised in that described with the purpose system volume and the mesh Book based on create purpose virtual machine, after the migration for completing virtual machine to be migrated, in addition to:
    Start the purpose virtual machine created in the purpose physical machine;
    After the purpose virtual machine successfully starts up, sent to the source physical machine for showing that the purpose virtual machine has succeeded The signal of startup, so that the source physical machine receives the virtual machine to be migrated deleted after the signal in the source physical machine.
  9. A kind of 9. virtual machine (vm) migration device, it is characterised in that applied to migrated needed for virtual machine to purpose physical machine, the dress Put including:
    Request receiving module, the blank coil request to create for source data volume sent for receiving source physical machine;
    Blank coil creation module, for after the request receiving module receives the blank coil request to create, in the purpose thing Purpose data blank coil is created in reason machine;
    Book generation module, for receiving the backup data file of the source physical machine transmission, and the data backup is literary Part recovers into the purpose data blank coil, obtains the purpose book with valid data;Wherein, the backup data file The file that incrementally data backup mode generates, and the backup data file are rolled up to the source data for the source physical machine In be stored with source data volume and write the target location of data and the valid data that the target location is current;
    System volume generation module, string of binary characters corresponding to the source system volume transmitted for receiving the source physical machine, and Purpose system volume is generated in the purpose physical machine;Wherein, string of binary characters corresponding to the purpose system volume with it is described String of binary characters corresponding to the system volume of source is consistent;
    Virtual machine (vm) migration module, for creating purpose virtual machine based on the purpose system volume and the purpose book, Complete the migration of virtual machine to be migrated.
  10. 10. device according to claim 9, it is characterised in that carry the source data in the blank coil request to create Roll up the size of the data volume for the string of binary characters that can be represented;
    Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not less than the sky The data volume for the string of binary characters that entrained source data volume can represent in volume request to create.
  11. 11. device according to claim 9, it is characterised in that also include:
    Signal feedback module, for after the completion of purpose data blank coil establishment, purpose data to be sent to the source physical machine The feedback signal that blank coil has created;
    Correspondingly, the backup data file source physical machine is transmitted after the feedback signal is received.
  12. 12. according to the device described in claim any one of 9-11, it is characterised in that the purpose physical machine is, in the source Virtual machine in physical machine meets default transition condition and the source physical machine sends to management server and obtains purpose physics After being asked of machine, determine rule from each thing managed based on default purpose physical machine by the management server Determined in reason machine.
  13. 13. device according to claim 12, it is characterised in that sentence when meeting at least one of the situation of being exemplified below Surely the default transition condition is met:
    (1) the virtual machine quantity created in the source physical machine is more than default virtual machine quantity;
    (2) the source physical machine failure;
    (3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the source physical machine.
  14. 14. device according to claim 12, it is characterised in that the management server is based on default purpose physical machine It is determined that rule is determined from each physical machine managed, including:
    The management server according to the current available resources of each physical machine in addition to the source physical machine managed and/ Or central processor CPU utilization rate determines purpose physical machine.
  15. 15. according to the device described in claim any one of 9-11, it is characterised in that the system volume generation module, it is specific to use In:
    Receive binary word corresponding to the source system volume that the source physical machine calls the physical layer interface of virtual machine technology to be transmitted Symbol string, and purpose system volume is generated in the purpose physical machine.
  16. 16. according to the device described in claim any one of 9-11, it is characterised in that also include:
    Virtual machine starting module, for after the migration of virtual machine (vm) migration module completion virtual machine to be migrated, starting institute State the purpose virtual machine created in purpose physical machine;
    Virtual machine removing module, for after the purpose virtual machine successfully starts up, being sent to the source physical machine for showing The signal that the purpose virtual machine has successfully started up, the source physical machine is deleted after receiving the signal so as to the source physical machine In the virtual machine to be migrated.
  17. A kind of 17. virtual machine (vm) migration system, it is characterised in that including:Source physical machine where virtual machine to be migrated and described treat Migration virtual machine needed for migrate to purpose physical machine;Wherein,
    The source physical machine, for sending the blank coil request to create for source data volume to the purpose physical machine;To the mesh Physical machine transmission backup data file;And to string of binary characters corresponding to the purpose physical machine transmission sources system volume;
    The backup data file is the source physical machine to the source data volume text that incrementally data backup mode generates Part, and be stored with the backup data file in the source data volume and write the target location of data and the target location Current valid data;
    The purpose physical machine, the blank coil request to create sent for receiving the source physical machine, is receiving the sky After rolling up request to create, purpose data blank coil is created in the purpose physical machine;The data for receiving the source physical machine transmission are standby Part file, and the backup data file is recovered into the purpose data blank coil, obtain the purpose number with valid data According to volume;String of binary characters corresponding to the source system volume that the source physical machine is transmitted is received, and in the purpose physical machine Generate purpose system volume;Purpose virtual machine is created based on the purpose system volume and the purpose book, completes to wait to move Move the migration of virtual machine;
    Wherein, string of binary characters corresponding to the purpose system volume is equal to binary-coded character corresponding with the source system volume String is consistent.
  18. 18. system according to claim 17, it is characterised in that carry the source data in the blank coil request to create Roll up the size of the data volume for the string of binary characters that can be represented;
    Wherein, the data volume for the string of binary characters that the purpose data blank coil created can represent is not less than the sky The data volume for the string of binary characters that entrained source data volume can represent in volume request to create.
  19. 19. system according to claim 17, it is characterised in that the purpose physical machine is additionally operable in the purpose data After the completion of blank coil creates, the feedback signal that has created of purpose data blank coil is sent to the source physical machine;
    Correspondingly, the backup data file source physical machine is transmitted after the feedback signal is received.
  20. 20. according to the system described in claim any one of 17-19, it is characterised in that also include:
    Management server, for managing more physical machines;Virtual machine in the source physical machine meets default transition condition When, being asked for the acquisition purpose physical machine that the source physical machine is sent is received, and after described asked is received, base Determine that rule determines that a physical machine is the purpose physics from each physical machine managed in default purpose physical machine Machine.
  21. 21. system according to claim 20, it is characterised in that sentence when meeting at least one of the situation of being exemplified below Surely the default transition condition is met:
    (1) the virtual machine quantity created in the source physical machine is more than default virtual machine quantity;
    (2) the source physical machine failure;
    (3) at least two virtual machine creating established for virtual machine High Availabitity purpose is in the source physical machine.
  22. 22. system according to claim 20, it is characterised in that the management server, be specifically used for:
    According to the current available resources of each physical machine in addition to the source physical machine managed and/or central processing unit CPU usage determines purpose physical machine.
  23. 23. according to the system described in claim any one of 17-19, it is characterised in that the purpose physical machine, be specifically used for:
    Receive binary word corresponding to the source system volume that the source physical machine calls the physical layer interface of virtual machine technology to be transmitted Symbol string.
  24. 24. according to the system described in claim any one of 17-19, it is characterised in that
    The purpose physical machine, it is additionally operable to after the migration of virtual machine to be migrated is completed, starts institute in the purpose physical machine The purpose virtual machine of establishment;After the purpose virtual machine successfully starts up, sent to the source physical machine for showing the mesh The signal that has successfully started up of virtual machine;
    The source physical machine, be additionally operable to receive it is described be used to showing the signal that the purpose virtual machine has successfully started up after, Delete the virtual machine to be migrated in the source physical machine.
CN201610737726.2A 2016-08-26 2016-08-26 Virtual machine migration method, device and system Active CN107783826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610737726.2A CN107783826B (en) 2016-08-26 2016-08-26 Virtual machine migration method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610737726.2A CN107783826B (en) 2016-08-26 2016-08-26 Virtual machine migration method, device and system

Publications (2)

Publication Number Publication Date
CN107783826A true CN107783826A (en) 2018-03-09
CN107783826B CN107783826B (en) 2021-07-09

Family

ID=61440225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610737726.2A Active CN107783826B (en) 2016-08-26 2016-08-26 Virtual machine migration method, device and system

Country Status (1)

Country Link
CN (1) CN107783826B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445908A (en) * 2018-10-30 2019-03-08 张家口浩扬科技有限公司 A kind of virtual machine backup method and system
CN112596948A (en) * 2020-12-21 2021-04-02 深圳市科力锐科技有限公司 Database cluster data backup method, device, equipment and storage medium
CN113051026A (en) * 2019-12-27 2021-06-29 中移(苏州)软件技术有限公司 Virtual machine creating method and device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681913A (en) * 2011-12-21 2012-09-19 中兴通讯股份有限公司 Method and device for realizing live migration along virtual machines
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
US20140280547A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Virtual Machine Mobility Using OpenFlow
CN104536816A (en) * 2014-12-17 2015-04-22 中电科华云信息技术有限公司 Method for improving migration efficiency of virtual machine
CN104750554A (en) * 2013-12-31 2015-07-01 中国移动通信集团公司 Inter-virtual machine data migration method and device
US20150212948A1 (en) * 2014-01-28 2015-07-30 Red Hat Israel, Ltd. Lazy memory transformation in virtual machine live migration
CN105117274A (en) * 2015-09-16 2015-12-02 北京百度网讯科技有限公司 Method and device for transferring virtual machines
CN105138394A (en) * 2015-09-21 2015-12-09 上海爱数软件有限公司 Method for thermally migrating K virtual machine (KVM) and system
CN105700945A (en) * 2016-01-12 2016-06-22 中南大学 Clean room environment-based safe virtual machine migration method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681913A (en) * 2011-12-21 2012-09-19 中兴通讯股份有限公司 Method and device for realizing live migration along virtual machines
CN102724277A (en) * 2012-05-04 2012-10-10 华为技术有限公司 Virtual machine thermomigration method, virtual machine arrangement method, server and cluster system
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
US20140280547A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Virtual Machine Mobility Using OpenFlow
CN104750554A (en) * 2013-12-31 2015-07-01 中国移动通信集团公司 Inter-virtual machine data migration method and device
US20150212948A1 (en) * 2014-01-28 2015-07-30 Red Hat Israel, Ltd. Lazy memory transformation in virtual machine live migration
CN104536816A (en) * 2014-12-17 2015-04-22 中电科华云信息技术有限公司 Method for improving migration efficiency of virtual machine
CN105117274A (en) * 2015-09-16 2015-12-02 北京百度网讯科技有限公司 Method and device for transferring virtual machines
CN105138394A (en) * 2015-09-21 2015-12-09 上海爱数软件有限公司 Method for thermally migrating K virtual machine (KVM) and system
CN105700945A (en) * 2016-01-12 2016-06-22 中南大学 Clean room environment-based safe virtual machine migration method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
国家食品安全风险评估中心: "《食品安全风险监测与信息化体系建设》", 31 October 2015 *
李鸿健: ""云数据中心高能效的虚拟机迁移整合算法研究"", 《电信科学》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445908A (en) * 2018-10-30 2019-03-08 张家口浩扬科技有限公司 A kind of virtual machine backup method and system
CN113051026A (en) * 2019-12-27 2021-06-29 中移(苏州)软件技术有限公司 Virtual machine creating method and device and storage medium
CN113051026B (en) * 2019-12-27 2022-12-13 中移(苏州)软件技术有限公司 Virtual machine creating method and device and storage medium
CN112596948A (en) * 2020-12-21 2021-04-02 深圳市科力锐科技有限公司 Database cluster data backup method, device, equipment and storage medium
CN112596948B (en) * 2020-12-21 2024-04-02 深圳市科力锐科技有限公司 Database cluster data backup method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107783826B (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN103970585B (en) Create the method and device of virtual machine
CN104965757B (en) Method, virtual machine (vm) migration managing device and the system of live migration of virtual machine
CN101086714B (en) System and method for remote mirroring operation
CN100530124C (en) System and method for relocating running applications to topologically remotely located computing systems
CN1752939B (en) Method and system for synthetic backup and restore
CN104461744A (en) Resource allocation method and device
US10459643B2 (en) Method and apparatus for storage system
CN106899648A (en) A kind of data processing method and equipment
CN102142006A (en) File processing method and device of distributed file system
CN106569738A (en) Method and apparatus for deleting cascading snapshot
CN103310460A (en) Image characteristic extraction method and system
CN111666266A (en) Data migration method and related equipment
CN107783826A (en) A kind of virtual machine migration method, apparatus and system
CN112328365A (en) Virtual machine migration method, device, equipment and storage medium
CN110704161A (en) Virtual machine creation method and device and computer equipment
CN104598293B (en) A kind of method and apparatus of online snapshot
CN106569872A (en) Method for shortening virtual machine snapshot chain
CN111143323B (en) MPP database management method, device and system
CN107015876A (en) A kind of service request processing method and device
CN111090399A (en) Online migration method, device, equipment and medium for disk data
CN110321386A (en) Setting, data reconstruction method and the system of data synchronous architecture
US20140040574A1 (en) Resiliency with a destination volume in a replication environment
CN107402839A (en) A kind of method and system of Backup Data
CN103095759A (en) Resource environment recovering method and equipment
CN111078119A (en) Data reconstruction method, system, device and computer readable storage medium

Legal Events

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