CN110515697A - Virtual machine migration method and device, storage medium and computer equipment - Google Patents
Virtual machine migration method and device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN110515697A CN110515697A CN201910757713.5A CN201910757713A CN110515697A CN 110515697 A CN110515697 A CN 110515697A CN 201910757713 A CN201910757713 A CN 201910757713A CN 110515697 A CN110515697 A CN 110515697A
- Authority
- CN
- China
- Prior art keywords
- physical machine
- migration
- virtual machine
- machine
- disk
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005012 migration Effects 0.000 title claims abstract description 153
- 238000013508 migration Methods 0.000 title claims abstract description 153
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004891 communication Methods 0.000 claims abstract description 17
- 238000013507 mapping Methods 0.000 claims description 27
- 230000005540 biological transmission Effects 0.000 claims description 19
- 238000005516 engineering process Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000009434 installation Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008676 import Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 239000011800 void material Substances 0.000 description 3
- KKIMDKMETPPURN-UHFFFAOYSA-N 1-(3-(trifluoromethyl)phenyl)piperazine Chemical compound FC(F)(F)C1=CC=CC(N2CCNCC2)=C1 KKIMDKMETPPURN-UHFFFAOYSA-N 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000009790 rate-determining step (RDS) Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a virtual machine migration method, a virtual machine migration device, a storage medium and computer equipment, which establish communication connection with a migration server through a physical machine, the physical machine maps the disk of the physical machine to a migration destination device, the physical machine sends device hardware information to the migration server, the migration server creates a first virtual machine in the migration destination device according to the device hardware information, the physical machine sends the data in the disk to the first virtual machine in the migration destination device, when the business originally operated in the physical machine needs to be migrated to the virtual machine, the machine can automatically complete the migration of the business without human participation, thereby saving the labor and time costs, meanwhile, the service can be quickly put into operation again, and the loss caused by service interruption is greatly reduced.
Description
Technical field
The present invention relates to technical field of virtualization more particularly to a kind of virtual machine migration method, device, storage medium and meters
Calculate machine equipment.
Background technique
With the development of virtualization technology, virtual machine replaces physical machine as the running environment of business and has become trend.
Virtualization technology is a kind of resource management techniques, can integrate in physical machine various actual resources (such as server,
Memory and storage etc.), actual resource is dynamically distributed to the technology and is created that in the virtual machine come, to improve to actual resource
Effectively management.Enterprise can be used virtualization technology and physical machine be configured to virtual machine, and by script operation in physical machine
Business migration is runed into virtual machine.
But the prior art needs artificial virtual during by the business migration in physical machine to virtual machine
Business is redeployed on machine, this needs to consume a large amount of human resources and time cost, leads to the prolonged stoppage of service operation.
Summary of the invention
In view of the above problems, the present invention provides a kind of void for overcoming the above problem or at least being partially solved the above problem
Quasi- machine moving method, device, storage medium and computer equipment, technical solution are as follows:
A kind of virtual machine migration method, which comprises
Physical machine and migration server, which are established, to be communicated to connect;
The physical machine is by the Disk Mapping of the physical machine into move target equipment;
Device hardware information is sent to the migration server by the physical machine;
The migration server creates the first virtual machine in the move target equipment according to the device hardware information;
The physical machine sends the data in the disk to first virtual machine in the move target equipment
In.
Optionally, the physical machine and migration server, which are established, communicates to connect, comprising:
The physical machine loads Pre-boot Execution Environment PXE during startup, by the PXE from the migration service
Device obtains temporary ip address;
The temporary ip address is loaded into the memory of the physical machine by the physical machine, passes through the temporary ip address
It establishes and communicates to connect with the migration server.
It is optionally, described that temporary ip address is obtained from the migration server by the PXE, comprising:
The physical machine sends the information of application temporary ip address by the PXE, Xiang Suoshu migration server;
Protocol DHCP is arranged according to the DynamicHost in the migration server, and Xiang Suoshu physical machine is with distributing temporary IP
Location.
Optionally, described established by the temporary ip address and the migration server communicates to connect, comprising:
The physical machine loads migration mirror image migrate-image by the temporary ip address in memory, passes through institute
The migration interface migrate-api of the migration service agent and the migration server that state migrate-image are communicated to connect.
Optionally, the physical machine is by the Disk Mapping of the physical machine into move target equipment, comprising:
The physical machine is by scsi agreement, by the Disk Mapping of the physical machine into the move target equipment.
Optionally, the device hardware information includes the information of central processor CPU, disk and memory.
Optionally, the physical machine sends the data in the disk to described first in the move target equipment
In virtual machine, comprising:
Data in the disk of the physical machine are copied to described first by qemu tool by the move target equipment
In virtual machine.
A kind of virtual machine (vm) migration device, described device include the first communication connection establishment unit, Disk Mapping unit, hardware
Information transmitting unit, virtual machine creating unit and data transmission unit, in which:
First communication connection establishment unit is established for physical machine and migration server and is communicated to connect;
The Disk Mapping unit, for the physical machine by the Disk Mapping of the physical machine to move target equipment
In;
Device hardware information is sent to the migration service for the physical machine by the hardware information transmission unit
Device;
The virtual machine creating unit, for the migration server according to the device hardware information in the migration mesh
Equipment in create the first virtual machine;
The data transmission unit sends the move target for the data in the disk for the physical machine and sets
In first virtual machine in standby.
A kind of storage medium is stored with computer executable instructions in the storage medium, and the computer is executable to be referred to
When order is loaded and executed by processor, as above virtual machine migration method described in any one of Claims 1-4 is realized.
A kind of computer equipment, including processor, memory and be stored on the memory and can be in the processor
The program of upper operation, the processor at least perform the steps of when executing program
Physical machine and migration server, which are established, to be communicated to connect;
The physical machine is by the Disk Mapping of the physical machine into move target equipment;
Device hardware information is sent to the migration server by the physical machine;
The migration server creates the first virtual machine in the move target equipment according to the device hardware information;
The physical machine sends the data in the disk to first virtual machine in the move target equipment
In.
Virtual machine migration method, device, storage medium and computer equipment disclosed by the embodiments of the present invention, certainly by machine
Data in dynamic creation virtual machine and the disk for being stored in from physical machine to virtual machine transmission, so that technical staff or user are not necessarily to people
For import data in virtual machine.When needing the business migration by script operation in physical machine into virtual machine, machine
It can be automatically performed the migration of business without artificial participation, save manpower and time cost, while can also enable business
In enough quickly putting into effect again, the loss of service disconnection bring is greatly reduced.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of flow chart for virtual machine migration method that the embodiment of the present invention proposes;
Fig. 2 is the flow chart for another virtual machine migration method that the embodiment of the present invention proposes;
Fig. 3 is a kind of schematic diagram for virtual machine (vm) migration device that the embodiment of the present invention proposes;
Fig. 4 is the schematic diagram for another virtual machine (vm) migration device that the embodiment of the present invention proposes.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
As shown in Figure 1, present embodiments providing a kind of virtual machine migration method, the described method comprises the following steps:
S100, physical machine and migration server, which are established, to be communicated to connect;
Wherein, migration server is the server that can establish virtual management platform, and the present invention can be managed in virtualization
Move target equipment in platform in rate-determining steps S300 creates virtual machine, also, the present invention can also be in virtual management
The operation such as configured, run, managed and deleted to the virtual machine of creation on platform.
Wherein, the server for establishing virtual management platform can be one, be also possible to be made of two or more
Server cluster, which is not limited by the present invention.
S200, the physical machine are by the Disk Mapping of the physical machine into move target equipment;
It should be noted that the virtual management platform in migration server can control the creation of move target equipment virtually
Machine, i.e. virtual machine can virtually be obtained by move target equipment by virtualization technology.
Wherein, the migration server in move target equipment and step S100 can be same equipment, i.e. migration server
Itself can be invented into virtual machine by virtual management platform;Certainly, the two is also possible to two individual equipment, this hair
It is bright not limit this.
Optionally, step S200 can be with specifically: the physical machine is reflected the disk of the physical machine by scsi agreement
It is mapped in the move target equipment.
It should be noted that the disk of physical machine can be mounted in migration server by physical machine by scsi agreement.
Wherein, after the Disk Mapping of physical machine is into move target equipment, the present invention can lead in move target equipment
It crosses the mapping and checks the various data stored in physical machine disk.In practical applications, the present invention can be looked by the mapping
See the various data of the business migrated about present invention needs stored in physical machine disk.
Device hardware information is sent to the migration server by S300, the physical machine;
Wherein, device hardware information may include forming the information of each hardware of physical machine, it is of course also possible to only include
The device hardware information of migration server required acquisition when creating virtual machine.
Optionally, the device hardware information includes central processing unit (CPU, central processing unit), magnetic
The information of disk and memory.
It should be noted that physical machine can also send out the information such as application program used in operating system and service operation
It send to migration server.
S400, the migration server create the first void according to the device hardware information in the move target equipment
Quasi- machine;
Wherein, the quantity of the virtual machine created in move target equipment can be one, two or more, the present invention couple
This is without limitation.
It should be noted that the upper limit of the summation of the hardware resource for each software operation of support that virtual machine can configure determines
In the move target equipment for creating the virtual machine, the configuration of the hardware resource of virtual machine is not above move target equipment.Such as:
The disk storage of certain move target equipment is 100G, this move target equipment fictionalizes two virtual machines, then this two
The summation of the disk storage of virtual machine is no more than 100G.
In practical applications, the present invention, can when by business migration of the former normal operation in physical machine into virtual machine
To configure according to the hardware resource of physical machine, operating system and running environment etc., the virtual machine of configuration consistency is created, to ensure to move
The business of shifting can in the virtual machine that creates of the present invention normal operation.Certainly, ensuring that business can be just after migrating to virtual machine
Often under the premise of operation, the configurations such as the hardware resource of virtual machine and operating system can be also possible to inconsistent with physical machine.
S500, the physical machine send the data in the disk to first void in the move target equipment
In quasi- machine.
Wherein, the data of transmission can be the present invention and need to migrate the data into virtual machine.
Optionally, step S500 can be with specifically: the move target equipment is by qemu tool, by the physical machine
Data in disk copy in first virtual machine
Wherein, move target equipment can complete number by qemu-imgconvert (service in qemu tool)
According to duplication.
It should be noted that the ginseng that above step can be quickly executed by machine without technical staff or user
With imported data in virtual machine without artificial.
In practical applications, the various data in disk about the business to be migrated can be sent to virtual machine by the present invention
In, make virtual machine obtain business various data (may include the application program of service operation, the configuration parameter of application program and
History operation data etc.) so that business can be operated normally directly in virtual machine.Also, the present invention does not need technology
Personnel or user redeploy business in virtual machine, save manpower and time cost, while also business can be enabled fast
Speed put into effect again in, greatly reduce service disconnection bring loss.
The virtual machine migration method that the present embodiment proposes automatically creates virtual machine by machine and sends storage to virtual machine
Data in the disk of physical machine, so that technical staff or user import data in virtual machine without artificial.It is needing
When by business migration of the script operation in physical machine into virtual machine, machine can be automatically performed business without artificial participation
Migration, save manpower and time cost, while can also enable in business quickly puts into effect again, subtract significantly
Small service disconnection bring loss.
Based on step shown in Fig. 1, the present embodiment proposes another virtual machine migration method, as shown in Fig. 2, step S100
Step S101 and S102 can be specifically included.
S101, the physical machine load Pre-boot Execution Environment (PXE, preboot execute during startup
Environment), temporary ip address is obtained from the migration server by the PXE;
It is optionally, described that temporary ip address is obtained from the migration server by the PXE, comprising:
The physical machine sends the information of application temporary ip address by the PXE, Xiang Suoshu migration server;
Agreement (DHCP, Dynamic Host is arranged according to the DynamicHost in the migration server
ConfigurationProtocol), Xiang Suoshu physical machine distributes temporary ip address.
Specifically, before physical machine obtains temporary ip address at the migration server from installation DHCP, it can be wide in advance
Broadcast a DHCP request, the migration server of DHCP service be installed after receiving DHCP request, can by the network information of configuration,
Such as IP address, subnet mask, gateway address and IP address lease period are sent to physical machine as DHCP response.
Specifically, physical machine can obtain temporary IP from migration server after reaching temporary ip address distributorship agreement
Address.
It should be noted that physical machine can temporary ip address based on acquisition and Simple File Transfer Protocol (TFTP,
Trivial File TransferProtocol) from installation DHCP migration server end load migration mirror image.
The temporary ip address is loaded into the memory of the physical machine by S102, the physical machine, by described interim
IP address and the migration server, which are established, to be communicated to connect.
Optionally, described established by the temporary ip address and the migration server communicates to connect, comprising:
The physical machine loads migration mirror image migrate-image by the temporary ip address in memory, passes through institute
The migration interface migrate-api of the migration service agent and the migration server that state migrate-image are communicated to connect.
It should be noted that physical machine can load migration mirror image migrate- in memory by temporary ip address
Image can pass through the migration service agent and migration service in migrate-image after migrate-image starting
Device is communicated.Later, migration server issues the task of Data Migration by calling migrate-api, completes physical machine
To the Data Migration of move target equipment.)
The virtual machine migration method that the present embodiment proposes, by the application of the tools such as PXE, DHCP and migrate-image,
The communication connection of physical machine and migration server is realized, to prepare the subsequent execution by Data Migration to virtual machine.
Corresponding with method shown in Fig. 1, the present embodiment proposes a kind of virtual machine (vm) migration device, as shown in figure 3, described device
Described device includes the first communication connection establishment unit 100, Disk Mapping unit 200, hardware information transmission unit 300, virtual
Machine creating unit 400 and data transmission unit 500, in which:
First communication connection establishment unit 100 is established for physical machine and migration server and is communicated to connect;
Wherein, migration server is the server that can establish virtual management platform, and the present invention can be managed in virtualization
The move target equipment controlled in hardware information transmission unit 300 in platform creates virtual machine, also, the present invention can also be
The operation such as configured, run, managed and deleted to the virtual machine of creation on virtual management platform.
Wherein, the server for establishing virtual management platform can be one, be also possible to be made of two or more
Server cluster, which is not limited by the present invention.
The Disk Mapping unit 200 sets the Disk Mapping of the physical machine to move target for the physical machine
In standby;
It should be noted that the virtual management platform in migration server can control the creation of move target equipment virtually
Machine, i.e. virtual machine can virtually be obtained by move target equipment by virtualization technology.
Wherein, move target equipment can be same set with the migration server in the first communication connection establishment unit 100
Standby, i.e., itself can be invented virtual machine by virtual management platform by migration server;Certainly, the two is also possible to two
Individual equipment, which is not limited by the present invention.
Optionally, walking the Disk Mapping unit 200 can be specifically for the physical machine by scsi agreement, will be described
The Disk Mapping of physical machine is into the move target equipment.It should be noted that physical machine can be by scsi agreement by object
The disk of reason machine is mounted in migration server.
Wherein, after the Disk Mapping of physical machine is into move target equipment, the present invention can lead in move target equipment
It crosses the mapping and checks the various data stored in physical machine disk.In practical applications, the present invention can be looked by the mapping
See the various data of the business migrated about present invention needs stored in physical machine disk.
Device hardware information is sent to the migration for the physical machine and taken by the hardware information transmission unit 300
Business device;
Wherein, device hardware information may include forming the information of each hardware of physical machine, it is of course also possible to only include
The device hardware information of migration server required acquisition when creating virtual machine.
Optionally, the device hardware information includes the information of central processor CPU, disk and memory.
It should be noted that physical machine can also send out the information such as application program used in operating system and service operation
It send to migration server.
The virtual machine creating unit 400 is moved according to the device hardware information described for the migration server
It moves in purpose equipment and creates the first virtual machine;
Wherein, the quantity of the virtual machine created in move target equipment can be one, two or more, the present invention couple
This is without limitation.
It should be noted that the upper limit of the summation of the hardware resource for each software operation of support that virtual machine can configure determines
In the move target equipment for creating the virtual machine, the configuration of the hardware resource of virtual machine is not above move target equipment.Such as:
The disk storage of certain move target equipment is 100G, this move target equipment fictionalizes two virtual machines, then this two
The summation of the disk storage of virtual machine is no more than 100G.
In practical applications, the present invention, can when by business migration of the former normal operation in physical machine into virtual machine
To configure according to the hardware resource of physical machine, operating system and running environment etc., the virtual machine of configuration consistency is created, to ensure to move
The business of shifting can in the virtual machine that creates of the present invention normal operation.Certainly, ensuring that business can be just after migrating to virtual machine
Often under the premise of operation, the configurations such as the hardware resource of virtual machine and operating system can be also possible to inconsistent with physical machine.
The data transmission unit 500 sends the migration mesh for the data in the disk for the physical machine
Equipment in first virtual machine in.
Wherein, the data of transmission can be the present invention and need to migrate the data into virtual machine.
Optionally, the data transmission unit 500 can be specifically for the move target equipment by qemu tool, will
Data in the disk of the physical machine copy in first virtual machine
Wherein, move target equipment can complete number by qemu-img convert (service in qemu tool)
According to duplication.
It should be noted that the ginseng that above procedure can be quickly executed by machine without technical staff or user
With imported data in virtual machine without artificial.
In practical applications, the various data in disk about the business to be migrated can be sent to virtual machine by the present invention
In, make virtual machine obtain business various data (may include the application program of service operation, the configuration parameter of application program and
History operation data etc.) so that business can be operated normally directly in virtual machine.Also, the present invention does not need technology
Personnel or user redeploy business in virtual machine, save manpower and time cost, while also business can be enabled fast
Speed put into effect again in, greatly reduce service disconnection bring loss.
The virtual machine (vm) migration device that the present embodiment proposes automatically creates virtual machine by machine and sends storage to virtual machine
Data in the disk of physical machine, so that technical staff or user import data in virtual machine without artificial.It is needing
When by business migration of the script operation in physical machine into virtual machine, machine can be automatically performed business without artificial participation
Migration, save manpower and time cost, while can also enable in business quickly puts into effect again, subtract significantly
Small service disconnection bring loss.
Based on shown in Fig. 3, the present embodiment proposes another middle virtual machine (vm) migration device, as shown in figure 4, first communication
Connection establishment unit 100 can specifically include temporary ip address obtaining unit 101 and the second communication connection establishment unit 102.
The temporary ip address obtaining unit 101 loads pretrigger for the physical machine during startup and executes ring
Border (PXE, preboot execute environment), by the PXE from the migration server with obtaining temporary IP
Location;
Optionally, the temporary ip address obtaining unit 101, can be specifically used for:
The physical machine sends the information of application temporary ip address by the PXE, Xiang Suoshu migration server;It is described to move
It moves server and agreement (DHCP, Dynamic Host ConfigurationProtocol) is arranged according to the DynamicHost, to
The physical machine distributes temporary ip address.
Specifically, before physical machine obtains temporary ip address at the migration server from installation DHCP, it can be wide in advance
Broadcast a DHCP request, the migration server of DHCP service be installed after receiving DHCP request, can by the network information of configuration,
Such as IP address, subnet mask, gateway address and IP address lease period are sent to physical machine as DHCP response.
Specifically, physical machine can obtain temporary IP from migration server after reaching temporary ip address distributorship agreement
Address.
It should be noted that physical machine can temporary ip address based on acquisition and Simple File Transfer Protocol (TFTP,
Trivial File TransferProtocol) from installation DHCP migration server end load migration mirror image.
The temporary ip address is loaded into described by second communication connection establishment unit 102 for the physical machine
In the memory of physical machine, is established and communicated to connect by the temporary ip address and the migration server.
Optionally, second communication connection establishment unit 102, can be specifically used for:
The physical machine loads migration mirror image migrate-image by the temporary ip address in memory, passes through institute
The migration interface migrate-api of the migration service agent and the migration server that state migrate-image are communicated to connect.
It should be noted that physical machine can load migration mirror image migrate- in memory by temporary ip address
Image can pass through the migration service agent and migration service in migrate-image after migrate-image starting
Device is communicated.Later, migration server issues the task of Data Migration by calling migrate-api, completes physical machine
To the Data Migration of move target equipment.)
The virtual machine (vm) migration device that the present embodiment proposes, by the application of the tools such as PXE, DHCP and migrate-image,
The communication connection of physical machine and migration server is realized, to prepare the subsequent execution by Data Migration to virtual machine.
The virtual machine (vm) migration device includes processor and memory, above-mentioned first communication connection establishment unit 100, disk
Map unit 200, hardware information transmission unit 300, virtual machine creating unit 400 and data transmission unit 500 etc. are used as journey
Sequence unit stores in memory, executes above procedure unit stored in memory by processor to realize corresponding function
Energy.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, virtual machine (vm) migration is completed by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The existing virtual machine migration method.
The embodiment of the invention provides a kind of processor, the processor is for runing program, wherein described program operation
Virtual machine migration method described in Shi Zhihang.
The embodiment of the invention provides a kind of computer equipment, equipment includes processor, memory and is stored in memory
Program that is upper and can runing on a processor, processor perform the steps of when executing program
Physical machine and migration server, which are established, to be communicated to connect;
The physical machine is by the Disk Mapping of the physical machine into move target equipment;
Device hardware information is sent to the migration server by the physical machine;
The migration server creates the first virtual machine in the move target equipment according to the device hardware information;
The physical machine sends the data in the disk to first virtual machine in the move target equipment
In.
It should be understood by those skilled in the art that, embodiments herein can provide as method, apparatus, equipment or computer
Program product.Therefore, in terms of the application can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, it wherein includes the meter of computer usable program code that the application, which can be used in one or more,
The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.
The application is referring to the method, equipment (device or system) and computer program product according to the embodiment of the present application
Flowchart and/or the block diagram describe.It should be understood that can be realized by computer program instructions in flowchart and/or the block diagram
The combination of process and/or box in each flow and/or block and flowchart and/or the block diagram.It can provide these calculating
Processing of the machine program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
Device is to generate a machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute
For realizing the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram
Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitorymedia), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of virtual machine migration method, which is characterized in that the described method includes:
Physical machine and migration server, which are established, to be communicated to connect;
The physical machine is by the Disk Mapping of the physical machine into move target equipment;
Device hardware information is sent to the migration server by the physical machine;
The migration server creates the first virtual machine in the move target equipment according to the device hardware information;
The physical machine sends the data in the disk in first virtual machine in the move target equipment.
2. it is communicated to connect the method according to claim 1, wherein the physical machine is established with migration server,
Include:
The physical machine loads Pre-boot Execution Environment PXE during startup, is obtained by the PXE from the migration server
Obtain temporary ip address;
The temporary ip address is loaded into the memory of the physical machine by the physical machine, passes through the temporary ip address and institute
It states migration server and establishes communication connection.
3. according to the method described in claim 2, it is characterized in that, described obtained by the PXE from the migration server
Temporary ip address, comprising:
The physical machine sends the information of application temporary ip address by the PXE, Xiang Suoshu migration server;
Protocol DHCP is arranged according to the DynamicHost in the migration server, and Xiang Suoshu physical machine distributes temporary ip address.
4. according to the method described in claim 2, it is characterized in that, described pass through the temporary ip address and the migration service
Device establishes communication connection, comprising:
The physical machine loads migration mirror image migrate-image by the temporary ip address in memory, by described
The migration service agent of migrate-image and the migration interface migrate-api of the migration server are communicated to connect.
5. the method according to claim 1, wherein the physical machine is by the Disk Mapping of the physical machine to moving
It moves in purpose equipment, comprising:
The physical machine is by scsi agreement, by the Disk Mapping of the physical machine into the move target equipment.
6. the method according to claim 1, wherein the device hardware information includes central processor CPU, magnetic
The information of disk and memory.
7. the method according to claim 1, wherein the data in the disk are sent institute by the physical machine
It states in first virtual machine in move target equipment, comprising:
The move target equipment copies to described first virtually by qemu tool, by the data in the disk of the physical machine
In machine.
8. a kind of virtual machine (vm) migration device, which is characterized in that described device includes the first communication connection establishment unit, Disk Mapping
Unit, hardware information transmission unit, virtual machine creating unit and data transmission unit, in which:
First communication connection establishment unit is established for physical machine and migration server and is communicated to connect;
The Disk Mapping unit, for the physical machine by the Disk Mapping of the physical machine into move target equipment;
Device hardware information is sent to the migration server for the physical machine by the hardware information transmission unit;
The virtual machine creating unit is set according to the device hardware information in the move target for the migration server
Standby the first virtual machine of middle creation;
The data transmission unit sends the data in the disk in the move target equipment for the physical machine
First virtual machine in.
9. a kind of storage medium, which is characterized in that be stored with computer executable instructions, the computer in the storage medium
When executable instruction is loaded and executed by processor, as above virtual machine (vm) migration side described in any one of Claims 1-4 is realized
Method.
10. a kind of computer equipment, which is characterized in that including processor, memory and be stored on the memory and can be
The program runed on the processor, the processor at least perform the steps of when executing program
Physical machine and migration server, which are established, to be communicated to connect;
The physical machine is by the Disk Mapping of the physical machine into move target equipment;
Device hardware information is sent to the migration server by the physical machine;
The migration server creates the first virtual machine in the move target equipment according to the device hardware information;
The physical machine sends the data in the disk in first virtual machine in the move target equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910757713.5A CN110515697A (en) | 2019-08-16 | 2019-08-16 | Virtual machine migration method and device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910757713.5A CN110515697A (en) | 2019-08-16 | 2019-08-16 | Virtual machine migration method and device, storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110515697A true CN110515697A (en) | 2019-11-29 |
Family
ID=68625427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910757713.5A Pending CN110515697A (en) | 2019-08-16 | 2019-08-16 | Virtual machine migration method and device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110515697A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113672333A (en) * | 2020-05-15 | 2021-11-19 | 顺丰科技有限公司 | Virtual machine hot cloning method, device, system, computer equipment and storage medium |
CN113821304A (en) * | 2021-09-07 | 2021-12-21 | 北京金山云网络技术有限公司 | Online migration information determination method, device, equipment and storage medium |
WO2023078129A1 (en) * | 2021-11-03 | 2023-05-11 | 阿里巴巴(中国)有限公司 | Hardware performance acquisition method, and device, system and storage medium |
CN117290059A (en) * | 2023-11-27 | 2023-12-26 | 四川中电启明星信息技术有限公司 | Cross-chip architecture linux virtual machine transfer method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101443748A (en) * | 2006-05-08 | 2009-05-27 | 微软公司 | Converting machines to virtual machines |
CN104243427A (en) * | 2013-06-19 | 2014-12-24 | 日电(中国)有限公司 | Virtual machine online migration method and data package transmission method and device |
US20150007177A1 (en) * | 2013-06-26 | 2015-01-01 | Fujitsu Limited | Virtual machine management method and information processing apparatus |
CN104298559A (en) * | 2014-09-30 | 2015-01-21 | 深圳市深信服电子科技有限公司 | Method and device for virtualizing physical host system |
CN107247619A (en) * | 2017-06-12 | 2017-10-13 | 上海优刻得信息科技有限公司 | Live migration of virtual machine method, device, system, storage medium and equipment |
CN107870802A (en) * | 2016-09-27 | 2018-04-03 | 阿里巴巴集团控股有限公司 | A kind of virtual machine migration method and device |
-
2019
- 2019-08-16 CN CN201910757713.5A patent/CN110515697A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101443748A (en) * | 2006-05-08 | 2009-05-27 | 微软公司 | Converting machines to virtual machines |
CN104243427A (en) * | 2013-06-19 | 2014-12-24 | 日电(中国)有限公司 | Virtual machine online migration method and data package transmission method and device |
US20150007177A1 (en) * | 2013-06-26 | 2015-01-01 | Fujitsu Limited | Virtual machine management method and information processing apparatus |
CN104298559A (en) * | 2014-09-30 | 2015-01-21 | 深圳市深信服电子科技有限公司 | Method and device for virtualizing physical host system |
CN107870802A (en) * | 2016-09-27 | 2018-04-03 | 阿里巴巴集团控股有限公司 | A kind of virtual machine migration method and device |
CN107247619A (en) * | 2017-06-12 | 2017-10-13 | 上海优刻得信息科技有限公司 | Live migration of virtual machine method, device, system, storage medium and equipment |
Non-Patent Citations (1)
Title |
---|
陈英达,等;: "基于 Cobbler 中央调度控制技术的微机服务器自动化远程批量部署研究与应用", 《自动化与仪器仪表》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113672333A (en) * | 2020-05-15 | 2021-11-19 | 顺丰科技有限公司 | Virtual machine hot cloning method, device, system, computer equipment and storage medium |
CN113672333B (en) * | 2020-05-15 | 2024-04-05 | 顺丰科技有限公司 | Virtual machine hot cloning method, device, system, computer equipment and storage medium |
CN113821304A (en) * | 2021-09-07 | 2021-12-21 | 北京金山云网络技术有限公司 | Online migration information determination method, device, equipment and storage medium |
CN113821304B (en) * | 2021-09-07 | 2024-08-23 | 北京金山云网络技术有限公司 | Online migration information determination method, device, equipment and storage medium |
WO2023078129A1 (en) * | 2021-11-03 | 2023-05-11 | 阿里巴巴(中国)有限公司 | Hardware performance acquisition method, and device, system and storage medium |
CN117290059A (en) * | 2023-11-27 | 2023-12-26 | 四川中电启明星信息技术有限公司 | Cross-chip architecture linux virtual machine transfer method and system |
CN117290059B (en) * | 2023-11-27 | 2024-03-15 | 四川中电启明星信息技术有限公司 | Cross-chip architecture linux virtual machine transfer method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110515697A (en) | Virtual machine migration method and device, storage medium and computer equipment | |
US11146620B2 (en) | Systems and methods for instantiating services on top of services | |
US9244676B2 (en) | Virtual machine based controller and upgrade mechanism | |
US9928107B1 (en) | Fast IP migration in a hybrid network environment | |
US11210132B2 (en) | Virtual machine migration in virtualization environment having different virtualization systems | |
US9405579B2 (en) | Seamless extension of local computing power | |
US11263037B2 (en) | Virtual machine deployment | |
US10728169B1 (en) | Instance upgrade migration | |
US20150012657A1 (en) | Allocation of resources in a networked computing environment based on physical location mapping | |
Gogouvitis et al. | Seamless computing in industrial systems using container orchestration | |
US9959135B2 (en) | Pattern design for heterogeneous environments | |
US11886921B2 (en) | Serverless runtime container allocation | |
KR101680702B1 (en) | System for web hosting based cloud service | |
CN103685608A (en) | Method and device for automatically configuring IP (Internet Protocol) address of security virtual machine | |
US9921878B1 (en) | Singleton coordination in an actor-based system | |
Khajehei | Role of virtualization in cloud computing | |
CN108073423A (en) | A kind of accelerator loading method, system and accelerator loading device | |
CN106293846A (en) | The upgrade method of analog processor and device | |
CN117616395A (en) | Continuous liveness and integrity of applications during migration | |
CN115964120A (en) | Dynamic scaling for workload execution | |
US11586447B2 (en) | Configuration after cluster migration | |
US20190007518A1 (en) | Method for defining network application security based on declarative properties | |
US10169841B1 (en) | Dynamic interface synchronization for virtualized graphics processing | |
US11017417B1 (en) | Using incentives to manage computing resources | |
US9798571B1 (en) | System and method for optimizing provisioning time by dynamically customizing a shared virtual machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191129 |