WO2019080012A1 - Method for cloudstack to take over original vcenter cluster - Google Patents

Method for cloudstack to take over original vcenter cluster

Info

Publication number
WO2019080012A1
WO2019080012A1 PCT/CN2017/107683 CN2017107683W WO2019080012A1 WO 2019080012 A1 WO2019080012 A1 WO 2019080012A1 CN 2017107683 W CN2017107683 W CN 2017107683W WO 2019080012 A1 WO2019080012 A1 WO 2019080012A1
Authority
WO
WIPO (PCT)
Prior art keywords
vcenter
cluster
virtual machine
cloudstack
original
Prior art date
Application number
PCT/CN2017/107683
Other languages
French (fr)
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 PCT/CN2017/107683 priority Critical patent/WO2019080012A1/en
Publication of WO2019080012A1 publication Critical patent/WO2019080012A1/en

Links

Images

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

Definitions

  • the present invention relates to the technical field of Internet cloud computing platform management, and in particular, to a method for CloudStack to take over an original vCenter cluster.
  • isolation is mainly used as a security means, which is divided into physical isolation, internal and external network isolation, and encryption isolation. It has been proved that this isolation method can effectively protect traditional IT architecture.
  • this traditional information security which is isolated as the main idea, has become increasingly difficult to deal with in the new IT architecture.
  • the typical scenario of public cloud is multi-tenant sharing, but compared with the traditional IT architecture, the original trusted boundary is completely broken, and the threat may come directly from neighboring tenants. Cloud security becomes especially important.
  • CloudStack is the world's leading application service software solution provider Citrix Inc., an open source cloud platform management software that works with the Apache Foundation on CloudStack Infrastructure as a Service (IaaS) product source code. CloudStack accelerates the deployment, management, and configuration of highly scalable public and private clouds (IaaS). Using CloudStack as a foundation, data center operators can quickly and easily build their own cloud services on existing infrastructure. As an open source cloud management platform, CloudStack installation and configuration is relatively simple, providing support for a variety of virtual machine platforms, based on WEB browser management is more convenient, the operation interface is also more beautiful. Now, not only telecom operators are adopting CloudStack, but more and more enterprises are also using CloudStack to build cloud platforms.
  • CloudStack uses a variety of host virtualization/network virtualization/storage virtualization technologies to build virtual machines and configure management to form an elastically scalable resource pool.
  • Host virtualization supports the management of most major hypervisors, such as KVM virtual machine, XenServer, VMware, Oracle VM, Xen, etc.; network virtualization support such as security group, VLan, GRE, VxLan, etc.; storage virtualization supports local storage, ISCSI storage, network storage (Sharepoint, distributed storage, etc.) .
  • vCenter refers to VMware vCenter Server, which provides a scalable, scalable platform that provides the foundation for virtualization management and is the easiest and most effective way to manage VMware vSphere. Borrow Help VMware vCenter Server centrally manage all hosts and virtual machines in the data center from a single console that aggregates the performance monitoring capabilities of clusters, hosts, and virtual machines. VMware vCenter Server gives administrators an in-depth view of all the information of a virtual infrastructure's clusters, hosts, virtual machines, storage, guest operating systems, and other key components. With VMware vCenter Server, virtualized environments become easier to manage, and an administrator can manage more than 100 workloads, doubling the efficiency of managing physical infrastructure, but vCenter is commercialized The solution is costly.
  • the CloudStack can only manage the VMs initiated by the CloudStack and cannot manage the VMs initiated by the vCenter. That is, the vCenter VM cannot be managed by using the CloudStack platform.
  • the embodiment of the present invention provides a method for the CloudStack to take over the original vCenter cluster, including: acquiring the cluster information of the vCenter cluster to be taken over; creating a basic area, and integrating the vCenter cluster into the management of the CloudStack; The basic configuration information of the existing virtual machine is created; the corresponding network, the computing solution, the disk solution, and the ISO file are created according to the basic configuration information; the mirrored virtual machine corresponding to the original vCenter cluster is created; and the vCenter cluster is closed. with a virtual machine in the CloudStack; copying a disk file of a virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack; and starting the mirrored virtual machine in the CloudStack.
  • the step of acquiring the cluster information of the vCenter cluster to be taken over includes: acquiring basic information of the vCenter cluster, including a vCenter host name, a vCenter user name, a vCenter user password, and a vCenter data center name;
  • the basic information of the vCenter cluster is obtained by calling the SDK to obtain information about the vSwitch network, storage, and virtual machine in the vCenter cluster.
  • the basic configuration information includes information about an operating system type, network information, a CPU, a memory, a hard disk, and a snapshot of a virtual machine that already exists in the vCenter cluster.
  • the step of creating a corresponding network, a computing solution, a disk scheme, and an ISO file includes: creating a specified IP, a computing solution, a disk scheme in the CloudStack, and adding a corresponding ISO file according to a type classification of the operating system. .
  • the step of creating a mirrored virtual machine corresponding to the original vCenter cluster includes: creating a one-to-one correspondence with the virtual machine of the original vCenter cluster according to the computing scheme, the disk scheme, and the ISO file.
  • the mirrored virtual machine is
  • the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack includes: in the vCenter shared storage, the disk of the virtual machine in the original vCenter The vmdk file is copied to the folder of the newly created mirror virtual machine in the CloudStack, and the corresponding disk vmdk file in the CloudStack is deleted.
  • the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes: renaming the copied disk vmdk file to the deleted in the CloudStack The name of the disk vmdk file.
  • the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes: using the vSphere Clinet SDK, the virtual machine in the original vCenter cluster The folder name is renamed with the folder name of the corresponding mirrored virtual machine created in the CloudStack.
  • the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes: deleting a folder name of the virtual machine in the original vCenter cluster, File name and file configuration information in the folder and the CloudStack
  • the folder name of the newly created mirror virtual machine, the file name in the folder, and the file configuration information are modified one-to-one. This avoids the time cost of copying disk files.
  • the step of starting the mirrored virtual machine further comprises: checking whether the mirrored virtual machine in the CloudStack starts normally, whether the disk file and the snapshot are complete, whether the network IP is used normally; and once the check passes, The migration is completed and the CloudStack begins to take over the corresponding virtual machine in the original vCenter cluster.
  • the method in which the CloudStack takes over the original vCenter cluster in the embodiment of the present invention can quickly implement the management of the original vCenter cluster resources by the CloudStack through a unified self-management interface, and the migration process is transparent and controllable, simple to implement, and easy to operate.
  • the technical solution of the present invention can prevent the customer from using two tools to manage the existing virtual machine and the original virtual machine of the customer, thereby saving operation and maintenance costs.
  • FIG. 1 is a schematic flowchart of a method for a CloudStack to take over an original vCenter cluster according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of a method 100 for a CloudStack to take over an original vCenter cluster according to an embodiment of the present invention. As shown in FIG. 1, the takeover cluster method 100 can include the following steps:
  • Step S102 Obtain cluster information of the vCenter cluster to be taken over.
  • the step S102 may include: acquiring basic information of the vCenter cluster, including a vCenter host name, a vCenter user name, a vCenter user password, and a vCenter data center name;
  • the basic information of the obtained vCenter cluster is obtained by calling the SDK to further obtain information about the vSwitch network, the storage, and the virtual machine in the vCenter cluster.
  • Step S104 Create a basic area, and integrate the vCenter cluster into the management of the CloudStack.
  • Step S106 Statistics basic configuration information of the virtual machine that exists in the vCenter cluster.
  • the basic configuration information may include information about an operating system type, network information, CPU, memory, hard disk, and snapshot of a virtual machine that already exists in the vCenter cluster.
  • Step S108 Create a corresponding network, a computing solution, a disk scheme, and an ISO file according to the basic configuration information.
  • step S108 may include: creating a specified IP, a computing scheme, a disk scheme in the CloudStack, and adding a corresponding ISO file according to a type classification of the operating system.
  • Step S110 Create a mirrored virtual machine corresponding to the original vCenter cluster.
  • the step S110 may include: creating, according to the computing solution, the disk solution, and the ISO file, the mirrored virtual machine corresponding to the virtual machine of the original vCenter cluster.
  • Step S112 Shut down the virtual machine in the vCenter cluster and the CloudStack.
  • Step S114 Copy the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack.
  • the step S114 may include: copying, in the vCenter shared storage, a disk vmdk file of the virtual machine in the original vCenter to a folder of the newly created mirror virtual machine in the CloudStack, and simultaneously The corresponding disk vmdk file is deleted.
  • step S114 may further include: renaming the copied disk vmdk file to a name of the deleted disk vmdk file in the CloudStack.
  • the step S114 may further include: renaming, by using the vSphere Clinet SDK, a folder name of the virtual machine in the original vCenter cluster and a folder name of the corresponding mirrored virtual machine created in the CloudStack.
  • the step S114 may further include: a folder name of the virtual machine in the original vCenter cluster, a file name in the folder, file configuration information, and a file of the newly created mirror virtual machine in the CloudStack.
  • the folder name, the file name in the folder, and the file configuration information are modified one-to-one. This avoids the time cost of copying disk files.
  • Step S116 Start the mirror virtual machine in the CloudStack.
  • step S116 may further include: checking whether the mirrored virtual machine in the CloudStack starts normally, whether the disk file and the snapshot are complete, whether the network IP is used normally; and once the check passes, the migration is completed and the CloudStack starts. Takes over the corresponding virtual machine in the original vCenter cluster.
  • the method in which the CloudStack takes over the original vCenter cluster in the embodiment of the present invention can quickly implement the management of the original vCenter cluster resources by the CloudStack through a unified self-management interface, and the migration process is transparent and controllable, simple to implement, and easy to operate.
  • the technical solution of the present invention can prevent the customer from using two tools to manage the existing virtual machine and the original virtual machine of the customer, thereby saving operation and maintenance costs.

Abstract

Disclosed are a method for a CloudStack to take over an original vCenter cluster, comprising: acquiring cluster information of a vCenter cluster to be taken over; creating a base area and incorporating the vCenter cluster into the management of the CloudStack; collecting basic configuration information of an existing virtual machine in the vCenter cluster; creating a corresponding network, a computing scheme, a disk scheme, and an ISO file according to the basic configuration information; creating a mirrored virtual machine corresponding to the original vCenter cluster; shutting down the virtual machines in the vCenter cluster and the CloudStack; copying the disk files of the virtual machines in the original vCenter cluster to the mirrored virtual machine in the CloudStack; and starting the mirrored virtual machine in the CloudStack. Advantageously, the present invention can quickly implement CloudStack's management of the original vCenter cluster resources by means of a unified self-management interface, and the migration process is transparent and controllable, simple to implement, and easy to operate. By use of the technical solution of the present invention, a customer does not need to use two tools to manage the customer's existing virtual machine and the original virtual machine, thereby saving on the operation and maintenance costs.

Description

CloudStack接管原有vCenter集群的方法CloudStack takes over the original vCenter cluster method 技术领域Technical field
本发明涉及互联网云计算平台管理的技术领域,尤其涉及一种CloudStack接管原有vCenter集群的方法。The present invention relates to the technical field of Internet cloud computing platform management, and in particular, to a method for CloudStack to take over an original vCenter cluster.
背景技术Background technique
在传统的信息安全时代主要采用隔离作为安全的手段,具体分为物理隔离、内外网隔离、加密隔离,实践证明这种隔离手段针对传统IT架构能起到有效的防护。随着云计算的兴起,这种隔离为主体思想的传统信息安全在新的IT架构中已经日益难以应对了。公有云的典型场景是多租户共享,但和传统IT架构相比,原来的可信边界彻底被打破了,威胁可能直接来自于相邻租户,云安全变得尤为重要。In the traditional information security era, isolation is mainly used as a security means, which is divided into physical isolation, internal and external network isolation, and encryption isolation. It has been proved that this isolation method can effectively protect traditional IT architecture. With the rise of cloud computing, this traditional information security, which is isolated as the main idea, has become increasingly difficult to deal with in the new IT architecture. The typical scenario of public cloud is multi-tenant sharing, but compared with the traditional IT architecture, the original trusted boundary is completely broken, and the threat may come directly from neighboring tenants. Cloud security becomes especially important.
CloudStack是世界领先的应用服务软件方案提供商思杰公司(Citrix)公司将CloudStack基础设施即服务(IaaS)产品源代码与Apache Foundation合作的一个开源云平台管理软件。CloudStack可以加速高伸缩性的公共和私有云(IaaS)的部署、管理、配置。使用CloudStack作为基础,数据中心操作者可以快速方便地在现有的架构上构建自己的云服务。作为开源云管理平台,CloudStack安装和配置相对比较简单,提供多种虚拟机平台的支持,基于WEB浏览器管理比较方便,操作界面也比较美观大方。现在,不仅是电信运营商在采用CloudStack,越来越多的企业也在利用CloudStack构建云平台。CloudStack is the world's leading application service software solution provider Citrix Inc., an open source cloud platform management software that works with the Apache Foundation on CloudStack Infrastructure as a Service (IaaS) product source code. CloudStack accelerates the deployment, management, and configuration of highly scalable public and private clouds (IaaS). Using CloudStack as a foundation, data center operators can quickly and easily build their own cloud services on existing infrastructure. As an open source cloud management platform, CloudStack installation and configuration is relatively simple, providing support for a variety of virtual machine platforms, based on WEB browser management is more convenient, the operation interface is also more beautiful. Now, not only telecom operators are adopting CloudStack, but more and more enterprises are also using CloudStack to build cloud platforms.
CloudStack利用多种主机虚化/网络虚拟化/存储虚拟化技术构建虚拟机并进行配置管理,从而形成可弹性伸缩的资源池,其中主机虚拟化支持管理大部分主流的管理程序(hypervisor),如KVM虚拟机、XenServer、VMware、Oracle VM、Xen等;网络虚拟化支持如安全组、VLan、GRE、VxLan等;存储虚拟化支持本地存储、ISCSI存储、网络存储(Sharepoint、分布式存储等)等。CloudStack uses a variety of host virtualization/network virtualization/storage virtualization technologies to build virtual machines and configure management to form an elastically scalable resource pool. Host virtualization supports the management of most major hypervisors, such as KVM virtual machine, XenServer, VMware, Oracle VM, Xen, etc.; network virtualization support such as security group, VLan, GRE, VxLan, etc.; storage virtualization supports local storage, ISCSI storage, network storage (Sharepoint, distributed storage, etc.) .
vCenter是指VMware vCenter Server,提供了一个可伸缩、可扩展的平台,为虚拟化管理奠定了基础,是管理VMware vSphere最简单、最有效的方法。借 助VMware vCenter Server可从单个控制台统一管理数据中心的所有主机和虚拟机,该控制台聚合了集群、主机和虚拟机的性能监控功能。VMware vCenter Server使管理员能够从一个位置深入了解虚拟基础架构的集群、主机、虚拟机、存储、客户操作系统和其他关键组件等所有信息。借助VMware vCenter Server,虚拟化环境变得更易于管理,一个管理员就能管理100个以上的工作负载,在管理物理基础架构方面的工作效率比通常情况提高了一倍,但由于vCenter是商业化解决方案,成本很高。vCenter refers to VMware vCenter Server, which provides a scalable, scalable platform that provides the foundation for virtualization management and is the easiest and most effective way to manage VMware vSphere. Borrow Help VMware vCenter Server centrally manage all hosts and virtual machines in the data center from a single console that aggregates the performance monitoring capabilities of clusters, hosts, and virtual machines. VMware vCenter Server gives administrators an in-depth view of all the information of a virtual infrastructure's clusters, hosts, virtual machines, storage, guest operating systems, and other key components. With VMware vCenter Server, virtualized environments become easier to manage, and an administrator can manage more than 100 workloads, doubling the efficiency of managing physical infrastructure, but vCenter is commercialized The solution is costly.
随着云技术虚拟化开源社区的繁荣与进步,CloudStack赢得了越来越多的认可与部署。vCenter在不少公司都有不同程度的应用。但是目前面临的一个问题是:如何将客户原有已经使用的虚拟化产品通过统一云计算管理平台来管理。某些公司想降低成本来拥抱开源社区的CloudStack,但又受限于已经部署了vCenter的老环境。如果部署上新的CloudStack环境,就会有两套环境需要管理,无疑加重了系统管理员的工作,还容易导致混乱。With the prosperity and advancement of cloud technology virtualization open source community, CloudStack has won more and more recognition and deployment. vCenter has different levels of application in many companies. However, one of the problems currently faced is how to manage the virtualized products that customers have already used through a unified cloud computing management platform. Some companies want to reduce costs to embrace CloudStack in the open source community, but are limited to the old environment where vCenter has been deployed. If you deploy a new CloudStack environment, there will be two sets of environments that need to be managed, which will undoubtedly increase the work of the system administrator and cause confusion.
在CloudStack平台连接vCenter过程中存在以下缺点:第一,CloudStack只能管理由CloudStack主动发起建立的虚拟机,而不能管理由vCenter发起建立的虚拟机,即无法使用CloudStack平台管理vCenter虚拟机。第二,无法使CloudStack和vCenter兼容,在一个管理平台上管理所有的虚拟机,还需要管理员日常管理中来回在两个平台里工作。第三,即使单个虚拟机通过其他数据库操作等方式接管到CloudStack中,当vCenter中已有虚拟机很多时,造成管理员大量重复操作,并且很容易造成遗漏等问题。第四,CloudStack添加vCenter集群时,需要根据CloudStack的逻辑约束,将vCenter中的存储、网络等资源逐步添加到CloudStack中,步骤较多,浪费了较多的时间。The following disadvantages exist in the process of connecting the vCenter to the CloudStack platform: First, the CloudStack can only manage the VMs initiated by the CloudStack and cannot manage the VMs initiated by the vCenter. That is, the vCenter VM cannot be managed by using the CloudStack platform. Second, it is not possible to make CloudStack and vCenter compatible, manage all virtual machines on one management platform, and also need to work back and forth between the two platforms in the administrator's daily management. Third, even if a single virtual machine is taken over to CloudStack through other database operations, when there are many virtual machines in the vCenter, the administrator repeatedly performs a large number of operations, and it is easy to cause problems such as omissions. Fourth, when CloudStack adds a vCenter cluster, it needs to gradually add storage, network, and other resources in the vCenter to the CloudStack according to the logical constraints of the CloudStack. The steps are more and more time is wasted.
因此,需要一种改进的CloudStack接管原有vCenter集群的方法。Therefore, there is a need for an improved method of CloudStack taking over the original vCenter cluster.
发明内容Summary of the invention
本发明实施例提供一种CloudStack接管原有vCenter集群的方法,包括:获取待接管的vCenter集群的集群信息;创建基础区域,将所述vCenter集群纳入所述CloudStack的管理;统计所述vCenter集群中已存在的虚拟机的基本配置信息;根据所述基本配置信息,创建对应网络、计算方案、磁盘方案、和ISO文件;创建对应于所述原有vCenter集群的镜像虚拟机;关闭所述vCenter集群和 所述CloudStack中的虚拟机;将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机;以及在所述CloudStack中启动所述镜像虚拟机。The embodiment of the present invention provides a method for the CloudStack to take over the original vCenter cluster, including: acquiring the cluster information of the vCenter cluster to be taken over; creating a basic area, and integrating the vCenter cluster into the management of the CloudStack; The basic configuration information of the existing virtual machine is created; the corresponding network, the computing solution, the disk solution, and the ISO file are created according to the basic configuration information; the mirrored virtual machine corresponding to the original vCenter cluster is created; and the vCenter cluster is closed. with a virtual machine in the CloudStack; copying a disk file of a virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack; and starting the mirrored virtual machine in the CloudStack.
优选地,所述获取待接管的vCenter集群的集群信息的步骤包括:获取所述vCenter集群的基本信息,包括vCenter主机名、vCenter用户名、vCenter用户密码、vCenter数据中心名称;以及根据所述获取的vCenter集群的基本信息,通过调用SDK进一步获取所述vCenter集群中的vSwitch网络、存储、虚拟机的信息。Preferably, the step of acquiring the cluster information of the vCenter cluster to be taken over includes: acquiring basic information of the vCenter cluster, including a vCenter host name, a vCenter user name, a vCenter user password, and a vCenter data center name; The basic information of the vCenter cluster is obtained by calling the SDK to obtain information about the vSwitch network, storage, and virtual machine in the vCenter cluster.
优选地,所述基本配置信息包括所述vCenter集群中已存在的虚拟机的操作系统类型、网络信息、CPU、内存、硬盘、快照的信息。Preferably, the basic configuration information includes information about an operating system type, network information, a CPU, a memory, a hard disk, and a snapshot of a virtual machine that already exists in the vCenter cluster.
优选地,所述创建对应网络、计算方案、磁盘方案、和ISO文件的步骤包括:在所述CloudStack中创建指定IP、计算方案、磁盘方案,并根据操作系统的类型分类而添加对应的ISO文件。Preferably, the step of creating a corresponding network, a computing solution, a disk scheme, and an ISO file includes: creating a specified IP, a computing solution, a disk scheme in the CloudStack, and adding a corresponding ISO file according to a type classification of the operating system. .
优选地,所述创建对应于所述原有vCenter集群的镜像虚拟机的步骤包括:根据所述计算方案、磁盘方案、和ISO文件,创建一个与所述原有vCenter集群的虚拟机一一对应的所述镜像虚拟机。Preferably, the step of creating a mirrored virtual machine corresponding to the original vCenter cluster includes: creating a one-to-one correspondence with the virtual machine of the original vCenter cluster according to the computing scheme, the disk scheme, and the ISO file. The mirrored virtual machine.
优选地,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤包括:在vCenter共享存储中,将所述原有vCenter中虚拟机的磁盘vmdk文件复制到所述CloudStack中所述新建的镜像虚拟机的文件夹中,同时将所述CloudStack中的对应磁盘vmdk文件删除。Preferably, the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack includes: in the vCenter shared storage, the disk of the virtual machine in the original vCenter The vmdk file is copied to the folder of the newly created mirror virtual machine in the CloudStack, and the corresponding disk vmdk file in the CloudStack is deleted.
优选地,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤还包括:将复制过来的磁盘vmdk文件重命名为所述CloudStack中删除的磁盘vmdk文件的名称。Preferably, the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes: renaming the copied disk vmdk file to the deleted in the CloudStack The name of the disk vmdk file.
优选地,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤还包括:通过vSphere Clinet SDK,将所述原有vCenter集群中的虚拟机的文件夹名称与所述CloudStack中所述创建的对应镜像虚拟机的文件夹名称进行重命名。Preferably, the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes: using the vSphere Clinet SDK, the virtual machine in the original vCenter cluster The folder name is renamed with the folder name of the corresponding mirrored virtual machine created in the CloudStack.
优选地,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤还包括:将所述原有vCenter集群中的虚拟机的文件夹名称、文件夹内的文件名称、文件配置信息与所述CloudStack中 的所述新建的镜像虚拟机的文件夹名称、文件夹内的文件名称、文件配置信息进行一一对应修改。这样可以避免复制磁盘文件带来的时间成本。Preferably, the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes: deleting a folder name of the virtual machine in the original vCenter cluster, File name and file configuration information in the folder and the CloudStack The folder name of the newly created mirror virtual machine, the file name in the folder, and the file configuration information are modified one-to-one. This avoids the time cost of copying disk files.
优选地,所述启动所述镜像虚拟机的步骤还包括:检查所述CloudStack中的所述镜像虚拟机是否正常启动,磁盘文件和快照是否完整,网络IP是否正常使用;以及一旦检查通过,则完成迁移并且所述CloudStack开始接管所述原有vCenter集群中的对应虚拟机。Preferably, the step of starting the mirrored virtual machine further comprises: checking whether the mirrored virtual machine in the CloudStack starts normally, whether the disk file and the snapshot are complete, whether the network IP is used normally; and once the check passes, The migration is completed and the CloudStack begins to take over the corresponding virtual machine in the original vCenter cluster.
有利地,本发明实施例中的CloudStack接管原有vCenter集群的方法能够通过统一的自主管理界面来快速实现CloudStack对原有的vCenter集群资源的管理,迁移过程透明可控、实现简单、易于操作。使用本发明技术方案能够避免客户使用两种工具去管理客户现有的虚拟机和原有的虚拟机,由此节省运维成本。Advantageously, the method in which the CloudStack takes over the original vCenter cluster in the embodiment of the present invention can quickly implement the management of the original vCenter cluster resources by the CloudStack through a unified self-management interface, and the migration process is transparent and controllable, simple to implement, and easy to operate. The technical solution of the present invention can prevent the customer from using two tools to manage the existing virtual machine and the original virtual machine of the customer, thereby saving operation and maintenance costs.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1所示为根据本发明实施例的CloudStack接管原有vCenter集群的方法的流程示意图。FIG. 1 is a schematic flowchart of a method for a CloudStack to take over an original vCenter cluster according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和具体实施方式对本发明的技术方案作进一步更详细的描述。显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
图1所示为根据本发明实施例的CloudStack接管原有vCenter集群的方法100的流程示意图。如图1所示,所述接管集群方法100可包括以下步骤:FIG. 1 is a schematic flowchart diagram of a method 100 for a CloudStack to take over an original vCenter cluster according to an embodiment of the present invention. As shown in FIG. 1, the takeover cluster method 100 can include the following steps:
步骤S102:获取待接管的vCenter集群的集群信息。Step S102: Obtain cluster information of the vCenter cluster to be taken over.
具体地,步骤S102可包括:获取所述vCenter集群的基本信息,包括vCenter主机名、vCenter用户名、vCenter用户密码、vCenter数据中心名称;以及根据 所述获取的vCenter集群的基本信息,通过调用SDK进一步获取所述vCenter集群中的vSwitch网络、存储、虚拟机的信息。Specifically, the step S102 may include: acquiring basic information of the vCenter cluster, including a vCenter host name, a vCenter user name, a vCenter user password, and a vCenter data center name; The basic information of the obtained vCenter cluster is obtained by calling the SDK to further obtain information about the vSwitch network, the storage, and the virtual machine in the vCenter cluster.
步骤S104:创建基础区域,将所述vCenter集群纳入所述CloudStack的管理。Step S104: Create a basic area, and integrate the vCenter cluster into the management of the CloudStack.
步骤S106:统计所述vCenter集群中已存在的虚拟机的基本配置信息。例如,所述基本配置信息可包括所述vCenter集群中已存在的虚拟机的操作系统类型、网络信息、CPU、内存、硬盘、快照的信息。Step S106: Statistics basic configuration information of the virtual machine that exists in the vCenter cluster. For example, the basic configuration information may include information about an operating system type, network information, CPU, memory, hard disk, and snapshot of a virtual machine that already exists in the vCenter cluster.
步骤S108:根据所述基本配置信息,创建对应网络、计算方案、磁盘方案、和ISO文件。Step S108: Create a corresponding network, a computing solution, a disk scheme, and an ISO file according to the basic configuration information.
具体地,步骤S108可包括:在所述CloudStack中创建指定IP、计算方案、磁盘方案,并根据操作系统的类型分类而添加对应的ISO文件。Specifically, step S108 may include: creating a specified IP, a computing scheme, a disk scheme in the CloudStack, and adding a corresponding ISO file according to a type classification of the operating system.
步骤S110:创建对应于所述原有vCenter集群的镜像虚拟机。Step S110: Create a mirrored virtual machine corresponding to the original vCenter cluster.
具体地,步骤S110可包括:根据所述计算方案、磁盘方案、和ISO文件,创建一个与所述原有vCenter集群的虚拟机一一对应的所述镜像虚拟机。Specifically, the step S110 may include: creating, according to the computing solution, the disk solution, and the ISO file, the mirrored virtual machine corresponding to the virtual machine of the original vCenter cluster.
步骤S112:关闭所述vCenter集群和所述CloudStack中的虚拟机。Step S112: Shut down the virtual machine in the vCenter cluster and the CloudStack.
步骤S114:将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机。Step S114: Copy the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack.
优选地,步骤S114可包括:在vCenter共享存储中,将所述原有vCenter中虚拟机的磁盘vmdk文件复制到所述CloudStack中所述新建的镜像虚拟机的文件夹中,同时将所述CloudStack中的对应磁盘vmdk文件删除。Preferably, the step S114 may include: copying, in the vCenter shared storage, a disk vmdk file of the virtual machine in the original vCenter to a folder of the newly created mirror virtual machine in the CloudStack, and simultaneously The corresponding disk vmdk file is deleted.
优选地,步骤S114还可包括:将复制过来的磁盘vmdk文件重命名为所述CloudStack中删除的磁盘vmdk文件的名称。Preferably, step S114 may further include: renaming the copied disk vmdk file to a name of the deleted disk vmdk file in the CloudStack.
优选地,步骤S114还可包括:通过vSphere Clinet SDK,将所述原有vCenter集群中的虚拟机的文件夹名称与所述CloudStack中所述创建的对应镜像虚拟机的文件夹名称进行重命名。Preferably, the step S114 may further include: renaming, by using the vSphere Clinet SDK, a folder name of the virtual machine in the original vCenter cluster and a folder name of the corresponding mirrored virtual machine created in the CloudStack.
优选地,步骤S114还可包括:将所述原有vCenter集群中的虚拟机的文件夹名称、文件夹内的文件名称、文件配置信息与所述CloudStack中的所述新建的镜像虚拟机的文件夹名称、文件夹内的文件名称、文件配置信息进行一一对应修改。这样可以避免复制磁盘文件带来的时间成本。Preferably, the step S114 may further include: a folder name of the virtual machine in the original vCenter cluster, a file name in the folder, file configuration information, and a file of the newly created mirror virtual machine in the CloudStack. The folder name, the file name in the folder, and the file configuration information are modified one-to-one. This avoids the time cost of copying disk files.
步骤S116:在所述CloudStack中启动所述镜像虚拟机。 Step S116: Start the mirror virtual machine in the CloudStack.
优选地,步骤S116还可包括:检查所述CloudStack中的所述镜像虚拟机是否正常启动,磁盘文件和快照是否完整,网络IP是否正常使用;以及一旦检查通过,则完成迁移并且所述CloudStack开始接管所述原有vCenter集群中的对应虚拟机。Preferably, step S116 may further include: checking whether the mirrored virtual machine in the CloudStack starts normally, whether the disk file and the snapshot are complete, whether the network IP is used normally; and once the check passes, the migration is completed and the CloudStack starts. Takes over the corresponding virtual machine in the original vCenter cluster.
有利地,本发明实施例中的CloudStack接管原有vCenter集群的方法能够通过统一的自主管理界面来快速实现CloudStack对原有的vCenter集群资源的管理,迁移过程透明可控、实现简单、易于操作。使用本发明技术方案能够避免客户使用两种工具去管理客户现有的虚拟机和原有的虚拟机,由此节省运维成本。Advantageously, the method in which the CloudStack takes over the original vCenter cluster in the embodiment of the present invention can quickly implement the management of the original vCenter cluster resources by the CloudStack through a unified self-management interface, and the migration process is transparent and controllable, simple to implement, and easy to operate. The technical solution of the present invention can prevent the customer from using two tools to manage the existing virtual machine and the original virtual machine of the customer, thereby saving operation and maintenance costs.
需要说明的是,通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的硬件平台的方式来实现,当然也可以全部通过硬件来实施。基于这样的理解,本发明的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。It should be noted that, through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary hardware platform, and of course, all can be implemented by hardware. Based on such understanding, all or part of the technical solution of the present invention contributing to the background art may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or in some portions of the embodiments.
以上所揭露的仅为本发明实施例中的较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above are only the preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, and the equivalent changes made by the claims of the present invention are still within the scope of the present invention.

Claims (10)

  1. 一种CloudStack接管原有vCenter集群的方法,包括:A method in which CloudStack takes over the original vCenter cluster, including:
    获取待接管的vCenter集群的集群信息;Obtain cluster information of the vCenter cluster to be taken over;
    创建基础区域,将所述vCenter集群纳入所述CloudStack的管理;Create a base area, and integrate the vCenter cluster into the management of the CloudStack;
    统计所述vCenter集群中已存在的虚拟机的基本配置信息;Statistics basic configuration information of the existing virtual machine in the vCenter cluster;
    根据所述基本配置信息,创建对应网络、计算方案、磁盘方案、和ISO文件;Creating a corresponding network, a computing solution, a disk solution, and an ISO file according to the basic configuration information;
    创建对应于所述原有vCenter集群的镜像虚拟机;Create a mirrored virtual machine corresponding to the original vCenter cluster;
    关闭所述vCenter集群和所述CloudStack中的虚拟机;Shutting down the vCenter cluster and the virtual machines in the CloudStack;
    将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机;以及Copying the disk files of the virtual machines in the original vCenter cluster to the mirrored virtual machines in the CloudStack;
    在所述CloudStack中启动所述镜像虚拟机。The mirrored virtual machine is started in the CloudStack.
  2. 如权利要求1所述的接管集群方法,其特征在于,所述获取待接管的vCenter集群的集群信息的步骤包括:The method for taking over the cluster of the vCenter cluster to be taken over by the method of claim 1 is as follows:
    获取所述vCenter集群的基本信息,包括vCenter主机名、vCenter用户名、vCenter用户密码、vCenter数据中心名称;以及Obtain basic information about the vCenter cluster, including the vCenter host name, vCenter user name, vCenter user password, and vCenter data center name;
    根据所述获取的vCenter集群的基本信息,通过调用SDK进一步获取所述vCenter集群中的vSwitch网络、存储、虚拟机的信息。The information about the vSwitch network, the storage, and the virtual machine in the vCenter cluster is further obtained by calling the SDK according to the basic information of the obtained vCenter cluster.
  3. 如权利要求1所述的接管集群方法,其特征在于,所述基本配置信息包括所述vCenter集群中已存在的虚拟机的操作系统类型、网络信息、CPU、内存、硬盘、快照的信息。The takeover cluster method according to claim 1, wherein the basic configuration information includes information about an operating system type, network information, a CPU, a memory, a hard disk, and a snapshot of a virtual machine that is already in the vCenter cluster.
  4. 如权利要求1所述的接管集群方法,其特征在于,所述创建对应网络、计算方案、磁盘方案、和ISO文件的步骤包括:The method of taking over a cluster according to claim 1, wherein the steps of creating a corresponding network, a computing solution, a disk scheme, and an ISO file include:
    在所述CloudStack中创建指定IP、计算方案、磁盘方案,并根据操作系统的类型分类而添加对应的ISO文件。Create a specified IP, computing scheme, disk scheme in the CloudStack, and add the corresponding ISO file according to the type classification of the operating system.
  5. 如权利要求1所述的接管集群方法,其特征在于,所述创建对应于所述 原有vCenter集群的镜像虚拟机的步骤包括:The method of taking over a cluster according to claim 1, wherein said creating corresponds to said The steps of the mirrored virtual machine of the original vCenter cluster include:
    根据所述计算方案、磁盘方案、和ISO文件,创建一个与所述原有vCenter集群的虚拟机一一对应的所述镜像虚拟机。And creating, according to the computing solution, the disk solution, and the ISO file, the mirrored virtual machine corresponding to the virtual machine of the original vCenter cluster.
  6. 如权利要求1所述的接管集群方法,其特征在于,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤包括:The method of taking over the clustering of the virtual machine in the original vCenter cluster to the mirroring virtual machine in the CloudStack, comprising:
    在vCenter共享存储中,将所述原有vCenter中虚拟机的磁盘vmdk文件复制到所述CloudStack中所述新建的镜像虚拟机的文件夹中,同时将所述CloudStack中的对应磁盘vmdk文件删除。In the vCenter shared storage, the disk vmdk file of the virtual machine in the original vCenter is copied to the folder of the newly created mirror virtual machine in the CloudStack, and the corresponding disk vmdk file in the CloudStack is deleted.
  7. 如权利要求6所述的接管集群方法,其特征在于,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤还包括:The method of taking over the clustering of the virtual machine according to claim 6, wherein the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes:
    将复制过来的磁盘vmdk文件重命名为所述CloudStack中删除的磁盘vmdk文件的名称。Rename the copied disk vmdk file to the name of the disk vmdk file deleted in the CloudStack.
  8. 如权利要求6所述的接管集群方法,其特征在于,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤还包括:The method of taking over the clustering of the virtual machine according to claim 6, wherein the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes:
    通过vSphere Clinet SDK,将所述原有vCenter集群中的虚拟机的文件夹名称与所述CloudStack中所述创建的对应镜像虚拟机的文件夹名称进行重命名。The folder name of the virtual machine in the original vCenter cluster is renamed with the folder name of the corresponding mirrored virtual machine created in the CloudStack by using the vSphere Clinet SDK.
  9. 如权利要求6所述的接管集群方法,其特征在于,所述将原有vCenter集群中的虚拟机的磁盘文件复制到所述CloudStack中的所述镜像虚拟机的步骤还包括:The method of taking over the clustering of the virtual machine according to claim 6, wherein the step of copying the disk file of the virtual machine in the original vCenter cluster to the mirrored virtual machine in the CloudStack further includes:
    将所述原有vCenter集群中的虚拟机的文件夹名称、文件夹内的文件名称、文件配置信息与所述CloudStack中的所述新建的镜像虚拟机的文件夹名称、文件夹内的文件名称、文件配置信息进行一一对应修改。 The folder name of the virtual machine in the original vCenter cluster, the file name in the folder, the file configuration information, the folder name of the newly created mirror virtual machine in the CloudStack, and the file name in the folder. The file configuration information is modified one by one.
  10. 如权利要求1所述的接管集群方法,其特征在于,所述启动所述镜像虚拟机的步骤还包括:The method of taking over the clustering virtual machine according to claim 1, wherein the step of starting the mirrored virtual machine further comprises:
    检查所述CloudStack中的所述镜像虚拟机是否正常启动,磁盘文件和快照是否完整,网络IP是否正常使用;以及Check whether the mirrored virtual machine in the CloudStack is started normally, whether the disk file and the snapshot are complete, and whether the network IP is used normally;
    一旦检查通过,则完成迁移并且所述CloudStack开始接管所述原有vCenter集群中的对应虚拟机。 Once the check passes, the migration is completed and the CloudStack begins to take over the corresponding virtual machine in the original vCenter cluster.
PCT/CN2017/107683 2017-10-25 2017-10-25 Method for cloudstack to take over original vcenter cluster WO2019080012A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/107683 WO2019080012A1 (en) 2017-10-25 2017-10-25 Method for cloudstack to take over original vcenter cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/107683 WO2019080012A1 (en) 2017-10-25 2017-10-25 Method for cloudstack to take over original vcenter cluster

Publications (1)

Publication Number Publication Date
WO2019080012A1 true WO2019080012A1 (en) 2019-05-02

Family

ID=66246158

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107683 WO2019080012A1 (en) 2017-10-25 2017-10-25 Method for cloudstack to take over original vcenter cluster

Country Status (1)

Country Link
WO (1) WO2019080012A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102637540B1 (en) * 2023-03-10 2024-02-15 주식회사 빅스테크놀로지 System for configuring cloud computing environment and automating opertation based on standard stack and intelligent operator

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228883A1 (en) * 2008-03-07 2009-09-10 Alexander Gebhart Dynamic cluster expansion through virtualization-based live cloning
CN103150202A (en) * 2013-03-15 2013-06-12 汉柏科技有限公司 Method for allowing CloudStack to be compatible with virtual machine existing in vCenter
CN104317639A (en) * 2014-10-17 2015-01-28 中国电子科技集团公司第二十八研究所 Method for taking over existing virtual machines of vCenter by computer cloud platform
CN104484221A (en) * 2014-12-30 2015-04-01 北京天云融创软件技术有限公司 Method for taking over existing vCenter cluster by CloudStack
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228883A1 (en) * 2008-03-07 2009-09-10 Alexander Gebhart Dynamic cluster expansion through virtualization-based live cloning
CN103150202A (en) * 2013-03-15 2013-06-12 汉柏科技有限公司 Method for allowing CloudStack to be compatible with virtual machine existing in vCenter
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN104317639A (en) * 2014-10-17 2015-01-28 中国电子科技集团公司第二十八研究所 Method for taking over existing virtual machines of vCenter by computer cloud platform
CN104484221A (en) * 2014-12-30 2015-04-01 北京天云融创软件技术有限公司 Method for taking over existing vCenter cluster by CloudStack

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102637540B1 (en) * 2023-03-10 2024-02-15 주식회사 빅스테크놀로지 System for configuring cloud computing environment and automating opertation based on standard stack and intelligent operator

Similar Documents

Publication Publication Date Title
Sahoo et al. Virtualization: A survey on concepts, taxonomy and associated security issues
US9053339B2 (en) System and method for secure storage of virtual machines
JP6388455B2 (en) Expansion of services to virtual data center guests
US8694786B2 (en) Virtual machine images encryption using trusted computing group sealing
US8924703B2 (en) Secure virtualization environment bootable from an external media device
US10262130B2 (en) System and method for providing cryptographic operation service in virtualization environment
Kappes et al. Virtualization-aware access control for multitenant filesystems
US11422840B2 (en) Partitioning a hypervisor into virtual hypervisors
Khan et al. Design and deployment of a trusted eucalyptus cloud
Ameen et al. Survey of server virtualization
JP2016515267A5 (en)
KR20110049429A (en) System for managing a virtualization solution and apparatus and method for managing the same
WO2015143766A1 (en) Method and apparatus for isolating management virtual machine
US10970100B2 (en) Starting a secure guest using an initial program load mechanism
TW201335787A (en) System and method for operating virtual machines safely
JP2022522339A (en) Program interrupts for page import / export
Nagesh et al. A Survey on Security Aspects of Server Virtualization in Cloud Computing.
US10382456B2 (en) Remote computing system providing malicious file detection and mitigation features for virtual machines
WO2019094420A1 (en) Secure invocation of network security entities
WO2019080012A1 (en) Method for cloudstack to take over original vcenter cluster
Tamane A review on virtualization: A cloud technology
Kizza Virtualization Technologies and Security
Singh et al. Virtualization techniques and virtualization challenges in cloud computing: A review
Kizza et al. Virtualization Technology and Security
Anjum Security Architecture for Virtual Machine Images in a Public Cloud Environment: Survey Paper

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17929904

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17929904

Country of ref document: EP

Kind code of ref document: A1