Movatterモバイル変換


[0]ホーム

URL:


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

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

Info

Publication number
CN113835822B
CN113835822BCN202010582905.XACN202010582905ACN113835822BCN 113835822 BCN113835822 BCN 113835822BCN 202010582905 ACN202010582905 ACN 202010582905ACN 113835822 BCN113835822 BCN 113835822B
Authority
CN
China
Prior art keywords
virtual machine
cloud platform
destination
migration
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010582905.XA
Other languages
Chinese (zh)
Other versions
CN113835822A (en
Inventor
张翼
孙广昆
潘美凤
俞义方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CorpfiledCriticalZTE Corp
Priority to CN202010582905.XApriorityCriticalpatent/CN113835822B/en
Priority to JP2022580056Aprioritypatent/JP7469524B2/en
Priority to PCT/CN2021/100134prioritypatent/WO2021259094A1/en
Priority to KR1020237002180Aprioritypatent/KR20230024416A/en
Publication of CN113835822ApublicationCriticalpatent/CN113835822A/en
Application grantedgrantedCritical
Publication of CN113835822BpublicationCriticalpatent/CN113835822B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供了一种跨云平台虚拟机迁移方法、装置、存储介质及电子装置,该方法包括:在目的云平台创建迁移的目的虚拟机;按照所述源云平台的所述源虚拟机的磁盘文件链结构通过网络拷贝方式逐一迁移文件节点至所述目的云平台的目的虚拟机的磁盘存储库中。在本发明中,通过在异地数据中心创建不带磁盘实体的目的虚拟机,基于网络拷贝方式以完全对称的方式拷贝磁盘文件链,解决了相关技术中数据中心内迁移无法完成异地迁移、导入导出全程需要人工干预、无法保持磁盘文件链结构的一致性的问题,进而实现虚拟机跨云平台异地迁移、并且保持了磁盘文件链结构一致。

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.

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 cloud platform-crossing virtual machine migration method, a cloud platform-crossing virtual machine migration device, a storage medium and an electronic device.
Background
Many enterprises often have their own cloud platform data centers around the world to provide cloud desktops for employees in different regions. Sometimes it will appear at the office of a, but the cloud desktop is on the cloud platform of B. This results in a user being unable to use the cloud desktop in close proximity, and network bandwidth may be a bottleneck, failing to provide a good user experience.
Meanwhile, when a bottleneck occurs in a certain data center resource, resource scheduling is needed, and the virtual machine is migrated to the data center with spare resources. The current migration scheme can only complete the whole machine migration of the virtual machine in the same data center, and if the whole machine migration is to be performed in different places, the virtual machine can only be exported from the data center A and imported to the data center B cloud platform.
Many education institutions often adopt a deployment scheme that a single classroom uses a virtual platform integrated machine when constructing own cloud desktops, and the deployment and maintenance are easy. The traditional scheme has the defects that (1) the migration in the data center cannot finish the migration in different places, only the resource distribution among all resource pools in the cloud platform can be scheduled, (2) the import and export needs to export the virtual machine from the source data center, then import the exported virtual machine disk image and configuration file to the target virtual machine, manual intervention is needed in the whole process, the operation is complex, and (3) the import and export changes 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 that can facilitate migration across a cloud platform from place to place without modifying the disk file chain structure of the virtual machine itself.
Disclosure of Invention
The embodiment of the invention provides a migration method, a migration device, a storage medium and an electronic device of a cross-cloud platform virtual machine, which at least solve the problems that in the related art, the migration in a data center cannot be completed in different places, manual intervention is required in the whole process of import and export, and consistency of a disk file chain structure cannot be maintained.
According to one embodiment of the invention, a virtual machine migration method across cloud platforms is provided, which comprises the steps of creating migrated destination virtual machines on a destination cloud platform, wherein configuration information of the destination virtual machines is consistent with configuration information of source virtual machines of a source cloud platform, network port groups of the destination virtual machines are configured as network port groups of the destination cloud platform, disk storage libraries of the destination virtual machines are configured as magnetic storage libraries of the destination cloud platform, and migrating file nodes into the magnetic storage libraries of the destination virtual machines of the destination cloud platform one by one in a network copy mode according to a disk file chain structure of the source virtual machines 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 the source virtual machine to be migrated to a migration list through a management interface.
Further, after the source virtual machine to be migrated is added into the migration list through the management interface, the method further comprises the steps of setting migration starting time of the source virtual machine, and triggering migration operation of the source virtual machine when the migration time is reached.
In an exemplary embodiment, according to the disk file chain structure of the source virtual machine of the source cloud platform, file nodes are migrated one by one to a disk storage of a destination virtual machine of the destination cloud platform in a network copy mode, and the method further comprises the steps of constructing a disk list to be migrated of the source virtual machine, constructing a file list to be migrated for each disk, selecting a host in the source cloud platform or the destination cloud platform, and copying and operating the disk file of the source virtual machine to the disk storage of the virtual machine.
Further, 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 storage library of the virtual machine includes selecting the host of the source cloud platform to copy the disk file, sending a message to the destination cloud platform to judge whether the destination virtual machine has a copied shared node, waiting for the shared node to be copied by the host of the source cloud platform when the shared node is being copied, and stopping the copying operation of the shared node by the host of the source cloud platform and copying the next disk file node when the shared node is completed.
Further, after sending a message to the destination cloud platform and judging whether the destination virtual machine has a copied shared node, sending a message to a host of the destination cloud platform when the shared node is copied for the first time, so as to start the host of the destination cloud platform to copy the shared node on the network.
According to another embodiment of the invention, a virtual machine migration device crossing a cloud platform is provided, which comprises a creation module and a migration module, wherein the creation 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 that 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, a disk storage library of the destination virtual machine is configured as a disk storage library of the destination cloud platform, and the migration module is used for migrating file nodes into the disk storage libraries of the destination virtual machine of the destination 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, the system further comprises a management module, wherein the management module is used for adding the source virtual machine needing to be migrated into a migration list through a management interface before the destination virtual machine is created.
Further, the system also comprises a setting module, which 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 arrives.
In an exemplary embodiment, the migration module further comprises a list construction unit, an execution unit and a storage unit, wherein 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 for each disk, and the execution unit is used for selecting a host in the source cloud platform or the destination cloud platform to operate disk file copy of the source virtual machine into a disk storage of the virtual machine.
Further, the execution unit is further configured to select a host of a source cloud platform to perform disk file copying operation, send a message to the destination cloud platform, determine whether the destination virtual machine has a copied shared node, wait for the shared node to complete copying if the shared node is copying, and not perform the copying operation of the shared node and perform copying of a next disk file node if the shared node has completed copying.
Further, the executing unit is further configured to send a message to the host of the destination cloud platform when the common node is the first copy, 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 invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the embodiment of the invention, the message channel of the message component among the different-place cloud platforms is opened by creating the target virtual machine without the disk entity in the different-place data center, and the disk file chain is copied in a completely symmetrical mode based on the network copy mode of the management network, so that the problems that the migration in the data center in the related art cannot be completed, the 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 art can be solved, and the effects of realizing the different-place migration of the virtual machine across the cloud platforms and keeping the consistency of the disk file chain structure are achieved.
Drawings
FIG. 1 is a flow chart of a method of virtual machine migration across cloud platforms according to an embodiment of the present invention;
FIG. 2 is a block diagram of a cross-cloud-platform virtual machine migration apparatus according to an embodiment of the present invention;
FIG. 3 is a block diagram of a cross-cloud-platform virtual machine migration apparatus with a management module according to an embodiment of the present invention;
FIG. 4 is a block diagram of a cross-cloud platform virtual machine migration apparatus with execution units according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a migration of virtual machines to a remote cloud platform scheme by export importation in accordance with the related art;
FIG. 6 is a schematic diagram of performing whole machine migration of a virtual machine by 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 chart of a method for cloud platform internal whole machine migration in accordance with an alternative embodiment of the present invention;
FIG. 9 is a comparative schematic diagram of networking conditions upon which cloud platform internal migration and cross-platform migration depend, according to an alternative embodiment of the present invention;
FIG. 10 is a flowchart of a method for migrating a virtual machine across cloud platforms in place according to an alternative embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below 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 the claims of the present invention and the above figures are used for distinguishing between similar objects 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, as shown in fig. 1, where the flowchart includes the following steps:
Step S101, a migrated destination virtual machine is created 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 magnetic disk storage library of the destination cloud platform;
step S102, migrating file nodes one by one to a magnetic disk storage of a target virtual machine of the target cloud platform in a network copy mode according to a magnetic 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 adding, through a management interface, the source virtual machine that needs to be migrated to a migration list.
In this embodiment, after the source virtual machine to be migrated is added to the migration list through the management interface, the method may further include setting a migration start time of the source virtual machine, and triggering a migration operation on the source virtual machine when the migration time arrives.
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 destination cloud platform to copy and operate the disk file of the source virtual machine to a disk repository 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 storage library of the virtual machine may include selecting the host of the source cloud platform to copy the disk file, sending a message to the destination cloud platform to determine whether a copied common node exists in the destination virtual machine, waiting for the common node to be copied by the host of the source cloud platform when the common node is being copied, and not performing the copy operation of the common node and copying the next disk file node by the host of the source cloud platform when the common node is completed.
In this embodiment, after sending a message to the destination cloud platform and determining whether the destination virtual machine has a shared node that has been copied, when the shared node is first copied, sending a message to a host of the destination cloud platform to start the host of the destination cloud platform to perform network copying on the shared node may be further included.
Through the steps, the destination virtual machine without a disk entity is created in the remote data center, the message channel of the message component among 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 required in the whole import and export process, and consistency of the disk file chain structure cannot be maintained in the related art 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.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a cross-cloud-platform virtual machine migration device, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the terms "module," "unit" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 2 is a block diagram of a cross-cloud-platform virtual machine migration apparatus 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 storage library of the destination virtual machine is configured as a disk storage library of the destination cloud platform;
The migration module 20 is configured to migrate file nodes one by one to a disk storage 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.
Fig. 3 is a block diagram of a cross-cloud-platform virtual machine migration apparatus with 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 setting module 40 in addition to all the modules shown in fig. 2.
The management module 30 is configured to add, through a management interface, the source virtual machine to be migrated to a migration list before creating the destination virtual machine.
The setting module 40 is configured to set the migration start time of the source virtual machine, so as to trigger a migration operation on the source virtual machine when the migration time arrives.
Fig. 4 is a block diagram of a cross-cloud-platform virtual machine migration apparatus with an execution unit according to an embodiment of the present invention, and as shown in fig. 4, the migration module 20 may further include a list construction unit 21 and an execution unit 22, in addition to all the 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 executing unit 22 is configured to select a host in the source cloud platform or the destination cloud platform to copy and operate a disk file of the source virtual machine to a disk storage of the virtual machine.
In this embodiment, the executing unit 22 may be further configured to select a host of a source cloud platform to perform a disk file copying operation, send a message to the destination cloud platform, determine whether the destination virtual machine has a shared node that has already been copied, wait for the shared node to complete copying if the shared node is being copied, and not perform a copying operation of the shared node and perform copying of a next disk file node if the shared node has completed copying.
In this embodiment, the executing unit 22 may be further configured to send a message to the host of the destination cloud platform to start the host of the destination cloud platform to perform network copy on the common node if the common node is the first copy.
It should be noted that each of the above modules may be implemented by software or hardware, and the latter may be implemented by, but not limited to, the above modules all being located in the same processor, or each of the above modules being located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to, a U disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, etc. various media in which a computer program may be stored.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
In order to facilitate understanding of the technical solutions provided by the present invention, the following details will be described in connection with embodiments of specific scenarios.
The invention provides a method for migrating a virtual machine across a cloud platform in different places. The method has the advantages that the destination virtual machine without disk entities is created in the remote data center, the message channel of the message component among the remote cloud platforms is opened, the disk file chains are copied in a completely symmetrical mode based on the network copy mode of the management network, the remote migration of the virtual machine across the cloud platforms is finally realized, meanwhile, the design that the common nodes of the disks are not repeatedly copied is carried out, and the efficiency of the remote migration is improved.
The invention aims at providing a method for migration of a virtual machine in different places based on a network copy mode in a scene of using a cloud desktop in different places. Firstly, the scheme can realize that the whole virtual machine is migrated from the cloud platform of the data center A to the cloud platform of the data center B. Secondly, the scheme can set the starting time and the ending time of migration, and migration can be performed in non-working time to avoid influencing normal use of users. Moreover, the migration failure of the scheme does not affect the source virtual machine, and the user can still normally use the cloud desktop. In addition, the scheme keeps the structure of the 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 repeat copying of the copied virtual machine shared file nodes, and migration efficiency is improved.
The core content of the alternative 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 among different cloud platforms, the successive copying of the disk file nodes of the virtual machine is completed based on a network copying mode, the copying process is completely symmetrical, the consistency of the disk structures of the source virtual machine and the destination virtual machine is ensured, and the shared disk file nodes are not repeatedly copied, so that the migration of the whole machine of the virtual machine in different places under extremely limited conditions is completed.
Fig. 5 is a schematic diagram of a scheme for migrating a virtual machine to a remote cloud platform by means of export import according to the related art, and as shown in fig. 5, migrating a virtual machine from a-land cloud platform to a remote cloud platform by means of export import operation of the virtual machine. Firstly, exporting the A-place virtual machine to an nfs storage, and secondly, importing the disk image file on the nfs storage and the configuration information of the virtual machine into the B-place cloud platform through an importing operation.
Fig. 6 is a schematic diagram of completing migration of a whole virtual machine through cross-cloud platform migration according to an alternative embodiment of the present invention, as shown in fig. 6, firstly, creating a migrated destination virtual machine in a B-site cloud platform, where various basic configuration information of the virtual machine is consistent with a source virtual machine, the virtual machine does not have a disk entity file, a storage library of a disk is a storage library of a selected B-site cloud platform, a network card of the virtual machine is configured as a network port group in the destination cloud platform, and secondly, migrating file nodes one by one to the storage library of the B-site cloud platform through a network copy mode according to a disk file chain structure.
By comparing the schematic diagrams of fig. 5 and fig. 6, the advantages of the migration scheme across the data center over the import and export scheme can be seen, namely, firstly, the migration process is completely automatic without multiple human intervention, the operation flow is convenient, and secondly, the disk file chain structure is maintained, and the parent-child relationship of the file nodes can still be maintained.
Fig. 7 is a schematic diagram of a migration scheme of a whole machine inside a cloud platform according to an alternative embodiment of the present invention, and fig. 8 is a flowchart of a migration method of a whole machine inside a cloud platform according to an alternative embodiment of the present invention, as shown in fig. 7 and 8, the method includes the steps of:
step S801, a disk list to be migrated of a virtual machine is constructed;
step S802, constructing a file list to be migrated of each disk of the virtual machine;
step S803, selecting a host in the platform for each disk file node to copy data;
In step S804, the virtual machine may run in the new resource pool and the new storage library after the disk file copying is completed.
FIG. 9 is a schematic diagram comparing networking conditions relied on by internal migration and cross-platform migration of a cloud platform according to an alternative embodiment of the present invention, as shown in FIG. 9, in the same platform, storage libraries may be all communicated with a host, and then copy migration of disk data may be completed by directly selecting a single host through a storage network. The virtual machine migration across the data center, the storage networks in the two places are isolated, so that the migration of the disk file nodes is completed by the mutual cooperation of two hosts in the two cloud platforms depending on the management network. Therefore, the cross-cloud platform can complete migration of the virtual machine under extreme conditions without depending on a storage network.
The cross-platform migration scheme is exported through the import of fig. 5 and 6, and the virtual machine migration within the platform of fig. 9 is compared with the migration across the cloud platform. The advantages of the present solution can be summarized in the following points:
(1) The operation flow is completely automatic, and the platform can complete the migration operation of the virtual machine only by adding the virtual machine to be migrated into a to-be-migrated list and setting the starting time and the ending time of migration;
(2) Migration does not change the structure of the disk file chain, so that the characteristic of difference, such as a virtual machine restoration function, can be maintained;
(3) The whole migration of the virtual machine can be completed under a specific scene without depending on a storage network.
The implementation of the technical solution of this alternative embodiment is described in further detail below with reference to the accompanying drawings:
the application scene of the optional embodiment of the invention is in a large data center virtualized cloud platform environment;
FIG. 10 is a flowchart of a method for migrating a virtual machine across cloud platforms in place, according to an alternative embodiment of the present invention, as shown in FIG. 10, the method comprising the steps of:
s1001, adding a virtual machine to be migrated into a migration list through a management interface;
S1002, setting the starting and ending time of virtual machine migration;
s1003, triggering the inter-data center remote migration operation of the virtual machine after the migration time is reached;
And S1004, 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 magnetic disk storage 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 the source cloud platform to perform disk file copy operation;
S1007, sending a message to the selected target cloud platform, and judging whether the copied public node exists at the opposite end;
S1008, if the shared node is being copied, waiting for the copying to be completed, if the shared node is already copied, copying the next file node without copying;
S1009, if the shared node is copied for the first time, sending a message to the destination end host to start the network copy server;
S1010, a host on a source platform starts a network copy client;
s1011, copying the file node, and copying the file node of the lower disk;
and S1012, finishing migration of the virtual machine disks and finishing migration of the whole machine.
The method and the device can carry out whole machine migration of the business virtual machine across the data center in different places aiming at a large-scale data center scene, carry out complete symmetrical copying aiming at the disk of the virtual machine by opening a single-instance mode of a message component, and finish the whole machine migration of the virtual machine based on a network copying mode. Meanwhile, the common node is not repeatedly copied, so that the migration efficiency is improved. The scheme can complete the whole machine remote migration of the virtual machine conveniently, improve user experience, reduce operation and maintenance cost and reasonably schedule resources among the data centers.
The foregoing is a further detailed description of the present systems and methods in connection with the specific embodiments, and is not intended to limit the practice of the present systems and methods to only those descriptions. It should be understood that those skilled in the art to which the present system and method pertains may make several simple deductions or substitutions without departing from the spirit of the present invention, and should be considered to fall within the scope of the present system and method.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps 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 of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

Translated fromChinese
1.一种跨云平台的虚拟机迁移方法,其特征在于,包括:1. A method for migrating virtual machines across cloud platforms, comprising:在目的云平台创建迁移的目的虚拟机,其中,所述目的虚拟机的配置信息与源云平台的源虚拟机的配置信息一致,所述目的虚拟机的网络端口组配置为所述目的云平台的网络端口组,所述目的虚拟机的磁盘存储库配置为所述目的云平台的磁盘存储库;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.根据权利要求1所述的方法,其特征在于,在目的云平台创建迁移的目的虚拟机之前,还包括,2. The method according to claim 1 is characterized in that before the destination cloud platform creates the destination virtual machine for migration, it also includes:通过管理界面将需要迁移的所述源虚拟机加入迁移列表。The source virtual machine to be migrated is added to the migration list through the management interface.3.根据权利要求2所述的方法,其特征在于,通过管理界面将需要迁移的所述源虚拟机加入迁移列表之后,还包括: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, it also 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.一种跨云平台的虚拟机迁移装置,其特征在于,包括:4. A cross-cloud platform virtual machine migration device, characterized by comprising:创建模块,用于在目的云平台创建迁移的目的虚拟机,其中,所述目的虚拟机的配置信息与源云平台的源虚拟机的配置信息一致,所述目的虚拟机的网络端口组配置为所述目的云平台的网络端口组,所述目的虚拟机的磁盘存储库配置为所述目的云平台的磁盘存储库;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 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;其中,所述迁移模块还包括: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.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至3任一项中所述的方法。5. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the method described in any one of claims 1 to 3 when running.6.一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至3任一项中所述的方法。6. An electronic device comprising 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 method described in any one of claims 1 to 3.
CN202010582905.XA2020-06-232020-06-23 Cross-cloud platform virtual machine migration method, device, storage medium and electronic deviceActiveCN113835822B (en)

Priority Applications (4)

Application NumberPriority DateFiling DateTitle
CN202010582905.XACN113835822B (en)2020-06-232020-06-23 Cross-cloud platform virtual machine migration method, device, storage medium and electronic device
JP2022580056AJP7469524B2 (en)2020-06-232021-06-15 Method, device, storage medium, and electronic device for migrating virtual machines between cloud platforms
PCT/CN2021/100134WO2021259094A1 (en)2020-06-232021-06-15Method and apparatus for migration of virtual machine across cloud platform, and storage medium and electronic apparatus
KR1020237002180AKR20230024416A (en)2020-06-232021-06-15 Virtual Machine Migration Methods, Devices, Storage Media and Electronic Devices Between Cloud Platforms

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010582905.XACN113835822B (en)2020-06-232020-06-23 Cross-cloud platform virtual machine migration method, device, storage medium and electronic device

Publications (2)

Publication NumberPublication Date
CN113835822A CN113835822A (en)2021-12-24
CN113835822Btrue CN113835822B (en)2025-02-14

Family

ID=78964339

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010582905.XAActiveCN113835822B (en)2020-06-232020-06-23 Cross-cloud platform virtual machine migration method, device, storage medium and electronic device

Country Status (4)

CountryLink
JP (1)JP7469524B2 (en)
KR (1)KR20230024416A (en)
CN (1)CN113835822B (en)
WO (1)WO2021259094A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114461338B (en)*2022-01-102022-10-14北京志凌海纳科技有限公司virtio driver injection method and device
CN114579251B (en)*2022-01-212025-04-29深圳爱捷云科技有限公司 Virtual machine disk cross-cloud migration method, electronic device and storage medium
CN114489517B (en)*2022-02-142023-09-08苏州浪潮智能科技有限公司 An offline accelerated migration method, system, equipment and storage medium
CN114827162B (en)*2022-03-302024-09-20河南宏硕电气有限公司Edge computing-based migratable cloud desktop system
US12107915B2 (en)2022-06-202024-10-01Electronics And Telecommunications Research InstituteDistributed cloud system, data processing method of distributed cloud system, and storage medium
US12411738B2 (en)2022-10-262025-09-09Electronics And Telecommunications Research InstituteDistributed cloud system, data processing method of distributed cloud system, and storage medium
CN116126473A (en)*2023-02-162023-05-16济南浪潮数据技术有限公司 A virtual machine scheduling method and related device of an OpenStack cloud platform
CN117009310B (en)*2023-09-272024-01-23苏州元脑智能科技有限公司File synchronization method and device, distributed global content library system and electronic equipment
CN118035172B (en)*2023-12-142025-09-30天翼云科技有限公司 A cloud migration method that integrates block-level migration and file-level migration
CN119473514A (en)*2025-01-142025-02-18北京凝思软件股份有限公司 Data migration method, device, equipment, storage medium and program product
CN119883523B (en)*2025-03-282025-06-17华能信息技术有限公司Cross-platform virtual machine cloning method

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104572274A (en)*2013-10-182015-04-29宇宙互联有限公司Cross-cloud-point migration system and method
CN106874066A (en)*2017-01-202017-06-20中兴通讯股份有限公司A kind of virtual machine migration method and device, electronic equipment

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2008033483A (en)2006-07-272008-02-14Nec CorpComputer system, computer, and moving method of computer operating environment
US8490088B2 (en)2010-09-102013-07-16International Business Machines CorporationOn demand virtual machine image streaming
US9009437B1 (en)*2011-06-202015-04-14Emc CorporationTechniques for shared data storage provisioning with thin devices
CN102932409B (en)*2012-09-212015-09-09中国电信股份有限公司The method and system that a kind of virtual machine moves online
CN102999433B (en)*2012-11-212015-06-17北京航空航天大学Redundant data deletion method and system of virtual disks
CN103051479B (en)*2012-12-242016-01-20北京启明星辰信息技术股份有限公司The emigration processing method of virtual machine network control strategy and system
CN103077034B (en)*2013-01-092015-08-19上海交通大学hybrid virtualization platform JAVA application migration method and system
CN104065685B (en)*2013-03-222018-04-27中国银联股份有限公司Data migration method towards in the bedding storage system of cloud computing environment
CN103577245B (en)*2013-10-292017-05-03中国科学院计算技术研究所Lightweight class virtual machine migration method
US10642633B1 (en)*2015-09-292020-05-05EMC IP Holding Company LLCIntelligent backups with dynamic proxy in virtualized environment
CN105740052A (en)*2016-01-282016-07-06浪潮(北京)电子信息产业有限公司Method, device and system for online migration of virtual machines of non-shared memories
CN106227587B (en)*2016-07-192019-05-10浪潮(北京)电子信息产业有限公司 A method and device for dynamic migration of a virtual machine with a snapshot
JP6654545B2 (en)*2016-10-262020-02-26日本電信電話株式会社 Data movement order determination device, data movement order determination method, and program
US10135948B2 (en)*2016-10-312018-11-20Cisco Technology, Inc.System and method for process migration in a content centric network
CN108228311A (en)*2016-12-222018-06-29中兴通讯股份有限公司A kind of method across storage pool migration virtual machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104572274A (en)*2013-10-182015-04-29宇宙互联有限公司Cross-cloud-point migration system and method
CN106874066A (en)*2017-01-202017-06-20中兴通讯股份有限公司A kind of virtual machine migration method and device, electronic equipment

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN113835822B (en) Cross-cloud platform virtual machine migration method, device, storage medium and electronic device
Kim et al.Nsml: Meet the mlaas platform with a real-world case study
US10073747B2 (en)Reducing recovery time in disaster recovery/replication setup with multitier backend storage
US9661071B2 (en)Apparatus, systems and methods for deployment and management of distributed computing systems and applications
CN116648692A (en)Migration of complex legacy applications
CN104737133B (en)Optimized using the Distributed Application of service group
US11894983B2 (en)Simulation and testing of infrastructure as a service scale using a container orchestration engine
US10061665B2 (en)Preserving management services with self-contained metadata through the disaster recovery life cycle
US11079968B1 (en)Queue management in multi-site storage systems
CN116089011A (en) Method, device, storage medium and electronic equipment for creating mirror warehouse
CN110413369A (en)System and method for the backup in virtualized environment
CN110377429A (en)A kind of control method, device, server and storage medium that real-time task calculates
CN114816676A (en)System and method for realizing multi-tenant deployment of low code development platform
US11571618B1 (en)Multi-region game server fleets
WO2023093016A1 (en)Cloud code development system, method, and apparatus, device, and storage medium
CN112035062A (en)Migration method of local storage of cloud computing, computer equipment and storage medium
CN105159799A (en)Method and device for backing up server
CN114996053B (en) Remote volume replication transmission method, system, device and storage medium
CN206149327U (en) An information cloud management platform and enterprise information system
CN114579250B (en)Method, device and storage medium for constructing virtual cluster
US9485308B2 (en)Zero copy volume reconstruction
CN114661523A (en)Data backup method, device, program product, medium and electronic equipment
CN114327820A (en) Method and device for processing offline tasks
CN116483274A (en)Online migration method, device, equipment and medium for distributed block storage volume
US11571619B1 (en)Cross-region management of game server fleets

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp