IP Library Granted Patent US 10,489,176
Granted Patent B2
US 10,489,176 · App. 14/492,329 · Granted Nov 26, 2019

Method, system and apparatus for creating virtual machine

Inventor: Yong Zhong (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F9/45558G06F9/45545G06F9/5033G06F9/5077G06F2009/45562G06F2209/505
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,489,176
App. No.
14/492,329
Granted
Nov 26, 2019
Kind
B2
Abstract

A method, a system, and an apparatus for creating a virtual machine. The method includes receiving a virtual machine creation request to create a plurality of virtual machines; dividing the plurality of virtual machines into a plurality of virtual machine groups; determining a home physical rack for each virtual machine group, where one virtual machine group corresponds to one home physical rack; and creating each virtual machine group on the home physical rack of each virtual machine group. Because each virtual machine group is created on a home physical rack to which each virtual machine group belongs, each virtual machine group is equivalent to one physical rack.

Claims (32)

1. A method for creating virtual machines for a distributed application, comprising:

receiving a virtual machine creation request, wherein the virtual machine creation request instructs an apparatus to create a plurality of virtual machines for the distributed application;

dividing the plurality of virtual machines as instructed by the virtual machine creation request into a plurality of virtual machine groups according to a rack awareness attribute of the distributed application, wherein each virtual machine group comprises at least one virtual machine;

allocating one home physical rack for each virtual machine group according to constraint information of the plurality of virtual machine groups, wherein the constraint information denotes an association relationship or a mutex relationship of the plurality of virtual machine groups; and

creating the virtual machine groups on the allocated home physical racks respectively.

2. The method according to claim 1 , wherein different home physical racks are allocated to different virtual machine groups.

3. The method according to claim 1 , further comprising acquiring allocation record information of the home physical racks, wherein the allocation record information comprises a correspondence between the virtual machine groups of the allocated home physical racks and the home physical racks; and wherein one home physical rack is allocated for each virtual machine group according to the allocation record information and the constraint information.

4. The method according to claim 1 , further comprising obtaining configuration information of each virtual machine group from the virtual machine creation request, wherein the configuration information comprises a number of virtual machines in the virtual machine group and a specification of each of the virtual machines in the virtual machine group, and wherein different virtual machines of each virtual machine group are created in different physical machines of the allocated home physical rack according to the configuration information of the virtual machine group.

5. The method according to claim 1 , further comprising providing an identifier of the virtual machine group to the distributed application for processing a service of a virtual machine belonging to the virtual machine group.

6. The method according to claim 5 , wherein the identifier identifies the home physical rack that is allocated to the virtual machine group.

7. An apparatus, comprising:

a memory for storing program routines; and

a processor, coupled to the memory and configured to execute the program routines, wherein the processor is configured to execute the program routines to:

receive a virtual machine creation request, wherein the virtual machine creation request instructs the apparatus to create a plurality of virtual machines for a distributed application;

divide the plurality of virtual machines as instructed by the virtual machine creation request into a plurality of virtual machine groups according to a rack awareness attribute of the distributed application, wherein each virtual machine group comprises at least one virtual machine;

allocate one home physical rack for each virtual machine group according to constraint information of the plurality of virtual machine groups, wherein the constraint information denotes an association relationship or a mutex relationship of the plurality of virtual machine groups; and

create the virtual machine groups on the allocated home physical racks respectively.

8. The apparatus according to claim 7 , wherein different home physical racks are allocated to different virtual machine groups.

9. The apparatus according to claim 7 , wherein the processor is further configured to execute the program routines to acquire allocation record information of the home physical racks, wherein the allocation record information comprises a correspondence between the virtual machine groups of the allocated home physical racks and the home physical racks, and wherein one home physical rack is allocated for each virtual machine group according to the allocation record information and the constraint information.

10. The apparatus according to claim 7 , wherein the processor is further configured to obtain configuration information of each virtual machine group from the virtual machine creation request, wherein the configuration information comprises a number of virtual machines in the virtual machine group and a specification of each of the virtual machines in the virtual machine group, and wherein different virtual machines of each virtual machine group are created in different physical machines of the allocated home physical rack according to the configuration information of the virtual machine group.

11. The apparatus according to claim 7 , wherein the processor is further configured to provide an identifier of the virtual machine group to the distributed application for processing a service of a virtual machine belonging to the virtual machine group.

12. The apparatus according to claim 11 , wherein the identifier identifies the home physical rack that is allocated to the virtual machine group.

13. A computer program product, comprising non-transitory computer readable medium storing program codes thereon for execution by a computing device, wherein the program codes comprise:

instructions for receiving a virtual machine creation request, wherein the virtual machine creation request instructs an apparatus to create a plurality of virtual machines for the distributed application;

instructions for dividing the plurality of virtual machines as instructed by the virtual machine creation request into a plurality of virtual machine groups according to a rack awareness attribute of the distributed application, wherein each virtual machine group comprises at least one virtual machine;

instructions for allocating one home physical rack for each virtual machine group according to constraint information of the plurality of virtual machine groups, wherein the constraint information denotes an association relationship or a mutex relationship of the plurality of virtual machine groups; and

instructions for creating the virtual machine groups on the allocated home physical racks respectively.

14. The computer program product according to claim 13 , wherein different home physical racks are allocated to different virtual machine groups.

15. The computer program product according to claim 13 , wherein the program codes further comprise instructions for acquiring allocation record information of the home physical racks, wherein the allocation record information comprises a correspondence between the virtual machine groups of the allocated home physical racks and the home physical racks, and wherein one home physical rack is allocated for each virtual machine group according to the allocation record information and the constraint information.

16. The computer program product according to claim 13 , wherein the program codes further comprise instructions for obtaining configuration information of each virtual machine group from the virtual machine creation request, wherein the configuration information comprises a number of virtual machines in the virtual machine group and a specification of each of the virtual machines in the virtual machine group, and wherein different virtual machines of each virtual machine group are created in different physical machines of the allocated home physical rack according to the configuration information of the virtual machine group.

17. The computer program product according to claim 13 , wherein the program codes further comprise instructions for providing an identifier of the virtual machine group to the distributed application for processing a service of a virtual machine belonging to the virtual machine group.

18. The computer program product according to claim 17 , wherein the identifier identifies the home physical rack that is allocated to the virtual machine group.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 22, 2014
From: ZHONG, YONG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 033786/0448 →
Continuity (2)
Continuation PCTCN2013085820 · Oct 23, 2013
Related Publication 20150113529A1 · Apr 23, 2015