WO2017113895A1 - Method and device for creating virtual machine - Google Patents

Method and device for creating virtual machine Download PDF

Info

Publication number
WO2017113895A1
WO2017113895A1 PCT/CN2016/099587 CN2016099587W WO2017113895A1 WO 2017113895 A1 WO2017113895 A1 WO 2017113895A1 CN 2016099587 W CN2016099587 W CN 2016099587W WO 2017113895 A1 WO2017113895 A1 WO 2017113895A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
virtual machine
processing module
node
computing node
Prior art date
Application number
PCT/CN2016/099587
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 华为技术有限公司
Publication of WO2017113895A1 publication Critical patent/WO2017113895A1/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
    • G06F9/45533Hypervisors; Virtual machine monitors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a method and device for creating a virtual machine, belonging to the field of communications. The method comprises: negotiating with a volume creation entity a compute node where a processing module and a volume comprised by a virtual machine to be created are located; creating the processing module on the compute node (304); receiving volume identification information about the volume sent by the volume creation entity, wherein the volume is created by the volume creation entity on the compute node (306); and according to the volume identification information, mounting the volume on the processing module, so as to form the virtual machine to be created (308). The device comprises a processing unit and a receiving unit. The method and device can satisfy the performance requirement of reading and writing a volume at a high speed.

Description

一种创建虚拟机的方法及装置Method and device for creating virtual machine 技术领域Technical field
本发明涉及通信领域,特别涉及一种创建虚拟机的方法及装置。The present invention relates to the field of communications, and in particular, to a method and an apparatus for creating a virtual machine.
背景技术Background technique
Openstack(开源的云计算管理平台)是一种用于创建虚拟机的开源云平台,虚拟机包括处理模块和用于处理模块进行读写访问的卷,Openstack提供了Nova(计算资源管理)组件和Cinder(块存储资源管理)组件,该两个组件分别用来创建处理模块和卷。Openstack (open source cloud management platform) is an open source cloud platform for creating virtual machines. The virtual machine includes processing modules and volumes for processing modules for read and write access. Openstack provides Nova (computing resource management) components and Cinder (block storage resource management) component, which is used to create processing modules and volumes.
目前在创建虚拟机时,Nova组件获取待创建虚拟机的虚拟机规格信息,选择一个计算节点,根据该虚拟机规格信息在该计算节点上创建虚拟机的处理模块;Cinder组件获取待创建虚拟机的卷规格信息,选择一个计算节点,根据该卷规格信息,在该计算节点上创建卷,向Nova组件发送该卷的卷标识信息;Nova组件根据该卷标识信息,将该卷挂载在该处理模块上,得到待创建虚拟机。When a virtual machine is created, the Nova component obtains the virtual machine specification information of the virtual machine to be created, selects a computing node, and creates a processing module of the virtual machine on the computing node according to the virtual machine specification information; the Cinder component acquires the virtual machine to be created. Volume specification information, selecting a computing node, creating a volume on the computing node according to the volume specification information, and sending volume identification information of the volume to the Nova component; the Nova component mounts the volume according to the volume identification information On the processing module, get the virtual machine to be created.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
创建的处理模块所在的计算节点和创建的卷所在的计算节点可能不同,这样处理模块只能通过网络远程读写卷,无法满足高速读写卷的性能需求。The compute node where the created processing module resides and the compute node where the created volume resides may be different, so that the processing module can only read and write volumes remotely through the network, which cannot meet the performance requirements of high-speed read-write volumes.
发明内容Summary of the invention
为了满足高速读写卷的性能需求,本发明提供了一种创建虚拟机的方法及装置。所述技术方案如下:In order to meet the performance requirements of high speed read and write volumes, the present invention provides a method and apparatus for creating a virtual machine. The technical solution is as follows:
第一方面,提供了一种创建虚拟机的方法,所述方法包括:In a first aspect, a method of creating a virtual machine is provided, the method comprising:
与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;Negotiating, with the volume creation entity, a processing module to be created by the virtual machine and a computing node where the volume is located;
在所述计算节点上创建所述处理模块;Creating the processing module on the computing node;
接收所述卷创建实体发送的所述卷的卷标识信息,所述卷是所述卷创建实体在所述计算节点上创建的;Receiving volume identification information of the volume sent by the volume creation entity, where the volume is created by the volume creation entity on the computing node;
根据所述卷标识信息,将所述卷挂载在所述处理模块上形成所述待创建虚拟机。And mounting the volume on the processing module to form the virtual machine to be created according to the volume identifier information.
在第一方面中,由于与卷创建实体协商待创建虚拟机包括的处理模块和 卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the first aspect, the processing module included in the virtual machine to be created is negotiated with the volume creation entity and The compute node where the volume resides ensures that the processing module and the volume are created on the same compute node, so that the processing module reads and writes the access volume to read and write access to the local storage resources to meet the performance requirements of high-speed read and write volumes.
结合第一方面,在第一方面的第一种可能的实现方式中,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the first aspect, in a first possible implementation of the first aspect, the processing, by the volume creation entity, the processing module and the computing node where the volume is to be created, including:
根据待创建虚拟机的虚拟机规格信息,获取满足所述虚拟机规格信息的一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a computing node that meets the virtual machine specification information;
向所述卷创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the volume creation entity.
在第一方面的第一种可能的实现方式中,由于向卷创建实体直接发送选择的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In the first possible implementation manner of the first aspect, since the node identification information of the selected computing node is directly sent to the volume creation entity, it is ensured that the computing node that creates the volume and the computing node that creates the processing module are the same computing node.
结合第一方面,在第一方面的第二种可能的实现方式中,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the first aspect, in a second possible implementation manner of the first aspect, the determining, by the volume creation entity, the processing module and the computing node where the volume is to be created, including:
根据待创建虚拟机的虚拟机规格信息,获取节点列表,所述节点列表包括满足所述虚拟机规格信息的至一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a node list, where the node list includes one computing node that satisfies the virtual machine specification information;
向卷创建实体发送所述节点列表,所述节点列表用于所述卷创建实体从所述节点列表中选择一个计算节点;Sending the node list to a volume creation entity, the node list being used by the volume creation entity to select a computing node from the node list;
接收所述卷创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the volume creation entity.
在第一方面的第二种可能的实现方式中,由于向卷创建实体发送节点列表,保证了卷创建实体能够选择满足卷规格信息的计算节点。In a second possible implementation of the first aspect, since the node list is sent to the volume creation entity, it is guaranteed that the volume creation entity can select a compute node that satisfies the volume specification information.
结合第一方面,在第一方面的第三种可能的实现方式中,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, the determining, by the volume creation entity, the processing module and the computing node where the volume is to be created by the virtual machine to be created includes:
接收卷创建实体发送的计算节点的节点标识信息,所述计算节点是所述卷创建实体获取的且满足所述待创建虚拟机对应的卷的卷规格信息。Receiving the node identification information of the computing node sent by the volume creation entity, where the computing node is the volume specification information acquired by the volume creation entity and satisfying the volume corresponding to the virtual machine to be created.
在第一方面的第三种可能的实现方式中,由于接收卷创建实体发送的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In a third possible implementation manner of the first aspect, the computing node that creates the volume and the computing node that creates the processing module are the same computing node because the node identification information of the computing node sent by the volume creation entity is received.
结合第一方面,在第一方面的第四种可能的实现方式中,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the determining, by the volume creation entity, the processing module and the computing node where the volume is to be created by the virtual machine to be created includes:
接收所述卷创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机对应的卷的卷规格信息的至少一个计算节点; Receiving, by the volume creation entity, a node list, where the node list includes at least one computing node that meets volume specification information of a volume corresponding to the virtual machine to be created;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述卷创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the volume creation entity.
在第一方面的第四种可能的实现方式中,由于接收卷创建实体发送的节点列表,保证了能够选择到满足虚拟机规格信息的计算节点。In a fourth possible implementation of the first aspect, since the node list sent by the volume creation entity is received, it is guaranteed that the computing node that can satisfy the virtual machine specification information can be selected.
第二方面、提供了一种创建虚拟机的方法,所述方法包括:In a second aspect, a method of creating a virtual machine is provided, the method comprising:
与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;Negotiating, with the processing module creation entity, a processing module and a computing node where the volume is to be created by the virtual machine to be created;
在所述计算节点上创建所述卷;Creating the volume on the compute node;
向所述处理模块创建实体发送所述卷的卷标识信息,所述卷标识信息用于所述处理模块创建实体在所述计算节点上创建所述处理模块后将所述卷挂载在所述处理模块上以形成所述待创建虚拟机。Transmitting, to the processing module creation entity, volume identification information of the volume, the volume identification information being used by the processing module creation entity to mount the volume in the processing module after creating the processing module on the computing node Processing the module to form the virtual machine to be created.
在第二方面中,由于与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the second aspect, since the processing module included in the virtual machine to be created and the computing node where the volume is located are negotiated with the processing module creation entity, it is ensured that the processing module is created and the volume is created on the same computing node, so that the processing module reads and writes the access volume. The essence is read and write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
结合第二方面,在第二方面的第一种可能的实现方式中,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the processing module that is to be created by the processing module and the computing node that is included in the virtual machine includes:
根据待创建虚拟机对应的卷的卷规格信息,获取满足所述卷规格信息的一个计算节点;Obtaining, by the volume specification information of the volume corresponding to the virtual machine to be created, a computing node that meets the volume specification information;
向所述处理模块创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the processing module creation entity.
在第二方面的第一种可能的实现方式中,由于向处理模块创建实体直接发送选择的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In a first possible implementation manner of the second aspect, since the node identification information of the selected computing node is directly sent to the processing module creation entity, it is ensured that the computing node that creates the volume and the computing node that creates the processing module are the same computing node.
结合第二方面,在第二方面的第二种可能的实现方式中,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the second aspect, in a second possible implementation manner of the second aspect, the processing module that is to be created by the processing module and the computing node that is included in the virtual machine to be created includes:
根据待创建虚拟机对应的卷的卷规格信息,获取节点列表,所述节点列表包括满足所述卷规格信息的至一个计算节点;Obtaining, according to volume specification information of a volume corresponding to the virtual machine to be created, a node list, where the node list includes one to a computing node that satisfies the volume specification information;
向处理模块创建实体发送所述节点列表,所述节点列表用于所述处理模块创建实体从所述节点列表中选择一个计算节点; Sending, to the processing module creation entity, the node list, where the node list is used by the processing module creation entity to select a computing node from the node list;
接收所述处理模块创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the processing module creation entity.
在第二方面的第二种可能的实现方式中,由于向处理模块创建实体发送节点列表,保证了处理模块创建实体能够选择满足虚拟机规格信息的计算节点。In a second possible implementation of the second aspect, since the node list is sent to the processing module creation entity, it is ensured that the processing module creation entity can select a computing node that satisfies the virtual machine specification information.
结合第二方面,在第二方面的第三种可能的实现方式中,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the processing module, the processing module, and the computing node, where the volume is to be created, are:
接收处理模块创建实体发送的计算节点的节点标识信息,所述计算节点是所述处理模块创建实体获取的且满足所述待创建虚拟机的虚拟机规格信息。The receiving processing module creates the node identification information of the computing node sent by the entity, where the computing node is the virtual machine specification information acquired by the processing module creation entity and meets the virtual machine to be created.
在第二方面的第三种可能的实现方式中,由于接收处理模块创建实体发送的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In a third possible implementation manner of the second aspect, the receiving processing module creates the node identification information of the computing node sent by the entity, and ensures that the computing node that creates the volume and the computing node that creates the processing module are the same computing node.
结合第二方面,在第二方面的第四种可能的实现方式中,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the processing module, the processing module, and the computing node, where the volume is to be created, are:
接收所述处理模块创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机的虚拟机规格信息的至少一个计算节点;Receiving, by the processing module creation entity, a node list, where the node list includes at least one computing node that meets virtual machine specification information of the virtual machine to be created;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述处理模块创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the processing module creation entity.
在第一方面的第四种可能的实现方式中,由于接收处理模块创建实体发送的节点列表,保证了能够选择到满足虚拟机规格信息的计算节点。In a fourth possible implementation manner of the first aspect, since the receiving processing module creates a node list sent by the entity, it is ensured that the computing node that can satisfy the virtual machine specification information can be selected.
第三方面、提供了一种创建虚拟机的装置,所述装置包括:处理单元和接收单元;A third aspect provides an apparatus for creating a virtual machine, the apparatus comprising: a processing unit and a receiving unit;
所述处理单元,用于与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述处理模块;The processing unit is configured to negotiate, with the volume creation entity, a processing module that is to be created by the virtual machine and a computing node where the volume is located; and create the processing module on the computing node;
所述接收单元,用于接收所述卷创建实体发送的所述卷的卷标识信息,所述卷是所述卷创建实体在所述计算节点上创建的;The receiving unit is configured to receive volume identification information of the volume sent by the volume creation entity, where the volume is created by the volume creation entity on the computing node;
所述处理单元,还用于根据所述卷标识信息,将所述卷挂载在所述处理模块上形成所述待创建虚拟机。The processing unit is further configured to mount the volume on the processing module to form the virtual machine to be created according to the volume identifier information.
在第三方面中,由于与卷创建实体协商待创建虚拟机包括的处理模块和 卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the third aspect, the processing module included in the virtual machine to be created is negotiated with the volume creation entity and The compute node where the volume resides ensures that the processing module and the volume are created on the same compute node, so that the processing module reads and writes the access volume to read and write access to the local storage resources to meet the performance requirements of high-speed read and write volumes.
结合第三方面,在第三方面的第一种可能的实现方式中,所述处理单元,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the third aspect, in a first possible implementation manner of the third aspect, the processing unit is configured to negotiate, in a manner with the volume creation entity, a processing module and a computing node where the volume is included in the virtual machine to be created, include:
根据待创建虚拟机的虚拟机规格信息,获取满足所述虚拟机规格信息的一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a computing node that meets the virtual machine specification information;
向所述卷创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the volume creation entity.
在第三方面的第一种可能的实现方式中,由于向卷创建实体直接发送选择的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In a first possible implementation manner of the third aspect, since the node identification information of the selected computing node is directly sent to the volume creation entity, it is ensured that the computing node that creates the volume and the computing node that creates the processing module are the same computing node.
结合第三方面,在第三方面的第二种可能的实现方式中,所述处理单元,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the third aspect, in a second possible implementation manner of the third aspect, the processing unit is specifically configured to negotiate, by using a volume creation entity, a processing module and a computing node where the volume is included in the virtual machine to be created, include:
根据待创建虚拟机的虚拟机规格信息,获取节点列表,所述节点列表包括满足所述虚拟机规格信息的至一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a node list, where the node list includes one computing node that satisfies the virtual machine specification information;
向卷创建实体发送所述节点列表,所述节点列表用于所述卷创建实体从所述节点列表中选择一个计算节点;Sending the node list to a volume creation entity, the node list being used by the volume creation entity to select a computing node from the node list;
接收所述卷创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the volume creation entity.
在第三方面的第二种可能的实现方式中,由于向卷创建实体发送节点列表,保证了卷创建实体能够选择满足卷规格信息的计算节点。In a second possible implementation of the third aspect, since the node list is sent to the volume creation entity, it is guaranteed that the volume creation entity can select a compute node that satisfies the volume specification information.
结合第三方面,在第三方面的第三种可能的实现方式中,所述处理单元,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the third aspect, in a third possible implementation manner of the third aspect, the processing unit is configured to negotiate, by using a volume creation entity, a processing module that is to be created by the virtual machine and a computing node where the volume is located, include:
接收卷创建实体发送的计算节点的节点标识信息,所述计算节点是所述卷创建实体获取的且满足所述待创建虚拟机对应的卷的卷规格信息。Receiving the node identification information of the computing node sent by the volume creation entity, where the computing node is the volume specification information acquired by the volume creation entity and satisfying the volume corresponding to the virtual machine to be created.
在第三方面的第三种可能的实现方式中,由于接收卷创建实体发送的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In a third possible implementation manner of the third aspect, the computing node that creates the volume and the computing node that creates the processing module are the same computing node because the node identification information of the computing node sent by the volume creation entity is received.
结合第三方面,在第三方面的第四种可能的实现方式中,所述处理单元, 具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the third aspect, in a fourth possible implementation manner of the third aspect, the processing unit, Specifically, the method for negotiating with the volume creation entity is as follows: the processing module included in the virtual machine to be created and the computing node where the volume is located, including:
接收所述卷创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机对应的卷的卷规格信息的至少一个计算节点;Receiving, by the volume creation entity, a node list, where the node list includes at least one computing node that meets volume specification information of a volume corresponding to the virtual machine to be created;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述卷创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the volume creation entity.
在第三方面的第四种可能的实现方式中,由于接收卷创建实体发送的节点列表,保证了能够选择到满足虚拟机规格信息的计算节点。In a fourth possible implementation manner of the third aspect, since the node list sent by the volume creation entity is received, it is ensured that the computing node that can satisfy the virtual machine specification information can be selected.
第四方面、提供了一种创建虚拟机的装置,所述装置包括:处理单元和发送单元;A fourth aspect provides an apparatus for creating a virtual machine, where the apparatus includes: a processing unit and a sending unit;
所述处理单元,用于与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述卷;The processing unit is configured to negotiate, with the processing module creation entity, a processing module and a computing node where the volume is included in the virtual machine to be created; and create the volume on the computing node;
所述发送单元,用于向所述处理模块创建实体发送所述卷的卷标识信息,所述卷标识信息用于所述处理模块创建实体在所述计算节点上创建所述处理模块后将所述卷挂载在所述处理模块上以形成所述待创建虚拟机。The sending unit is configured to send volume identifier information of the volume to the processing module creation entity, where the volume identifier information is used by the processing module creation entity to create the processing module on the computing node The volume is mounted on the processing module to form the virtual machine to be created.
在第四方面中,由于与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the fourth aspect, since the processing module included in the virtual machine to be created and the computing node where the volume is located are negotiated with the processing module creation entity, it is ensured that the processing module is created and the volume is created on the same computing node, so that the processing module reads and writes the access volume. The essence is read and write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
结合第四方面,在第四方面的第一种可能的实现方式中,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the processing unit is configured to: negotiate, with the processing module creation entity, a processing module that is to be created by the virtual machine and a computing node where the volume is located, ,include:
根据待创建虚拟机对应的卷的卷规格信息,获取满足所述卷规格信息的一个计算节点;Obtaining, by the volume specification information of the volume corresponding to the virtual machine to be created, a computing node that meets the volume specification information;
向所述处理模块创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the processing module creation entity.
在第四方面的第一种可能的实现方式中,由于向处理模块创建实体直接发送选择的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In a first possible implementation manner of the fourth aspect, since the node identification information of the selected computing node is directly sent to the processing module creation entity, the computing node that creates the volume and the computing node that creates the processing module are the same computing node.
结合第四方面,在第四方面的第二种可能的实现方式中,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理 模块和卷所在的计算节点,包括:With reference to the fourth aspect, in a second possible implementation manner of the fourth aspect, the processing unit is specifically configured to: negotiate with the processing module creation entity to perform processing included in the virtual machine to be created. The compute nodes where the modules and volumes are located, including:
根据待创建虚拟机对应的卷的卷规格信息,获取节点列表,所述节点列表包括满足所述卷规格信息的至一个计算节点;Obtaining, according to volume specification information of a volume corresponding to the virtual machine to be created, a node list, where the node list includes one to a computing node that satisfies the volume specification information;
向处理模块创建实体发送所述节点列表,所述节点列表用于所述处理模块创建实体从所述节点列表中选择一个计算节点;Sending, to the processing module creation entity, the node list, where the node list is used by the processing module creation entity to select a computing node from the node list;
接收所述处理模块创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the processing module creation entity.
在第四方面的第二种可能的实现方式中,由于向处理模块创建实体发送节点列表,保证了处理模块创建实体能够选择满足虚拟机规格信息的计算节点。In a second possible implementation of the fourth aspect, since the node list is sent to the processing module creation entity, it is ensured that the processing module creation entity can select a computing node that satisfies the virtual machine specification information.
结合第四方面,在第四方面的第三种可能的实现方式中,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the fourth aspect, in a third possible implementation manner of the fourth aspect, the processing unit is specifically configured to negotiate, by using the following manner, with the processing module creation entity, a processing module that is to be created by the virtual machine, and a computing node where the volume is located ,include:
接收处理模块创建实体发送的计算节点的节点标识信息,所述计算节点是所述处理模块创建实体获取的且满足所述待创建虚拟机的虚拟机规格信息。The receiving processing module creates the node identification information of the computing node sent by the entity, where the computing node is the virtual machine specification information acquired by the processing module creation entity and meets the virtual machine to be created.
在第四方面的第三种可能的实现方式中,由于接收处理模块创建实体发送的计算节点的节点标识信息,保证创建卷的计算节点和创建处理模块的计算节点为同一计算节点。In a third possible implementation manner of the fourth aspect, the receiving processing module creates the node identification information of the computing node sent by the entity, and ensures that the computing node that creates the volume and the computing node that creates the processing module are the same computing node.
结合第四方面,在第四方面的第四种可能的实现方式中,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:With reference to the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the processing unit is specifically configured to negotiate, in a manner with the processing module creation entity, a processing module and a computing node where the volume is to be created by the virtual machine to be created. ,include:
接收所述处理模块创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机的虚拟机规格信息的至少一个计算节点;Receiving, by the processing module creation entity, a node list, where the node list includes at least one computing node that meets virtual machine specification information of the virtual machine to be created;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述处理模块创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the processing module creation entity.
在第四方面的第四种可能的实现方式中,由于接收处理模块创建实体发送的节点列表,保证了能够选择到满足虚拟机规格信息的计算节点。In a fourth possible implementation manner of the fourth aspect, since the receiving processing module creates a node list sent by the entity, it is ensured that the computing node that can satisfy the virtual machine specification information can be selected.
附图说明DRAWINGS
图1是本发明实施例应用的网络架构图; 1 is a network architecture diagram of an application of an embodiment of the present invention;
图2-1是本发明实施例提供的一种处理模块创建实体的结构框图;2-1 is a structural block diagram of a processing module creation entity according to an embodiment of the present invention;
图2-2是本发明实施例提供的一种卷创建实体的结构框图;2-2 is a structural block diagram of a volume creation entity according to an embodiment of the present invention;
图3-1是本发明实施例提供的一种创建虚拟机的方法流程图;3-1 is a flowchart of a method for creating a virtual machine according to an embodiment of the present invention;
图3-2是本发明实施例提供的另一种创建虚拟机的方法流程图;3-2 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图4-1是本发明实施例提供的另一种创建虚拟机的方法流程图;4-1 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图4-2是本发明实施例提供的另一种创建虚拟机的方法流程图;4-2 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图5-1是本发明实施例提供的另一种创建虚拟机的方法流程图;5-1 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图5-2是本发明实施例提供的另一种创建虚拟机的方法流程图;FIG. 5-2 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图6-1是本发明实施例提供的另一种创建虚拟机的方法流程图;6-1 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图6-2是本发明实施例提供的另一种创建虚拟机的方法流程图;FIG. 6-2 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图7-1是本发明实施例提供的另一种创建虚拟机的方法流程图;7-1 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图7-2是本发明实施例提供的另一种创建虚拟机的方法流程图;7-2 is a flowchart of another method for creating a virtual machine according to an embodiment of the present invention;
图8是本发明实施例提供的一种创建虚拟机的装置结构示意图;FIG. 8 is a schematic structural diagram of an apparatus for creating a virtual machine according to an embodiment of the present invention;
图9是本发明实施例提供的另一种创建虚拟机的装置结构示意图。FIG. 9 is a schematic structural diagram of another apparatus for creating a virtual machine according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
本实施例应用于Openstack平台,Openstack平台是一种用于创建虚拟机的开源云平台。用户可以向Openstack平台提交虚拟机创建请求,请求Openstack平台为其创建虚拟机。虚拟机包括处理模块和卷,处理模块是虚拟机的运算逻辑部分,卷是一种供该处理模块进行读写访问的存储模块。This embodiment is applied to the Openstack platform, which is an open source cloud platform for creating virtual machines. The user can submit a virtual machine creation request to the Openstack platform and request the Openstack platform to create a virtual machine for it. The virtual machine includes a processing module and a volume, the processing module is an operation logic part of the virtual machine, and the volume is a storage module for the processing module to perform read and write access.
参见图1,Openstack平台包括处理模块创建实体、卷创建实体和计算节点等,计算节点中包括CPU(Central Processing Unit,处理器)、内存、硬盘等硬件资源,其可以为位于网络中的存储服务器。处理模块创建实体用于创建虚拟机的处理模块,卷创建实体用于创建虚拟机的卷;处理模块创建实体可以为Nova组件,卷创建实体可以为Cinder组件;Nova组件可以为位于网络中具有计算功能的服务器或是该服务器中的模块;Cinder组件也可以为位于网络中具有计算功能的服务器或是该服务器中的模块。当都为模块时,Nova组件和Cinder组件可以位于同一台服务器上或位于不同服务器上。在 本发明中,以Nova组件为处理模块创建实体,以Cinder组件为卷创建实体为例进行说明,但此不作为对本发明保护范围的限制。Referring to FIG. 1 , the Openstack platform includes a processing module creation entity, a volume creation entity, and a computing node. The computing node includes a CPU (Central Processing Unit), a memory, a hard disk, and the like, and may be a storage server located in the network. . The processing module creation entity is used to create a processing module of the virtual machine, the volume creation entity is used to create a volume of the virtual machine, the processing module creation entity may be a Nova component, the volume creation entity may be a Cinder component, and the Nova component may have a calculation in the network. A functional server or a module in the server; the Cinder component can also be a server with computing functions in the network or a module in the server. When both are modules, the Nova component and the Cinder component can be on the same server or on different servers. In In the present invention, an entity is created by using a Nova component as a processing module, and a Cinder component is used as a volume creation entity. However, this is not intended to limit the scope of the present invention.
用户需要创建虚拟机时,用户同时向Nova组件和Cinder发送虚拟机创建请求;Nova组件接收用户的虚拟机创建请求,在Openstack平台包括的计算节点中调度一计算节点,在调度的计算节点上创建待创建虚拟机的处理模块;Cinder组件接收用户的虚拟机创建请求,在Openstack平台包括的计算节点中调度一个计算节点,在调度的计算节点上创建待创建虚拟机对应的卷,向Nova组件发送该卷的卷标识信息;Nova组件接收该卷的卷标识信息,根据该卷的卷标识信息将该卷挂载在该处理模块上,形成待创建虚拟机。When a user needs to create a virtual machine, the user simultaneously sends a virtual machine creation request to the Nova component and the Cinder; the Nova component receives the user's virtual machine creation request, schedules a computing node in the computing node included in the Openstack platform, and creates on the scheduled computing node. The processing module of the virtual machine to be created; the Cinder component receives the virtual machine creation request of the user, schedules a computing node in the computing node included in the Openstack platform, creates a volume corresponding to the virtual machine to be created on the scheduled computing node, and sends the volume corresponding to the virtual machine to the Nova component. Volume identification information of the volume; the Nova component receives the volume identification information of the volume, and mounts the volume on the processing module according to the volume identification information of the volume to form a virtual machine to be created.
需要说明的是,在本实施例中,Nova组件调度的计算节点和Cinder组件调度的计算节点为同一计算节点,这样虚拟机的处理模块和卷就位于同一计算节点,处理模块读写访问卷实质上读写访问本地存储资源,满足虚拟机的高速读写的性能需求。It should be noted that, in this embodiment, the computing node scheduled by the Nova component and the computing node scheduled by the Cinder component are the same computing node, so that the processing module and the volume of the virtual machine are located in the same computing node, and the processing module reads and writes the access volume essence. Read and write access to local storage resources to meet the performance requirements of high-speed read and write of virtual machines.
目前Nova组件包括Nova API模块、Nova调度模块、Nova计算模块和KVM(Kernel-based Virtual Machine,开源的系统虚拟化)层,KVM层包括用于创建处理模块的接口;Cinder组件包括Cinder API模块、Cinder调度模块、Cinder计算模块和vdevice(virtual,虚拟设备)层,vdevice层包括用于创建卷的接口。Nova组件通过其包括的各模块来创建虚拟机的处理模块,Cinder组件通过其包括的各模块来创建虚拟机的卷,Nova组件和Cinder组件的具体创建过程在后续进行详细说明。Currently, the Nova component includes a Nova API module, a Nova scheduling module, a Nova computing module, and a KVM (Kernel-based Virtual Machine) layer. The KVM layer includes an interface for creating a processing module; the Cinder component includes a Cinder API module. The Cinder scheduling module, the Cinder computing module, and the vdevice (virtual device) layer, the vdevice layer includes an interface for creating a volume. The Nova component creates a processing module of the virtual machine through each module it includes. The Cinder component creates a volume of the virtual machine through each module included therein, and the specific creation process of the Nova component and the Cinder component is described in detail later.
参见图2-1,图2-1是本发明实施例提供的处理模块创建实体100的结构框图。处理模块创建实体100可以为位于网络中具有计算功能的服务器或是该服务器中的模块。处理模块创建实体100可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器101、接收器102和发送器103,一个或一个以上存储应用程序204或数据105的存储介质106(例如一个或一个以上海量存储设备)。其中,存储介质206可以是短暂存储或持久存储。存储在存储介质106的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对处理模块创建实体100中的一系列指令操作。更进一步地,处理器101可以设置为与存储介质106通信,在Nova件100上执行存储介质106中的一系列指令操作。 Referring to FIG. 2-1, FIG. 2-1 is a structural block diagram of a processing module creation entity 100 according to an embodiment of the present invention. The processing module creation entity 100 may be a server having a computing function in the network or a module in the server. The processing module creation entity 100 may vary considerably depending on configuration or performance, and may include one or more processors 101, receivers 102, and transmitters 103, one or more storage media storing applications 204 or data 105. 106 (for example, one or one storage device in Shanghai). The storage medium 206 can be short-lived or persistent. The program stored on storage medium 106 may include one or more modules (not shown), each of which may include a series of instruction operations in processing module creation entity 100. Still further, the processor 101 can be arranged to communicate with the storage medium 106 to perform a series of instruction operations in the storage medium 106 on the Nova component 100.
处理模块创建实体100还可以包括一个或一个以上电源107,一个或一个以上有线或无线网络接口108,一个或一个以上输入输出接口109,和/或,一个或一个以上操作系统110,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The processing module creation entity 100 may also include one or more power sources 107, one or more wired or wireless network interfaces 108, one or more input and output interfaces 109, and/or one or more operating systems 110, such as Windows ServerTM. , Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
在本发明中处理模块创建实体100的处理器101和接收器102具有以下功能:The processor 101 and the receiver 102 of the processing module creation entity 100 in the present invention have the following functions:
所述处理器101,用于与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述处理模块;The processor 101 is configured to negotiate, with the volume creation entity, a processing module that is to be created by the virtual machine and a computing node where the volume is located; and create the processing module on the computing node;
所述接收器102,用于接收所述卷创建实体发送的所述卷的卷标识信息,所述卷是所述卷创建实体在所述计算节点上创建的;The receiver 102 is configured to receive volume identification information of the volume sent by the volume creation entity, where the volume is created by the volume creation entity on the computing node;
所述处理器101,还用于根据所述卷标识信息,将所述卷挂载在所述处理模块上形成所述待创建虚拟机。The processor 101 is further configured to mount the volume on the processing module to form the virtual machine to be created according to the volume identifier information.
可选的,所述处理器101,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 101 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
根据待创建虚拟机的虚拟机规格信息,获取满足所述虚拟机规格信息的一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a computing node that meets the virtual machine specification information;
向所述卷创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the volume creation entity.
可选的,所述处理器101,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 101 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
根据待创建虚拟机的虚拟机规格信息,获取节点列表,所述节点列表包括满足所述虚拟机规格信息的至一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a node list, where the node list includes one computing node that satisfies the virtual machine specification information;
向卷创建实体发送所述节点列表,所述节点列表用于所述卷创建实体从所述节点列表中选择一个计算节点;Sending the node list to a volume creation entity, the node list being used by the volume creation entity to select a computing node from the node list;
接收所述卷创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the volume creation entity.
可选的,所述处理器101,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 101 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
接收卷创建实体发送的计算节点的节点标识信息,所述计算节点是所述卷创建实体获取的且满足所述待创建虚拟机对应的卷的卷规格信息。Receiving the node identification information of the computing node sent by the volume creation entity, where the computing node is the volume specification information acquired by the volume creation entity and satisfying the volume corresponding to the virtual machine to be created.
可选的,所述处理器101,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 101 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
接收所述卷创建实体发送的节点列表,所述节点列表包括满足所述待创 建虚拟机对应的卷的卷规格信息的至少一个计算节点;Receiving a list of nodes sent by the volume creation entity, the node list including satisfying the to-be-created Constructing at least one computing node of volume specification information of a volume corresponding to the virtual machine;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述卷创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the volume creation entity.
在本发明实施例中,由于与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, since the processing module included in the virtual machine to be created and the computing node where the volume is located are negotiated with the volume creation entity, it is ensured that the processing module and the volume are created on the same computing node, so that the processing module reads and writes the access volume. The essence is read and write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
参见图2-2,图2-2是本发明实施例提供的卷创建实体200的结构框图。卷创建实体200可以为位于网络中具有计算功能的服务器或是该服务器中的模块。卷创建实体200可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器201、发送器202和接收器203,一个或一个以上存储应用程序204或数据205的存储介质206(例如一个或一个以上海量存储设备)。其中,存储介质206可以是短暂存储或持久存储。存储在存储介质206的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对卷创建实体200中的一系列指令操作。更进一步地,处理器201可以设置为与存储介质206通信,在Nova件200上执行存储介质206中的一系列指令操作。Referring to FIG. 2-2, FIG. 2-2 is a structural block diagram of a volume creation entity 200 according to an embodiment of the present invention. The volume creation entity 200 can be a server having computing functionality in the network or a module in the server. The volume creation entity 200 can vary considerably depending on configuration or performance, and can include one or more processors 201, a transmitter 202, and a receiver 203, one or more storage media 206 that store application 204 or data 205. (eg one or one storage device in Shanghai). The storage medium 206 can be short-lived or persistent. The program stored on storage medium 206 may include one or more modules (not shown), each of which may include a series of instruction operations in volume creation entity 200. Still further, the processor 201 can be arranged to communicate with the storage medium 206 to perform a series of instruction operations in the storage medium 206 on the Nova appliance 200.
卷创建实体200还可以包括一个或一个以上电源207,一个或一个以上有线或无线网络接口208,一个或一个以上输入输出接口209,和/或,一个或一个以上操作系统210,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。Volume creation entity 200 may also include one or more power sources 207, one or more wired or wireless network interfaces 208, one or more input and output interfaces 209, and/or one or more operating systems 210, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
在本发明中卷创建实体200的处理器201和发送器202具有以下功能:The processor 201 and transmitter 202 of the volume creation entity 200 in the present invention have the following functions:
所述处理器201,用于与计算处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述卷;The processor 201 is configured to negotiate, with the computing processing module creating entity, a processing module and a computing node where the volume is included in the virtual machine to be created; and create the volume on the computing node;
所述发送器202,用于向所述处理模块创建实体发送所述卷的卷标识信息,所述卷标识信息用于所述处理模块创建实体在所述计算节点上创建所述处理模块后将所述卷挂载在所述处理模块上以形成所述待创建虚拟机。The transmitter 202 is configured to send, to the processing module creation entity, volume identifier information of the volume, where the volume identifier information is used by the processing module creation entity to create the processing module on the computing node The volume is mounted on the processing module to form the virtual machine to be created.
可选的,所述处理器201,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 201 is configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
根据待创建虚拟机对应的卷的卷规格信息,获取满足所述卷规格信息的 一个计算节点;Obtaining the volume specification information that meets the volume specification information according to the volume specification information of the volume corresponding to the virtual machine to be created a computing node;
向所述处理模块创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the processing module creation entity.
可选的,所述处理器201,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 201 is configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
根据待创建虚拟机对应的卷的卷规格信息,获取节点列表,所述节点列表包括满足所述卷规格信息的至一个计算节点;Obtaining, according to volume specification information of a volume corresponding to the virtual machine to be created, a node list, where the node list includes one to a computing node that satisfies the volume specification information;
向处理模块创建实体发送所述节点列表,所述节点列表用于所述处理模块创建实体从所述节点列表中选择一个计算节点;Sending, to the processing module creation entity, the node list, where the node list is used by the processing module creation entity to select a computing node from the node list;
接收所述处理模块创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the processing module creation entity.
可选的,所述处理器201,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 201 is configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
接收处理模块创建实体发送的计算节点的节点标识信息,所述计算节点是所述处理模块创建实体获取的且满足所述待创建虚拟机的虚拟机规格信息。The receiving processing module creates the node identification information of the computing node sent by the entity, where the computing node is the virtual machine specification information acquired by the processing module creation entity and meets the virtual machine to be created.
可选的,所述处理器201,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processor 201 is configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
接收所述处理模块创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机的虚拟机规格信息的至少一个计算节点;Receiving, by the processing module creation entity, a node list, where the node list includes at least one computing node that meets virtual machine specification information of the virtual machine to be created;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述处理模块创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the processing module creation entity.
在本发明实施例中,由于与计算处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, since the processing module included in the virtual machine to be created and the computing node where the volume is located are negotiated with the computing processing module creation entity, it is ensured that the processing module and the volume are created on the same computing node, so that the processing module reads and writes. The access volume is essentially a read-write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
本发明实施例提供了一种创建虚拟机的方法。在本实施例中,Nova组件调度创建处理模块所在的计算节点,并向Cinder组件发送该计算节点的节点标识信息,这样Nova组件和Cinder组件分别在该计算节点上创建虚拟机的处理模块和卷。参见图3-1,该方法包括:Embodiments of the present invention provide a method for creating a virtual machine. In this embodiment, the Nova component schedules the compute node where the processing module is located, and sends the node identifier information of the compute node to the Cinder component, so that the Nova component and the Cinder component respectively create the processing module and volume of the virtual machine on the compute node. . Referring to Figure 3-1, the method includes:
步骤301:Nova组件接收虚拟机创建请求,该虚拟机创建请求携带待创 建虚拟机的虚拟机规格信息的标识和卷规格信息。Step 301: The Nova component receives a virtual machine creation request, and the virtual machine creation request carries a to-be-created ID and volume specification information of virtual machine specification information of the virtual machine.
该虚拟机创建请求是用户通过其对应的终端发送的。用户可以在其对应的终端上配置待创建虚拟机的虚拟机规格信息和待创建虚拟机对应的卷的卷规格信息,然后通过该终端发送携带该虚拟机规格信息的标识和该卷规格信息的虚拟机创建请求。其中,该终端同时向Nova组件和Cinder组件发送该虚拟机创建请求。The virtual machine creation request is sent by the user through its corresponding terminal. The user can configure the virtual machine specification information of the virtual machine to be created and the volume specification information of the volume corresponding to the virtual machine to be created on the corresponding terminal, and then send the identifier carrying the virtual machine specification information and the volume specification information through the terminal. The virtual machine creates a request. The terminal sends the virtual machine creation request to the Nova component and the Cinder component at the same time.
可选的,对于上述配置过程可以为:用户对应的终端可以向用户显示一个配置界面,该配置界面中包括多个虚拟机规格信息;用户可以在该配置界面中选择一个虚拟机规格信息,以及设置卷规格信息;终端从该配置界面中获取该虚拟机规格信息的标识和该卷规格信息,向Nova组件和Cinder组件发送携带该虚拟机规格信息的标识和该卷规格信息的虚拟机创建请求。Optionally, the configuration process may be: the user corresponding terminal may display a configuration interface to the user, where the configuration interface includes multiple virtual machine specification information; the user may select a virtual machine specification information in the configuration interface, and Setting the volume specification information; the terminal obtains the identifier of the virtual machine specification information and the volume specification information from the configuration interface, and sends a virtual machine creation request that carries the identifier of the virtual machine specification information and the volume specification information to the Nova component and the Cinder component. .
可选的,参见图3-2,Nova组件通过其包括的NovaAPI模块接收该虚拟机创建请求。Optionally, referring to Figure 3-2, the Nova component receives the virtual machine creation request through the NovaAPI module it includes.
待创建虚拟机的虚拟机规格信息包括虚拟机内存大小、vCPU(virtual Central Processing Unit,虚拟处理器)数目、系统盘大小、swap(交换分区)盘大小和临时盘大小等信息中的至少一者。待创建虚拟机的卷规格信息可以为卷的SLA属性,如卷介质为SSD(Solid State Drives,固态硬盘)或HDD(HardDiskDrive,硬盘驱动器)等、卷IOPS((Input/Output Operations Per Second,每秒进行读写(I/O)操作的次数)=100等。The virtual machine specification information of the virtual machine to be created includes at least one of a virtual machine memory size, a vCPU (virtual central processing unit), a system disk size, a swap (distributed partition) disk size, and a temporary disk size. . The volume specification information of the virtual machine to be created may be the SLA attribute of the volume, such as SSD (Solid State Drives) or HDD (Hard Disk Drive), and volume IOPS ((Input/Output Operations Per Second). The number of times the read/write (I/O) operation is performed in seconds = 100, etc.
步骤302:Nova组件根据该虚拟机规格信息的标识获取该虚拟机规格信息,根据该虚拟机规格信息,调度满足该虚拟机规格信息的一个计算节点。Step 302: The Nova component obtains the virtual machine specification information according to the identifier of the virtual machine specification information, and schedules a computing node that meets the virtual machine specification information according to the virtual machine specification information.
Nova组件中包括Openstack平台中的每个计算节点当前的各种资源的资源大小,且每个计算节点都会实时地向Nova组件发送其包括的各种资源的资源大小。The Nova component includes the resource size of each of the current resources of each computing node in the Openstack platform, and each computing node sends the resource size of the various resources it includes to the Nova component in real time.
本步骤可以为:Nova组件根据该虚拟机规格信息的标识,从存储的标识与虚拟机规格信息的对应关系中获取对应的虚拟机规格信息,根据该虚拟机规格信息和保存的每个计算节点当前的各种资源的资源大小,选择资源大小满足该虚拟机规格信息的一个计算节点。例如,假设虚拟机规格信息中包括虚拟机内存大小、vCPU数目,则Nova组件可以选择当前内存大小大于该虚拟机内存大小且当前vCPU数目大于该vCPU数目的一个计算节点。In this step, the Nova component obtains corresponding virtual machine specification information from the corresponding relationship between the stored identifier and the virtual machine specification information according to the identifier of the virtual machine specification information, and according to the virtual machine specification information and each saved computing node. For the current resource size of various resources, select a computing node whose resource size satisfies the virtual machine specification information. For example, if the virtual machine specification information includes the virtual machine memory size and the number of vCPUs, the Nova component can select a computing node whose current memory size is larger than the virtual machine memory size and the current vCPU number is greater than the vCPU number.
可选的,参见图3-2,Nova组件中的Nova API模块将该虚拟机规格信 息的标识发送给Nova组件的Nova调度模块,Nova调度模块根据该标识,从存储的标识与虚拟机规格信息的对应关系中获取对应的虚拟机规格信息,根据该虚拟机规格信息,调度满足该虚拟机规格信息的一个计算节点。Optionally, refer to Figure 3-2. The Nova API module in the Nova component will specify the virtual machine specification. The identifier of the information is sent to the Nova scheduling module of the Nova component. The Nova scheduling module obtains the corresponding virtual machine specification information from the corresponding relationship between the stored identifier and the virtual machine specification information according to the identifier, and the scheduling meets the requirement according to the virtual machine specification information. A compute node for virtual machine specification information.
步骤303:Nova组件向Cinder组件发送该计算节点的节点标识信息。Step 303: The Nova component sends the node identification information of the computing node to the Cinder component.
步骤304:Nova组件根据该虚拟机规格信息,在该计算节点上创建待创建虚拟机的处理模块。Step 304: The Nova component creates a processing module of the virtual machine to be created on the computing node according to the virtual machine specification information.
可选的,参见图3-2,Nova组件中的Nova调度模块将选择的计算节点的节点标识信息发送给Nova组件的Nova计算模块,Nova计算模块根据该虚拟机规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的处理模块。Optionally, referring to Figure 3-2, the Nova scheduling module in the Nova component sends the node identification information of the selected computing node to the Nova computing module of the Nova component, and the Nova computing module identifies the node identification information according to the virtual machine specification information. A processing module of the virtual machine to be created is created on the corresponding computing node.
其中,Nova组件包括KVM层,该KVM层包括用于创建处理模块的接口,Nova计算模块从该虚拟层中调用该接口,根据该虚拟机规格信息,通过该接口在该计算节点上调度资源来创建处理模块。例如,假设该虚拟机规格信息包括虚拟机内存大小和vCPU数目,则根据该虚拟机内存大小和该vCPU数目,通过该接口在该计算节点上调度相应大小的内存和vCPU。The Nova component includes a KVM layer, and the KVM layer includes an interface for creating a processing module. The Nova computing module invokes the interface from the virtual layer, and schedules resources on the computing node through the interface according to the virtual machine specification information. Create a processing module. For example, if the virtual machine specification information includes the virtual machine memory size and the number of vCPUs, the corresponding size memory and vCPU are scheduled on the computing node according to the virtual machine memory size and the number of the vCPU.
其中,在本实施例中,可以先执行步骤303,再执行步骤304,也可以先执行步骤304,再执行步骤303,或者两步骤同时执行等,步骤303和304没严格的时序关系。In this embodiment, step 303 may be performed first, and then step 304 may be performed. Step 304 may be performed first, then step 303 may be performed, or two steps may be performed simultaneously. Steps 303 and 304 have no strict timing relationship.
步骤305:Cinder组件接收虚拟机创建请求,该虚拟机创建请求携带待创建虚拟机的虚拟机规格信息的标识和卷规格信息。Step 305: The Cinder component receives a virtual machine creation request, where the virtual machine creation request carries the identifier and volume specification information of the virtual machine specification information of the virtual machine to be created.
该虚拟机创建请求是用户通过其对应的终端发送的。The virtual machine creation request is sent by the user through its corresponding terminal.
可选的,参见图3-2,Cinder组件通过其包括的CinderAPI模块接收该虚拟机创建请求。Optionally, referring to FIG. 3-2, the Cinder component receives the virtual machine creation request through the CinderAPI module included therein.
其中,在本实施例中,步骤301和305没严格的时序关系,可以先执行步骤301,再执行步骤305,也可以先执行步骤305,再执行步骤301,或者两步骤同时执行等。In this embodiment, the steps 301 and 305 have no strict timing relationship. Step 301 may be performed first, and then step 305 may be performed. Step 305 may be performed first, then step 301 may be performed, or two steps may be performed simultaneously.
步骤306:Cinder组件接收该节点标识信息,根据该卷规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的卷。Step 306: The Cinder component receives the node identification information, and creates a volume of the virtual machine to be created on the computing node corresponding to the node identification information according to the volume specification information.
可选的,参见图3-2,Cinder组件通过其包括的CinderAPI模块接收该节点标识信息,将该节点标识信息和卷规格信息发送给Cinder组件的Cinder调度模块;Cinder调度模块再将该节点标识信息和卷规格信息发送给Cinder 组件的Cinder计算模块;Cinder计算模块根据该卷规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的卷。Optionally, referring to Figure 3-2, the Cinder component receives the node identification information through the CinderAPI module included therein, and sends the node identification information and the volume specification information to the Cinder scheduling module of the Cinder component; the Cinder scheduling module identifies the node again. Information and volume specification information is sent to Cinder The Cinder calculation module of the component; the Cinder calculation module creates a volume of the virtual machine to be created on the computing node corresponding to the node identification information according to the volume specification information.
其中,Cinder组件包括vdevice层,该vdevice层包括用于创建卷的接口,Cinder计算模块从vdevice层中调用该接口,根据该卷规格信息,通过该接口在该计算节点上调度资源来创建卷。调度的资源可以为SSD,HDD和非易失性存储介质等,该非易失性存储介质可以为Nvdimm。The Cinder component includes a vdevice layer, and the vdevice layer includes an interface for creating a volume. The Cinder computing module invokes the interface from the vdevice layer, and according to the volume specification information, the resource is scheduled to be created on the computing node through the interface. The scheduled resources may be SSDs, HDDs, and non-volatile storage media, etc., and the non-volatile storage medium may be Nvdimm.
步骤307:Cinder组件向Nova组件发送创建的卷的卷标识信息。Step 307: The Cinder component sends the volume identification information of the created volume to the Nova component.
步骤308:Nova组件接收该卷标识信息,根据该卷标识信息将该卷挂载在该处理模块上形成待创建虚拟机。Step 308: The Nova component receives the volume identification information, and mounts the volume on the processing module according to the volume identification information to form a virtual machine to be created.
其中,需要说明的是:如果选择的计算节点不满足卷规格信息,则Cinder组件向Nova组件发送通知消息,然后Nova组件重新选择一个满足虚拟机规格信息的计算节点,再向Cinder组件发送重新选择的计算节点的节点标识信息,让Cinder组件来创建卷。It should be noted that if the selected computing node does not satisfy the volume specification information, the Cinder component sends a notification message to the Nova component, and then the Nova component reselects a computing node that satisfies the virtual machine specification information, and then sends a reselection to the Cinder component. The node identification information of the compute node allows the Cinder component to create the volume.
在本发明实施例中,Nova组件调度一个计算节点,并将该计算节点的节点标识信息发送给Cinder组件,这样保证了Nova组件创建处理模块所在的计算节点和Cinder组件创建卷所在的计算节点为同一计算节点,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, the Nova component dispatches a computing node, and sends the node identification information of the computing node to the Cinder component, so that the computing node where the Nova component creation processing module is located and the computing node where the Cinder component creation volume is located are The same computing node enables the processing module to read and write access volumes to read and write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
本发明实施例提供了一种创建虚拟机的方法。在本实施例中,Nova组件获取节点列表,该节点列表包括至少一个计算节点,并向Cinder组件发送该节点列表,Cinder从该节点列表中选择一个计算节点,向Nova组件发送该计算节点的节点标识信息,这样Nova组件和Cinder组件分别在该计算节点上创建虚拟机的处理模块和卷。参见图4-1,该方法包括:Embodiments of the present invention provide a method for creating a virtual machine. In this embodiment, the Nova component obtains a node list, the node list includes at least one computing node, and sends the node list to the Cinder component, and the Cinder selects a computing node from the node list, and sends the node of the computing node to the Nova component. Identify information such that the Nova component and the Cinder component create processing modules and volumes for the virtual machine on the compute node, respectively. Referring to Figure 4-1, the method includes:
步骤401:与步骤301相同,在此不再详细说明。Step 401: The same as step 301, and will not be described in detail herein.
步骤402:Nova组件根据该虚拟机规格信息的标识获取该虚拟机规格信息,根据该虚拟机规格信息,获取节点列表,该节点列表包括满足该虚拟机规格信息的至少一个计算节点。Step 402: The Nova component obtains the virtual machine specification information according to the identifier of the virtual machine specification information, and obtains a node list according to the virtual machine specification information, where the node list includes at least one computing node that satisfies the virtual machine specification information.
Nova组件中包括Openstack平台中的每个计算节点当前的各种资源的资源大小,且每个计算节点都会实时地向Nova组件发送其包括的各种资源的资源大小。 The Nova component includes the resource size of each of the current resources of each computing node in the Openstack platform, and each computing node sends the resource size of the various resources it includes to the Nova component in real time.
本步骤可以为:Nova组件根据该虚拟机规格信息的标识获取对应的虚拟机规格信息,根据该虚拟机规格信息和保存的每个计算节点当前的各种资源的资源大小,选择至少一个计算节点。例如,假设虚拟机规格信息中包括虚拟机内存大小、vCPU数目,则Nova组件可以选择当前内存大小大于该虚拟机内存大小且当前vCPU数目大于该vCPU数目的至少一个计算节点。In this step, the Nova component obtains corresponding virtual machine specification information according to the identifier of the virtual machine specification information, and selects at least one computing node according to the virtual machine specification information and the saved resource size of each resource of each computing node. . For example, if the virtual machine specification information includes the virtual machine memory size and the number of vCPUs, the Nova component may select at least one computing node whose current memory size is greater than the virtual machine memory size and the current vCPU number is greater than the number of vCPUs.
可选的,参见图3-2,Nova组件中的Nova API模块将该虚拟机规格信息的标识发送给Nova组件的Nova调度模块,Nova调度模块根据该虚拟机规格信息的标识获取对应的虚拟机规格信息,根据该虚拟机规格信息,调度满足该虚拟机规格信息的至少一个计算节点。Optionally, referring to Figure 3-2, the Nova API module in the Nova component sends the identifier of the virtual machine specification information to the Nova scheduling module of the Nova component, and the Nova scheduling module obtains the corresponding virtual machine according to the identifier of the virtual machine specification information. The specification information is to schedule at least one computing node that satisfies the virtual machine specification information according to the virtual machine specification information.
步骤403:Nova组件向Cinder组件发送该节点列表。Step 403: The Nova component sends the node list to the Cinder component.
步骤404:Cinder组件接收虚拟机创建请求,该虚拟机创建请求携带待创建虚拟机的虚拟机规格信息的标识和卷规格信息。Step 404: The Cinder component receives a virtual machine creation request, where the virtual machine creation request carries the identifier and volume specification information of the virtual machine specification information of the virtual machine to be created.
该虚拟机创建请求是用户通过其对应的终端发送的。The virtual machine creation request is sent by the user through its corresponding terminal.
可选的,参见图4-2,Cinder组件通过其包括的CinderAPI模块接收该虚拟机创建请求。Optionally, referring to FIG. 4-2, the Cinder component receives the virtual machine creation request through the CinderAPI module included therein.
步骤405:Cinder组件接收该节点列表,根据该卷规格信息,从该节点列表中选择一个计算节点。Step 405: The Cinder component receives the node list, and selects a computing node from the node list according to the volume specification information.
可选的,参见图4-2,CinderAPI模块接收该节点列表,将该节点列表和该卷规格信息发送给Cinder调度模块。Cinder调度模块根据该卷规格信息,从该节点列表中选择一个满足该卷规格信息的计算节点。Optionally, referring to Figure 4-2, the CinderAPI module receives the node list, and sends the node list and the volume specification information to the Cinder scheduling module. The Cinder scheduling module selects a computing node that satisfies the volume specification information from the node list according to the volume specification information.
步骤406:Cinder组件在该计算节点上创建待创建虚拟机的卷,并向Nova组件发送选择的计算节点的节点标识信息和该卷的卷标识信息。Step 406: The Cinder component creates a volume of the virtual machine to be created on the computing node, and sends the node identification information of the selected computing node and the volume identification information of the volume to the Nova component.
可选的,参见图4-2,Cinder组件中的Cinder调度模块将选择的计算节点的节点标识信息发送给Cinder组件的Cinder计算模块,Cinder计算模块根据该虚拟机规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的卷。Optionally, referring to Figure 4-2, the Cinder scheduling module in the Cinder component sends the node identification information of the selected computing node to the Cinder computing module of the Cinder component, and the Cinder computing module identifies the node identification information according to the virtual machine specification information. Create a volume for the virtual machine to be created on the corresponding compute node.
其中,Cinder组件包括虚拟层,该虚拟层包括用于创建处理模块的接口,Cinder计算模块从虚拟层中调用该接口,根据该虚拟机规格信息,通过该接口在该计算节点上调度资源来创建卷。The Cinder component includes a virtual layer, and the virtual layer includes an interface for creating a processing module. The Cinder computing module invokes the interface from the virtual layer, and according to the virtual machine specification information, the resource is created by scheduling resources on the computing node. volume.
步骤407:Nova组件接收该节点标识信息和该卷标识信息,根据该虚拟机规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的处理 模块。Step 407: The Nova component receives the node identification information and the volume identification information, and creates a virtual machine to be created on the computing node corresponding to the node identification information according to the virtual machine specification information. Module.
可选的,参见图4-2,Nova组件中的Nova调度模块将该节点标识信息发送给Nova组件的Nova计算模块,Nova计算模块根据该虚拟机规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的处理模块。Optionally, referring to Figure 4-2, the Nova scheduling module in the Nova component sends the node identification information to the Nova computing module of the Nova component, and the Nova computing module determines the computing node corresponding to the node identification information according to the virtual machine specification information. Create a processing module for the virtual machine to be created.
Nova组件包括KVM(Kernel-based Virtual Machine,开源的系统虚拟化)层,该KVM层包括用于创建处理模块的接口,Nova计算模块从该虚拟层中调用该接口,根据该虚拟机规格信息,通过该接口在该计算节点上调度资源来创建处理模块。例如,假设该虚拟机规格信息包括虚拟机内存大小和vCPU数目,则根据该虚拟机内存大小和该vCPU数目,通过该接口在该计算节点上调度相应大小的内存和vCPU。The Nova component includes a KVM (Kernel-based Virtual Machine) layer, the KVM layer includes an interface for creating a processing module, and the Nova computing module calls the interface from the virtual layer, according to the virtual machine specification information, A processing module is created by scheduling resources on the computing node through the interface. For example, if the virtual machine specification information includes the virtual machine memory size and the number of vCPUs, the corresponding size memory and vCPU are scheduled on the computing node according to the virtual machine memory size and the number of the vCPU.
步骤408:Nova组件根据该卷标识信息将该卷挂载在该处理模块上形成待创建虚拟机。Step 408: The Nova component mounts the volume on the processing module according to the volume identification information to form a virtual machine to be created.
在本发明实施例中,Nova组件调度至少一个计算节点形成节点列表,并将该节点列表发送给Cinder组件,Cinder组件从该节点列表中选择一个计算节点,并将选择的计算节点的节点标识信息发送给Nova组件,这样保证了Nova组件创建处理模块所在的计算节点和Cinder组件创建卷所在的计算节点为同一计算节点,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, the Nova component schedules at least one computing node to form a node list, and sends the node list to the Cinder component, the Cinder component selects a computing node from the node list, and selects the node identification information of the computing node. It is sent to the Nova component, which ensures that the compute node where the Nova component creation processing module is located and the compute node where the Cinder component creates the volume are the same compute node, so that the processing module reads and writes the access volume to read and write access to the local storage resource, satisfying the high speed. The performance requirements of read and write volumes.
本发明实施例提供了一种创建虚拟机的方法。在本实施例中,Cinder组件调度创建卷所在的计算节点,并向Nova组件发送该计算节点的节点标识信息,这样Nova组件和Cinder组件分别在该计算节点上创建虚拟机的处理模块和卷。参见图5-1,该方法包括:Embodiments of the present invention provide a method for creating a virtual machine. In this embodiment, the Cinder component schedules the compute node where the volume is created, and sends the node identifier information of the compute node to the Nova component, such that the Nova component and the Cinder component respectively create a processing module and volume of the virtual machine on the compute node. Referring to Figure 5-1, the method includes:
步骤501:Cinder组件接收虚拟机创建请求,该虚拟机创建请求携带待创建虚拟机的虚拟机规格信息的标识和卷规格信息。Step 501: The Cinder component receives a virtual machine creation request, where the virtual machine creation request carries the identifier and volume specification information of the virtual machine specification information of the virtual machine to be created.
该虚拟机创建请求是用户在其对应的终端上配置的并通过其对应的终端发送的,详细过程请参见步骤301中的相关内容,在此不再详细说明。The virtual machine creation request is configured by the user on the corresponding terminal and is sent by the corresponding terminal. For details, refer to the related content in step 301, and details are not described herein.
可选的,参见图5-2,Cinder组件通过其包括的Cinder API模块接收该虚拟机创建请求。Optionally, referring to FIG. 5-2, the Cinder component receives the virtual machine creation request through the Cinder API module included therein.
步骤502:Cinder组件根据该卷规格信息,调度满足该卷规格信息的一个计算节点。 Step 502: The Cinder component schedules a computing node that meets the volume specification information according to the volume specification information.
Cinder组件中包括Openstack平台中的每个计算节点当前的各种资源的资源大小,且每个计算节点都会实时地向Cinder组件发送其包括的各种资源的资源大小。The Cinder component includes resource sizes of various resources of each computing node in the Openstack platform, and each computing node sends the resource size of various resources included in the Cinder component in real time.
本步骤可以为:Cinder组件根据该卷规格信息和保存的每个计算节点当前的各种资源的资源大小,选择一个计算节点。This step may be: the Cinder component selects a computing node according to the volume specification information and the saved resource size of each resource of each computing node.
可选的,参见图5-2,Cinder组件中的Cinder API模块将该卷规格信息发送给Cinder组件的Cinder调度模块,Cinder调度模块根据该卷规格信息,调度满足该卷规格信息的一个计算节点。Optionally, referring to Figure 5-2, the Cinder API module in the Cinder component sends the volume specification information to the Cinder scheduling module of the Cinder component, and the Cinder scheduling module schedules a computing node that meets the volume specification information according to the volume specification information. .
步骤503:Cinder组件向Nova组件发送该计算节点的节点标识信息。Step 503: The Cinder component sends the node identification information of the computing node to the Nova component.
步骤504:Cinder组件根据该卷规格信息,在该计算节点上创建待创建虚拟机的卷,向Nova组件发送该卷的卷标识信息。Step 504: The Cinder component creates a volume of the virtual machine to be created on the computing node according to the volume specification information, and sends the volume identification information of the volume to the Nova component.
可选的,参见图5-2,Cinder组件中的Cinder调度模块将选择的计算节点的节点标识信息发送给Cinder组件的Cinder计算模块,Cinder计算模块根据该卷规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的卷。Optionally, referring to Figure 5-2, the Cinder scheduling module in the Cinder component sends the node identification information of the selected computing node to the Cinder computing module of the Cinder component, and the Cinder computing module corresponds to the node identification information according to the volume specification information. Create a volume on the compute node where the virtual machine is to be created.
其中,Cinder组件包括vdevice层,该vdevice层包括用于创建卷的接口,Cinder计算模块从vdevice层中调用该接口,根据该卷规格信息,通过该接口在该计算节点上调度资源来创建卷。The Cinder component includes a vdevice layer, and the vdevice layer includes an interface for creating a volume. The Cinder computing module invokes the interface from the vdevice layer, and according to the volume specification information, the resource is scheduled to be created on the computing node through the interface.
步骤505:Nova组件接收虚拟机创建请求,该虚拟机创建请求携带待创建虚拟机的虚拟机规格信息的标识和卷规格信息。Step 505: The Nova component receives a virtual machine creation request, and the virtual machine creation request carries the identifier and volume specification information of the virtual machine specification information of the virtual machine to be created.
该虚拟机创建请求是用户通过其对应的终端发送的。The virtual machine creation request is sent by the user through its corresponding terminal.
可选的,参见图5-2,Nova组件通过其包括的NovaAPI模块接收该虚拟机创建请求。Optionally, referring to Figure 5-2, the Nova component receives the virtual machine creation request through the NovaAPI module it includes.
步骤506:Nova组件接收该节点标识信息,根据该虚拟机规格信息的标识获取对应的虚拟机规格信息,根据该虚拟机规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的处理模块。Step 506: The Nova component receives the node identification information, obtains the corresponding virtual machine specification information according to the identifier of the virtual machine specification information, and creates a virtual machine to be created on the computing node corresponding to the node identification information according to the virtual machine specification information. Processing module.
可选的,参见图5-2,Nova组件通过其包括的NovaAPI模块接收该虚拟机创建请求,将该虚拟机规格信息的标识发送给Nova组件的Nova调度模块;Nova调度模块根据该虚拟机规格信息的标识获取对应的虚拟机规格信息,将该虚拟机规格信息发送给Nova组件的Nova计算模块;Nova计算模块接收该节点标识信息,根据该虚拟机规格信息,在该节点标识信息对应的 计算节点上创建待创建虚拟机的处理模块。Optionally, referring to Figure 5-2, the Nova component receives the virtual machine creation request through the NovaAPI module included therein, and sends the identifier of the virtual machine specification information to the Nova scheduling module of the Nova component; the Nova scheduling module according to the virtual machine specification The identifier of the information obtains the corresponding virtual machine specification information, and sends the virtual machine specification information to the Nova computing module of the Nova component; the Nova computing module receives the node identification information, and corresponding to the node identification information according to the virtual machine specification information. Create a processing module for the virtual machine to be created on the compute node.
其中,Nova组件包括KVM层,该KVM层包括用于创建处理模块的接口,Nova计算模块从KVM层中调用该接口,根据该虚拟机规格信息,通过该接口在该计算节点上调度资源来创建处理模块。The Nova component includes a KVM layer, the KVM layer includes an interface for creating a processing module, and the Nova computing module invokes the interface from the KVM layer, and according to the virtual machine specification information, the resource is created by scheduling resources on the computing node through the interface. Processing module.
步骤507:Nova组件接收该卷标识信息,根据该卷标识信息将该卷挂载在该处理模块上形成待创建虚拟机。Step 507: The Nova component receives the volume identification information, and mounts the volume on the processing module according to the volume identification information to form a virtual machine to be created.
其中,需要说明的是:如果选择的计算节点不满足虚拟机规格信息,则Nova组件向Cinder组件发送通知消息,然后Cinder组件重新选择一个满足卷规格信息的计算节点,再向Nova组件发送重新选择的计算节点的节点标识信息,让Nova组件来创建处理模块。It should be noted that if the selected computing node does not satisfy the virtual machine specification information, the Nova component sends a notification message to the Cinder component, and then the Cinder component reselects a computing node that satisfies the volume specification information, and then sends a reselection to the Nova component. The node identification information of the compute node allows the Nova component to create the processing module.
在本发明实施例中,Cinder组件调度一个计算节点,并将该计算节点的节点标识信息发送给Nova组件,这样保证了Nova组件创建处理模块所在的计算节点和Cinder组件创建卷所在的计算节点为同一计算节点,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, the Cinder component schedules a computing node, and sends the node identification information of the computing node to the Nova component, so that the computing node where the Nova component creation processing module is located and the computing node where the Cinder component creation volume is located are The same computing node enables the processing module to read and write access volumes to read and write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
本发明实施例提供了一种创建虚拟机的方法。在本实施例中,Cinder组件获取节点列表,该节点列表包括至少一个计算节点,并向Nova组件发送节点列表,Nova组件从该节点列表中选择一个计算节点,向Cinder组件发送该计算节点的节点标识信息,这样Nova组件和Cinder组件分别在计算节点上创建虚拟机的处理模块和卷。参见图6-1,该方法包括:Embodiments of the present invention provide a method for creating a virtual machine. In this embodiment, the Cinder component acquires a node list, the node list includes at least one computing node, and sends a node list to the Nova component, the Nova component selects a computing node from the node list, and sends the node of the computing node to the Cinder component. Identify information so that the Nova component and the Cinder component create the processing modules and volumes of the virtual machine on the compute nodes, respectively. Referring to Figure 6-1, the method includes:
步骤601:与步骤501相同,在此不再详细说明。Step 601: The same as step 501, and will not be described in detail herein.
步骤602:Cinder组件根据该卷规格信息,获取节点列表,该节点列表包括满足该卷规格信息的至少一个计算节点。Step 602: The Cinder component acquires a node list according to the volume specification information, where the node list includes at least one computing node that satisfies the volume specification information.
Cinder组件中包括Openstack平台中的每个计算节点当前的各种资源的资源大小,且每个计算节点都会实时地向Cinder组件发送其包括的各种资源的资源大小。The Cinder component includes resource sizes of various resources of each computing node in the Openstack platform, and each computing node sends the resource size of various resources included in the Cinder component in real time.
本步骤可以为:Cinder组件根据该卷规格信息和保存的每个计算节点当前的各种资源的资源大小,选择至少一个计算节点。The step may be: the Cinder component selects at least one computing node according to the volume specification information and the saved resource size of each resource of each computing node.
可选的,参见图6-2,Cinder组件中的Cinder API模块将该卷规格信息发送给Cinder组件的Cinder调度模块,Cinder调度模块根据该卷规格信息, 调度满足该卷规格信息的至少一个计算节点。Optionally, referring to Figure 6-2, the Cinder API module in the Cinder component sends the volume specification information to the Cinder scheduling module of the Cinder component, and the Cinder scheduling module according to the volume specification information. At least one compute node that satisfies the volume specification information is scheduled.
步骤603:Cinder组件向Nova组件发送该节点列表。Step 603: The Cinder component sends the node list to the Nova component.
步骤604:Nova组件接收虚拟机创建请求,该虚拟机创建请求携带待创建虚拟机的虚拟机规格信息的标识和卷规格信息。Step 604: The Nova component receives a virtual machine creation request, and the virtual machine creation request carries the identifier and volume specification information of the virtual machine specification information of the virtual machine to be created.
该虚拟机创建请求是用户通过其对应的终端发送的。The virtual machine creation request is sent by the user through its corresponding terminal.
可选的,参见图6-2,Nova组件通过其包括的NovaAPI模块接收该虚拟机创建请求,将该虚拟机规格信息的标识发送给Nova调度模块。Optionally, referring to Figure 6-2, the Nova component receives the virtual machine creation request through the NovaAPI module included therein, and sends the identifier of the virtual machine specification information to the Nova scheduling module.
步骤605:Nova组件接收该节点列表,根据该虚拟机规格信息的标识获取该虚拟机规格信息,根据该虚拟机规格信息,从该节点列表中选择一个计算节点。Step 605: The Nova component receives the node list, obtains the virtual machine specification information according to the identifier of the virtual machine specification information, and selects a computing node from the node list according to the virtual machine specification information.
可选的,Nova组件的Nova调度模块根据该虚拟机规格信息的标识获取该虚拟机规格信息,根据该虚拟机规格信息,从该节点列表中选择一个满足该虚拟机规格信息的计算节点,然后将选择的计算节点的节点标识信息发送给Nova计算模块。Optionally, the Nova scheduling module of the Nova component obtains the virtual machine specification information according to the identifier of the virtual machine specification information, and selects a computing node that meets the virtual machine specification information from the node list according to the virtual machine specification information, and then The node identification information of the selected computing node is sent to the Nova computing module.
步骤606:Nova组件在该计算节点上创建待创建虚拟机的处理模块,并向Cinder组件发送选择的计算节点的节点标识信息。Step 606: The Nova component creates a processing module of the virtual machine to be created on the computing node, and sends the node identification information of the selected computing node to the Cinder component.
可选的,参见图6-2,Nova计算模块接收该计算节点的节点标识信息,根据该虚拟机规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的处理模块。Optionally, referring to FIG. 6-2, the Nova computing module receives the node identifier information of the computing node, and creates a processing module of the virtual machine to be created on the computing node corresponding to the node identifier information according to the virtual machine specification information.
其中,Nova组件包括KVM层,该KVM层包括用于创建处理模块的接口,Nova计算模块从KVM层中调用该接口,根据该虚拟机规格信息,通过该接口在该计算节点上调度资源来创建卷。The Nova component includes a KVM layer, the KVM layer includes an interface for creating a processing module, and the Nova computing module invokes the interface from the KVM layer, and according to the virtual machine specification information, the resource is created by scheduling resources on the computing node through the interface. volume.
步骤607:Cinder组件接收该节点标识信息,根据该卷规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的卷,向Nova组件发送该卷的卷标识信息。Step 607: The Cinder component receives the node identification information, and creates a volume of the virtual machine to be created on the computing node corresponding to the node identification information according to the volume specification information, and sends the volume identification information of the volume to the Nova component.
可选的,参见图6-2,Cinder组件中的Cinder计算模块接收该节点标识信息根据该卷规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的卷。Optionally, referring to Figure 6-2, the Cinder calculation module in the Cinder component receives the node identification information, and creates a volume of the virtual machine to be created on the computing node corresponding to the node identification information according to the volume specification information.
其中,Cinder组件包括vdevice层,该vdevice层包括用于创建卷的接口,Cinder计算模块从vdevice层中调用该接口,根据该卷规格信息,通过该接口在该计算节点上调度资源来创建卷。 The Cinder component includes a vdevice layer, and the vdevice layer includes an interface for creating a volume. The Cinder computing module invokes the interface from the vdevice layer, and according to the volume specification information, the resource is scheduled to be created on the computing node through the interface.
步骤608:Nova组件接收该卷标识信息,根据该卷标识信息将该卷挂载在该处理模块上形成待创建虚拟机。Step 608: The Nova component receives the volume identification information, and mounts the volume on the processing module according to the volume identification information to form a virtual machine to be created.
在本发明实施例中,Cinder组件调度至少一个计算节点形成节点列表,并将该节点列表发送给Nova组件,Nova组件从该节点列表中选择一个计算节点,并将选择的计算节点的节点标识信息发送给Cinder组件,这样保证了Nova组件创建处理模块所在的计算节点和Cinder组件创建卷所在的计算节点为同一计算节点,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, the Cinder component schedules at least one computing node to form a node list, and sends the node list to the Nova component, and the Nova component selects a computing node from the node list, and selects the node identification information of the computing node. The Cinder component is sent to the Cinder component, so that the computing node where the Nova component creation processing module is located and the computing node where the Cinder component creation volume is located are the same computing node, so that the processing module reads and writes the access volume to read and write access to the local storage resource, which satisfies the high speed. The performance requirements of read and write volumes.
本发明实施例提供了一种创建虚拟机的方法。在本实施例中,Nova组件调度创建处理模块和卷所在的计算节点,在该计算节点上创建虚拟机的处理模块和卷。参见图7-1,该方法包括:Embodiments of the present invention provide a method for creating a virtual machine. In this embodiment, the Nova component schedules a processing module and a computing node where the volume is located, and creates a processing module and a volume of the virtual machine on the computing node. Referring to Figure 7-1, the method includes:
步骤701:与步骤301相同,在此不再详细说明。Step 701: The same as step 301, and will not be described in detail herein.
步骤702:Nova组件根据该虚拟机规格信息的标识获取该虚拟机规格信息,根据该虚拟机规格信息,调度满足该虚拟机规格信息的一个计算节点。Step 702: The Nova component obtains the virtual machine specification information according to the identifier of the virtual machine specification information, and schedules a computing node that meets the virtual machine specification information according to the virtual machine specification information.
Nova组件中包括Openstack平台中的每个计算节点当前的各种资源的资源大小,且每个计算节点都会实时地向Nova组件发送其包括的各种资源的资源大小。The Nova component includes the resource size of each of the current resources of each computing node in the Openstack platform, and each computing node sends the resource size of the various resources it includes to the Nova component in real time.
本步骤可以为:Nova组件根据该虚拟机规格信息的标识,从存储的标识与虚拟机规格信息的对应关系中获取对应的虚拟机规格信息,根据该虚拟机规格信息和保存的每个计算节点当前的各种资源的资源大小,选择一个计算节点。例如,假设虚拟机规格信息中包括虚拟机内存大小、vCPU数目,则Nova组件可以选择当前内存大小大于该虚拟机内存大小且当前vCPU数目大于该vCPU数目的一个计算节点。In this step, the Nova component obtains corresponding virtual machine specification information from the corresponding relationship between the stored identifier and the virtual machine specification information according to the identifier of the virtual machine specification information, and according to the virtual machine specification information and each saved computing node. For the current resource size of various resources, select a compute node. For example, if the virtual machine specification information includes the virtual machine memory size and the number of vCPUs, the Nova component can select a computing node whose current memory size is larger than the virtual machine memory size and the current vCPU number is greater than the vCPU number.
可选的,参见图7-2,Nova组件中的Nova API模块将该虚拟机规格信息的标识和该卷规格信息发送给Nova组件的Nova调度模块,Nova调度模块根据该虚拟机规格信息的标识,从存储的标识与虚拟机规格信息的对应关系中获取对应的虚拟机规格信息,根据该虚拟机规格信息,调度满足该虚拟机规格信息的一个计算节点。Optionally, referring to Figure 7-2, the Nova API module in the Nova component sends the identifier of the virtual machine specification information and the volume specification information to the Nova scheduling module of the Nova component, and the Nova scheduling module identifies the virtual machine specification information according to the virtual machine specification information. And acquiring corresponding virtual machine specification information from the correspondence between the stored identifier and the virtual machine specification information, and scheduling one computing node that meets the virtual machine specification information according to the virtual machine specification information.
步骤703:Nova组件根据该虚拟机规格信息,在该计算节点上创建待创建虚拟机的处理模块。 Step 703: The Nova component creates a processing module of the virtual machine to be created on the computing node according to the virtual machine specification information.
可选的,参见图7-2,Nova组件中的Nova调度模块将选择的计算节点的节点标识信息、该虚拟机规格信息和该卷规格信息发送给Nova组件的Nova计算模块,Nova计算模块根据该虚拟机规格信息,在该节点标识信息对应的计算节点上创建待创建虚拟机的处理模块。Optionally, referring to Figure 7-2, the Nova scheduling module in the Nova component sends the node identification information of the selected computing node, the virtual machine specification information, and the volume specification information to the Nova computing module of the Nova component, and the Nova computing module is configured according to The virtual machine specification information is used to create a processing module of the virtual machine to be created on the computing node corresponding to the node identifier information.
其中,Nova组件包括模块KVM层,该KVM层包括用于创建处理模块的接口,Nova计算模块从该KVM层中调用该接口,根据该虚拟机规格信息,通过该接口在该计算节点上调度资源来创建处理模块。例如,假设该虚拟机规格信息包括虚拟机内存大小和vCPU数目,则根据该虚拟机内存大小和该vCPU数目,通过该接口在该计算节点上调度相应大小的内存和vCPU。The Nova component includes a module KVM layer, the KVM layer includes an interface for creating a processing module, the Nova computing module invokes the interface from the KVM layer, and schedules resources on the computing node through the interface according to the virtual machine specification information. To create a processing module. For example, if the virtual machine specification information includes the virtual machine memory size and the number of vCPUs, the corresponding size memory and vCPU are scheduled on the computing node according to the virtual machine memory size and the number of the vCPU.
步骤704:Nova组件根据该卷规格信息,在该计算节点上创建待创建虚拟机的卷。Step 704: The Nova component creates a volume of the virtual machine to be created on the computing node according to the volume specification information.
可选的,参见图7-2,Nova组件还包括vdevice层,该vdevice层包括用于创建卷的接口,Nova计算模块从该vdevice层中调用该接口,根据该卷规格信息,通过该接口在该计算节点上调度资源来创建卷。Optionally, referring to FIG. 7-2, the Nova component further includes a vdevice layer, where the vdevice layer includes an interface for creating a volume, and the Nova computing module invokes the interface from the vdevice layer, according to the volume specification information, through the interface. A resource is scheduled on the compute node to create a volume.
步骤705:Nova组件将该卷挂载在该处理模块上形成待创建虚拟机。Step 705: The Nova component mounts the volume on the processing module to form a virtual machine to be created.
在本发明实施例中,Nova组件调度一个计算节点,并在该计算节点上创建待创建虚拟机的处理模块和卷,这样保证了创建的处理模块和卷均位于同一计算节点,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, the Nova component schedules a computing node, and creates a processing module and a volume of the virtual machine to be created on the computing node, so that the created processing module and the volume are all located in the same computing node, so that the processing module reads The write access volume is essentially a read-write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
参见图8,本发明实施例提供了一种创建虚拟机的装置800,所述装置800包括:处理单元801和接收单元802;Referring to Figure 8, an embodiment of the present invention provides an apparatus 800 for creating a virtual machine, the apparatus 800 comprising: a processing unit 801 and a receiving unit 802;
所述处理单元801,用于与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述处理模块;The processing unit 801 is configured to negotiate, with the volume creation entity, a processing module that is to be created by the virtual machine and a computing node where the volume is located; and create the processing module on the computing node;
所述接收单元802,用于接收所述卷创建实体发送的所述卷的卷标识信息,所述卷是所述卷创建实体在所述计算节点上创建的;The receiving unit 802 is configured to receive volume identification information of the volume sent by the volume creation entity, where the volume is created by the volume creation entity on the computing node;
所述处理单元801,还用于根据所述卷标识信息,将所述卷挂载在所述处理模块上形成所述待创建虚拟机。The processing unit 801 is further configured to mount the volume on the processing module to form the virtual machine to be created according to the volume identifier information.
可选的,所述处理单元801,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 801 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
根据待创建虚拟机的虚拟机规格信息,获取满足所述虚拟机规格信息的 一个计算节点;Obtaining the virtual machine specification information that meets the virtual machine according to the virtual machine specification information of the virtual machine to be created. a computing node;
向所述卷创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the volume creation entity.
可选的,所述处理单元801,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 801 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
根据待创建虚拟机的虚拟机规格信息,获取节点列表,所述节点列表包括满足所述虚拟机规格信息的至一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a node list, where the node list includes one computing node that satisfies the virtual machine specification information;
向卷创建实体发送所述节点列表,所述节点列表用于所述卷创建实体从所述节点列表中选择一个计算节点;Sending the node list to a volume creation entity, the node list being used by the volume creation entity to select a computing node from the node list;
接收所述卷创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the volume creation entity.
可选的,所述处理单元801,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 801 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
接收卷创建实体发送的计算节点的节点标识信息,所述计算节点是所述卷创建实体获取的且满足所述待创建虚拟机对应的卷的卷规格信息。Receiving the node identification information of the computing node sent by the volume creation entity, where the computing node is the volume specification information acquired by the volume creation entity and satisfying the volume corresponding to the virtual machine to be created.
可选的,所述处理单元801,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 801 is specifically configured to negotiate, with the volume creation entity, the processing module and the computing node where the volume is to be created, including:
接收所述卷创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机对应的卷的卷规格信息的至少一个计算节点;Receiving, by the volume creation entity, a node list, where the node list includes at least one computing node that meets volume specification information of a volume corresponding to the virtual machine to be created;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述卷创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the volume creation entity.
在本发明实施例中,由于与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, since the processing module included in the virtual machine to be created and the computing node where the volume is located are negotiated with the volume creation entity, it is ensured that the processing module and the volume are created on the same computing node, so that the processing module reads and writes the access volume. The essence is read and write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
参见图9,本发明实施例提供了一种创建虚拟机的装置900,所述装置900包括:处理单元901和发送单元902;Referring to FIG. 9, an embodiment of the present invention provides an apparatus 900 for creating a virtual machine, where the apparatus 900 includes: a processing unit 901 and a sending unit 902;
所述处理单元901,用于与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述卷;The processing unit 901 is configured to negotiate, with the processing module creation entity, a processing module included in the virtual machine to be created and a computing node where the volume is located; and create the volume on the computing node;
所述发送单元902,用于向所述处理模块创建实体发送所述卷的卷标识信息,所述卷标识信息用于所述处理模块创建实体在所述计算节点上创建所述处理模块后将所述卷挂载在所述处理模块上以形成所述待创建虚拟机。 The sending unit 902 is configured to send volume identifier information of the volume to the processing module creation entity, where the volume identifier information is used by the processing module creation entity to create the processing module on the computing node The volume is mounted on the processing module to form the virtual machine to be created.
可选的,所述处理单元901,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 901 is specifically configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
根据待创建虚拟机对应的卷的卷规格信息,获取满足所述卷规格信息的一个计算节点;Obtaining, by the volume specification information of the volume corresponding to the virtual machine to be created, a computing node that meets the volume specification information;
向所述处理模块创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the processing module creation entity.
可选的,所述处理单元901,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 901 is specifically configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
根据待创建虚拟机对应的卷的卷规格信息,获取节点列表,所述节点列表包括满足所述卷规格信息的至一个计算节点;Obtaining, according to volume specification information of a volume corresponding to the virtual machine to be created, a node list, where the node list includes one to a computing node that satisfies the volume specification information;
向处理模块创建实体发送所述节点列表,所述节点列表用于所述处理模块创建实体从所述节点列表中选择一个计算节点;Sending, to the processing module creation entity, the node list, where the node list is used by the processing module creation entity to select a computing node from the node list;
接收所述处理模块创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the processing module creation entity.
可选的,所述处理单元901,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 901 is specifically configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
接收处理模块创建实体发送的计算节点的节点标识信息,所述计算节点是所述处理模块创建实体获取的且满足所述待创建虚拟机的虚拟机规格信息。The receiving processing module creates the node identification information of the computing node sent by the entity, where the computing node is the virtual machine specification information acquired by the processing module creation entity and meets the virtual machine to be created.
可选的,所述处理单元901,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:Optionally, the processing unit 901 is specifically configured to negotiate with the processing module creation entity that the processing module and the computing node that are included in the virtual machine to be created are in the following manner, including:
接收所述处理模块创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机的虚拟机规格信息的至少一个计算节点;Receiving, by the processing module creation entity, a node list, where the node list includes at least one computing node that meets virtual machine specification information of the virtual machine to be created;
从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
向所述处理模块创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the processing module creation entity.
在本发明实施例中,由于与计算处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,这样保证了在同一计算节点上创建处理模块和创建卷,使得处理模块读写访问卷实质为读写访问本地的存储资源,满足高速读写卷的性能需求。In the embodiment of the present invention, since the processing module included in the virtual machine to be created and the computing node where the volume is located are negotiated with the computing processing module creation entity, it is ensured that the processing module and the volume are created on the same computing node, so that the processing module reads and writes. The access volume is essentially a read-write access to local storage resources to meet the performance requirements of high-speed read and write volumes.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以 存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to complete related hardware, and the program may be Stored in a computer readable storage medium, the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims (20)

  1. 一种创建虚拟机的方法,其特征在于,所述方法包括:A method for creating a virtual machine, the method comprising:
    与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;Negotiating, with the volume creation entity, a processing module to be created by the virtual machine and a computing node where the volume is located;
    在所述计算节点上创建所述处理模块;Creating the processing module on the computing node;
    接收所述卷创建实体发送的所述卷的卷标识信息,所述卷是所述卷创建实体在所述计算节点上创建的;Receiving volume identification information of the volume sent by the volume creation entity, where the volume is created by the volume creation entity on the computing node;
    根据所述卷标识信息,将所述卷挂载在所述处理模块上形成所述待创建虚拟机。And mounting the volume on the processing module to form the virtual machine to be created according to the volume identifier information.
  2. 如权利要求1所述的方法,其特征在于,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method of claim 1, wherein the negotiating with the volume creation entity, the processing module included in the virtual machine to be created, and the computing node where the volume is located, includes:
    根据待创建虚拟机的虚拟机规格信息,获取满足所述虚拟机规格信息的一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a computing node that meets the virtual machine specification information;
    向所述卷创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the volume creation entity.
  3. 如权利要求1所述的方法,其特征在于,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method of claim 1, wherein the negotiating with the volume creation entity, the processing module included in the virtual machine to be created, and the computing node where the volume is located, includes:
    根据待创建虚拟机的虚拟机规格信息,获取节点列表,所述节点列表包括满足所述虚拟机规格信息的至一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a node list, where the node list includes one computing node that satisfies the virtual machine specification information;
    向卷创建实体发送所述节点列表,所述节点列表用于所述卷创建实体从所述节点列表中选择一个计算节点;Sending the node list to a volume creation entity, the node list being used by the volume creation entity to select a computing node from the node list;
    接收所述卷创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the volume creation entity.
  4. 如权利要求1所述的方法,其特征在于,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method of claim 1, wherein the negotiating with the volume creation entity, the processing module included in the virtual machine to be created, and the computing node where the volume is located, includes:
    接收卷创建实体发送的计算节点的节点标识信息,所述计算节点是所述卷创建实体获取的且满足所述待创建虚拟机对应的卷的卷规格信息。Receiving the node identification information of the computing node sent by the volume creation entity, where the computing node is the volume specification information acquired by the volume creation entity and satisfying the volume corresponding to the virtual machine to be created.
  5. 如权利要求1所述的方法,其特征在于,所述与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method of claim 1, wherein the negotiating with the volume creation entity, the processing module included in the virtual machine to be created, and the computing node where the volume is located, includes:
    接收所述卷创建实体发送的节点列表,所述节点列表包括满足所述待创 建虚拟机对应的卷的卷规格信息的至少一个计算节点;Receiving a list of nodes sent by the volume creation entity, the node list including satisfying the to-be-created Constructing at least one computing node of volume specification information of a volume corresponding to the virtual machine;
    从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
    向所述卷创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the volume creation entity.
  6. 一种创建虚拟机的方法,其特征在于,所述方法包括:A method for creating a virtual machine, the method comprising:
    与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;Negotiating, with the processing module creation entity, a processing module and a computing node where the volume is to be created by the virtual machine to be created;
    在所述计算节点上创建所述卷;Creating the volume on the compute node;
    向所述处理模块创建实体发送所述卷的卷标识信息,所述卷标识信息用于所述处理模块创建实体在所述计算节点上创建所述处理模块后将所述卷挂载在所述处理模块上以形成所述待创建虚拟机。Transmitting, to the processing module creation entity, volume identification information of the volume, the volume identification information being used by the processing module creation entity to mount the volume in the processing module after creating the processing module on the computing node Processing the module to form the virtual machine to be created.
  7. 如权利要求6所述的方法,其特征在于,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method according to claim 6, wherein the processing module and the computing node where the volume is included in the virtual machine to be created are negotiated with the processing module creation entity, and the method includes:
    根据待创建虚拟机对应的卷的卷规格信息,获取满足所述卷规格信息的一个计算节点;Obtaining, by the volume specification information of the volume corresponding to the virtual machine to be created, a computing node that meets the volume specification information;
    向所述处理模块创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the processing module creation entity.
  8. 如权利要求6所述的方法,其特征在于,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method according to claim 6, wherein the processing module and the computing node where the volume is included in the virtual machine to be created are negotiated with the processing module creation entity, and the method includes:
    根据待创建虚拟机对应的卷的卷规格信息,获取节点列表,所述节点列表包括满足所述卷规格信息的至一个计算节点;Obtaining, according to volume specification information of a volume corresponding to the virtual machine to be created, a node list, where the node list includes one to a computing node that satisfies the volume specification information;
    向处理模块创建实体发送所述节点列表,所述节点列表用于所述处理模块创建实体从所述节点列表中选择一个计算节点;Sending, to the processing module creation entity, the node list, where the node list is used by the processing module creation entity to select a computing node from the node list;
    接收所述处理模块创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the processing module creation entity.
  9. 如权利要求6所述的方法,其特征在于,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method according to claim 6, wherein the processing module and the computing node where the volume is included in the virtual machine to be created are negotiated with the processing module creation entity, and the method includes:
    接收处理模块创建实体发送的计算节点的节点标识信息,所述计算节点是所述处理模块创建实体获取的且满足所述待创建虚拟机的虚拟机规格信 息。The receiving processing module creates node identification information of the computing node sent by the entity, where the computing node is a virtual machine specification letter that is obtained by the processing module creation entity and meets the virtual machine to be created. interest.
  10. 如权利要求6所述的方法,其特征在于,所述与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The method according to claim 6, wherein the processing module and the computing node where the volume is included in the virtual machine to be created are negotiated with the processing module creation entity, and the method includes:
    接收所述处理模块创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机的虚拟机规格信息的至少一个计算节点;Receiving, by the processing module creation entity, a node list, where the node list includes at least one computing node that meets virtual machine specification information of the virtual machine to be created;
    从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
    向所述处理模块创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the processing module creation entity.
  11. 一种创建虚拟机的装置,其特征在于,所述装置包括:处理单元和接收单元;An apparatus for creating a virtual machine, the apparatus comprising: a processing unit and a receiving unit;
    所述处理单元,用于与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述处理模块;The processing unit is configured to negotiate, with the volume creation entity, a processing module that is to be created by the virtual machine and a computing node where the volume is located; and create the processing module on the computing node;
    所述接收单元,用于接收所述卷创建实体发送的所述卷的卷标识信息,所述卷是所述卷创建实体在所述计算节点上创建的;The receiving unit is configured to receive volume identification information of the volume sent by the volume creation entity, where the volume is created by the volume creation entity on the computing node;
    所述处理单元,还用于根据所述卷标识信息,将所述卷挂载在所述处理模块上形成所述待创建虚拟机。The processing unit is further configured to mount the volume on the processing module to form the virtual machine to be created according to the volume identifier information.
  12. 如权利要求11所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 11, wherein the processing unit is configured to negotiate with the volume creation entity that the processing module and the volume of the volume to be created by the virtual machine are located in the following manner, including:
    根据待创建虚拟机的虚拟机规格信息,获取满足所述虚拟机规格信息的一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a computing node that meets the virtual machine specification information;
    向所述卷创建实体发送所述计算节点的节点标识信息。Sending node identification information of the computing node to the volume creation entity.
  13. 如权利要求11所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 11, wherein the processing unit is configured to negotiate with the volume creation entity that the processing module and the volume of the volume to be created by the virtual machine are located in the following manner, including:
    根据待创建虚拟机的虚拟机规格信息,获取节点列表,所述节点列表包括满足所述虚拟机规格信息的至一个计算节点;Obtaining, according to virtual machine specification information of the virtual machine to be created, a node list, where the node list includes one computing node that satisfies the virtual machine specification information;
    向卷创建实体发送所述节点列表,所述节点列表用于所述卷创建实体从 所述节点列表中选择一个计算节点;Sending the list of nodes to a volume creation entity, the node list being used for the volume creation entity Selecting a computing node in the node list;
    接收所述卷创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the volume creation entity.
  14. 如权利要求11所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 11, wherein the processing unit is configured to negotiate with the volume creation entity that the processing module and the volume of the volume to be created by the virtual machine are located in the following manner, including:
    接收卷创建实体发送的计算节点的节点标识信息,所述计算节点是所述卷创建实体获取的且满足所述待创建虚拟机对应的卷的卷规格信息。Receiving the node identification information of the computing node sent by the volume creation entity, where the computing node is the volume specification information acquired by the volume creation entity and satisfying the volume corresponding to the virtual machine to be created.
  15. 如权利要求11所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与卷创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 11, wherein the processing unit is configured to negotiate with the volume creation entity that the processing module and the volume of the volume to be created by the virtual machine are located in the following manner, including:
    接收所述卷创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机对应的卷的卷规格信息的至少一个计算节点;Receiving, by the volume creation entity, a node list, where the node list includes at least one computing node that meets volume specification information of a volume corresponding to the virtual machine to be created;
    从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
    向所述卷创建实体发送所述选择的计算节点的节点标识信息。Sending node identification information of the selected computing node to the volume creation entity.
  16. 一种创建虚拟机的装置,其特征在于,所述装置包括:处理单元和发送单元;An apparatus for creating a virtual machine, the apparatus comprising: a processing unit and a sending unit;
    所述处理单元,用于与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点;在所述计算节点上创建所述卷;The processing unit is configured to negotiate, with the processing module creation entity, a processing module and a computing node where the volume is included in the virtual machine to be created; and create the volume on the computing node;
    所述发送单元,用于向所述处理模块创建实体发送所述卷的卷标识信息,所述卷标识信息用于所述处理模块创建实体在所述计算节点上创建所述处理模块后将所述卷挂载在所述处理模块上以形成所述待创建虚拟机。The sending unit is configured to send volume identifier information of the volume to the processing module creation entity, where the volume identifier information is used by the processing module creation entity to create the processing module on the computing node The volume is mounted on the processing module to form the virtual machine to be created.
  17. 如权利要求16所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 16, wherein the processing unit is configured to negotiate with the processing module creation entity that the processing module and the volume of the volume to be created by the virtual machine include:
    根据待创建虚拟机对应的卷的卷规格信息,获取满足所述卷规格信息的一个计算节点;Obtaining, by the volume specification information of the volume corresponding to the virtual machine to be created, a computing node that meets the volume specification information;
    向所述处理模块创建实体发送所述计算节点的节点标识信息。 Sending node identification information of the computing node to the processing module creation entity.
  18. 如权利要求16所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 16, wherein the processing unit is configured to negotiate with the processing module creation entity that the processing module and the volume of the volume to be created by the virtual machine include:
    根据待创建虚拟机对应的卷的卷规格信息,获取节点列表,所述节点列表包括满足所述卷规格信息的至一个计算节点;Obtaining, according to volume specification information of a volume corresponding to the virtual machine to be created, a node list, where the node list includes one to a computing node that satisfies the volume specification information;
    向处理模块创建实体发送所述节点列表,所述节点列表用于所述处理模块创建实体从所述节点列表中选择一个计算节点;Sending, to the processing module creation entity, the node list, where the node list is used by the processing module creation entity to select a computing node from the node list;
    接收所述处理模块创建实体发送的所述选择的一个计算节点的节点标识信息。Receiving node identification information of the selected one of the computing nodes sent by the processing module creation entity.
  19. 如权利要求16所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 16, wherein the processing unit is configured to negotiate with the processing module creation entity that the processing module and the volume of the volume to be created by the virtual machine include:
    接收处理模块创建实体发送的计算节点的节点标识信息,所述计算节点是所述处理模块创建实体获取的且满足所述待创建虚拟机的虚拟机规格信息。The receiving processing module creates the node identification information of the computing node sent by the entity, where the computing node is the virtual machine specification information acquired by the processing module creation entity and meets the virtual machine to be created.
  20. 如权利要求16所述的装置,其特征在于,所述处理单元,具体用于使用如下方式与处理模块创建实体协商待创建虚拟机包括的处理模块和卷所在的计算节点,包括:The device according to claim 16, wherein the processing unit is configured to negotiate with the processing module creation entity that the processing module and the volume of the volume to be created by the virtual machine include:
    接收所述处理模块创建实体发送的节点列表,所述节点列表包括满足所述待创建虚拟机的虚拟机规格信息的至少一个计算节点;Receiving, by the processing module creation entity, a node list, where the node list includes at least one computing node that meets virtual machine specification information of the virtual machine to be created;
    从所述节点列表中选择一个计算节点;Selecting a computing node from the list of nodes;
    向所述处理模块创建实体发送所述选择的计算节点的节点标识信息。 Sending node identification information of the selected computing node to the processing module creation entity.
PCT/CN2016/099587 2015-12-29 2016-09-21 Method and device for creating virtual machine WO2017113895A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511016944.9A CN106933646B (en) 2015-12-29 2015-12-29 Method and device for creating virtual machine
CN201511016944.9 2015-12-29

Publications (1)

Publication Number Publication Date
WO2017113895A1 true WO2017113895A1 (en) 2017-07-06

Family

ID=59224583

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099587 WO2017113895A1 (en) 2015-12-29 2016-09-21 Method and device for creating virtual machine

Country Status (2)

Country Link
CN (1) CN106933646B (en)
WO (1) WO2017113895A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000440A (en) * 2020-08-24 2020-11-27 浪潮云信息技术股份公司 Multi-boot volume virtual machine boot sequence changing method based on cloud platform

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045778B (en) * 2018-10-11 2023-09-12 华为技术有限公司 Virtual machine creation method, device, server and storage medium
CN109871252B (en) * 2019-01-28 2022-04-01 国云科技股份有限公司 Cloud classroom universal disk implementation method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761498A (en) * 1994-02-07 1998-06-02 Fujitsu Limited Distribution file system for accessing required portion of file
CN102142032A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for reading and writing data of distributed file system
CN104216782A (en) * 2014-08-19 2014-12-17 东南大学 Dynamic resource management method for high-performance computing and cloud computing hybrid environment
CN104601680A (en) * 2014-12-31 2015-05-06 华为技术有限公司 Resource management method and device
CN105159753A (en) * 2015-09-25 2015-12-16 华为技术有限公司 Virtualization method and device for accelerator and centralized resource manager

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034453B (en) * 2011-09-30 2015-11-25 国际商业机器公司 The method and apparatus of the persistant data of pre-installation application in managing virtual machines example
CN102929687B (en) * 2012-10-12 2016-05-25 山东省计算中心(国家超级计算济南中心) A kind of energy-conservation cloud computing data center virtual machine laying method
CN103544047B (en) * 2013-10-25 2017-01-04 华为技术有限公司 cloud system data management method
CN103607429A (en) * 2013-10-30 2014-02-26 中兴通讯股份有限公司 Cloud computing service realization method and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761498A (en) * 1994-02-07 1998-06-02 Fujitsu Limited Distribution file system for accessing required portion of file
CN102142032A (en) * 2011-03-28 2011-08-03 中国人民解放军国防科学技术大学 Method and system for reading and writing data of distributed file system
CN104216782A (en) * 2014-08-19 2014-12-17 东南大学 Dynamic resource management method for high-performance computing and cloud computing hybrid environment
CN104601680A (en) * 2014-12-31 2015-05-06 华为技术有限公司 Resource management method and device
CN105159753A (en) * 2015-09-25 2015-12-16 华为技术有限公司 Virtualization method and device for accelerator and centralized resource manager

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000440A (en) * 2020-08-24 2020-11-27 浪潮云信息技术股份公司 Multi-boot volume virtual machine boot sequence changing method based on cloud platform

Also Published As

Publication number Publication date
CN106933646B (en) 2020-04-14
CN106933646A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN108537543B (en) Parallel processing method, device, equipment and storage medium for blockchain data
US9600308B2 (en) Virtual machine monitoring in cloud infrastructures
US20160092119A1 (en) Data migration between different types of storage systems
WO2015123999A1 (en) Storage resource scheduling method and storage calculation system
US20140096139A1 (en) Workload management considering hardware reliability
WO2016165472A1 (en) Method and device for creating virtual machine
US9665154B2 (en) Subsystem-level power management in a multi-node virtual machine environment
US20150128131A1 (en) Managing virtual machine patterns
US20160202923A1 (en) Application backup and restore
KR20140014273A (en) Method and system for dynamically creating and servicing master-slave pairs within and across switch fabrics of a portable computing device
US10901725B2 (en) Upgrade of port firmware and driver software for a target device
US10579579B2 (en) Programming interface operations in a port in communication with a driver for reinitialization of storage controller elements
US10606780B2 (en) Programming interface operations in a driver in communication with a port for reinitialization of storage controller elements
WO2017113895A1 (en) Method and device for creating virtual machine
US11237761B2 (en) Management of multiple physical function nonvolatile memory devices
US10606489B2 (en) Sidefiles for management of data written via a bus interface to a storage controller during consistent copying of data
JP2020532803A (en) Asynchronous updates of metadata tracks in response to cache hits generated via synchronous ingress and out, systems, computer programs and storage controls
US11194771B2 (en) Methods for transferring reserves when moving virtual machines across systems
US20150154048A1 (en) Managing workload to provide more uniform wear among components within a computer cluster
US9292396B2 (en) System and method for secure remote diagnostics
US11010248B2 (en) Reuse of resources in a storage controller for executing write commands over a plurality of interfaces
US10951537B1 (en) Adjustable receive queue for processing packets in a network device
US20230034196A1 (en) Techniques for providing synchronous and asynchronous data processing
US11853322B2 (en) Tracking data availability using heartbeats
TWI813283B (en) Computer program product, computer system and computer-implementing method for intersystem processing employing buffer summary groups

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: 16880688

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: 16880688

Country of ref document: EP

Kind code of ref document: A1