CN108255570B - Method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms - Google Patents
Method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms Download PDFInfo
- Publication number
- CN108255570B CN108255570B CN201611237531.8A CN201611237531A CN108255570B CN 108255570 B CN108255570 B CN 108255570B CN 201611237531 A CN201611237531 A CN 201611237531A CN 108255570 B CN108255570 B CN 108255570B
- Authority
- CN
- China
- Prior art keywords
- target
- original
- format
- hypervisor platform
- information
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明实施例提供了一种异构虚拟机监视器平台间的虚拟机迁移方法、装置和系统,涉及虚拟化领域,所述方法包括:原始Hypervisor平台获取正在运行的虚拟机VM的原始描述信息;原始Hypervisor平台发送原始描述信息至目标Hypervisor平台;目标Hypervisor平台接收原始Hypervisor平台发送的原始描述信息;目标Hypervisor平台获取目标格式信息;目标Hypervisor平台根据目标格式信息修改原始描述信息,得到VM在目标Hypervisor平台中的目标描述信息;目标Hypervisor平台根据目标描述信息重建VM。解决了现有技术中在异构Hypervisor平台间迁移VM时,VM需要离线也即业务需要中断的问题;达到了在VM迁移过程中保持VM在线避免业务中断的效果。
Embodiments of the present invention provide a method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms, and relate to the field of virtualization. The method includes: an original hypervisor platform obtains original description information of a running virtual machine VM ;The original hypervisor platform sends the original description information to the target hypervisor platform; the target hypervisor platform receives the original description information sent by the original hypervisor platform; the target hypervisor platform obtains the target format information; the target hypervisor platform modifies the original description information according to the target format information, and obtains the VM on the target Target description information in the hypervisor platform; the target hypervisor platform rebuilds the VM according to the target description information. The problem in the prior art that the VM needs to be offline, that is, the business needs to be interrupted, is solved when the VM is migrated between heterogeneous hypervisor platforms in the prior art, and the effect of keeping the VM online during the VM migration process to avoid business interruption is achieved.
Description
技术领域technical field
本发明实施例涉及虚拟化技术领域,特别涉及一种异构虚拟机监视器平台间的虚拟机迁移方法、装置和系统。Embodiments of the present invention relate to the field of virtualization technologies, and in particular, to a method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms.
背景技术Background technique
随着虚拟化技术的发展,市场上出现了异构的Hypervisor(虚拟机监视器)平台。为了保证在使用新的Hypervisor平台时,原始Hypervisor平台上部署的业务不受影响,就需要对原始Hypervisor平台上的VM(Virtual Machine,虚拟机)进行迁移。其中,异构的Hypervisor平台中用于表示VM的表示信息的格式不同。With the development of virtualization technology, heterogeneous Hypervisor (virtual machine monitor) platforms have appeared in the market. In order to ensure that the services deployed on the original hypervisor platform are not affected when the new hypervisor platform is used, it is necessary to migrate the VM (Virtual Machine, virtual machine) on the original hypervisor platform. The formats of the representation information used to represent the VMs in the heterogeneous hypervisor platforms are different.
现有的一种异构Hypervisor平台间的VM迁移方法包括:原始Hypervisor平台将运行的VM关机,获取VM对应的image(镜像)文件和XML(Extensible Markup Language,可扩展标记语言)文件;将image文件按照目标Hypervisor平台对image文件的格式要求转换成目标Hypervisor平台所对应的image文件,卸载转换后的image文件中的原始Hypervisor平台的VM驱动,并植入目标Hypervisor平台中的VM的VM驱动;将XML文件按照目标Hypervisor平台对XML文件的格式要求转换成目标Hypervisor平台所对应的XML文件;发送得到的image文件和XML文件至目标Hypervisor平台;目标Hypervisor平台根据接收到的image文件和XML重建VM。An existing method for migrating VMs between heterogeneous hypervisor platforms includes: the original hypervisor platform shuts down the running VM, and obtains an image (image) file and an XML (Extensible Markup Language, extensible markup language) file corresponding to the VM; The file is converted into an image file corresponding to the target hypervisor platform according to the format requirements of the target hypervisor platform for the image file, uninstalls the VM driver of the original hypervisor platform in the converted image file, and implants the VM driver of the VM in the target hypervisor platform; Convert the XML file into the XML file corresponding to the target Hypervisor platform according to the format requirements of the target Hypervisor platform for the XML file; send the obtained image file and XML file to the target Hypervisor platform; the target Hypervisor platform rebuilds the VM according to the received image file and XML .
发明人在实现本发明的过程中,发现上述过程至少存在如下问题:在迁移VM时,原始平台需要将VM关机,并且,只有在迁移完毕之后,VM才能在目标Hypervisor平台中创建,因此,现有技术中,VM在迁移过程中处于关机状态,也即业务会中断。In the process of implementing the present invention, the inventor found that the above process at least has the following problems: when migrating a VM, the original platform needs to shut down the VM, and only after the migration is completed, the VM can be created in the target hypervisor platform. In the prior art, the VM is in a shutdown state during the migration process, that is, services are interrupted.
发明内容SUMMARY OF THE INVENTION
为了解决现有技术中在VM迁移过程中VM会关机业务会中断的问题,本发明实施例提供了一种异构Hypervisor平台间的VM迁移方法、装置和系统,所述技术方案如下:In order to solve the problem in the prior art that the VM will be shut down and services will be interrupted during the VM migration process, the embodiments of the present invention provide a VM migration method, device and system between heterogeneous hypervisor platforms, and the technical solutions are as follows:
第一方面,提供了一种异构Hypervisor平台间的VM迁移方法,该方法包括:In a first aspect, a VM migration method between heterogeneous hypervisor platforms is provided, and the method includes:
原始Hypervisor平台获取VM在原始Hypervisor平台中的原始描述信息,发送该原始描述信息至目标Hypervisor平台;其中,原始描述信息包括原始Hypervisor平台的内存中用于表示VM的原始表示信息。其中,目标Hypervisor平台与原始Hypervisor平台是异构的平台,也即,目标Hypervisor平台的内存中用于表示VM的表示信息的目标格式与原始Hypervisor平台的内存中用于表示VM的表示信息的原始格式不同。The original hypervisor platform obtains the original description information of the VM in the original hypervisor platform, and sends the original description information to the target hypervisor platform; wherein the original description information includes the original representation information used to represent the VM in the memory of the original hypervisor platform. The target hypervisor platform and the original hypervisor platform are heterogeneous platforms, that is, the target format used to represent the representation information of the VM in the memory of the target hypervisor platform and the original format used to represent the representation information of the VM in the memory of the original hypervisor platform The format is different.
相应的,目标Hypervisor平台接收原始Hypervisor平台发送的原始描述信息,并根据预先获取到的目标格式信息修改原始描述信息,得到目标描述信息;根据该目标描述信息重建VM。目标格式信息包括目标格式。Correspondingly, the target hypervisor platform receives the original description information sent by the original hypervisor platform, modifies the original description information according to the pre-obtained target format information, and obtains the target description information; rebuilds the VM according to the target description information. The target format information includes the target format.
通过在VM在原始Hypervisor平台中运行的过程中,获取原始Hypervisor平台的原始描述信息,该原始描述信息中包括VM在原始Hypervisor平台的内存中的原始表示信息;发送原始描述信息至目标Hypervisor平台,使得目标Hypervisor平台根据目标格式信息修改接收到的原始描述信息,并得到目标描述信息,根据目标描述信息重建VM;其中,目标格式信息包括VM在目标Hypervisor平台的内存中的目标格式;解决了现有技术中在异构Hypervisor平台间迁移VM时,VM需要离线也即业务需要中断的问题;达到了在VM迁移过程中保持VM在线避免业务中断,进而可以在不同平台之间实现平滑演进的效果。By acquiring the original description information of the original hypervisor platform during the running of the VM in the original hypervisor platform, the original description information includes the original representation information of the VM in the memory of the original hypervisor platform; sending the original description information to the target hypervisor platform, The target hypervisor platform is made to modify the received original description information according to the target format information, obtain the target description information, and reconstruct the VM according to the target description information; wherein, the target format information includes the target format of the VM in the memory of the target hypervisor platform; In the prior art, when a VM is migrated between heterogeneous hypervisor platforms, the VM needs to be offline, that is, the service needs to be interrupted; the VM is kept online during the VM migration process to avoid service interruption, and the effect of smooth evolution between different platforms can be achieved. .
可选地,目标Hypervisor平台修改原始描述信息,进而得到目标描述信息的步骤可以实现为:Optionally, the steps of modifying the original description information by the target hypervisor platform to obtain the target description information can be implemented as follows:
目标Hypervisor平台根据目标格式转换原始表示信息,并得到目标表示信息。其中,目标描述信息包括目标表示信息共同组成目标描述信息。The target hypervisor platform converts the original representation information according to the target format, and obtains the target representation information. The target description information and target representation information together form the target description information.
可选地,在第二种可能的实现方式中,目标Hypervisor平台转换原始表示信息,得到目标表示信息的步骤可以包括:Optionally, in a second possible implementation manner, the target hypervisor platform converts the original representation information, and the step of obtaining the target representation information may include:
目标Hypervisor平台根据目标格式生成目标数据结构;The target hypervisor platform generates the target data structure according to the target format;
目标Hypervisor平台根据原始格式和目标格式的差异将原始表示信息写入至目标数据结构中,得到目标表示信息。The target hypervisor platform writes the original representation information into the target data structure according to the difference between the original format and the target format, and obtains the target representation information.
可选地,在第三种可能的实现方式中,在目标Hypervisor平台转换原始表示信息的过程中,若原始表示信息的原始格式中包括目标字段,则在修改原始表示信息的过程中将目标字段设置为无效,目标字段为原始表示信息的原始格式中包括但目标表示信息的目标格式中不包括的字段。Optionally, in a third possible implementation manner, in the process of converting the original representation information by the target hypervisor platform, if the original format of the original representation information includes the target field, the target field is changed in the process of modifying the original representation information. When set to invalid, the target field is a field that is included in the original format of the original presentation information but not included in the target format of the target presentation information.
可选地,在第四种可能的实现方式中,原始Hypervisor平台获取正在运行的虚拟机VM的原始描述信息,包括:Optionally, in a fourth possible implementation manner, the original hypervisor platform obtains original description information of the running virtual machine VM, including:
原始Hypervisor平台获取VM在原始Hypervisor平台的内存中的原始格式;The original hypervisor platform obtains the original format of the VM in the memory of the original hypervisor platform;
原始Hypervisor平台根据原始格式以及虚拟机通信支援VMCS技术对内存中VM的信息进行二进制分析,并得到分析结果;The original Hypervisor platform performs binary analysis on the VM information in memory according to the original format and virtual machine communication support VMCS technology, and obtains the analysis results;
原始Hypervisor平台将分析结果作为原始表示信息。The raw hypervisor platform uses the analysis results as raw representation information.
在第五种可能的实现方式中,原始Hypervisor平台获取正在运行的虚拟机VM的原始描述信息,还包括:In a fifth possible implementation manner, the original hypervisor platform obtains the original description information of the running virtual machine VM, and also includes:
原始Hypervisor平台获取VM在原始Hypervisor平台中的原始可扩展标记语言XML文件以及原始镜像image文件,此时,原始描述信息还包括原始XML文件和原始image文件。The original hypervisor platform obtains the original extensible markup language XML file and the original image image file of the VM in the original hypervisor platform. At this time, the original description information also includes the original XML file and the original image file.
在第六种可能的实现方式中,在原始描述信息中还包括VM在原始Hypervisor平台中的原始XML文件以及原始image文件时;In a sixth possible implementation manner, when the original description information also includes the original XML file and original image file of the VM in the original Hypervisor platform;
目标Hypervisor平台根据目标格式信息修改原始描述信息,得到VM在目标Hypervisor平台中的目标描述信息的步骤,还包括:The target hypervisor platform modifies the original description information according to the target format information to obtain the target description information of the VM in the target hypervisor platform, and further includes:
目标Hypervisor平台根据目标格式信息中的XML文件的文件格式以及原始XML文件,获取目标Hypervisor平台所对应的目标XML文件;The target hypervisor platform obtains the target XML file corresponding to the target hypervisor platform according to the file format of the XML file and the original XML file in the target format information;
目标Hypervisor平台根据目标格式信息中的image文件的文件格式以及原始image文件,获取目标Hypervisor平台所对应的目标image文件;目标描述信息还包括目标XML文件和目标image文件。The target hypervisor platform obtains the target image file corresponding to the target hypervisor platform according to the file format of the image file and the original image file in the target format information; the target description information also includes the target XML file and the target image file.
第二方面,提供了一种异构Hypervisor平台间的VM迁移方法,该方法用于原始Hypervisor平台中,该方法包括第一方面的方法中有关原始Hypervisor平台侧的步骤。A second aspect provides a VM migration method between heterogeneous hypervisor platforms, the method is used in the original hypervisor platform, and the method includes the steps on the original hypervisor platform side in the method of the first aspect.
第三方面,提供了一种异构Hypervisor平台间的VM迁移方法,该方法用于目标Hypervisor平台中,该方法包括第一方面的方法中有关目标Hypervisor平台侧的步骤。In a third aspect, a method for migrating VMs between heterogeneous hypervisor platforms is provided. The method is used in a target hypervisor platform, and the method includes the steps on the target hypervisor platform side in the method of the first aspect.
第四方面,提供了一种异构Hypervisor平台间的VM迁移装置,该装置用于原始Hypervisor平台中,用于实现第二方面所述的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, a VM migration device between heterogeneous hypervisor platforms is provided, and the device is used in the original hypervisor platform to implement the functions described in the second aspect. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第五方面,提供了一种异构Hypervisor平台间的VM迁移装置,该装置用于原始Hypervisor平台中,用于实现第三方面所述的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。A fifth aspect provides a VM migration device between heterogeneous hypervisor platforms, where the device is used in the original hypervisor platform to implement the functions described in the third aspect. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第六方面,提供了一种异构Hypervisor平台间的VM迁移系统,该系统包括原始Hypervisor平台和目标Hypervisor平台。其中,原始Hypervisor平台包括第四方面所述的装置,目标Hypervisor平台包括第五方面所述的装置。In a sixth aspect, a VM migration system between heterogeneous hypervisor platforms is provided, and the system includes an original hypervisor platform and a target hypervisor platform. Wherein, the original hypervisor platform includes the device described in the fourth aspect, and the target hypervisor platform includes the device described in the fifth aspect.
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the invention will be more clearly understood from the description of the following embodiments.
附图说明Description of drawings
图1是本发明各个实施例所涉及的实施环境的示意图。FIG. 1 is a schematic diagram of an implementation environment involved in various embodiments of the present invention.
图2是本发明一个实施例提供的异构Hypervisor平台间的VM迁移方法的方法流程图。FIG. 2 is a method flowchart of a method for VM migration between heterogeneous hypervisor platforms provided by an embodiment of the present invention.
图3是本发明一个实施例提供的原始Agent生成原始表示信息的示意图。FIG. 3 is a schematic diagram of generating original representation information by an original Agent provided by an embodiment of the present invention.
图4是本发明一个实施例提供的异构Hypervisor平台间的VM迁移装置的结构示意图。FIG. 4 is a schematic structural diagram of a VM migration apparatus between heterogeneous hypervisor platforms according to an embodiment of the present invention.
图5是本发明一个实施例提供的异构Hypervisor平台间的VM迁移装置的结构示意图。FIG. 5 is a schematic structural diagram of a VM migration apparatus between heterogeneous hypervisor platforms according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
请参考图1,其示出了本发明各个实施例提供的实施环境的示意图。如图1所示,该实施环境100包括原始Hypervisor平台110、目标Hypervisor平台120以及运行在原始Hypervisor平台110上的需要迁移至目标Hypervisor平台120的VM130。Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment provided by various embodiments of the present invention. As shown in FIG. 1 , the
Hypervisor平台是运行在宿主机上的用于为VM提供运行环境和运行资源的计算机系统。其中,宿主机是指承载各个虚拟机的物理存在的计算机,Hypervisor平台为VM提供的运行资源包括实例和内存等。通常情况下,原始Hypervisor平台110和目标Hypervisor平台120运行在不同的宿主机中,对此并不做限定。A hypervisor platform is a computer system running on a host to provide a running environment and running resources for a VM. The host refers to a computer that hosts each virtual machine in physical existence, and the running resources provided by the hypervisor platform for the VM include instances and memory. Usually, the
在下述各个实施例中,原始Hypervisor平台110是指VM130在迁移前所在的平台,目标Hypervisor平台120是指VM130迁移后所在的平台,原始Hypervisor平台110可以与目标Hypervisor平台120进行通信。实际实现时,原始Hypervisor平台110和目标Hypervisor平台120中均可以运行有多个VM,图中仅示出需要迁移的VM130来举例,其他VM并未示出。In the following embodiments, the
在下述各个实施例中,原始Hypervisor平台110和目标Hypervisor平台120为异构的平台,也就是说,VM130在原始Hypervisor平台110的内存中的原始表示信息的原始格式与在目标Hypervisor平台120的内存中的表示信息的目标格式通常不同。另外,VM130在原始Hypervisor平台110中的XML文件的格式与在目标Hypervisor平台120中的XML文件的格式可以相同或者不同,类似的,在原始Hypervisor平台110中的image文件的格式与在目标Hypervisor平台中的image文件的格式可以相同或者不同。In the following embodiments, the
比如,原始Hypervisor平台110可以为XEN(开放源代码虚拟机监视器)虚拟化环境下的平台,目标Hypervisor平台120可以为KVM(Kernel-based Virtual Machine,开源的系统虚拟化模块)虚拟化环境下的平台。又比如,原始Hypervisor平台110可以为KVM虚拟化环境下的平台,目标Hypervisor平台120可以为Vmware(虚拟机软件)虚拟化环境下的平台。本实施例对原始Hypervisor平台110和目标Hypervisor平台120的具体实现并不做限定。For example, the
在下述各个实施例中,如图1所示,原始Hypervisor平台110中可以部署原始Agent111(代理),目标Hypervisor平台120中可以部署有目标Agent121。原始Hypervisor平台110通过原始Agent111来执行信息获取以及发送获取的信息至目标Agent121的操作,类似的,目标Hypervisor平台120通过目标Agent121来接收原始Agent111发送的信息以及VM重建等操作,对此并不做限定。In the following embodiments, as shown in FIG. 1 , an original Agent 111 (agent) may be deployed in the
实际实现时,原始Agent111和目标Agent121可以为部署在Hypervisor平台中的程序代码,对此并不做限定。In actual implementation, the original Agent 111 and the
VM130是指运行在原始Hypervisor平台110上的,需要迁移至目标Hypervisor平台120的VM。VM130中可以承载业务。The
请参考图2,其示出了本发明一个实施例提供的异构Hypervisor平台间的VM迁移方法的方法流程图,本实施例以该VM迁移方法用于图1所示的实施环境中来举例说明。如图2所示,该VM迁移方法包括:Please refer to FIG. 2 , which shows a method flowchart of a method for VM migration between heterogeneous hypervisor platforms provided by an embodiment of the present invention. In this embodiment, the VM migration method is used in the implementation environment shown in FIG. 1 as an example. illustrate. As shown in Figure 2, the VM migration method includes:
步骤201,原始Hypervisor平台获取正在运行的VM的原始描述信息。Step 201, the original hypervisor platform obtains the original description information of the running VM.
原始Hypervisor平台中可以运行有多个VM,原始Hypervisor平台可以通过原始Hypervisor平台中的原始Agent获取需要迁移的VM的原始描述信息。其中,原始描述信息包括VM在原始Hypervisor平台的内存中的原始表示信息。The original hypervisor platform can run multiple VMs, and the original hypervisor platform can obtain the original description information of the VM to be migrated through the original agent in the original hypervisor platform. The original description information includes original representation information of the VM in the memory of the original hypervisor platform.
可选地,本步骤可以包括如下步骤:Optionally, this step may include the following steps:
第一,原始Hypervisor平台获取VM在原始Hypervisor平台的内存中的原始格式。First, the original hypervisor platform obtains the raw format of the VM in the memory of the original hypervisor platform.
可选地,原始Hypervisor平台可以通过原始Agent获取VM在原始Hypervisor平台的内存中的原始格式。Optionally, the original hypervisor platform can obtain the original format of the VM in the memory of the original hypervisor platform through the original agent.
其中,原始格式可以包括原始Hypervisor平台中呈现的与VM相关的信息的数据结构的定义。可选地,原始格式可以包括数据结构中包含的字段以及每个字段所对应的位置。比如,原始格式包括VMCS,VMCS中包括Guest_cr(寄存器)0、Guest_cr3、Guest_cr4、Guest_es_base(Extra Segment,附加段寄存器)、Guest_cs_base(Code Segment,代码段寄存器)、Guest_ss_base(Stack Segment,堆栈段寄存器)以及Guest_ds_base(Data Segment,数据段寄存器)字段为例,每个字段所对应的位置分别为位置1、位置2、位置3、位置4、位置5、位置6和位置7。The original format may include definitions of data structures of VM-related information presented in the original hypervisor platform. Optionally, the original format may include the fields contained in the data structure and the position corresponding to each field. For example, the original format includes VMCS, which includes Guest_cr (register) 0, Guest_cr3, Guest_cr4, Guest_es_base (Extra Segment, additional segment register), Guest_cs_base (Code Segment, code segment register), Guest_ss_base (Stack Segment, stack segment register) and The Guest_ds_base (Data Segment, data segment register) field is taken as an example, and the positions corresponding to each field are position 1, position 2, position 3, position 4, position 5, position 6, and position 7, respectively.
第二,原始Hypervisor平台根据原始格式以及VMCS(Virtual MachineCommunication Support,虚拟机通信支援)技术对内存中VM的信息进行二进制分析,并得到分析结果。Second, the original Hypervisor platform performs binary analysis on the information of the VM in the memory according to the original format and the VMCS (Virtual Machine Communication Support, virtual machine communication support) technology, and obtains the analysis result.
在原始Agent获取到原始格式之后,原始Agent可以根据原始格式且结合VT(Virtualization Technology,虚拟化技术)中的VMCS的定义,对内存中的与VM相关的信息进行二进制模型分析,并得到分析结果。After the original Agent obtains the original format, the original Agent can analyze the VM-related information in the memory according to the original format and in combination with the definition of VMCS in VT (Virtualization Technology), and obtain the analysis result. .
可选地,原始Agent可以模拟生成原始VCPU(Virtual Central Processing Unit,虚拟化中央处理器)的数据结构、原始EPT(Extended Page Tables,扩展页表)数据结构以及原始VMCS数据结构,将内存中的与VM相关的信息按照原始格式写入至上述数据结构中。可选地,原始Agent可以结合VT硬件辅助标准化实现对上述数据结构字段的定义明确化。比如,以VMCS中的ES为例,GUEST_ES_SELECTOR=0x00000800。Optionally, the original Agent can simulate and generate the original VCPU (Virtual Central Processing Unit, virtualized central processing unit) data structure, the original EPT (Extended Page Tables, extended page table) data structure, and the original VMCS data structure. The information related to the VM is written in the above data structure in the original format. Optionally, the original Agent can implement the clarification of the definitions of the above data structure fields in combination with VT hardware-assisted standardization. For example, taking ES in VMCS as an example, GUEST_ES_SELECTOR=0x00000800.
比如,请参考图3,原始Agent将原始Hypervisor平台呈现给VM的硬件31抽象成数据结构32所示的内容。图3仅以呈现的部分硬件来举例,实际实现时,原始Hypervisor平台还可以呈现更多或者更少的硬件,对此并不做限定;另外,图3仅以抽象得到的内容包括图中所示的内容为例,实际实现时,还可以包括更多或者更少的内容,对此并不做限定。For example, referring to FIG. 3 , the original Agent abstracts the
第三,原始Hypervisor平台将分析结果作为原始表示信息。Third, the original hypervisor platform uses the analysis results as raw representation information.
此后,原始Agent即可将原始XML文件、原始image文件和原始表示信息作为VM在原始Hypervisor平台中的原始描述信息。After that, the original Agent can use the original XML file, the original image file and the original representation information as the original description information of the VM in the original Hypervisor platform.
实际实现时,原始Hypervisor平台还可以获取VM在原始Hypervisor平台中的原始XML文件和原始image文件,将原始XML文件和原始image文件也作为原始描述信息,对此并不做限定。其中,XML文件是对VM配置的配置文件,image文件是创建VM的模板。In actual implementation, the original hypervisor platform can also obtain the original XML file and original image file of the VM in the original hypervisor platform, and the original XML file and original image file are also used as original description information, which is not limited. The XML file is a configuration file for configuring the VM, and the image file is a template for creating a VM.
步骤202,原始Hypervisor平台发送原始描述信息至目标Hypervisor平台。Step 202, the original hypervisor platform sends the original description information to the target hypervisor platform.
原始Hypervisor平台可以通过原始Agent发送原始描述信息至目标Hypervisor平台中的目标Agent。The original hypervisor platform can send the original description information to the target agent in the target hypervisor platform through the original agent.
步骤203,目标Hypervisor平台接收原始Hypervisor平台发送的原始描述信息。Step 203, the target hypervisor platform receives the original description information sent by the original hypervisor platform.
相应的,目标Agent接收原始Agent发送的原始描述信息。Correspondingly, the target agent receives the original description information sent by the original agent.
步骤204,目标Hypervisor平台获取目标格式信息,目标格式信息包括目标Hypervisor平台所对应的XML文件的文件格式、image文件的文件格式以及目标格式。In step 204, the target hypervisor platform obtains target format information, where the target format information includes the file format of the XML file, the file format of the image file, and the target format corresponding to the target hypervisor platform.
本步骤与步骤201类似,不同的是在本步骤中,目标Agent获取的是目标格式。其中,目标格式是VM在目标Hypervisor平台的内存中的格式。目标格式包括数据结构中的各个字段以及每个字段所对应的位置。This step is similar to step 201, the difference is that in this step, the target agent acquires the target format. The target format is the format of the VM in the memory of the target hypervisor platform. The target format includes the fields in the data structure and the corresponding position of each field.
可选地,目标格式信息中还可以包括目标Hypervisor平台中创建VM时VM的XML文件的文件格式以及image文件的文件格式。Optionally, the target format information may further include the file format of the XML file of the VM and the file format of the image file when the VM is created in the target hypervisor platform.
步骤205,目标Hypervisor平台根据目标格式信息中的XML文件的文件格式以及原始XML文件,获取目标Hypervisor平台所对应的目标XML文件。Step 205, the target hypervisor platform acquires the target XML file corresponding to the target hypervisor platform according to the file format of the XML file and the original XML file in the target format information.
可选地,目标Hypervisor平台可以检测目标格式信息中的XML文件的文件格式与原始描述信息中的XML文件的文件格式是否一致;若一致,则直接将原始描述信息中的原始XML文件确定为目标Hypervisor平台所对应的目标XML文件;而若检测结果为不一致,则将原始XML文件转换为目标格式信息中的XML文件的文件格式所支持的文件,将转换结果作为目标Hypervisor平台所对应的目标XML文件。Optionally, the target hypervisor platform can detect whether the file format of the XML file in the target format information is consistent with the file format of the XML file in the original description information; if they are consistent, directly determine the original XML file in the original description information as the target. The target XML file corresponding to the hypervisor platform; if the detection result is inconsistent, convert the original XML file into a file supported by the file format of the XML file in the target format information, and use the conversion result as the target XML corresponding to the target hypervisor platform. document.
比如,原始Hypervisor平台为XEN虚拟化环境下的平台,目标Hypervisor平台为KVM虚拟化环境下的平台,则目标Hypervisor平台可以通过目标Agent将XEN中的VHD(Virtual Hard Disk,虚拟磁盘)格式的XML文件转换成KVM上的QCOW2(QEMU Copy-On-Write,虚拟操作系统模拟器写复制)格式的XML文件,对此并不做限定。For example, if the original hypervisor platform is a platform under the XEN virtualization environment, and the target hypervisor platform is a platform under the KVM virtualization environment, the target hypervisor platform can use the target agent to convert the XML in the VHD (Virtual Hard Disk, virtual disk) format in XEN The file is converted into an XML file in the format of QCOW2 (QEMU Copy-On-Write, virtual operating system simulator) on KVM, which is not limited.
步骤206,目标Hypervisor平台根据目标格式信息中的image文件的文件格式以及原始image文件,获取目标Hypervisor平台所对应的目标image文件。Step 206, the target hypervisor platform acquires the target image file corresponding to the target hypervisor platform according to the file format of the image file and the original image file in the target format information.
可选地,目标Hypervisor平台可以检测目标格式信息中的image文件的文件格式与原始描述信息中的image文件的文件格式是否一致;若一致,则直接将原始描述信息中的原始image文件确定为目标Hypervisor平台所对应的目标image文件;而若检测结果为不一致,则将原始image文件转换为目标格式信息中的image文件的文件格式所支持的文件,将转换结果作为目标Hypervisor平台所对应的目标image文件。Optionally, the target hypervisor platform can detect whether the file format of the image file in the target format information is consistent with the file format of the image file in the original description information; if they are consistent, directly determine the original image file in the original description information as the target. The target image file corresponding to the hypervisor platform; if the detection result is inconsistent, convert the original image file to a file supported by the file format of the image file in the target format information, and use the conversion result as the target image corresponding to the target hypervisor platform. document.
可选地,在原始描述信息中不包括原始XML文件和原始image文件时,该方法中还可以不包括步骤205和步骤206,在此不再赘述。Optionally, when the original description information does not include the original XML file and the original image file, the method may also not include steps 205 and 206, which will not be repeated here.
步骤207,目标Hypervisor平台根据目标格式转换原始表示信息,并得到目标表示信息。Step 207, the target hypervisor platform converts the original representation information according to the target format, and obtains the target representation information.
可选地,本步骤可以包括如下步骤:Optionally, this step may include the following steps:
第一,目标Hypervisor平台根据目标格式生成目标数据结构。First, the target hypervisor platform generates the target data structure according to the target format.
目标Hypervisor平台中的目标Agent可以根据目标格式模拟VM所对应的VCPU的数据结构、EPT数据结构以及VMCS数据结构。The target agent in the target hypervisor platform can simulate the VCPU data structure, EPT data structure and VMCS data structure corresponding to the VM according to the target format.
本实施例只是以目标数据结构包括上述几种来举例说明,可选地,目标数据结构还可以包括其他数据结构,本实施例对此并不做限定。In this embodiment, only the target data structure includes the above-mentioned types for illustration. Optionally, the target data structure may also include other data structures, which is not limited in this embodiment.
第二,目标Hypervisor平台根据原始格式和目标格式的差异将原始表示信息写入至目标数据结构中,得到目标表示信息。Second, the target hypervisor platform writes the original representation information into the target data structure according to the difference between the original format and the target format, and obtains the target representation information.
此后,目标Hypervisor平台即可通过目标Agent根据原始格式和目标格式的差异将原始表示信息写入至目标数据结构中,并将写入数据后的目标数据结构作为目标内容信息。After that, the target hypervisor platform can write the original representation information into the target data structure through the target agent according to the difference between the original format and the target format, and use the target data structure after writing the data as the target content information.
原始格式和目标格式的差异包括相同字段所对应的位置的差异以及包含的字段的差异。Differences between the original format and the target format include differences in where the same fields correspond and differences in the fields that are included.
在原始格式和目标格式的差异包括相同字段所对应的位置的差异时,本步骤可以包括:目标Agent可以将原始VCPU中的内容按照目标格式中VCPU中的各个字段的位置写入至目标VCPU中,类似的,将原始EPT中的内容按照目标格式中EPT中的各个字段的位置写入至目标EPT中,将原始VMCS中的内容按照目标格式中的各个字段的位置写入至目标VMCS中。When the difference between the original format and the target format includes the difference in the position corresponding to the same field, this step may include: the target Agent may write the content in the original VCPU into the target VCPU according to the position of each field in the VCPU in the target format Similarly, the content in the original EPT is written into the target EPT according to the position of each field in the EPT in the target format, and the content in the original VMCS is written into the target VMCS according to the position of each field in the target format.
比如,以VMCS中的Guest_es_base为例,Guest_es_base在原始VMCS中处于位置4处,而在目标VMCS中处于位置44处,因此,目标Agent可以将原始VMCS中的Guest_es_base的内容写入至目标VMCS的位置44处。可选的,请参考下表,目标Hypervisor平台可以将每个信息的内容拷贝至该信息在目标Hypervisor平台中所对应的位置。For example, taking Guest_es_base in VMCS as an example, Guest_es_base is located at position 4 in the original VMCS and at position 44 in the target VMCS. Therefore, the target Agent can write the content of Guest_es_base in the original VMCS to the position of the target VMCS. 44 places. Optionally, please refer to the following table, the target hypervisor platform can copy the content of each information to the corresponding location of the information in the target hypervisor platform.
然而,在原始格式和目标格式的差异包括包含的字段的差异,如果原始表示信息的原始格式中包括目标字段,则在修改原始表示信息的过程中将目标字段设置为无效。其中,目标字段为原始表示信息的原始格式中包括但目标表示信息的目标格式中不包括的字段。However, the difference between the original format and the target format includes the difference in the included fields, and if the target field is included in the original format of the original representation information, the target field is set to be invalid in the process of modifying the original representation information. The target field is a field included in the original format of the original representation information but not included in the target format of the target representation information.
比如,假设原始VMCS中包含Guest_cs_base字段,而目标VMCS字段中不包含该Guest_cs_base,则目标Agent在修改过程中,可以将原始VMCS中的Guest_cs_base字段的内容设置为无效,对此并不做限定。For example, if the original VMCS contains the Guest_cs_base field, but the target VMCS field does not contain the Guest_cs_base, the target Agent can set the content of the Guest_cs_base field in the original VMCS to be invalid during the modification process, which is not limited.
步骤208,目标Hypervisor平台根据目标描述信息重建VM。Step 208, the target hypervisor platform rebuilds the VM according to the target description information.
此后,目标Agent即可根据目标描述信息在目标Hypervisor平台中重建VM。可选地,目标Agent可以在目标Hypervisor平台上启动VM,并加载目标描述信息用于VM的运行访问。After that, the target agent can rebuild the VM in the target hypervisor platform according to the target description information. Optionally, the target agent can start the VM on the target hypervisor platform, and load the target description information for the running access of the VM.
可选地,在目标Hypervisor平台成功重建VM之后,目标Hypervisor平台可以发送迁移成功信息至原始Hypervisor平台。可选地,目标Hypervisor平台可以通过目标Agent发送迁移成功信息至原始Hypervisor平台中的原始Agent。Optionally, after the target hypervisor platform successfully rebuilds the VM, the target hypervisor platform may send migration success information to the original hypervisor platform. Optionally, the target hypervisor platform may send the migration success information to the original agent in the original hypervisor platform through the target agent.
综上所述,本实施例提供的异构Hypervisor平台间的VM迁移方法,通过在VM在原始Hypervisor平台中运行的过程中,获取原始Hypervisor平台的原始描述信息,该原始描述信息中包括VM在原始Hypervisor平台的内存中的原始表示信息;发送原始描述信息至目标Hypervisor平台,使得目标Hypervisor平台根据目标格式信息修改接收到的原始描述信息,并得到目标描述信息,根据目标描述信息重建VM;其中,目标格式信息包括VM在目标Hypervisor平台的内存中的目标格式;解决了现有技术中在异构Hypervisor平台间迁移VM时,VM需要离线也即业务需要中断的问题;达到了在VM迁移过程中保持VM在线避免业务中断,进而可以在不同平台之间实现平滑演进的效果。To sum up, the VM migration method between heterogeneous hypervisor platforms provided by this embodiment obtains the original description information of the original hypervisor platform during the process of running the VM in the original hypervisor platform, and the original description information includes the VM in the original hypervisor platform. The original representation information in the memory of the original hypervisor platform; send the original description information to the target hypervisor platform, so that the target hypervisor platform modifies the received original description information according to the target format information, obtains the target description information, and reconstructs the VM according to the target description information; wherein , the target format information includes the target format of the VM in the memory of the target hypervisor platform; it solves the problem that the VM needs to be offline, that is, the business needs to be interrupted when the VM is migrated between heterogeneous hypervisor platforms in the prior art; The VM can be kept online to avoid service interruption, and thus can achieve smooth evolution between different platforms.
同时,通过异构平台间的VM在线迁移,避免了现有技术中由于VM在不同平台中的表示信息的格式不同,进而使得在引入新的虚拟化平台时,需要推翻已有的虚拟化平台中的设计并重建构建新的平台能力的问题。At the same time, the online migration of VMs between heterogeneous platforms avoids the need to overthrow the existing virtualization platforms when introducing a new virtualization platform due to the different formats of VM representation information in different platforms in the prior art. Design and rebuild issues in the ability to build new platforms.
上述实施例中关于原始Hypervisor平台侧的步骤可以单独实现成为原始Hypervisor平台侧的VM迁移方法,关于目标Hypervisor平台侧的步骤可以单独实现成为目标Hypervisor平台侧的VM迁移方法,在此不再赘述。The steps on the original hypervisor platform side in the above embodiment can be implemented independently as the VM migration method on the original hypervisor platform side, and the steps on the target hypervisor platform side can be implemented independently as the VM migration method on the target hypervisor platform side, which will not be repeated here.
请参考图4,其示出了本发明一个实施例提供的异构Hypervisor平台间的VM迁移装置的结构示意图,本实施例以该装置用于原始Hypervisor平台中来举例。如图4所示,该异构Hypervisor平台间的VM迁移装置可以包括:获取单元410和发送单元420。Please refer to FIG. 4 , which shows a schematic structural diagram of a VM migration apparatus between heterogeneous hypervisor platforms provided by an embodiment of the present invention. In this embodiment, the apparatus is used in an original hypervisor platform as an example. As shown in FIG. 4 , the VM migration apparatus between heterogeneous hypervisor platforms may include: an obtaining
获取单元410,用于执行上述步骤201。The obtaining
发送单元420,用于执行上述步骤202。The sending
综上所述,本实施例提供的异构Hypervisor平台间的VM迁移装置,通过在VM在原始Hypervisor平台中运行的过程中,获取原始Hypervisor平台的原始描述信息,该原始描述信息中包括VM在原始Hypervisor平台的内存中的原始表示信息;发送原始描述信息至目标Hypervisor平台,使得目标Hypervisor平台根据目标格式信息修改接收到的原始描述信息,并得到目标描述信息,根据目标描述信息重建VM;其中,目标格式信息包括VM在目标Hypervisor平台的内存中的目标格式;解决了现有技术中在异构Hypervisor平台间迁移VM时,VM需要离线也即业务需要中断的问题;达到了在VM迁移过程中保持VM在线避免业务中断,进而可以在不同平台之间实现平滑演进的效果。To sum up, the apparatus for migrating VMs between heterogeneous hypervisor platforms provided in this embodiment obtains the original description information of the original hypervisor platform during the process of running the VM in the original hypervisor platform, and the original description information includes the VM in the original hypervisor platform. The original representation information in the memory of the original hypervisor platform; send the original description information to the target hypervisor platform, so that the target hypervisor platform modifies the received original description information according to the target format information, obtains the target description information, and reconstructs the VM according to the target description information; wherein , the target format information includes the target format of the VM in the memory of the target hypervisor platform; it solves the problem that the VM needs to be offline, that is, the business needs to be interrupted when the VM is migrated between heterogeneous hypervisor platforms in the prior art; The VM can be kept online to avoid service interruption, and thus can achieve smooth evolution between different platforms.
请参考图5,其示出了本发明一个实施例提供的异构Hypervisor平台间的VM迁移装置的结构示意图,本实施例以该装置用于目标Hypervisor平台中来举例。如图5所示,该异构Hypervisor平台间的VM迁移装置可以包括:接收单元510、获取单元520、修改单元530和重建单元540。Please refer to FIG. 5 , which shows a schematic structural diagram of a VM migration apparatus between heterogeneous hypervisor platforms provided by an embodiment of the present invention. In this embodiment, the apparatus is used in a target hypervisor platform as an example. As shown in FIG. 5 , the VM migration apparatus between heterogeneous hypervisor platforms may include: a receiving
接收单元510,用于执行上述步骤203。The receiving
获取单元520,用于执行上述步骤204。The obtaining
修改单元530,用于执行上述步骤205至步骤207。The
重建单元540,用于执行上述步骤208。The
综上所述,本实施例提供的异构Hypervisor平台间的VM迁移装置,通过接收原始Hypervisor平台发送的VM的原始描述信息,根据目标格式信息修改接收到的原始描述信息,并得到目标描述信息,根据目标描述信息重建VM;其中,原始描述信息中包括VM在原始Hypervisor平台的内存中的原始表示信息,目标格式信息包括VM在目标Hypervisor平台的内存中的目标格式;解决了现有技术中在异构Hypervisor平台间迁移VM时,VM需要离线也即业务需要中断的问题;达到了在VM迁移过程中保持VM在线避免业务中断,进而可以在不同平台之间实现平滑演进的效果。In summary, the VM migration device between heterogeneous hypervisor platforms provided in this embodiment modifies the received original description information according to the target format information by receiving the original description information of the VM sent by the original hypervisor platform, and obtains the target description information , reconstruct the VM according to the target description information; wherein, the original description information includes the original representation information of the VM in the memory of the original hypervisor platform, and the target format information includes the target format of the VM in the memory of the target hypervisor platform; When migrating VMs between heterogeneous hypervisor platforms, the VM needs to be offline, that is, the business needs to be interrupted; the VM can be kept online to avoid business interruption during the VM migration process, and smooth evolution can be achieved between different platforms.
本发明一个实施例还提供了一种异构Hypervisor平台间的VM迁移系统,该系统包括原始Hypervisor平台和目标Hypervisor平台。其中,An embodiment of the present invention also provides a VM migration system between heterogeneous hypervisor platforms, where the system includes an original hypervisor platform and a target hypervisor platform. in,
原始Hypervisor平台包括图4所示的异构Hypervisor平台间的VM迁移装置;The original hypervisor platform includes the VM migration device between heterogeneous hypervisor platforms shown in FIG. 4;
目标Hypervisor平台包括图5所示的异构Hypervisor平台间的VM迁移装置。The target hypervisor platform includes the VM migration device between heterogeneous hypervisor platforms shown in FIG. 5 .
综上所述,本实施例提供的异构Hypervisor平台间的VM迁移方法,通过在VM在原始Hypervisor平台中运行的过程中,获取原始Hypervisor平台的原始描述信息,该原始描述信息中包括VM在原始Hypervisor平台的内存中的原始表示信息;发送原始描述信息至目标Hypervisor平台,使得目标Hypervisor平台根据目标格式信息修改接收到的原始描述信息,并得到目标描述信息,根据目标描述信息重建VM;其中,目标格式信息包括VM在目标Hypervisor平台的内存中的目标格式;解决了现有技术中在异构Hypervisor平台间迁移VM时,VM需要离线也即业务需要中断的问题;达到了在VM迁移过程中保持VM在线避免业务中断,进而可以在不同平台之间实现平滑演进的效果。To sum up, the VM migration method between heterogeneous hypervisor platforms provided by this embodiment obtains the original description information of the original hypervisor platform during the process of running the VM in the original hypervisor platform, and the original description information includes the VM in the original hypervisor platform. The original representation information in the memory of the original hypervisor platform; send the original description information to the target hypervisor platform, so that the target hypervisor platform modifies the received original description information according to the target format information, obtains the target description information, and reconstructs the VM according to the target description information; wherein , the target format information includes the target format of the VM in the memory of the target hypervisor platform; it solves the problem that the VM needs to be offline, that is, the business needs to be interrupted when the VM is migrated between heterogeneous hypervisor platforms in the prior art; The VM can be kept online to avoid service interruption, and thus can achieve smooth evolution between different platforms.
同时,通过异构平台间的VM在线迁移,避免了现有技术中由于VM在不同平台中的表示信息的格式不同,进而使得在引入新的虚拟化平台时,需要推翻已有的虚拟化平台中的设计并重建构建新的平台能力的问题。At the same time, the online migration of VMs between heterogeneous platforms avoids the need to overthrow existing virtualization platforms when introducing a new virtualization platform due to the different formats of VM representation information in different platforms in the prior art. Design and rebuild issues in the ability to build new platforms.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。While the invention has been described herein in conjunction with various embodiments, those skilled in the art will appreciate, from reviewing the drawings, the disclosure, and the appended claims, in practicing the claimed invention, and Other variations of the disclosed embodiments are implemented. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.
本领域技术人员应明白,本发明的实施例可提供为方法、服务器(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。As will be appreciated by those skilled in the art, embodiments of the present invention may be provided as a method, a server (apparatus), or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed in a suitable medium, provided with or as part of other hardware, or may take other forms of distribution, such as over the Internet or other wired or wireless telecommunication systems.
本发明是参照本发明实施例的方法、服务器(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, servers (apparatus) and computer program products of embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Although the invention has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely illustrative of the invention as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611237531.8A CN108255570B (en) | 2016-12-28 | 2016-12-28 | Method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611237531.8A CN108255570B (en) | 2016-12-28 | 2016-12-28 | Method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108255570A CN108255570A (en) | 2018-07-06 |
CN108255570B true CN108255570B (en) | 2021-06-15 |
Family
ID=62719478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611237531.8A Active CN108255570B (en) | 2016-12-28 | 2016-12-28 | Method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255570B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11231953B2 (en) | 2019-08-21 | 2022-01-25 | Red Hat, Inc. | Minimizing downtime when importing virtual machines from other platforms |
CN113312138B (en) * | 2020-05-27 | 2025-05-09 | 阿里巴巴集团控股有限公司 | Virtual machine migration method, device, system, and storage medium |
CN113553143B (en) * | 2021-09-18 | 2022-01-07 | 云宏信息科技股份有限公司 | Heterogeneous method of virtualized resource pool, readable storage medium and virtualization platform |
CN116708561A (en) * | 2023-05-31 | 2023-09-05 | 贵州电网有限责任公司 | Driving repair system and method in heterogeneous platform information migration |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521014A (en) * | 2011-12-06 | 2012-06-27 | 北京航空航天大学 | Deploying method and deploying device for virtual machine |
CN105159760A (en) * | 2014-05-27 | 2015-12-16 | 中国电信股份有限公司 | Cloud resource migration method and unified cross-platform cloud resource migration capability open interface |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110126197A1 (en) * | 2009-11-25 | 2011-05-26 | Novell, Inc. | System and method for controlling cloud and virtualized data centers in an intelligent workload management system |
GB2499956B (en) * | 2010-11-23 | 2018-02-14 | Servicenow Inc | Direct migration of software images with streaming technique |
KR101581531B1 (en) * | 2014-02-28 | 2016-01-11 | 단국대학교 산학협력단 | Method for live migration of virtual machine and apparatus therefor |
CN103885830B (en) * | 2014-04-16 | 2017-02-15 | 中国科学院软件研究所 | Data processing method used in cross-data-center live migration process of virtual machine |
CN105912389B (en) * | 2016-04-06 | 2019-03-08 | 易云捷讯科技(北京)股份有限公司 | Realization of Virtual Machine Migration System in Hybrid Cloud Environment Based on Data Virtualization |
CN106201702A (en) * | 2016-07-19 | 2016-12-07 | 浪潮(北京)电子信息产业有限公司 | The method of virtual machine (vm) migration, system and cloud computing management platform |
-
2016
- 2016-12-28 CN CN201611237531.8A patent/CN108255570B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521014A (en) * | 2011-12-06 | 2012-06-27 | 北京航空航天大学 | Deploying method and deploying device for virtual machine |
CN105159760A (en) * | 2014-05-27 | 2015-12-16 | 中国电信股份有限公司 | Cloud resource migration method and unified cross-platform cloud resource migration capability open interface |
Non-Patent Citations (1)
Title |
---|
利用虚拟机动态迁移技术整合模拟和虚拟环境;杨子夜;《中国优秀硕士学位论文全文数据库信息科技辑》;20091215;第I138-940页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108255570A (en) | 2018-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3218803B1 (en) | Live migration of virtual machines from/to host computers with graphics virtualization | |
CN106648826B (en) | For the method and apparatus of thermophoresis virtual machine | |
US11487523B2 (en) | Updating machine emulator | |
US9164790B2 (en) | Live virtual machine template creation | |
CN108255570B (en) | Method, device and system for virtual machine migration between heterogeneous virtual machine monitor platforms | |
US20130232501A1 (en) | System and method to reduce memory usage by optimally placing vms in a virtualized data center | |
US9588793B2 (en) | Creating new virtual machines based on post-boot virtual machine snapshots | |
CN105573830B (en) | A virtual machine migration method | |
US10503486B2 (en) | Methods and apparatus to reduce application deployments sizes | |
US20150205542A1 (en) | Virtual machine migration in shared storage environment | |
US9396004B1 (en) | System and method for management of a configuration of a virtual machine | |
CN107111530B (en) | Disaster recovery method, system and device | |
US9336131B1 (en) | Systems and methods for enabling virtual environments to mount non-native storage disks | |
US9336216B2 (en) | Command-based data migration | |
US20160011890A1 (en) | Compatibility method and apparatus | |
US9934157B2 (en) | Post-copy VM migration speedup using free page hinting | |
US10691479B2 (en) | Virtual machine placement based on device profiles | |
US20200110666A1 (en) | Data recovery of guest virtual machines | |
US10489250B2 (en) | Backup validation of virtual desktop infrastructure system | |
US20180203726A1 (en) | Virtual machine migration method and apparatus | |
JP2011248742A (en) | Storage management system, management computer, and program | |
US9436489B2 (en) | Virtual machine data replication with shared resources | |
Rechert et al. | Towards a Risk Model for Emulation-based Preservation Strategies: A Case Study from the Software-based Art Domain | |
HK1224762A1 (en) | Virtual machine migration method | |
HK1224762A (en) | Virtual machine migration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |