CN106844001A - 基于云平台实现对vmware虚拟机热迁移的方法 - Google Patents

基于云平台实现对vmware虚拟机热迁移的方法 Download PDF

Info

Publication number
CN106844001A
CN106844001A CN201611199038.1A CN201611199038A CN106844001A CN 106844001 A CN106844001 A CN 106844001A CN 201611199038 A CN201611199038 A CN 201611199038A CN 106844001 A CN106844001 A CN 106844001A
Authority
CN
China
Prior art keywords
vmware
virtual machine
migration
internal memory
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611199038.1A
Other languages
English (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.)
CLP SECTION HUAYUN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CLP SECTION HUAYUN INFORMATION TECHNOLOGY Co Ltd
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 CLP SECTION HUAYUN INFORMATION TECHNOLOGY Co Ltd filed Critical CLP SECTION HUAYUN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201611199038.1A priority Critical patent/CN106844001A/zh
Publication of CN106844001A publication Critical patent/CN106844001A/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种基于云平台实现对vmware虚拟机热迁移的方法,其包括以下步骤:步骤一,配置允许主机间迁移;步骤二,配置允许vmware虚拟机基于内存的调度;步骤三,vmware虚拟机热迁移基于内存的目标主机的迁移;步骤四,vmware虚拟机热迁移基于存储间的迁移等。本发明能够解决现存虚拟机迁移只能迁移KVM类型的虚拟机,而不能迁移vmware类型的虚拟机的问题,实现针对vmware虚拟机迁移基于内存的调度方法,实现针对vmware虚拟机迁移基于存储的调度方法。

Description

基于云平台实现对vmware虚拟机热迁移的方法
技术领域
本发明涉及一种vmware虚拟机热迁移的方法,特别是涉及一种基于云平台实现对vmware虚拟机热迁移的方法。
背景技术
随着云平台的大规模应用,企业在应用云平台的过程中,存在对现有资源整合和重新规划使用的需求,现存的物理资源上的虚拟机资源,需要进行迁移,以匹配现有的服务布局,现有厂商的云平台方案,实现了针对kvm虚拟机的迁移功能,但是没有涉及到针对vmware类型的虚拟机热迁移功能的支持。
发明内容
本发明所要解决的技术问题是提供一种基于云平台实现对vmware虚拟机热迁移的方法,其能够解决现存虚拟机迁移只能迁移KVM类型的虚拟机,而不能迁移vmware类型的虚拟机的问题,实现针对vmware虚拟机迁移基于内存的调度方法,实现针对vmware虚拟机迁移基于存储的调度方法。
本发明是通过下述技术方案来解决上述技术问题的:一种基于云平台实现对vmware虚拟机热迁移的方法,其包括以下步骤:
步骤一,配置允许主机间迁移;在nova的配置文件中,增加allow migrate tosame host选项,通过allow migrate to same host选项控制是否允许在同一个主机上进行迁移,allow migrate to same host=True为允许,allow migrate to same host=False为不允许;
步骤二,配置允许vmware虚拟机基于内存的调度;在nova的配置文件中,设置vmware migrate scheduler的调度方式,来确定是否允许通过内存使用量来判断是否允许通过内存使用量自动调度迁移目标主机,vmware migrate scheduler=memoryScheduler,为允许通过内存使用量自动调度迁移目标主机;
步骤三,vmware虚拟机热迁移基于内存的目标主机的迁移;
步骤四,vmware虚拟机热迁移基于存储间的迁移;执行nova live migrationserver id host命令时,添加block migrate参数,将vmware虚拟机迁移到其它的存储上。
优选地,所述步骤三包括以下步骤:
步骤三十,调度vcenter的driver(驱动)接口,获取cluster(集群)下的所有主机信息;
步骤三十一,在获取的所有有用主机信息中,提取所有主机的内存总量和内存使用量;
步骤三十二,根据获取的所有有用主机的内存总量和内存使用量,对比后选择出内存使用量最少的主机;
步骤三十三,执行nova live migration server id host,根据获取到主机信息;
步骤三十四,将上步骤获取的host信息传入MigrateVM Task(迁移虚拟机任务)中执行;
步骤三十五,MigrateVM Task(迁移虚拟机任务)通过driver调度到vcenter;
步骤三十六,vcenter将vmware的虚拟机热迁移到新的主机上。
本发明的积极进步效果在于:本发明能够通过对vmware虚拟机的热迁移,可以帮助客户进行服务器的重新、规划、部署,保证客户的业务不中断,不受影响,对于现存于云管理平台的vmware虚拟机,可以对其进行同一个vcenter同一个c luster的不同主机,不同存储间的热迁移。
附图说明
图1为本发明的流程图。
具体实施方式
下面结合附图给出本发明较佳实施例,以详细说明本发明的技术方案。
如图1所示,本发明基于云平台实现对vmware(虚拟机软件)虚拟机热迁移的方法包括以下步骤:
步骤一,本发明配置允许主机间迁移;在nova(计算服务)的配置文件中,增加allow(允许)migrate(迁移)to(到)same(相同)host(主机)选项,通过allow migrate tosame host选项控制是否允许在同一个主机上进行迁移,allow migrate to same host=True(正确)为允许,allow migrate to same host=False(无措)为不允许;
步骤二,配置允许vmware虚拟机基于内存的调度;在nova的配置文件中,设置vmware migrate scheduler(调度程序)的调度方式,来确定是否允许通过内存使用量来判断是否允许通过内存使用量自动调度迁移目标主机,vmware migrate scheduler=memoryScheduler(基于内存调度),为允许通过内存使用量自动调度迁移目标主机;
步骤三,vmware虚拟机热迁移基于内存的目标主机的迁移;
步骤四,vmware虚拟机热迁移基于存储间的迁移;执行nova live migrationserver(服务器)id(identification,身份证)host命令时,添加block(块)migrate参数,即可将vmware虚拟机迁移到其它的存储上。
步骤三包括以下步骤:
步骤三十,调度vcenter(Vcenter一般指VMware vCenter Server,VMwarevCenter Server提供了一个可伸缩、可扩展的平台,为虚拟化管理奠定了基础)的driver(驱动)接口,获取cluster(集群)下的所有主机信息;
步骤三十一,在获取的所有有用主机信息中,提取所有主机的内存总量和内存使用量;
步骤三十二,根据获取的所有有用主机的内存总量和内存使用量,对比后选择出内存使用量最少的主机;
步骤三十三,执行nova live migration server id host,根据获取到主机信息;
步骤三十四,将上步骤获取的host信息传入MigrateVM Task(迁移虚拟机任务)中执行;
步骤三十五,MigrateVM Task(迁移虚拟机任务)通过driver调度到vcenter;
步骤三十六,vcenter将vmware的虚拟机热迁移到新的主机上。
以上所述的具体实施例,对本发明的解决的技术问题、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (2)

1.一种基于云平台实现对vmware虚拟机热迁移的方法,其特征在于,其包括以下步骤:
步骤一,配置允许主机间迁移;在nova的配置文件中,增加允许迁移到相同主机选项,通过允许迁移到相同主机选项控制是否允许在同一个主机上进行迁移,允许迁移到相同主机等于正确时为允许,允许迁移到相同主机等于错误时为不允许;
步骤二,配置允许vmware虚拟机基于内存的调度;在nova的配置文件中,设置vmwaremigrate scheduler的调度方式,来确定是否允许通过内存使用量来判断是否允许通过内存使用量自动调度迁移目标主机,vmware migrate scheduler=memoryScheduler,为允许通过内存使用量自动调度迁移目标主机;
步骤三,vmware虚拟机热迁移基于内存的目标主机的迁移;
步骤四,vmware虚拟机热迁移基于存储间的迁移;执行nova live migration serverid host命令时,添加block migrate参数,将vmware虚拟机迁移到其它的存储上。
2.如权利要求1所述的基于云平台实现对vmware虚拟机热迁移的方法,其特征在于,所述步骤三包括以下步骤:
步骤三十,调度vcenter的驱动接口,获取集群下的所有主机信息;
步骤三十一,在获取的所有有用主机信息中,提取所有主机的内存总量和内存使用量;
步骤三十二,根据获取的所有有用主机的内存总量和内存使用量,对比后选择出内存使用量最少的主机;
步骤三十三,执行nova live migration server id host,根据获取到主机信息;
步骤三十四,将上步骤获取的host信息传入迁移虚拟机任务中执行;
步骤三十五,迁移虚拟机任务通过driver调度到vcenter;
步骤三十六,vcenter将vmware的虚拟机热迁移到新的主机上。
CN201611199038.1A 2016-12-22 2016-12-22 基于云平台实现对vmware虚拟机热迁移的方法 Pending CN106844001A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611199038.1A CN106844001A (zh) 2016-12-22 2016-12-22 基于云平台实现对vmware虚拟机热迁移的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611199038.1A CN106844001A (zh) 2016-12-22 2016-12-22 基于云平台实现对vmware虚拟机热迁移的方法

Publications (1)

Publication Number Publication Date
CN106844001A true CN106844001A (zh) 2017-06-13

Family

ID=59137023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611199038.1A Pending CN106844001A (zh) 2016-12-22 2016-12-22 基于云平台实现对vmware虚拟机热迁移的方法

Country Status (1)

Country Link
CN (1) CN106844001A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327509A (zh) * 2020-01-21 2020-06-23 新华三信息安全技术有限公司 一种信息更新方法及装置

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140372639A1 (en) * 2013-06-12 2014-12-18 International Business Machines Corporation Online migration of a logical volume between storage systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140372639A1 (en) * 2013-06-12 2014-12-18 International Business Machines Corporation Online migration of a logical volume between storage systems

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BETTER_MEE: ""openstack ice resize 详解(一)"", 《HTTPS://BLOG.CSDN.NET/TANTEXIAN/ARTICLE/DETAILS/41444461》 *
STONESHARP: ""VMware 虚拟机迁移"", 《HTTPS://BLOG.CSDN.NET/STONESHARP/ARTICLE/DETAILS/51329492》 *
张文娟: ""基于Open Stack的资源调度策略研究与优化"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327509A (zh) * 2020-01-21 2020-06-23 新华三信息安全技术有限公司 一种信息更新方法及装置

Similar Documents

Publication Publication Date Title
US10162669B2 (en) Dynamic relocation of applications in a cloud application service model
JP6435050B2 (ja) クラウドシステムにおけるリソース管理
US10474488B2 (en) Configuration of a cluster of hosts in virtualized computing environments
CN104854563B (zh) 资源使用的自动分析
US9665411B2 (en) Communication between a server orchestration system and a messaging system
US10176004B2 (en) Workload-aware load balancing to minimize scheduled downtime during maintenance of host or hypervisor of a virtualized computing system
US11461149B1 (en) Capacity management in provider networks using dynamic host device instance model reconfigurations
CN106326002B (zh) 资源调度方法、装置及设备
US9697266B1 (en) Management of computing system element migration
US10936356B2 (en) Virtual machine management
US20060031813A1 (en) On demand data center service end-to-end service provisioning and management
CN103207965A (zh) 一种虚拟环境下License认证的方法及装置
US20170093966A1 (en) Managing a shared pool of configurable computing resources having an arrangement of a set of dynamically-assigned resources
CN105653372A (zh) 基于云平台实现多虚拟化混合管理与调度的方法
CN103780686A (zh) 一种云组织内自定义申请审批流程的方法及系统
CN107479984A (zh) 基于消息的分布式空间数据处理系统
CN103560915A (zh) 管理云计算系统中资源的方法和系统
CN105589731A (zh) 一种虚拟机迁移方法和装置
CN105389196A (zh) 利用虚拟化技术进行地震资料处理的方法
CN107656796A (zh) 一种虚拟机冷迁移方法、系统及设备
CN106844001A (zh) 基于云平台实现对vmware虚拟机热迁移的方法
CN108351802B (zh) 计算机数据处理系统和用于虚拟机通信的基于通信流量的优化的方法
US20150286508A1 (en) Transparently routing job submissions between disparate environments
CN103051668B (zh) 一种服务器资源管理系统及管理方法
CN104754040B (zh) 用于端到端云服务虚拟化的系统

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613