CN113835822A - Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device - Google Patents

Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113835822A
CN113835822A CN202010582905.XA CN202010582905A CN113835822A CN 113835822 A CN113835822 A CN 113835822A CN 202010582905 A CN202010582905 A CN 202010582905A CN 113835822 A CN113835822 A CN 113835822A
Authority
CN
China
Prior art keywords
virtual machine
cloud platform
destination
source
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
Application number
CN202010582905.XA
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202010582905.XA priority Critical patent/CN113835822A/en
Priority to PCT/CN2021/100134 priority patent/WO2021259094A1/en
Priority to KR1020237002180A priority patent/KR20230024416A/en
Priority to JP2022580056A priority patent/JP7469524B2/en
Publication of CN113835822A publication Critical patent/CN113835822A/en
Pending legal-status Critical Current

Links

Images

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/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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • 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/445Program loading or initiating
    • 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
    • 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

Abstract

The embodiment of the invention provides a method and a device for migrating a cross-cloud-platform virtual machine, a storage medium and an electronic device, wherein the method comprises the following steps: creating a migrated destination virtual machine on a destination cloud platform; and migrating file nodes to a disk storage of a target virtual machine of the target cloud platform one by one in a network copy mode according to a disk file chain structure of the source virtual machine of the source cloud platform. In the invention, the target virtual machine without the disk entity is created in the remote data center, and the disk file chain is copied in a completely symmetrical mode based on a network copying mode, so that the problems that the remote migration cannot be completed by the migration in the data center, manual intervention is required in the whole process of importing and exporting, and the consistency of the disk file chain structure cannot be maintained in the related technology are solved, the remote migration of the virtual machine across a cloud platform is realized, and the consistency of the disk file chain structure is maintained.

Description

Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the technical field of virtual machine migration, in particular to a cross-cloud-platform virtual machine migration method and device, a storage medium and an electronic device.
Background
Many enterprises often have their own cloud platform data centers in various regions to provide cloud desktops for employees in different regions to use. Sometimes, the cloud desktop is on a B place cloud platform, but the A place office is often found. This causes that the user cannot use the cloud desktop nearby, the network bandwidth may have a bottleneck, and the user experience with high quality cannot be provided.
Meanwhile, when a certain data center resource is in a bottleneck, resource scheduling is required, and the virtual machine is migrated to the data center with surplus resources. The current migration scheme can only complete the whole virtual machine migration in the same data center, and if the virtual machine migration needs to be performed in a different place, the virtual machine migration method can only be realized by exporting the virtual machine from the data center A and then importing the virtual machine to the data center cloud platform B.
Many educational institutions build their own cloud desktops, often adopt a deployment scheme that a single classroom uses a virtualization platform all-in-one machine, and are easy to deploy and maintain. The above-mentioned conventional solutions have the following drawbacks: (1) migration in the data center cannot complete remote migration, and only resource distribution among resource pools in the cloud platform can be scheduled; (2) importing and exporting need to export a virtual machine from a source data center, and then importing the exported disk image and configuration files of the virtual machine into a target virtual machine, manual intervention is needed in the whole process, and the operation is complex; (3) the import and export change the disk file chain structure of the virtual machine, and the consistency of the disk file chain structure cannot be maintained.
In view of this, it is desirable to provide a disaster recovery backup implementation scheme that can facilitate cross-cloud platform remote migration without changing the disk file chain structure of the virtual machine itself.
Disclosure of Invention
The embodiment of the invention provides a method and a device for migrating a cross-cloud-platform virtual machine, a storage medium and an electronic device, which are used for at least solving the problems that migration in a data center cannot complete remote migration, manual intervention is required in the whole process of importing and exporting, and the consistency of a disk file chain structure cannot be maintained in the related technology.
According to an embodiment of the present invention, a method for migrating a virtual machine across cloud platforms is provided, including: creating a migrated destination virtual machine on a destination cloud platform, wherein configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine of a source cloud platform, a network port group of the destination virtual machine is configured as a network port group of the destination cloud platform, and a disk repository of the destination virtual machine is configured as a disk repository of the destination cloud platform; and migrating file nodes to a disk storage of a target virtual machine of the target cloud platform one by one in a network copy mode according to a disk file chain structure of the source virtual machine of the source cloud platform.
In an exemplary embodiment, before the destination cloud platform creates the migrated destination virtual machine, the method further includes adding, through the management interface, the source virtual machine that needs to be migrated to a migration list.
Further, after adding the source virtual machine to be migrated into the migration list through the management interface, the method further includes: setting migration starting time of the source virtual machine; and when the migration time is up, triggering the migration operation of the source virtual machine.
In an exemplary embodiment, migrating file nodes one by one to a disk storage of a destination virtual machine of a destination cloud platform in a network copy manner according to a disk file chain structure of a source virtual machine of a source cloud platform, further includes: constructing a disk list to be migrated of the source virtual machine, and constructing a file list to be migrated for each disk; and selecting a host in the source cloud platform or the target cloud platform to copy and operate the disk file of the source virtual machine to a disk storage library of the virtual machine.
Further, selecting a host in the source cloud platform or the destination cloud platform to copy the disk file of the source virtual machine to a disk repository of the virtual machine includes: selecting a host of a source cloud platform to copy a disk file; sending a message to the destination cloud platform, and judging whether the destination virtual machine has a copied common node; when the common node is copying, the host of the source cloud platform waits for the common node to be copied; and when the shared node is copied, the host of the source cloud platform does not perform the copying operation of the shared node any more, and performs the copying of the next disk file node.
Further, after sending a message to the destination cloud platform and determining whether the destination virtual machine has a copied shared node, the method further includes, when the shared node is copied for the first time, sending a message to a host of the destination cloud platform to start the host of the destination cloud platform to perform network copy on the shared node.
According to another embodiment of the present invention, there is provided a virtual machine migration apparatus across cloud platforms, including: the system comprises a creating module, a migration module and a migration module, wherein the creating module is used for creating a migrated destination virtual machine on a destination cloud platform, configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine of a source cloud platform, a network port group of the destination virtual machine is configured to be a network port group of the destination cloud platform, and a disk storage library of the destination virtual machine is configured to be a disk storage library of the destination cloud platform; and the migration module is used for migrating file nodes to a disk storage library of a target virtual machine of the target cloud platform one by one in a network copy mode according to a disk file chain structure of the source virtual machine of the source cloud platform.
In one exemplary embodiment, further comprising: and the management module is used for adding the source virtual machine to be migrated into the migration list through a management interface before the destination virtual machine is created.
Further, still include: and the setting module is used for setting the migration starting time of the source virtual machine so as to trigger the migration operation of the source virtual machine when the migration time is up.
In one exemplary embodiment, the migration module further comprises: the list construction unit is used for constructing a disk list to be migrated of the source virtual machine and constructing a file list to be migrated aiming at each disk; and the execution unit is used for selecting a host in the source cloud platform or the target cloud platform to copy and operate the disk file of the source virtual machine to the disk storage library of the virtual machine.
Further, the execution unit is further configured to: selecting a host of a source cloud platform to perform disk file copying operation, sending a message to a target cloud platform, judging whether a copied shared node exists in a target virtual machine, waiting for the completion of the copying of the shared node under the condition that the shared node is copying, and not performing the copying operation of the shared node under the condition that the copying of the shared node is completed, and performing the copying of the next disk file node.
Further, the execution unit is further configured to send a message to the host of the destination cloud platform when the common node is copied for the first time, so as to start the host of the destination cloud platform to perform network copy on the common node.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the embodiment of the invention, as the target virtual machine without the disk entity is established in the remote data center, the message channel of the message component between the remote cloud platforms is opened, and the disk file chain is copied in a completely symmetrical manner based on the network copy manner of the management network, the problems that the remote migration cannot be completed by the internal migration of the data center, the manual intervention is needed in the whole process of importing and exporting, and the consistency of the disk file chain structure cannot be maintained in the related technology can be solved, and the effects of realizing the remote migration of the virtual machine across the cloud platforms and keeping the consistency of the disk file chain structure can be achieved.
Drawings
Fig. 1 is a flowchart of a virtual machine migration method across cloud platforms according to an embodiment of the present invention;
fig. 2 is a block diagram of a virtual machine migration apparatus across cloud platforms according to an embodiment of the present invention;
fig. 3 is a block diagram of a virtual machine migration apparatus across cloud platforms having a management module according to an embodiment of the present invention;
fig. 4 is a block diagram of a virtual machine migration apparatus across cloud platforms having an execution unit according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a scheme for migrating a virtual machine to a displaced cloud platform by export import according to the related art;
FIG. 6 is a schematic diagram of a virtual machine migration completed by a cross-cloud platform migration in accordance with an alternative embodiment of the present invention;
FIG. 7 is a schematic diagram of a cloud platform internal whole machine migration scheme, according to an alternative embodiment of the present invention;
FIG. 8 is a flow diagram of a method for cloud platform internal whole machine migration in accordance with an alternative embodiment of the present invention;
FIG. 9 is a schematic diagram comparing networking conditions relied upon for cloud platform internal migration and cross platform migration in accordance with an alternative embodiment of the present invention;
fig. 10 is a flowchart of a cross-cloud platform virtual machine placeshifting method according to an alternative embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In this embodiment, a method for migrating a virtual machine across a cloud platform is provided, and fig. 1 is a flowchart of the method for migrating a virtual machine across a cloud platform according to an embodiment of the present invention, where as shown in fig. 1, the process includes the following steps:
step S101, creating a migrated destination virtual machine on a destination cloud platform, wherein configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine of a source cloud platform, a network port group of the destination virtual machine is configured as a network port group of the destination cloud platform, and a disk storage library of the destination virtual machine is configured as a disk storage library of the destination cloud platform;
step S102, migrating file nodes one by one to a disk repository of a destination virtual machine of the destination cloud platform in a network copy manner according to a disk file chain structure of the source virtual machine of the source cloud platform.
Before step S101 of this embodiment, the method may further include: and adding the source virtual machine needing to be migrated into a migration list through a management interface.
In this embodiment, after adding the source virtual machine to be migrated into the migration list through the management interface, the method may further include: setting migration starting time of the source virtual machine; and when the migration time is up, triggering the migration operation of the source virtual machine.
In this embodiment, step S102 may include: constructing a disk list to be migrated of the source virtual machine, and constructing a file list to be migrated for each disk; and selecting a host in the source cloud platform or the target cloud platform to copy and operate the disk file of the source virtual machine to a disk storage library of the virtual machine.
In this embodiment, selecting the host in the source cloud platform or the destination cloud platform to copy the disk file of the source virtual machine to the disk repository of the virtual machine may include: selecting a host of a source cloud platform to copy a disk file; sending a message to the destination cloud platform, and judging whether the destination virtual machine has a copied common node; when the common node is copying, the host of the source cloud platform waits for the common node to be copied; and when the shared node is copied, the host of the source cloud platform does not perform the copying operation of the shared node any more, and performs the copying of the next disk file node.
In this embodiment, after sending the message to the destination cloud platform and determining whether the destination virtual machine has the copied shared node, when the shared node is the first copy, the method may further include sending a message to a host of the destination cloud platform to start the host of the destination cloud platform to perform network copy on the shared node.
Through the steps, the target virtual machine without the disk entity is established in the remote data center, the message channel of the message component between the remote cloud platforms is opened, the disk file chain is copied in a completely symmetrical mode based on the network copy mode of the management network, the problems that the remote migration cannot be completed in the data center, manual intervention is needed in the whole process of importing and exporting, and the consistency of the disk file chain structure cannot be maintained in the related technology are solved, and the effects of realizing the remote migration of the virtual machine across the cloud platforms and keeping the consistency of the disk file chain structure are achieved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a virtual machine migration apparatus across cloud platforms is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of which has been already made is omitted. As used hereinafter, the terms "module," "unit" may refer to a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a virtual machine migration apparatus across cloud platforms according to an embodiment of the present invention, and as shown in fig. 2, the apparatus includes a creation module 10 and a migration module 20.
The creating module 10 is configured to create a migrated destination virtual machine on a destination cloud platform, where configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine of a source cloud platform, a network port group of the destination virtual machine is configured as a network port group of the destination cloud platform, and a disk repository of the destination virtual machine is configured as a disk repository of the destination cloud platform;
the migration module 20 is configured to migrate file nodes to the disk storage of the destination virtual machine of the destination cloud platform one by one in a network copy manner according to the disk file chain structure of the source virtual machine of the source cloud platform.
Fig. 3 is a block diagram illustrating a virtual machine migration apparatus across cloud platforms having a management module according to an embodiment of the present invention, and as shown in fig. 3, the apparatus may further include a management module 30 and a setup module 40 in addition to all modules shown in fig. 2.
The management module 30 is configured to add the source virtual machine to be migrated into a migration list through a management interface before creating the destination virtual machine.
The setting module 40 is configured to set migration start time of the source virtual machine, so that when the migration time arrives, a migration operation on the source virtual machine is triggered.
Fig. 4 is a block diagram of a virtual machine migration apparatus across cloud platforms with an execution unit according to an embodiment of the present invention, and as shown in fig. 4, the apparatus may further include a list building unit 21 and an execution unit 22 in addition to all modules shown in fig. 2.
The list construction unit 21 is configured to construct a disk list to be migrated of the source virtual machine, and construct a file list to be migrated for each disk;
the execution unit 22 is configured to select a host in the source cloud platform or the destination cloud platform to copy the disk file of the source virtual machine to the disk storage of the virtual machine.
In this embodiment, the execution unit 22 is further configured to: selecting a host of a source cloud platform to perform disk file copying operation, sending a message to a target cloud platform, judging whether a copied shared node exists in a target virtual machine, waiting for the completion of the copying of the shared node under the condition that the shared node is copying, and not performing the copying operation of the shared node under the condition that the copying of the shared node is completed, and performing the copying of the next disk file node.
In this embodiment, the execution unit 22 may be further configured to send a message to the host of the destination cloud platform when the common node is copied for the first time, so as to start the host of the destination cloud platform to perform network copy on the common node.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
In order to facilitate understanding of the technical solutions provided by the present invention, the following detailed description will be made with reference to embodiments of specific scenarios.
An optional embodiment of the invention provides a method for migrating a virtual machine in a different place aiming at a cross-cloud platform. The method includes the steps that a target virtual machine without a disk entity is established in a remote data center, a message channel of a message component between remote cloud platforms is opened, a disk file chain is copied in a completely symmetrical mode based on a network copying mode of a management network, finally, remote migration of the virtual machine across cloud platforms is achieved, meanwhile, the design of non-repeated copying of a disk sharing node is conducted, and the remote migration efficiency is improved.
An object of an optional embodiment of the present invention is to provide a method for migrating a virtual machine in a remote place based on a network copy manner in a scenario where a cloud desktop is used in a remote place. Firstly, the scheme can realize that the whole virtual machine is migrated from the A data center cloud platform to the B data center cloud platform. Secondly, the scheme can set the starting time and the ending time of migration, and migration can be carried out in non-working time so as to avoid influencing the normal use of a user. Moreover, the source virtual machine cannot be affected even if the migration fails, and the user can still use the cloud desktop normally. In addition, the scheme keeps the structure of a disk file chain of the virtual machine, and the disk structures of the target virtual machine and the source virtual machine are consistent. Finally, the scheme does not repeatedly copy the copied shared file nodes of the virtual machines, and migration efficiency is improved.
The core content of the optional embodiment of the invention is that the management platforms can communicate with each other to obtain the management data of the virtual machine by opening message components between different cloud platforms, the gradual copy of the disk file nodes of the virtual machine is completed based on a network copy mode, the copy process is completely symmetrical, the consistency of the disk structures of the source virtual machine and the target virtual machine is ensured, and meanwhile, the repeated copy is not performed on the shared disk file nodes, so that the remote whole machine migration of the virtual machine under the extremely limited condition is completed.
Fig. 5 is a schematic diagram of a scheme for migrating a virtual machine to a remote cloud platform by an export-import manner according to the related art, and as shown in fig. 5, the virtual machine is migrated from a cloud platform a to a remote location by an operation of exporting and importing the virtual machine. That is, first, the virtual machine of a is exported to the nfs storage; and secondly, importing the disk image file on the nfs storage and the configuration information of the virtual machine into a B-place cloud platform through an import operation.
Fig. 6 is a schematic diagram of completing migration of a virtual machine through migration across cloud platforms according to an alternative embodiment of the present invention, as shown in fig. 6, first, a destination virtual machine for migration is created on a B-site cloud platform, various basic configuration information of the virtual machine is consistent with that of a source virtual machine, the virtual machine does not have a disk entity file, a repository where a disk is located is a selected repository in the B-site cloud platform, and a virtual machine network card is configured as a network port group in the destination cloud platform; and secondly, migrating the file nodes to a B-ground cloud platform storage one by one in a network copy mode according to the disk file chain structure.
By comparing the schematic diagrams of fig. 5 and 6, it can be seen that the advantages of the cross-data center migration scheme over the import-export scheme are as follows: firstly, the migration process is fully automatic without multiple human interventions, and the operation flow is convenient; secondly, the disk file chain structure is maintained, and the parent-child relationship of the file nodes can be maintained.
Fig. 7 is a schematic diagram of an internal complete machine migration scheme of a cloud platform according to an alternative embodiment of the present invention, and fig. 8 is a flowchart of an internal complete machine migration method of a cloud platform according to an alternative embodiment of the present invention, as shown in fig. 7 and fig. 8, the method includes the following steps:
step S801, constructing a disk list to be migrated of the virtual machine;
step S802, a file list to be migrated of each disk of the virtual machine is established;
step S803, selecting a host in the platform for data copying aiming at each disk file node;
step S804, after the disk file copying is finished, the virtual machine may run in a new resource pool and a new repository.
Fig. 9 is a schematic diagram illustrating comparison of networking conditions on which the cloud platform internal migration and the cross-platform migration depend according to an alternative embodiment of the present invention, and as shown in fig. 9, in the same platform, storage libraries may be communicated with hosts, so that copy migration of disk data may be completed by directly selecting a single host through a storage network. And the virtual machines across the data center are migrated, and the storage networks of the two places are isolated, so that the migration of the disk file nodes is completed by the mutual cooperation of the two hosts in the two cloud platforms depending on the management network. Therefore, the cross-cloud platform can finish the complete machine migration of the virtual machine under extreme conditions without depending on a storage network.
The cross-platform migration scheme is exported through the importation of fig. 5 and fig. 6, as well as the intra-platform virtual machine migration and the cross-cloud platform migration of fig. 9. The advantages of the scheme can be summarized as follows:
(1) the operation flow is fully automatic, and the platform can finish the migration operation of the virtual machine only by adding the virtual machine to be migrated into the list to be migrated and setting the start time and the end time of the migration;
(2) the migration does not change the structure of a disk file chain, so that the special characteristics of the difference can be kept, such as the restoration function of a virtual machine and the like;
(3) the whole virtual machine migration can be completed under a specific scene without depending on a storage network.
The implementation of the solution of this alternative embodiment is described in further detail below with reference to the accompanying drawings:
the application scenario of the optional embodiment of the invention is in a large data center virtualization cloud platform environment;
fig. 10 is a flowchart of a method for migrating a virtual machine across cloud platforms in a remote manner, according to an alternative embodiment of the present invention, as shown in fig. 10, the method includes the following steps:
s1001: adding a virtual machine to be migrated into a migration list through a management interface;
s1002: setting the time of starting and ending the migration of the virtual machine;
s1003: triggering cross-data center allopatric migration operation on the virtual machine after migration time is reached;
s1004: and sending a message to a destination cloud platform to create a destination virtual machine, wherein the basic configuration information of the destination virtual machine is consistent with that of the source virtual machine. The network card port group and the disk storage library use a network and a storage library on a target cloud platform;
s1005: constructing a disk file list to be migrated;
s1006: selecting a host of a source cloud platform to copy a disk file;
s1007: sending a message to the selected target cloud platform, and judging whether the opposite end has a copied public node;
s1008: if the shared node is copying, waiting for the copying to be completed; if all the shared nodes are copied, copying is not needed, and copying of the next file node is carried out;
s1009: if the shared node is copied for the first time, sending a message to a target end host to start a network copy service end;
s1010: a host on a source platform starts a network copy client;
s1011: finishing the copying of the file nodes, and copying the file nodes of the lower disk;
s1012: and (4) migrating all the disks of the virtual machine, and finishing the migration of the whole machine.
The optional embodiment can perform overall machine migration of the service virtual machine across the data center in different places aiming at a large-scale data center scene, complete symmetric copy is performed aiming at the disk of the virtual machine through a single-case mode of the communication message component, and the overall machine migration of the virtual machine is completed based on a network copy mode. Meanwhile, the repeated copying is not carried out on the shared node, and the migration efficiency is improved. The scheme can complete the remote migration of the whole virtual machine conveniently, improve the user experience, reduce the operation and maintenance cost and reasonably schedule resources among obstructed data centers.
The foregoing is a more detailed description of the present system and method, and the specific embodiments are not to be considered limiting. It will be apparent to those skilled in the art that many more simple inferences or substitutions can be made without departing from the inventive concepts herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for migrating a virtual machine across cloud platforms is characterized by comprising the following steps:
creating a migrated destination virtual machine on a destination cloud platform, wherein configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine of a source cloud platform, a network port group of the destination virtual machine is configured as a network port group of the destination cloud platform, and a disk repository of the destination virtual machine is configured as a disk repository of the destination cloud platform;
and migrating file nodes to a disk storage of a target virtual machine of the target cloud platform one by one in a network copy mode according to a disk file chain structure of the source virtual machine of the source cloud platform.
2. The method of claim 1, further comprising, prior to the destination cloud platform creating the migrated destination virtual machine,
and adding the source virtual machine needing to be migrated into a migration list through a management interface.
3. The method of claim 2, wherein after adding the source virtual machine to be migrated to a migration list through a management interface, further comprising:
setting migration starting time of the source virtual machine;
and when the migration time is up, triggering the migration operation of the source virtual machine.
4. The method according to claim 1, wherein migrating file nodes one by one to a disk repository of a destination virtual machine of the destination cloud platform in a network copy manner according to a disk file chain structure of the source virtual machine of the source cloud platform, further comprises:
constructing a disk list to be migrated of the source virtual machine, and constructing a file list to be migrated for each disk;
and selecting a host in the source cloud platform or the target cloud platform according to the file node to be copied to copy the disk file of the source virtual machine to a disk storage library of the virtual machine.
5. The method according to claim 4, wherein selecting a host in the source cloud platform or the destination cloud platform according to a file node to be copied to copy a disk file of the source virtual machine into a disk storage library of the virtual machine includes:
selecting a host of a source cloud platform to copy a disk file;
sending a message to the destination cloud platform, and judging whether the destination virtual machine has a copied common node;
when the common node is copying, the host of the source cloud platform waits for the common node to be copied;
and when the shared node is copied, the host of the source cloud platform does not perform the copying operation of the shared node any more, and performs the copying of the next disk file node.
6. The method of claim 5, further comprising, after sending a message to the destination cloud platform, determining whether the destination virtual machine has a shared node that has already been copied,
and when the shared node is copied for the first time, sending a message to the host of the target cloud platform so as to start the host of the target cloud platform to perform network copy on the shared node.
7. A virtual machine migration apparatus across cloud platforms, comprising:
the system comprises a creating module, a migration module and a migration module, wherein the creating module is used for creating a migrated destination virtual machine on a destination cloud platform, configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine of a source cloud platform, a network port group of the destination virtual machine is configured to be a network port group of the destination cloud platform, and a disk storage library of the destination virtual machine is configured to be a disk storage library of the destination cloud platform;
and the migration module is used for migrating file nodes to a disk storage library of a target virtual machine of the target cloud platform one by one in a network copy mode according to a disk file chain structure of the source virtual machine of the source cloud platform.
8. The apparatus of claim 7, wherein the migration module further comprises:
the list construction unit is used for constructing a disk list to be migrated of the source virtual machine and constructing a file list to be migrated aiming at each disk;
and the execution unit is used for selecting a host in the source cloud platform or the target cloud platform to copy and operate the disk file of the source virtual machine to the disk storage library of the virtual machine.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202010582905.XA 2020-06-23 2020-06-23 Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device Pending CN113835822A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202010582905.XA CN113835822A (en) 2020-06-23 2020-06-23 Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device
PCT/CN2021/100134 WO2021259094A1 (en) 2020-06-23 2021-06-15 Method and apparatus for migration of virtual machine across cloud platform, and storage medium and electronic apparatus
KR1020237002180A KR20230024416A (en) 2020-06-23 2021-06-15 Virtual Machine Migration Methods, Devices, Storage Media and Electronic Devices Between Cloud Platforms
JP2022580056A JP7469524B2 (en) 2020-06-23 2021-06-15 Method, device, storage medium, and electronic device for migrating virtual machines between cloud platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010582905.XA CN113835822A (en) 2020-06-23 2020-06-23 Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113835822A true CN113835822A (en) 2021-12-24

Family

ID=78964339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010582905.XA Pending CN113835822A (en) 2020-06-23 2020-06-23 Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device

Country Status (4)

Country Link
JP (1) JP7469524B2 (en)
KR (1) KR20230024416A (en)
CN (1) CN113835822A (en)
WO (1) WO2021259094A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827162A (en) * 2022-03-30 2022-07-29 河南保营机电有限公司 Migratable cloud desktop system based on edge computing

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461338B (en) * 2022-01-10 2022-10-14 北京志凌海纳科技有限公司 virtio driver injection method and device
CN114489517B (en) * 2022-02-14 2023-09-08 苏州浪潮智能科技有限公司 Offline acceleration migration method, system, equipment and storage medium
CN117009310B (en) * 2023-09-27 2024-01-23 苏州元脑智能科技有限公司 File synchronization method and device, distributed global content library system and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008033483A (en) 2006-07-27 2008-02-14 Nec Corp Computer system, computer, and moving method of computer operating environment
US8490088B2 (en) 2010-09-10 2013-07-16 International Business Machines Corporation On demand virtual machine image streaming
CN103051479B (en) * 2012-12-24 2016-01-20 北京启明星辰信息技术股份有限公司 The emigration processing method of virtual machine network control strategy and system
CN103077034B (en) * 2013-01-09 2015-08-19 上海交通大学 hybrid virtualization platform JAVA application migration method and system
CN104065685B (en) * 2013-03-22 2018-04-27 中国银联股份有限公司 Data migration method towards in the bedding storage system of cloud computing environment
CN103577245B (en) * 2013-10-29 2017-05-03 中国科学院计算技术研究所 Lightweight class virtual machine migration method
CN106227587B (en) * 2016-07-19 2019-05-10 浪潮(北京)电子信息产业有限公司 A kind of band snapshot virtual machine complete machine dynamic migration method and device
CN108228311A (en) 2016-12-22 2018-06-29 中兴通讯股份有限公司 A kind of method across storage pool migration virtual machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827162A (en) * 2022-03-30 2022-07-29 河南保营机电有限公司 Migratable cloud desktop system based on edge computing

Also Published As

Publication number Publication date
KR20230024416A (en) 2023-02-20
WO2021259094A1 (en) 2021-12-30
JP2023531532A (en) 2023-07-24
JP7469524B2 (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN113835822A (en) Cross-cloud-platform virtual machine migration method and device, storage medium and electronic device
US10778756B2 (en) Location of actor resources
US20170083292A1 (en) Visual content development
US9405579B2 (en) Seamless extension of local computing power
US11030079B2 (en) Service virtualization platform
US10324701B1 (en) Rapid deployment of computing instances
US10169139B2 (en) Using predictive analytics of natural disaster to cost and proactively invoke high-availability preparedness functions in a computing environment
US10924590B1 (en) Virtual workspace experience visualization and optimization
JP2023520384A (en) Parameter sharing in federated learning
WO2024077885A1 (en) Management method, apparatus and device for container cluster, and non-volatile readable storage medium
US20230009930A1 (en) Continuous Liveness and Integrity of Applications During Migration
US10341181B2 (en) Method and apparatus to allow dynamic changes of a replica network configuration in distributed systems
CN110944067B (en) Load balancing method and server
CN116648692A (en) Migration of complex legacy applications
CN110515697A (en) A kind of virtual machine migration method, device, storage medium and computer equipment
CN110870275B (en) Method and apparatus for shared memory file transfer
US11571618B1 (en) Multi-region game server fleets
JP2020053079A (en) Content deployment, scaling, and telemetry
US11537445B2 (en) Dynamic integration flows in hybrid cloud environments
RU2813491C1 (en) Method and device for transferring virtual machine over cloud platform, as well as data medium and electronic device
CN112968812A (en) Network performance testing method, device, equipment and storage medium
EP3387533B1 (en) Disaster recovery of cloud resources
US11571619B1 (en) Cross-region management of game server fleets
Hossain Cloud computing terms, definitions, and taxonomy
US11586626B1 (en) Optimizing cloud query execution

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