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

By creating a virtual machine with consistent configuration on the target cloud platform and migrating disk file nodes using network copy method, the problem of cross-cloud platform virtual machine migration and disk file chain structure consistency is solved, and automated migration and efficient disk file chain are realized. Structural maintenance.

CN113835822BActive Publication Date: 2025-02-14ZTE CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010582905.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-23
Publication Date
2025-02-14
Estimated Expiration
2040-06-23

AI Technical Summary

Technical Problem

The existing technology cannot realize virtual machine remote migration across cloud platforms, and the import and export process requires manual intervention, so the consistency of the disk file chain structure cannot be maintained.

Method used

Create a target virtual machine with consistent configuration on the target cloud platform, and migrate the disk file nodes of the source virtual machine one by one through network copy to maintain the consistency of the disk file chain structure.

Benefits of technology

It realizes cross-cloud platform remote migration of virtual machines, automates the migration process, maintains the consistency of the disk file chain structure, and improves migration efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835822B_ABST
    Figure CN113835822B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, storage medium and electronic device for migrating virtual machines across cloud platforms. The method includes: creating a destination virtual machine for migration on a destination cloud platform; migrating file nodes one by one to the disk storage repository of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform. In the present invention, by creating a destination virtual machine without a disk entity in an off-site data center, the disk file chain is copied in a completely symmetrical manner based on the network copy method, which solves the problems in the related technology that migration within the data center cannot complete off-site migration, the entire import and export process requires manual intervention, and the consistency of the disk file chain structure cannot be maintained, thereby realizing off-site migration of virtual machines across cloud platforms and maintaining the consistency of the disk file chain structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of virtual machine migration, and in particular, to a method, device, storage medium and electronic device for virtual machine migration across cloud platforms. Background Art

[0002] Many companies often have their own cloud platform data centers in different places to provide cloud desktops for employees in different regions. Sometimes, the office is in location A, but the cloud desktop is on the cloud platform in location B. This results in users being unable to use the cloud desktop nearby, and the network bandwidth may have bottlenecks, which makes it impossible to provide a high-quality user experience.

[0003] At the same time, when a data center resource bottleneck occurs, resource scheduling is required to migrate virtual machines to data centers with abundant resources. The current migration solution can only complete the migration of virtual machines within the same data center. If you want to migrate to a different location, you can only export the virtual machine from data center A and then import it into the cloud platform of data center B.

[0004] When building their own cloud desktops, many educational institutions often adopt a deployment solution that uses a virtualization platform all-in-one machine for a single classroom, which is easy to deploy and maintain. The above traditional solutions have the following defects: (1) Migration within the data center cannot complete off-site migration, and can only schedule resource distribution between various resource pools within the cloud platform; (2) Import and export requires exporting the virtual machine from the source data center, and then importing the exported virtual machine disk image and configuration file into the destination virtual machine. The whole process requires manual intervention and is complicated to operate; (3) Import and export changes the virtual machine disk file chain structure and cannot maintain the consistency of the disk file chain structure.

[0005] In view of this, there is an urgent need to provide a disaster recovery backup implementation plan that can facilitate cross-cloud platform migration without changing the disk file chain structure of the virtual machine itself. Summary of the invention

[0006] Embodiments of the present invention provide a cross-cloud platform virtual machine migration method, device, storage medium and electronic device to at least solve the problems in the related art that migration within a data center cannot complete remote migration, the entire import and export process requires manual intervention, and the consistency of the disk file chain structure cannot be maintained.

[0007] According to one embodiment of the present invention, a method for migrating virtual machines across cloud platforms is provided, comprising: creating a destination virtual machine for migration 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 repository of the destination virtual machine is configured as a disk storage repository of the destination cloud platform; and migrating file nodes one by one to the disk storage repository of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform.

[0008] In an exemplary embodiment, before the destination cloud platform creates the destination virtual machine for migration, the method further includes adding the source virtual machine to be migrated to a migration list through a management interface.

[0009] Furthermore, after adding the source virtual machine to be migrated to the migration list through the management interface, the method further includes: setting a migration start time for the source virtual machine; and triggering a migration operation on the source virtual machine when the migration time arrives.

[0010] In an exemplary embodiment, file nodes are migrated one by one to the disk storage repository of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform, and it also includes: constructing a list of disks to be migrated of the source virtual machine, and constructing a list of files to be migrated for each disk; selecting a host in the source cloud platform or the destination cloud platform to copy the disk files of the source virtual machine to the disk storage repository of the virtual machine.

[0011] Furthermore, selecting 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 repository of the virtual machine includes: selecting the host of the source cloud platform to perform the disk file copy operation; sending a message to the destination cloud platform to determine whether there is a shared node that has been copied to the destination virtual machine; when the shared node is being copied, the host of the source cloud platform waits for the copy of the shared node to be completed; when the shared node has completed copying, the host of the source cloud platform no longer performs the copy operation of the shared node, and copies the next disk file node.

[0012] Furthermore, after sending a message to the destination cloud platform to determine whether there is a shared node that has been copied for the destination virtual machine, it also includes, when the shared node is copied for the first time, sending a message to the host of the destination cloud platform to initiate the host of the destination cloud platform to perform a network copy of the shared node.

[0013] According to another embodiment of the present invention, a cross-cloud platform virtual machine migration device is provided, including: a creation module, used to create a destination virtual machine for migration on a destination cloud platform, wherein the configuration information of the destination virtual machine is consistent with the configuration information of the source virtual machine of the source cloud platform, the network port group of the destination virtual machine is configured as the network port group of the destination cloud platform, and the disk storage repository of the destination virtual machine is configured as the disk storage repository of the destination cloud platform; a migration module, used to migrate file nodes one by one to the disk storage repository of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform.

[0014] In an exemplary embodiment, it further includes: a management module, which is used to add the source virtual machine to be migrated to a migration list through a management interface before creating the destination virtual machine.

[0015] Furthermore, it also includes: a setting module, which is used to set the migration start time of the source virtual machine, so that when the migration time arrives, the migration operation of the source virtual machine is triggered.

[0016] In an exemplary embodiment, the migration module also includes: a list construction unit, used to construct a list of disks to be migrated of the source virtual machine, and to construct a list of files to be migrated for each disk; an execution unit, used to select a host in the source cloud platform or the destination cloud platform to copy the disk files of the source virtual machine to the disk storage repository of the virtual machine.

[0017] Furthermore, the execution unit is also used to: select a host of the source cloud platform to perform a disk file copy operation, send a message to the destination cloud platform, determine whether there is a shared node that has been copied for the destination virtual machine, and when the shared node is being copied, wait for the copy of the shared node to be completed; when the shared node has completed copying, no longer perform the copy operation on the shared node, and copy the next disk file node.

[0018] Furthermore, the execution unit is also used to send a message to the host of the destination cloud platform to start the host of the destination cloud platform to perform a network copy of the shared node when the shared node is copied for the first time.

[0019] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0020] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0021] Through the above-mentioned embodiments of the present invention, since a destination virtual machine without a disk entity is created in an off-site data center, the message channel of the message components between the off-site cloud platforms is opened, and the disk file chain is copied in a completely symmetrical manner based on the network copy method of the management network, it is possible to solve the problems in the related technology that migration within the data center cannot complete off-site migration, the entire import and export process requires manual intervention, and the consistency of the disk file chain structure cannot be maintained, thereby achieving the effect of realizing off-site migration of virtual machines across cloud platforms and maintaining the consistency of the disk file chain structure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of a method for migrating virtual machines across cloud platforms according to an embodiment of the present invention;

[0023] Figure 2 is a structural block diagram of a virtual machine migration device across cloud platforms according to an embodiment of the present invention;

[0024] Figure 3 is a structural block diagram of a cross-cloud platform virtual machine migration device with a management module according to an embodiment of the present invention;

[0025] Figure 4 is a structural block diagram of a cross-cloud platform virtual machine migration device with an execution unit according to an embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of a solution for migrating a virtual machine to a remote cloud platform by exporting and importing according to relevant technologies;

[0027] Figure 6 is a schematic diagram of completing the migration of a virtual machine through cross-cloud platform migration according to an optional embodiment of the present invention;

[0028] Figure 7 is a schematic diagram of a whole machine migration solution within a cloud platform according to an optional embodiment of the present invention;

[0029] Figure 8 is a flow chart of a method for whole-machine migration within a cloud platform according to an optional embodiment of the present invention;

[0030] Fig. 9 is a comparative schematic diagram of the network conditions on which the cloud platform internal migration and cross-platform migration depend according to an optional embodiment of the present invention;

[0031] Fig.10It is a flowchart of a method for cross-cloud platform virtual machine migration according to an optional embodiment of the present invention. DETAILED DESCRIPTION

[0032] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0034] In this embodiment, a method for migrating virtual machines across cloud platforms is provided. Figure 1 is a flow chart of a method for migrating virtual machines across cloud platforms according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0035] Step S101, creating a destination virtual machine for migration on a destination cloud platform, wherein configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine on 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 repository of the destination virtual machine is configured as a disk storage repository of the destination cloud platform;

[0036] Step S102: Migrate file nodes one by one to the disk storage library of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform.

[0037] Before step S101 of this embodiment, the method may further include: adding the source virtual machine to be migrated to a migration list through a management interface.

[0038] In this embodiment, after adding the source virtual machine to be migrated to the migration list through the management interface, the method may further include: setting the migration start time of the source virtual machine; and triggering the migration operation of the source virtual machine when the migration time arrives.

[0039] In this embodiment, step S102 may include: constructing a list of disks to be migrated of the source virtual machine, and constructing a list of files to be migrated for each disk; selecting a host in the source cloud platform or the destination cloud platform to copy the disk files of the source virtual machine to the disk storage repository of the virtual machine.

[0040] In this embodiment, selecting 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 repository of the virtual machine may include: selecting the host of the source cloud platform to perform the disk file copy operation; sending a message to the destination cloud platform to determine whether there is a shared node that has been copied to the destination virtual machine; when the shared node is being copied, the host of the source cloud platform waits for the copy of the shared node to be completed; when the shared node has completed copying, the host of the source cloud platform no longer performs the copy operation of the shared node, and copies the next disk file node.

[0041] In this embodiment, after sending a message to the destination cloud platform to determine whether there is a shared node that has been copied for the destination virtual machine, it may also include, when the shared node is copied for the first time, sending a message to the host of the destination cloud platform to initiate the host of the destination cloud platform to perform a network copy of the shared node.

[0042] Through the above steps, a destination virtual machine without a disk entity is created in an off-site data center, the message channel of the message components between the off-site cloud platforms is opened, and the disk file chain is copied in a completely symmetrical manner based on the network copy method of the management network. This solves the problems in related technologies that migration within the data center cannot complete off-site migration, the entire import and export process requires manual intervention, and the consistency of the disk file chain structure cannot be maintained. This achieves the effect of realizing off-site migration of virtual machines across cloud platforms and maintaining a consistent disk file chain structure.

[0043] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0044] In this embodiment, a cross-cloud platform virtual machine migration device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the terms "module" and "unit" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0045] Figure 2is a structural block diagram of a virtual machine migration device across cloud platforms according to an embodiment of the present invention, such as Figure 2 As shown, the device includes a creation module 10 and a migration module 20.

[0046] The creation module 10 is used to create a destination virtual machine for migration on a destination cloud platform, wherein configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine on 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 repository of the destination virtual machine is configured as a disk storage repository of the destination cloud platform;

[0047] The migration module 20 is used to migrate file nodes one by one to the disk storage library of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform.

[0048] Figure 3 is a structural block diagram of a virtual machine migration device across cloud platforms with a management module according to an embodiment of the present invention, such as Figure 3 As shown, the device includes Figure 2 In addition to all the modules shown, a management module 30 and a setting module 40 may also be included.

[0049] The management module 30 is used to add the source virtual machine to be migrated to a migration list through a management interface before creating a destination virtual machine.

[0050] The setting module 40 is used to set the migration start time of the source virtual machine, so that when the migration time arrives, the migration operation of the source virtual machine is triggered.

[0051] Figure 4 is a structural block diagram of a cross-cloud platform virtual machine migration device with an execution unit according to an embodiment of the present invention, such as Figure 4 As shown, the device includes Figure 2 In addition to all the modules shown, the migration module 20 may further include a list building unit 21 and an execution unit 22 .

[0052] The list building unit 21 is used to build a list of disks to be migrated of the source virtual machine, and to build a list of files to be migrated for each disk;

[0053] The execution unit 22 is used 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 library of the virtual machine.

[0054] In this embodiment, the execution unit 22 can also be used to: select the host of the source cloud platform to perform a disk file copy operation, send a message to the destination cloud platform, determine whether there is a shared node that has been copied for the destination virtual machine, and when the shared node is being copied, wait for the copy of the shared node to be completed; when the shared node has completed copying, no longer perform the copy operation on the shared node, and copy the next disk file node.

[0055] In this embodiment, the execution unit 22 may also be configured to send a message to the host of the destination cloud platform to start the host of the destination cloud platform to perform a network copy of the shared node when the shared node is copied for the first time.

[0056] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0057] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0058] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0059] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0060] In an exemplary embodiment, the electronic device 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.

[0061] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0062] In order to facilitate the understanding of the technical solution provided by the present invention, it will be described in detail below in combination with embodiments of specific scenarios.

[0063] An optional embodiment of the present invention provides a method for cross-cloud platform virtual machine migration. By creating a destination virtual machine without a disk entity in a remote data center, opening up the message channel of the message components between remote cloud platforms, and copying the disk file chain in a completely symmetrical manner based on the network copy method of the management network, the virtual machine is finally migrated across cloud platforms. At the same time, a design is made for non-repetitive copying of shared disk nodes to improve the efficiency of remote migration.

[0064] The goal of an optional embodiment of the present invention is to provide a method for remote migration of a virtual machine based on a network copy method in a scenario where a cloud desktop is used remotely. First, the solution can realize the migration of the entire virtual machine from the cloud platform of data center A to the cloud platform of data center B. Secondly, the solution can set the start and end time of the migration, and the migration can be performed during non-working hours to avoid affecting the normal use of users. Furthermore, the failure of the migration of this solution will not affect the source virtual machine, and the user can still use the cloud desktop normally. In addition, the solution maintains the structure of the virtual machine disk file chain, and the disk structure of the destination virtual machine is consistent with that of the source virtual machine. Finally, the solution does not duplicate the shared file nodes of the copied virtual machines, thereby improving the migration efficiency.

[0065] The core content of the optional embodiment of the present invention is to enable the management platforms to communicate with each other to obtain virtual machine management data by connecting the message components between different cloud platforms, and to complete the copying of the virtual machine disk file nodes one by one based on the network copy method. The copying process is completely symmetric, ensuring the consistency of the disk structure of the source virtual machine and the destination virtual machine. At the same time, no repeated copying is performed on the shared disk file nodes, thereby completing the off-site migration of the entire virtual machine under extremely limited conditions.

[0066] Figure 5 This is a schematic diagram of a solution for migrating a virtual machine to a remote cloud platform by exporting and importing according to related technologies, such as Figure 5 As shown in the figure, the virtual machine is migrated from the cloud platform in site A to a different site by exporting and importing the virtual machine. That is, first, the virtual machine in site A is exported to the nfs storage; secondly, the disk image file on the nfs storage and the configuration information of the virtual machine are imported into the cloud platform in site B by the import operation.

[0067] Figure 6 is a schematic diagram of completing the migration of a virtual machine through cross-cloud platform migration according to an optional embodiment of the present invention, such as Figure 6As shown, first, a destination virtual machine for migration is created on the cloud platform at site B. The basic configuration information of the virtual machine is consistent with that of the source virtual machine. The virtual machine does not have a disk physical file. The storage repository where the disk is located is the storage repository in the selected cloud platform B. The virtual machine network card is configured as the network port group in the destination cloud platform. Secondly, the file nodes are migrated one by one to the storage repository of the cloud platform at site B through network copying according to the disk file chain structure.

[0068] pass Figure 5 Figure 6 By comparing the schematic diagrams, we can see that the advantages of the cross-data center migration solution over the import and export solution are as follows: First, the migration process is fully automated and does not require multiple human interventions, and the operation process is convenient; second, the disk file chain structure is maintained, and the parent-child relationship of the file nodes can still be maintained.

[0069] Figure 7 is a schematic diagram of a whole machine migration solution within a cloud platform according to an optional embodiment of the present invention, Figure 8 is a flow chart of a method for migrating an entire machine within a cloud platform according to an optional embodiment of the present invention. Figure 7 and Figure 8 As shown, the method comprises the following steps:

[0070] Step S801, constructing a list of disks to be migrated for the virtual machine;

[0071] Step S802, constructing a list of files to be migrated for each disk of the virtual machine;

[0072] Step S803, for each disk file node, select a host in the platform to copy data;

[0073] Step S804: After the disk file is copied, the virtual machine can run in the new resource pool and the new storage library.

[0074] Fig. 9 is a comparative schematic diagram of the network conditions on which the cloud platform internal migration and cross-platform migration depend according to an optional embodiment of the present invention, such as Fig. 9 As shown in the figure, within the same platform, storage repositories can be connected to all hosts, so disk data copy migration can be completed by directly selecting a single host through the storage network. For virtual machine migration across data centers, the storage networks in the two locations are isolated, so the migration of disk file nodes is completed by relying on the management network through the cooperation of two hosts in the two cloud platforms. Therefore, cross-cloud platforms can complete the migration of virtual machines under extreme conditions without relying on the storage network.

[0075] pass Figure 5 and Figure 6 Import and export cross-platform migration solutions and Fig. 9The advantages of this solution can be summarized as follows:

[0076] (1) The operation process is fully automated. You only need to add the virtual machine to be migrated to the list to be migrated and set the start and end time of the migration. The platform can complete the migration of the virtual machine.

[0077] (2) Migration does not change the structure of the disk file chain, thus maintaining the unique features of differentials, such as virtual machine restore function;

[0078] (3) The entire virtual machine migration can be completed in specific scenarios without relying on the storage network.

[0079] The implementation of the technical solution of this optional embodiment is further described in detail below in conjunction with the accompanying drawings:

[0080] The application scenario of the optional embodiment of the present invention is in a large data center virtualized cloud platform environment;

[0081] Fig.10 is a flow chart of a method for cross-cloud platform virtual machine migration according to an optional embodiment of the present invention. Fig.10 As shown, the method comprises the following steps:

[0082] S1001: Adding the virtual machine to be migrated to the migration list through the management interface;

[0083] S1002: Setting the start and end time of virtual machine migration;

[0084] S1003: triggering a cross-data center remote migration operation for the virtual machine after the migration time arrives;

[0085] S1004: Send a message to the destination cloud platform to create a destination virtual machine. The basic configuration information of the destination virtual machine is consistent with that of the source virtual machine. The network card port group and disk storage library use the network and storage library on the destination cloud platform;

[0086] S1005: Build a disk file list to be migrated;

[0087] S1006: Select a host on the source cloud platform to perform a disk file copy operation;

[0088] S1007: Send a message to the selected target cloud platform to determine whether the peer end has a public node that has been copied;

[0089] S1008: If a common node is being copied, wait for the copy to be completed; if a common node has been copied, no copy is required, and the next file node is copied;

[0090] S1009: If it is the first time to copy the shared node, send a message to the destination host to start the network copy server;

[0091] S1010: The host on the source platform starts the network copy client;

[0092] S1011: Complete the file node copy, and copy the disk file node;

[0093] S1012: The migration of all virtual machine disks is completed, and the entire machine migration is completed.

[0094] This optional embodiment can migrate the entire business virtual machine across data centers in a remote location for large data center scenarios. By opening up the singleton mode of the message component, a completely symmetrical copy of the virtual machine disk is made, and the entire virtual machine migration is completed based on the network copy method. At the same time, no duplicate copying is performed on the shared nodes, which improves the efficiency of migration. This solution can easily complete the remote migration of the entire virtual machine, improve user experience, reduce operation and maintenance costs, and reasonably schedule resources between different data centers.

[0095] The above content is a further detailed description of the system and method in combination with specific implementation methods, and it cannot be determined that the specific implementation of the system and method is limited to these descriptions. For ordinary technicians in the technical field to which the system and method belong, they can also make several simple deductions or substitutions without departing from the concept of this practical information, which should be regarded as falling within the protection scope of the system and method.

[0096] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for migrating virtual machines across cloud platforms, characterized in that: include: Create a destination virtual machine for migration on the destination cloud platform, wherein configuration information of the destination virtual machine is consistent with configuration information of the source virtual machine of the 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 repository of the destination virtual machine is configured as a disk storage repository of the destination cloud platform; The method comprises: migrating file nodes one by one to the disk storage repository of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform, including: constructing a disk list to be migrated of the source virtual machine, and constructing a file list to be migrated for each disk; selecting a host of the source cloud platform to perform a disk file copy operation; sending a message to the destination cloud platform to determine whether there is a shared node that has been copied for the destination virtual machine; when the shared node is being copied, the host of the source cloud platform waits for the copy of the shared node to be completed; when the shared node has been copied, the host of the source cloud platform no longer performs the copy operation of the shared node, and copies the next disk file node; when the shared node is copied for the first time, sending a message to the host of the destination cloud platform to start the host of the destination cloud platform to perform a network copy of the shared node.

2. The method according to claim 1, characterized in that Before creating the destination virtual machine for migration on the destination cloud platform, it also includes: The source virtual machine to be migrated is added to the migration list through the management interface.

3. The method according to claim 2, characterized in that After adding the source virtual machine to be migrated to the migration list through the management interface, the method further includes: Setting the migration start time of the source virtual machine; When the migration start time arrives, the migration operation on the source virtual machine is triggered.

4. A virtual machine migration device across cloud platforms, characterized in that: include: A creation module, used to create a destination virtual machine for migration on a destination cloud platform, wherein configuration information of the destination virtual machine is consistent with configuration information of a source virtual machine on 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 repository of the destination virtual machine is configured as a disk storage repository of the destination cloud platform; A migration module, used to migrate file nodes one by one to the disk storage repository of the destination virtual machine of the destination cloud platform through network copying according to the disk file chain structure of the source virtual machine of the source cloud platform; Wherein, the migration module also includes: A list building unit, used to build a list of disks to be migrated of the source virtual machine, and to build a list of files to be migrated for each disk; The execution unit is used to select the host of the source cloud platform to perform a disk file copy operation; send a message to the destination cloud platform to determine whether there is a shared node that has been copied for the destination virtual machine; when the shared node is being copied, the host of the source cloud platform waits for the shared node to be copied; when the shared node has been copied, the host of the source cloud platform no longer performs the copy operation of the shared node, and copies the next disk file node; when the shared node is copied for the first time, send a message to the host of the destination cloud platform to start the host of the destination cloud platform to perform a network copy of the shared node.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.

6. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Cross-cloud-node migration system and cross-cloud-node migration method

    CN104572274A

  • Method and device for migrating virtual machine, and electronic device

    CN106874066A

  • System and method for process migration in a content centric network

    US20180124210A1