CN105260226A - Method for automatically migrating virtual machine on the basis of cloud platform - Google Patents

Method for automatically migrating virtual machine on the basis of cloud platform Download PDF

Info

Publication number
CN105260226A
CN105260226A CN201510612487.3A CN201510612487A CN105260226A CN 105260226 A CN105260226 A CN 105260226A CN 201510612487 A CN201510612487 A CN 201510612487A CN 105260226 A CN105260226 A CN 105260226A
Authority
CN
China
Prior art keywords
gan
virtual machine
cloud
shift
machine
Prior art date
Application number
CN201510612487.3A
Other languages
Chinese (zh)
Inventor
杨朝晖
李传云
李志成
章建鹏
王超
李善平
Original Assignee
浙江网新恒天软件有限公司
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 浙江网新恒天软件有限公司 filed Critical 浙江网新恒天软件有限公司
Priority to CN201510612487.3A priority Critical patent/CN105260226A/en
Publication of CN105260226A publication Critical patent/CN105260226A/en

Links

Abstract

The invention discloses a method for automatically migrating a virtual machine on the basis of a cloud platform. An existing virtual machine on a virtualization platform is migrated to a cloud platform, or a physical machine is moved to the cloud platform after being converted into the virtual machine, an operator is in charge of carrying out tool configuration before migration and installs necessary software on a machine to be migrated, and subsequent cloud image manufacture, uploading and checkout can be finished by an automatic migration tool. For the machine which fails in migration, the tool provides an error log for the operator to check. The method imports the virtual machines on a physical server or the traditional virtualization platform into the cloud platform on batch so as to simplify operation and improve efficiency. A technology takes stability as a criterion and utilizes a mature migration tool provided by RedHat and VMWare (Virtual Machine).

Description

一种基于云平台自动迁移虚拟机的方法 A method for cloud-based platform automatically migrate virtual machines

技术领域 FIELD

[0001] 本发明涉及云计算领域,尤其涉及企业现有资源自动化迀移至云平台。 [0001] The present invention relates to the field of cloud computing, in particular, to the company's existing resources, automation Gan move to cloud platform.

[0002] 背景介绍 [0002] Background

[0003] 企业在云数据中心建设过程中,往往遗留历史应用资源,这些应用资源是企业核心应用,为了保证企业整体上云以及核心数据的安全,亟需寻找一套稳定成熟的方案来做迀移,自动化云迀移是解决这些问题的一剂良方。 [0003] enterprises in the cloud data center construction process, often left over from history resource applications, these applications resource is the core application, in order to ensure the safety of the overall enterprise cloud and core data, the need to find a stable, mature programs do Gan shift, automated cloud Gan shift is a good way to solve these problems.

[0004] 在以往的人工迀移中,效率是最大的问题。 [0004] In the past, artificial Gan shift, the efficiency is the biggest problem. 迀移过程涉及大量的数据复制和校验,无需人工干预但耗时很长。 Gan shift process involves large amounts of data replication and validation, without human intervention but takes a long time. 负责迀移的人人有许多时间都浪费在等待上,效率很低。 Responsible Gan shift everyone has a lot of time is wasted in waiting, the efficiency is very low.

发明内容 SUMMARY

[0005] 本发明的目的在于针对现有技术的不足,提供一种基于云平台自动迀移虚拟机的方法。 [0005] The object of the present invention is the deficiency of the prior art, there is provided a method of cloud-based internet Gan automatically shift the virtual machine.

[0006] 本发明的目的是通过以下技术方案来实现的:一种基于云平台自动迀移虚拟机的方法,该方法将虚拟化平台上已有的虚拟机,或将物理机转化为虚拟机后迀移至云平台,具体包括以下步骤: [0006] The object of the present invention is achieved by the following technical solution: A method for the automatic Gan shift internet cloud based virtual machine, the method virtualization platform has a virtual machine, or the physical machines into virtual machines after Gan move to cloud platform includes the following steps:

[0007] (1)迀移准备:使用自动化迀移工具指定需要迀移的虚拟机/物理机,配置迀移参数,自动获取虚拟化平台上虚拟机操作系统以及配置信息,估算出整个虚拟机迀移需要花费的时间;所述配置信息包括CPU、内存、磁盘; [0007] (1) Gan shift prepared: using automated Gan shifting tool to specify the required Gan shift VM / physical machine configuration Gan shifting parameter, automatically obtain a virtual platform virtual machine operating system and configuration information, to estimate the entire virtual machine Gan time it takes to move; the configuration information including CPU, memory, disk;

[0008] (2)安装补丁:为保证迀移后的机器能在云平台上平稳运行,需在迀移前为被迀移机安装virt1驱动; [0008] (2) install the patch: Gan To ensure the machine is running smoothly move on the cloud platform, needs to be installed virt1 shifted Gan Gan before shifting drive;

[0009] (3)自动迀移:调用虚拟化驱动层,在不影响现有服务的情况下,在线对虚拟机做备份,制作云镜像,转换镜像格式以支持云平台;调用云平台API驱动将虚拟机/物理机镜像上传至云平台,并进行MD5值校验; [0009] (3) Automatic Gan move: calling virtual driver layer, without affecting existing services, do online backup, making cloud images on a virtual machine, convert image format to support cloud platform; call cloud platform API driver the VM / physical machine image uploaded to the cloud platform, and MD5 checksum value;

[0010] (4)迀移回滚:虚拟机/物理机镜像制作迀移过程中出现错误,整个迀移回滚; [0010] (4) Gan shift rollback: Virtual Machine / physical machines mirroring Gan shift error is displayed during the entire shift Gan rollback;

[0011] (5)自动恢复:虚拟机/物理机镜像上传至云平台之后,自动调用云平台接口,基于该镜像创建虚拟机; [0011] (5) automatic recovery: VM / physical machine images uploaded to the cloud platform later, automatically call the cloud platform interface to create a virtual machine based on the image;

[0012] (6)迀移日志:记录迀移过程中各个步骤状态,提交错误的原因。 [0012] (6) Gan log shift: shift Gan recording state during each step, to submit the error.

[0013] 进一步地,所述虚拟化平台为VMware、Xen、KVM、Hyper-V。 [0013] Further, the virtualization platform as VMware, Xen, KVM, Hyper-V.

[0014] 进一步地,所述迀移工具为ovftool、qemu、virt_v2v。 [0014] Further, the shifting tool Gan ovftool, qemu, virt_v2v.

[0015] 进一步地,所述云平台为OpenStack、CloudStack、恒天云、阿里云。 [0015] Further, the cloud platform OpenStack, CloudStack, clouds constant day, Ali cloud.

[0016] 本发明的有益效果是:本发明方法支持常用的物理机操作系统:Windows, CentOS, RedHat, Ubuntu ;操作者负责在迀移前做好工具配置,为要迀移的机器安装必要的软件。 [0016] Advantageous effects of the present invention is: A method according to the present invention supports conventional physical operating systems: Windows, CentOS, RedHat, Ubuntu; operator take charge shifting tool disposed at the front Gan, necessary for the installation of the machine to move Gan software. 后续的云镜像制作、上传和校验由自动化迀移工具完成。 Subsequent cloud mirroring, parity, and uploaded by automated shift Gan tools. 对于迀移失败的机器,工具提供错误日志供操作者检查。 Gan failed to move the machines, tools for the operator to check the error log. 本发明针对物理服务器或已有虚拟化平台上的虚拟机批量导入云平台,从而简化操作,提高效率。 The present invention is directed to a physical server virtualization platform or existing virtual machine bulk import cloud platform to simplify operation, improve efficiency. 技术以稳定可靠为准,利用RedHat和VMffare提供的成熟迀移工具。 Subject to reliable technology, and the use of mature Gan RedHat provide VMffare shift tool.

附图说明 BRIEF DESCRIPTION

[0017] 图1虚拟机到虚拟机迀移(V2V)示意图; [0017] FIG 1 the virtual machine to the virtual machine Gan shift (V2V) schematic;

[0018] 图2物理机到虚拟机迀移(P2V)示意图。 [0018] FIG 2 Physical to virtual Gan shift (P2V) FIG.

具体实施方式 Detailed ways

[0019] 下面结合附图和具体实施例对本发明作进一步详细说明。 [0019] conjunction with the accompanying drawings and the following specific embodiments of the present invention is described in further detail.

[0020] 本发明一种基于云平台自动迀移虚拟机的方法,该方法将虚拟化平台上已有的虚拟机,或将物理机转化为虚拟机后迀移至云平台,具体包括以下步骤: After [0020] The present invention is a method for automatically Gan cloud platform shift the virtual machine based on the conventional method virtualization virtual machine on the platform, or the physical machines into virtual machines Gan into the cloud platform, comprises the steps of :

[0021] (1)迀移准备:使用自动化迀移工具指定需要迀移的虚拟机/物理机,配置迀移参数,自动获取虚拟化平台上虚拟机操作系统以及配置信息,估算出整个虚拟机迀移需要花费的时间;所述配置信息包括CPU、内存、磁盘; [0021] (1) Gan shift prepared: using automated Gan shifting tool to specify the required Gan shift VM / physical machine configuration Gan shifting parameter, automatically obtain a virtual platform virtual machine operating system and configuration information, to estimate the entire virtual machine Gan time it takes to move; the configuration information including CPU, memory, disk;

[0022] (2)安装补丁:为保证迀移后的机器能在云平台上平稳运行,需在迀移前为被迀移机安装virt1驱动; [0022] (2) install the patch: Gan To ensure the machine is running smoothly move on the cloud platform, needs to be installed virt1 shifted Gan Gan before shifting drive;

[0023] (3)自动迀移:调用虚拟化驱动层,在不影响现有服务的情况下,在线对虚拟机做备份,制作云镜像,转换镜像格式以支持云平台;调用云平台API驱动将虚拟机/物理机镜像上传至云平台,并进行MD5值校验; [0023] (3) Automatic Gan move: calling virtual driver layer, without affecting existing services, do online backup, making cloud images on a virtual machine, convert image format to support cloud platform; call cloud platform API driver the VM / physical machine image uploaded to the cloud platform, and MD5 checksum value;

[0024] (4)迀移回滚:虚拟机/物理机镜像制作迀移过程中出现错误,整个迀移回滚; [0024] (4) Gan shift rollback: Virtual Machine / physical machines mirroring Gan shift error is displayed during the entire shift Gan rollback;

[0025] (5)自动恢复:虚拟机/物理机镜像上传至云平台之后,自动调用云平台接口,基于该镜像创建虚拟机; [0025] (5) automatic recovery: VM / physical machine images uploaded to the cloud platform later, automatically call the cloud platform interface to create a virtual machine based on the image;

[0026] (6)迀移日志:记录迀移过程中各个步骤状态,提交错误的原因。 [0026] (6) Gan log shift: shift Gan recording state during each step, to submit the error.

[0027] 所述虚拟化平台为VMware、Xen、KVM、Hyper-V。 [0027] The virtualization platform as VMware, Xen, KVM, Hyper-V. 所述迀移工具为ovftool、qemu、virt-v2vo所述云平台为OpenStack、CloudStack、恒天云、阿里云。 The shifting tool Gan ovftool, qemu, virt-v2vo the cloud platform OpenStack, CloudStack, clouds constant day, Ali cloud.

[0028] 如图1所示,虚拟机到虚拟机迀移(V2V)流程大致可分为镜像导出、镜像格式转换、镜像上传和校验等步骤。 [0028] 1, the virtual machine to the virtual machine Gan shift (V2V) deriving process can be divided into mirror, image format conversion, and image upload verification step and the like. 开发过程中将考量、比较多种迀移工具,以确保可靠性。 It will consider the development process, compare multiple Gan shift tool to ensure reliability. 如VMffare提供的ovftool和RedHat提供的qemu、virt_v2v等。 As VMffare provided ovftool and RedHat provided qemu, virt_v2v like. 镜像校验将采用md5验证码。 The mirror using md5 checksum codes.

[0029] 如图2所示,物理机到虚拟机迀移(P2V)流程大致为虚拟机镜像制作(物理机克隆)、镜像上传和校验等步骤。 [0029] As shown, a physical machine to a virtual machine Gan shift 2 (P2V) flow substantially mirroring the virtual machine (physical clone), mirroring and parity etc. uploading step. 开发人员同意将考虑多种迀移技术,如VMffare的vCenterConverter 和RedHat 的virt_p2v 等。 Developers agreed to consider a variety of Gan-shifting technique, such as RedHat and virt_p2v vCenterConverter of VMffare and so on.

Claims (4)

1.一种基于云平台自动迀移虚拟机的方法,其特征在于,该方法将虚拟化平台上已有的虚拟机,或将物理机转化为虚拟机后迀移至云平台,具体包括以下步骤: (1)迀移准备:使用自动化迀移工具指定需要迀移的虚拟机/物理机,配置迀移参数,自动获取虚拟化平台上虚拟机操作系统以及配置信息,估算出整个虚拟机迀移需要花费的时间;所述配置信息包括CPU、内存、磁盘; (2)安装补丁:为保证迀移后的机器能在云平台上平稳运行,需在迀移前为被迀移机安装virt1驱动; (3)自动迀移:调用虚拟化驱动层,在不影响现有服务的情况下,在线对虚拟机做备份,制作云镜像,转换镜像格式以支持云平台;调用云平台API驱动将虚拟机/物理机镜像上传至云平台,并进行MD5值校验; (4)迀移回滚:虚拟机/物理机镜像制作迀移过程中出现错误,整个迀移回滚; (5)自动恢复: 1. A method for internet cloud automatic shift Gan-based virtual machine, wherein the method virtualization platform has a virtual machine, or the physical machine into the virtual machine is moved Gan cloud platform, including the following step: (1) Gan shift prepared: using automated Gan shifting tool to specify the required Gan shift VM / physical machine configuration Gan shifting parameter, automatically obtain a virtual platform virtual machine operating system and configuration information, to estimate the entire virtual machine Gan it takes time to move; the configuration information including CPU, memory, disk; (2) install the patch: Gan to ensure the machine is running smoothly move on the cloud platform, need to be shifted before Gan Gan shift installation virt1 drive; (3) Gan automatically move: calling virtual driver layer, without affecting existing services, online virtual machines for backup, making cloud images, convert image format to support cloud platform; cloud platform API calls will drive VM / physical machine image uploaded to the cloud platform, and MD5 checksum value; (4) Gan shift rollback: virtual machine / physical machines mirroring Gan shift error is displayed during the entire shift Gan rollback; (5) Auto restore: 拟机/物理机镜像上传至云平台之后,自动调用云平台接口,基于该镜像创建虚拟机; (6)迀移日志:记录迀移过程中各个步骤状态,提交错误的原因。 After the proposed machine / physical machine image uploaded to the cloud platform, automatic call cloud platform interface, creating a virtual machine based on the image; (6) Gan log shift: shift Gan recording state during each step, to submit the error.
2.根据权利要求1所述一种基于云平台自动迀移虚拟机的方法,其特征在于,所述虚拟化平台为VMware、Xen、KVM、Hyper-V0 2. The method of cloud-based virtual machine internet automatically shift the Gan claimed in claim 1, wherein the virtualization platform as VMware, Xen, KVM, Hyper-V0
3.根据权利要求1所述一种基于云平台自动迀移虚拟机的方法,其特征在于,所述迀移工具为ovftool、qemu、virt-v2v0 3. The method of cloud-based virtual machine internet automatically shift the Gan claimed in claim 1, wherein the shifting tool Gan ovftool, qemu, virt-v2v0
4.根据权利要求1所述一种基于云平台自动迀移虚拟机的方法,其特征在于,所述云平台为OpenStack、CloudStack、恒天云、阿里云。 The cloud-based internet Gan automatically shift the virtual machine process as claimed in claim 1, wherein said platform is a cloud OpenStack, CloudStack, clouds constant day, Ali cloud.
CN201510612487.3A 2015-09-23 2015-09-23 Method for automatically migrating virtual machine on the basis of cloud platform CN105260226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510612487.3A CN105260226A (en) 2015-09-23 2015-09-23 Method for automatically migrating virtual machine on the basis of cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510612487.3A CN105260226A (en) 2015-09-23 2015-09-23 Method for automatically migrating virtual machine on the basis of cloud platform

Publications (1)

Publication Number Publication Date
CN105260226A true CN105260226A (en) 2016-01-20

Family

ID=55099929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510612487.3A CN105260226A (en) 2015-09-23 2015-09-23 Method for automatically migrating virtual machine on the basis of cloud platform

Country Status (1)

Country Link
CN (1) CN105260226A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843682A (en) * 2016-03-29 2016-08-10 新浪网技术(中国)有限公司 Method and apparatus for migrating virtual machine to IaaS cloud platform
CN106201653A (en) * 2016-06-30 2016-12-07 国云科技股份有限公司 Method for converting vmware virtual machine into kvm virtual machine
WO2018090290A1 (en) * 2016-11-17 2018-05-24 华为技术有限公司 Mirror image file conversion method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819545A (en) * 2010-04-09 2010-09-01 济南银泉科技有限公司 Method for realizing platform migration by using virtualization technology
CN102185928A (en) * 2011-06-01 2011-09-14 广州杰赛科技股份有限公司 Method for creating virtual machine in cloud computing system and cloud computing system
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
US20130262390A1 (en) * 2011-09-30 2013-10-03 Commvault Systems, Inc. Migration of existing computing systems to cloud computing sites or virtual machines
US20140115161A1 (en) * 2012-10-18 2014-04-24 Prashant Agarwal Method and system for migration of multi-tier virtual application across different clouds hypervisor platforms
CN104281484A (en) * 2014-09-23 2015-01-14 华为技术有限公司 VM (virtual machine) migration method and device
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101819545A (en) * 2010-04-09 2010-09-01 济南银泉科技有限公司 Method for realizing platform migration by using virtualization technology
CN102185928A (en) * 2011-06-01 2011-09-14 广州杰赛科技股份有限公司 Method for creating virtual machine in cloud computing system and cloud computing system
US20130262390A1 (en) * 2011-09-30 2013-10-03 Commvault Systems, Inc. Migration of existing computing systems to cloud computing sites or virtual machines
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
US20140115161A1 (en) * 2012-10-18 2014-04-24 Prashant Agarwal Method and system for migration of multi-tier virtual application across different clouds hypervisor platforms
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method
CN104281484A (en) * 2014-09-23 2015-01-14 华为技术有限公司 VM (virtual machine) migration method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
林缘232: ""迁移VMware虚拟机到KVM"", 《HTTP://WWW.360DOC.COM/CONTENT/14/0624/23/15328926_389489842.SHTML#》 *
王仕象: ""关于虚拟机迁移技术的应用研究"", 《科技传播》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843682A (en) * 2016-03-29 2016-08-10 新浪网技术(中国)有限公司 Method and apparatus for migrating virtual machine to IaaS cloud platform
CN105843682B (en) * 2016-03-29 2019-03-01 新浪网技术(中国)有限公司 It is a kind of migration virtual machine to IaaS cloud platform method and device
CN106201653A (en) * 2016-06-30 2016-12-07 国云科技股份有限公司 Method for converting vmware virtual machine into kvm virtual machine
WO2018090290A1 (en) * 2016-11-17 2018-05-24 华为技术有限公司 Mirror image file conversion method and apparatus

Similar Documents

Publication Publication Date Title
US8566640B2 (en) Systems, methods, and computer program products for instant recovery of image level backups
AU2012273366B2 (en) Managing replicated virtual storage at recovery sites
US9317314B2 (en) Techniques for migrating a virtual machine using shared storage
US8495316B2 (en) Efficient management of archival images of virtual machines having incremental snapshots
JP6054522B2 (en) Integrated storage / vdi provisioning method
US20090113109A1 (en) Using Virtual Machine Cloning To Create a Backup Virtual Machine in a Fault Tolerant System
CN101840346B (en) Method and system for deploying cloud host computer
US9661071B2 (en) Apparatus, systems and methods for deployment and management of distributed computing systems and applications
US8510590B2 (en) Method and system for cluster resource management in a virtualized computing environment
US7657888B2 (en) Method for forking or migrating a virtual machine
US8479194B2 (en) Virtual machine migration
EP3125113A1 (en) Systems and methods for initializing multiple virtual processors within a single virtual machine
EP2053509B1 (en) System for and method of migrating one or more virtual machines
US9465642B1 (en) Systems and methods for instant provisioning of virtual machine files
US20130091376A1 (en) Self-repairing database system
US8635395B2 (en) Method of suspending and resuming virtual machines
US7769720B2 (en) Systems and methods for migrating a server from one physical platform to a different physical platform
JP5562444B2 (en) System and method for failover cluster unaware application in a cluster system
US9454393B2 (en) Planned virtual machines
US9244676B2 (en) Virtual machine based controller and upgrade mechanism
US20060005189A1 (en) Systems and methods for voluntary migration of a virtual machine between hosts with common storage connectivity
US9304804B2 (en) Replicating virtual machines across different virtualization platforms
US9633406B2 (en) Use of snapshots to reduce risk in migration to a standard virtualized environment
US8843924B2 (en) Identification of over-constrained virtual machines
US9722858B2 (en) Management infrastructure analysis for cloud migration

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination