CN108614727A - A kind of virtual machine creation method and device - Google Patents

A kind of virtual machine creation method and device Download PDF

Info

Publication number
CN108614727A
CN108614727A CN201810246362.7A CN201810246362A CN108614727A CN 108614727 A CN108614727 A CN 108614727A CN 201810246362 A CN201810246362 A CN 201810246362A CN 108614727 A CN108614727 A CN 108614727A
Authority
CN
China
Prior art keywords
virtual machine
node
demand parameter
class
deployment conditions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810246362.7A
Other languages
Chinese (zh)
Other versions
CN108614727B (en
Inventor
张振中
刘冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huawei Cloud Computing Technology Co ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810246362.7A priority Critical patent/CN108614727B/en
Publication of CN108614727A publication Critical patent/CN108614727A/en
Application granted granted Critical
Publication of CN108614727B publication Critical patent/CN108614727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

This application provides a kind of virtual machine creation method and devices, and specific resource can not be monopolized to solve the when of creating virtual machine in the prior art.The method includes:Control node receives the first virtual machine creating request that the first client is sent, according to the first kind demand parameter of first virtual machine, the first object node for creating first virtual machine is determined in multiple nodes of management, first virtual machine creating request is transmitted to the first object node, wherein, include the first kind demand parameter of the first virtual machine in the first virtual machine creating request, the first kind demand parameter of first virtual machine meets the corresponding whole first kind deployment conditions of the first object node.

Description

A kind of virtual machine creation method and device
Technical field
This application involves field of computer technology more particularly to a kind of virtual machine creation method and devices.
Background technology
Control node passes through to virtual machine (virtual to be created in existing cloud computing group system (such as OpenStack) Machine, VM) label, matched with the label of each node of control node management in cloud computing group system, determine use In the node for creating the virtual machine to be created, wherein the label of virtual machine to be created is for identifying the virtual machine to be created The attribute of required resource, the label of each node of control node management are respectively used to identify each node of the control node management The attribute of possessed resource.
The label of each node includes that any one node of all labels of VM to be created is equal in cloud computing group system It can be used for creating the VM to be created.When the label number of VM to be created is 1, each node of control node management includes institute The node for stating the label of virtual machine to be created may be incorporated for creating the virtual machine to be created, when the label of virtual machine to be created When number is more than 1, each node of the control node management includes that the node of all labels of virtual machine to be created just may be used For creating the virtual machine to be created.For example, the label of node 1 is A, the label of node 2 is B, and the label of node 3 is A Label with B (A&B), virtual machine VM1 is A, and the label of virtual machine VM2 is B, and the label of virtual machine VM3 is A&B, such as Fig. 1 institutes Show, due to the tag match of the label and node 1 and node 3 of VM1, VM1 can be created on node 1 or node 3, due to The tag match of the label and node 2 and node 3 of VM2, therefore VM2 can be created on node 2 or node 3, due to the mark of VM3 The tag match of label and node 3, therefore VM3 can only be created on node 3.
Since the label of each node of control node management in the prior art includes the section of all labels of VM to be created Point can be used to create the VM to be created, therefore virtual machine to be created can not be monopolized on cloud computing group system interior joint Specific resources.For example, as shown in Figure 1, created on the node 3 that label is A or B or VM without label can be A&B in label, Label, which is the VM of A&B, can not monopolize the corresponding resources of label A&B on node 3.
Invention content
This application provides a kind of virtual machine creation method and devices, can not when solving to create virtual machine in the prior art Monopolize specific resource.
In a first aspect, this application provides a kind of virtual machine creation method, the method includes:Control node receives first The first virtual machine creating request that client is sent, according to the first kind demand parameter of first virtual machine, in the more of management The first object node for creating first virtual machine is determined in a node, and first virtual machine creating request is transmitted to institute State first object node, wherein include the first kind demand parameter of the first virtual machine, institute in the first virtual machine creating request The first kind demand parameter for stating the first virtual machine meets the corresponding whole first kind deployment conditions of the first object node.
Through the above scheme, control node receives the first virtual machine creating request that the first client is sent, according to described The first kind demand parameter of the first virtual machine carried in the request of first virtual machine creating, in multiple nodes of self-management really First virtual machine creating request is transmitted to the first object by the first object node for creating first virtual machine surely Node so that the first object node can create first virtual machine according to the demand parameter of first virtual machine, Wherein, the first kind demand parameter of first virtual machine meets the corresponding whole first kind deployment conditions of the destination node. Item is disposed since the first kind demand parameter of first virtual machine meets the corresponding whole first kind of the first object node Part, i.e., only having in multiple nodes of the described control node management can be with the first kind demand parameter of first virtual machine The node for the first kind deployment conditions matched can create first virtual machine, so that first virtual machine can be with The exclusive matched first kind deployment conditions of first kind demand parameter with first virtual machine.
In a kind of possible embodiment, the first virtual machine creating request also includes the second of first virtual machine Second class demand parameter of class demand parameter, first virtual machine meets some or all of described first object node correspondence Second class deployment conditions.
In a kind of possible embodiment, the control node according to the first kind demand parameter of first virtual machine, The first object node for creating first virtual machine is determined in multiple nodes of management, specifically includes following steps:In pipe Multiple candidate nodes are determined in multiple nodes of reason, selected from the multiple both candidate nodes according to preset rules one as institute First object node is stated, the first kind demand parameter of first virtual machine meets the corresponding whole first kind of the both candidate nodes Deployment conditions.
In a kind of possible embodiment, when first virtual machine creating request also includes the of first virtual machine When two class demand parameters, the control node is according to the first kind demand parameter of first virtual machine, in multiple sections of management The first object node for creating first virtual machine is determined in point, specifically includes following steps:In multiple nodes of management Determine multiple candidate nodes, selected from the multiple both candidate nodes according to preset rules one as the first object section Point;Wherein, the first kind demand parameter of first virtual machine meets corresponding the second class of the whole deployment item of the both candidate nodes Second class demand parameter of part, first virtual machine meets some or all of described both candidate nodes correspondence first kind deployment item Part.
In a kind of possible embodiment, the node due to that can create first virtual machine must have and described first The matched first kind deployment conditions of first kind demand parameter of virtual machine, and cannot have except first with first virtual machine Other first kind deployment conditions outside the matched first kind deployment conditions of class demand parameter, therefore, the control node is managing Multiple nodes in when determining the first object node for creating first virtual machine, preferentially can dispose item from having the first kind The first object node is determined in the node of part, so as to quickly determine the first object node, and then described in raising The establishment efficiency of first virtual machine, and the workload that the control node determines the first object node can be reduced.
In a kind of possible embodiment, what the control node can also receive the transmission of the second client only includes second Second virtual machine creating of the second class demand parameter of virtual machine is asked, and is joined according to the second class demand of second virtual machine Number determines the second destination node for creating second virtual machine in multiple nodes of management, and second virtual machine is created It builds request and is transmitted to second destination node, wherein the second class demand parameter of second virtual machine meets described second The second class deployment conditions of some or all of destination node correspondence, and there is no the first kind to dispose item for second destination node Part.
Through the above scheme, the node that can create second virtual machine can only have the second class deployment conditions, cannot Have first kind deployment conditions, i.e., there is the node of first kind deployment conditions in multiple nodes that control node is managed, it can only For creating the virtual machine with first kind demand parameter, and the first kind demand parameter of virtual machine to be created all meets section The corresponding first kind deployment conditions of point so that the resource that first kind deployment conditions characterize on the multiple node can be by specific void Quasi- machine is exclusive.
In a kind of possible embodiment, the node due to that can create second virtual machine cannot have first kind portion Administration's condition, therefore, the control node determine the second target section for creating second virtual machine in multiple nodes of management When point, preferentially can never have and determine second destination node in the node of first kind deployment conditions, so as to quick It determines second destination node, and then improves the establishment efficiency of the second virtual machine, and it is true to reduce the control node The workload of fixed second destination node.
Second aspect, this application provides a kind of control node, the control node, which has, realizes above-mentioned first aspect side The function of control node behavior in method example.The function can also be executed corresponding by hardware realization by hardware Software realization.The hardware or software include one or more modules corresponding with above-mentioned function.
In a kind of possible embodiment, the structure of the control node includes receiving unit, processing unit and transmission Unit, these units can execute the corresponding function in the method example of above-mentioned first aspect, referring specifically in method example Detailed description, is not repeated herein.
In a kind of possible embodiment, the structure of the control node includes communication interface, memory and processing Device, the processor are configured as that the control node is supported to execute corresponding function in above-mentioned first aspect method.It is described to deposit Reservoir is coupled with the processor, preserves the necessary program instruction of the coordinator and data.
The third aspect, present invention also provides a kind of communication system, the communication system includes described in above-mentioned first aspect Control node, the first client and multiple nodes of the control node management.
Fourth aspect, the application also provide a kind of computer storage media, software program are stored in the storage medium, The software program can realize that any one design of either side is provided when being read and executed by one or more processors Method.
5th aspect, present invention also provides a kind of computer program products including instruction, when it is transported on computers When row so that computer executes any one of any of the above-described aspect method.
In conclusion this application provides a kind of virtual machine creation method and device, the method includes:Control node root The first kind demand parameter of the first virtual machine carried in being asked according to the first virtual machine creating, in multiple nodes of self-management It determines the first object node for creating first virtual machine, first virtual machine creating request is transmitted to first mesh Mark node so that it is virtual that the first object node can create described first according to the demand parameter of first virtual machine Machine, wherein the first kind demand parameter of first virtual machine meets the corresponding whole first kind deployment items of the destination node Part.Since the first kind demand parameter of first virtual machine meets the corresponding whole first kind deployment of the first object node Condition, i.e., only having in multiple nodes of the described control node management can be with the first kind demand parameter of first virtual machine The node of matched first kind deployment conditions can create first virtual machine, so that first virtual machine can With the exclusive matched first kind deployment conditions of first kind demand parameter with first virtual machine.
Description of the drawings
Fig. 1 is the tag match schematic diagram of the label of virtual machine and node in the prior art;
Fig. 2 is that the deployment conditions of the demand parameter of virtual machine and node match schematic diagram in the embodiment of the present application;
Fig. 3 is that the deployment conditions of the demand parameter of virtual machine and node match schematic diagram in the embodiment of the present application;
Fig. 4 is a kind of system architecture schematic diagram provided by the embodiments of the present application;
Fig. 5 is the flow diagram of virtual machine creation method provided by the embodiments of the present application;
Fig. 6 is the method flow schematic diagram that control node determines both candidate nodes in the embodiment of the present application;
Fig. 7 is that the application specifically applies virtual machine VM3 visioning procedure schematic diagrames in example one in fact;
Fig. 8 is that the application specifically applies virtual machine VM8 visioning procedure schematic diagrames in example two in fact;
Fig. 9 is a kind of control node provided by the embodiments of the present application;
Figure 10 is a kind of control node provided by the embodiments of the present application.
Specific implementation mode
This application provides a kind of virtual machine creation method and devices, can not when solving to create virtual machine in the prior art Realize the problem of setting type Virtual machine occupies specific resources.Wherein, method and apparatus described herein are based on same invention Design, since the principle that method and apparatus solve the problems, such as is similar, the implementation of apparatus and method can with cross-reference, repetition Place repeats no more.
Hereinafter, to the invention relates to part terms to be explained, in order to those skilled in the art understand that.
(1) demand parameter of virtual machine creates the required condition of virtual machine, for example, the demand of virtual machine for characterizing Parameter can be the resource information created needed for virtual machine, needed for the memory size, establishment virtual machine as needed for establishment virtual machine The processor cores number of occupancy, the type of processor etc. for creating virtual machine.Specifically, the demand parameter of virtual machine can be used Label (keyword for identifying different demands parameter) characterizes, such as character string or character.
The demand parameter of virtual machine includes first kind demand parameter and the second class demand parameter.Wherein, first kind demand is joined Number refers to the necessary condition for creating virtual machine, i.e. the first kind demand parameter of virtual machine meets the node for creating virtual machine and corresponds to All first kind deployment conditions.For example, the first kind demand parameter of virtual machine VM1 is a ', node A has first kind deployment item Part A ', and a ' meets A ', then node A can be used for creating VM1, if node A be also equipped with first kind deployment conditions B ' or The first kind demand parameter of VM1 further includes b ' (and b ' is unsatisfactory for A '), then node A cannot be used for creating VM1.
Second class demand parameter refers to the adequate condition for creating virtual machine, i.e. the second class demand parameter satisfaction of virtual machine is used for Create the second class deployment conditions of some or all of the node correspondence of virtual machine.For example, the second class demand parameter of virtual machine VM1 For a, node 0 has the second class deployment conditions A, and a meets A, then node 0 can be used for creating VM1, if node 0 also has Standby second class deployment conditions B, then node 0 can be used for creating VM1.
(2) deployment conditions of node, the condition that can be provided during creating virtual machine for characterizing node, example Such as, the deployment conditions of node can be the resource information of node, as that can be used in the free memory size of node, the processor of node Interior check figure etc..
The deployment conditions of node include first kind deployment conditions and the second class deployment conditions.Wherein, first kind deployment conditions For being matched with first kind demand parameter, to meet first kind demand parameter, the second class deployment conditions are used for and the second class Demand parameter is matched, to meet the second class demand parameter.Specifically, when the demand parameter tag representation of virtual machine, The deployment conditions of node also use tag representation.
For example, 1 corresponding deployment conditions of node are a second class deployment conditions, indicated with label A, node 2 is corresponding Deployment conditions are a first kind deployment conditions, with label B ' it indicates, 3 corresponding deployment conditions of node include a first kind portion Administration's condition and a second class deployment conditions use label B respectively ' and label A expression (A&B '), the demand parameter of virtual machine 1 is One the second class demand parameter, is indicated with label A, and the demand parameter of virtual machine 2 is a first kind demand parameter, with label B ' It indicates, the demand parameter of virtual machine 3 includes a first kind demand parameter and a second class demand parameter, uses label B respectively ' (A&B ') is indicated with A, as shown in Fig. 2, node 1 is only used for creating virtual machine 1, node 2 is only used for creating virtual machine 2, section Point 3 can be used for creating virtual machine 2 and virtual machine 3, it is impossible to be used in create virtual machine 1.
For another example, 1 corresponding deployment conditions of node are a first kind deployment conditions, with label A ' it indicates, node 2 is corresponding Deployment conditions are a first kind deployment conditions, with label B ' it indicates, 3 corresponding deployment conditions of node are that two first kind are disposed Condition uses label A respectively ' and label B ' indicating (A ’s &B '), the demand parameter of virtual machine 1 is a first kind demand parameter, is used Label A ' it indicates, the demand parameter of virtual machine 2 is a first kind demand parameter, with label B ' indicate, the demand ginseng of virtual machine 3 Number includes two first kind demand parameters, uses label A respectively ' and B ' expressions (A ’s &B '), as shown in figure 3, node 1 is only used for Virtual machine 1 is created, node 2 is only used for creating virtual machine 2, and node 3 is only used for creating virtual machine 3.
(3) multiple, refer to two or more.
In addition, it is necessary to understand, in the application description, the vocabulary such as " first ", " second " are only used for distinguishing description, It is not understood to indicate or imply relative importance, instruction or hint sequence can not be interpreted as.
In order to more clearly from describe the technical solution of the embodiment of the present application, below in conjunction with the accompanying drawings, to the embodiment of the present application A kind of virtual machine creation method and device provided is described in detail.
A kind of virtual machine creation method provided by the embodiments of the present application can be applied to the group system that multiple nodes are constituted, Such as cloud computing group system.Fig. 4 shows that one kind that virtual machine creation method provided by the embodiments of the present application is applicable in is possible logical Believe that system architecture, the system 400 include multiple sections that client 401, control node 402 and control node 402 manage Point 403.Wherein, control node 402 and the multiple node 403 can be server.
Client 401 is used to send virtual machine creating request to control node 402, and the virtual machine creating request includes The first kind demand parameter of virtual machine to be created and/or the second class demand parameter.Wherein, the client can be terminal device Any one node in (such as personal computer, industrial personal computer), server or the multiple node 403.
Control node 402 can obtain 403 corresponding deployment conditions of multiple nodes (the of the management of control node 402 A kind of deployment conditions and/or the second class deployment conditions), in the virtual machine creating request for receiving client transmission, according to institute State the demand parameter (first kind demand parameter and/or the second class demand parameter) of virtual machine that is carried in virtual machine creating request with And the multiple 403 corresponding deployment conditions of node, determine the destination node for creating the virtual machine, and will receive To virtual machine creating request be transmitted to identified destination node.
The multiple node 403 is used to provide corresponding deployment conditions to control node 402, is receiving control section When the virtual machine creating request of point forwarding, the demand parameter establishment of the virtual machine carried in being asked according to the virtual machine creating is empty Quasi- machine.
Optionally, multiple nodes 403 that control node 402 is managed with control node 402 can be by wired or wireless Mode is communicated, to provide corresponding deployment conditions to control node 402 and receive the virtual of the forwarding of control node 402 Machine request to create.Such as control node 402 can be interconnected with the multiple node 403 by wireless network, such as Wireless Fidelity (wireless-fidelity, Wi-Fi).
Based on above-mentioned communication system 400, the embodiment of the present application provides a kind of virtual machine creation method, as shown in fig.5, It the described method comprises the following steps:
S501:First client sends the request of the first virtual machine creating to control node.Wherein, the first virtual machine wound Build the first kind demand parameter for including the first virtual machine in request.
Correspondingly, the control node receives the first virtual machine creating request that the first client is sent.Described first is empty The first kind demand parameter of quasi- machine can be one or more.For example, the first kind demand parameter of first virtual machine is a ', Or the first kind demand parameter of first virtual machine is a ', b ' and c '.
Specifically, first client is the equipment that can be communicated with the control node, can be the control One in the node of node administration processed, it can also be server, can also be terminal device, such as personal computer, industrial personal computer Deng.
S502:The control node is according to the first kind demand parameter of first virtual machine, in multiple nodes of management The middle determining first object node for creating first virtual machine.
Wherein, the first kind demand parameter of first virtual machine meets the corresponding whole of the first object node first Class deployment conditions.That is, can only include and described first in the corresponding first kind deployment conditions of the first object node The matched first kind deployment conditions of first kind demand parameter of virtual machine.When the first kind demand parameter of first virtual machine is When N number of, the corresponding whole first kind deployment conditions of the first object node are up to N number of, and the first object node pair The first kind deployment conditions answered only include with the matched first kind deployment conditions of the first kind demand parameter of first virtual machine, N is positive integer.If the first object node is corresponding can to match described first simultaneously there are one first kind deployment conditions N first kind demand parameter of virtual machine, and the n first kind demand parameter can be only matched, then the first object The corresponding whole first kind deployment conditions numbers of node can be less than N, and 1 < n≤N, n is positive integer;If the first object The corresponding first kind deployment conditions of node can only match a first kind demand parameter, then the first object node pair The whole first kind deployment conditions answered are N number of.
In specific implementation, when the first kind demand parameter of first virtual machine and the section of the control node management When the corresponding first kind deployment conditions of point use tag representation, due to judging that the first kind demand parameter of first virtual machine is The first kind deployment conditions of the no node for meeting the control node management are the first kind by judging first virtual machine Whether the corresponding label of demand parameter is consistent true with the first kind deployment conditions corresponding label of the node of the control node management It is fixed, if therefore the first kind demand parameter of first virtual machine when being N number of, the corresponding whole of the first object node First kind deployment conditions are N number of.
For example, the first kind demand parameter of first virtual machine is a ', then the first object node can only have With the matched first kind deployment conditions A ' of a ', there cannot be other first kind in addition to first kind deployment conditions A ' to dispose item Part, for another example, the first kind demand parameter of first virtual machine are a ' and b ', then the first object node can only have with The matched first kind deployment conditions A ' of a ' and and the matched first kind deployment conditions B ' of b ', cannot have except the first kind dispose item Other first kind deployment conditions other than part A ' and B '.
In implementation, the control node can determine in multiple nodes of management and create described the by following steps The first object node of one virtual machine:Determine multiple candidate nodes in multiple nodes of management, the of first virtual machine A kind of demand parameter meets the corresponding whole first kind deployment conditions of both candidate nodes;It is saved from the multiple candidate according to preset rules Selected in point one as the first object node.Wherein, the preset rules include but not limited to it is following any one or It is a variety of:The free memory of both candidate nodes is maximum, both candidate nodes processor occupancies are minimum, it is virtual to have been created in both candidate nodes Machine number is at least and the load number of both candidate nodes is minimum etc..
Optionally, the first virtual machine creating request also includes the second class demand parameter of first virtual machine, institute The the second class demand parameter for stating the first virtual machine meets some or all of described first object node correspondence the second class deployment item Part.That is, when the first kind demand parameter for not only having included first virtual machine in first virtual machine request, but also including When the second class demand parameter of first virtual machine, the corresponding first kind deployment conditions of the first object node can only include With the matched first kind deployment conditions of first kind demand parameter of first virtual machine, the first object node corresponding Two class deployment conditions include at least (described with the matched second class deployment conditions of the second class demand parameter of first virtual machine First object node can also have except the matched second class deployment conditions of the second class demand parameter with first virtual machine The second class deployment conditions in addition).Wherein, the second class demand parameter of first virtual machine can be one or more.
Specifically, when the N number of first kind demand parameter and M that in the request of the first virtual machine creating include the first virtual machine are a When the second class demand parameter, the corresponding whole first kind deployment conditions of the first object node are up to N number of, and described first Only include in the corresponding first kind deployment conditions of destination node and the first kind demand parameter of first virtual machine matched A kind of deployment conditions, as long as including and first virtual machine in the corresponding second class deployment conditions of the first object node The matched second class deployment conditions of M the second class demand parameters, i.e., the described first object node may include except with it is described The second class deployment conditions other than the M matched second class deployment conditions of the second class demand parameter of the first virtual machine, M, N are just Integer.
For example, when the first kind demand parameter for first virtual machine for including in first virtual machine creating request is A ', when the second class demand parameter of first virtual machine is a, the corresponding first kind deployment conditions of the first object node are only Can be and a ' matched first kind deployment conditions A ', the corresponding second class deployment conditions of the first object node include at least with The matched second class deployment conditions A of a;When the first kind for first virtual machine for including in first virtual machine creating request Demand parameter is a ', and the second class demand parameter of first virtual machine is a and b, the first object node corresponding first Class deployment conditions are only and a ' matched first kind deployment conditions A ', and corresponding second class of the first object node disposes item Part include at least with the matched second class deployment conditions A of a and with the matched second class deployment conditions B of b;When first virtual machine The first kind demand parameter for first virtual machine for including in request to create is a ' and b ', the second class of first virtual machine When demand parameter is a, b and c, the corresponding first kind deployment conditions of the first object node are only and the matched first kind of a ' Deployment conditions A ' and and b ' matched first kind deployment conditions B ', the corresponding second class deployment conditions of the first object node are extremely Include less with the matched second class deployment conditions A of a, with the matched second class deployment conditions B of b and with c matched second classes portion Affix one's name to condition C.
In implementation, when first virtual machine creating request also includes the second class demand parameter of first virtual machine When, the control node can determine in multiple nodes of management by the following method and create the of first virtual machine One destination node:(1) multiple candidate nodes are determined in multiple nodes of management, wherein the first kind of first virtual machine Demand parameter meets the corresponding whole first kind deployment conditions of both candidate nodes, and the second class demand parameter of first virtual machine is full The second class deployment conditions of some or all of sufficient both candidate nodes correspondence;(2) according to preset rules from the multiple both candidate nodes Select one as the first object node.
In conclusion the first virtual machine demand parameter carried in the first virtual machine creating request that the client is sent Including following two situations:(1) first kind demand ginseng of the first virtual machine only carried in the first virtual machine creating request Number;(2) first kind demand parameter and the second class demand ginseng of the first virtual machine carried in the first virtual machine creating request Number.Node due to that can create first virtual machine must have the first kind demand parameter with first virtual machine The first kind deployment conditions matched, and cannot have except the matched first kind portion of first kind demand parameter with first virtual machine Other first kind deployment conditions outside administration's condition, therefore, the control node determine in multiple nodes of management described in establishment When the first object node of the first virtual machine, first mesh can be preferentially determined from the node for having first kind deployment conditions Node is marked, so as to quickly determine the first object node, and then improves the establishment efficiency of the first virtual machine, and can be with Reduce the workload that the control node determines the first object node.
One specifically in embodiment, the control node can by the following method, in multiple nodes of management Determine multiple both candidate nodes:(1) the corresponding deployment conditions of multiple nodes of the control node management are obtained;(2) remove Do not have the node of first kind deployment conditions in the multiple node;(3) by the first kind demand parameter of first virtual machine It is matched respectively with the deployment conditions for the node for having first kind deployment conditions, determines multiple candidate nodes.
In implementation, the control node can be through but not limited to the mode of any one in following manner, described in acquisition The corresponding deployment conditions of multiple nodes of control node management:Mode one, multiple nodes week of the control node management Corresponding deployment conditions are reported to phase property the control node;Mode two, the control node is respectively to management Multiple nodes send the request for obtaining node deployment condition so that, will be respectively right after the multiple node receives the request The deployment conditions answered are sent to the control node.
Specifically, when the corresponding deployment conditions of the node that control node is managed are only capable of a need of matching virtual machine When seeking parameter, such as the corresponding deployment conditions of node that the demand parameter of virtual machine and control node are managed use label list When showing, for any one node in each node of the control node management, as shown in fig. 6, the control node can be with Judge whether any one described node is the candidate node that can create first virtual machine by following steps:
S601:Obtain a demand parameter of first virtual machine.
In implementation, the control node obtains different demands from a demand parameter of first virtual machine every time Parameter, to traverse all demand parameters of first virtual machine.It is described when first virtual machine has multiple demand parameters Multiple demand parameters of first virtual machine can be in the form of a list stored in the control node so that the control node When determining both candidate nodes in multiple nodes from management, obtained successively from the property demand parameter list of first virtual machine Each demand parameter.
S602:Judge whether otherwise the demand parameter for getting first virtual machine is held if so, executing step S603 Row step S607.
Specifically, if the demand parameter that the control node is got is sky, it is determined that the demand parameter not got, The i.e. last demand parameter got is the last one demand parameter of first virtual machine.
S603:Obtain the corresponding deployment conditions of any one described node.
In implementation, the control node obtains different deployment items from the deployment conditions of any one node every time Part, to traverse all deployment conditions of any one node.When any one described node has multiple deployment conditions, institute Stating multiple deployment conditions of any one node can in the form of a list be stored in the control node so that the control When node determines both candidate nodes in multiple nodes from management, from the deployment conditions list of any one node successively Obtain each deployment conditions.
S604:Judge whether the deployment conditions of any one node described in getting, if so, executing step S605, otherwise Execute step S608.
Specifically, if the deployment conditions that the control node is got are sky, it is determined that the deployment conditions not got, The i.e. last deployment conditions got are the last one deployment conditions of any one node.
S605:The demand parameter got is matched with the deployment conditions got, judges that the demand got is joined Whether number meets the deployment conditions got, if so, executing step S601, otherwise, executes step 606.
S606:Judge the deployment conditions got and be as first kind deployment conditions, if so, S608 is thened follow the steps, otherwise, Execute step S603;
S607:Judge not match with the demand parameter of the virtual machine in the corresponding deployment conditions of any one described node Deployment conditions in whether there is first kind deployment conditions, if so, executing step S608, otherwise, execute step S609.
S608:Determine that any one described node is not both candidate nodes, flow terminates.
S609:Determine that any one described node is both candidate nodes.
S503:First virtual machine creating request is transmitted to the first object node by the control node.
Accordingly, the first object node receives the first virtual machine creating request, according to first virtual machine The first kind demand parameter for the first virtual machine for including in request to create creates first virtual machine.
In one possible embodiment, the control node can also receive the second virtual machine of the second client transmission Request to create, wherein only include the second class demand parameter of the second virtual machine in the second virtual machine creating request;The control Node processed determines in multiple nodes of management according to the second class demand parameter of second virtual machine and creates second void Second destination node of quasi- machine, wherein the second class demand parameter of second virtual machine meets second destination node pair The second class deployment conditions some or all of are answered, and first kind deployment conditions are not present in second destination node;The control Second virtual machine creating request is transmitted to second destination node by node so that second destination node is according to institute It states the request of the second virtual machine creating and creates second virtual machine.It can be seen that in the embodiment of the present application, the control node institute Node with first kind deployment conditions in multiple nodes of management is only used for creating virtual with first kind demand parameter Machine, and the first kind demand parameter of virtual machine to be created all meets the corresponding first kind deployment conditions of node so that node On the specific resources resource of characterization (first kind deployment conditions) can be set type virtual machine it is exclusive.
Node due to that can create second virtual machine cannot have first kind deployment conditions, the control When node determines the second destination node for creating second virtual machine in multiple nodes of management, preferentially can never have Second destination node is determined in the node of first kind deployment conditions, so as to quickly determine second destination node, And then the establishment efficiency of the second virtual machine is improved, and the work that the control node determines second destination node can be reduced It measures.
In specific implementation, the control node can by the following method, in multiple nodes of management described in determination Second destination node:(1) the corresponding deployment conditions of multiple nodes of the control node management are obtained;(2) remove described Has the node of first kind deployment conditions in multiple nodes;(3) by the second class demand parameter of second virtual machine respectively with The deployment conditions for not having the node of first kind deployment conditions are matched, and determine multiple candidate nodes;(4) according to preset rules Selected from the multiple both candidate nodes one as second destination node.
In implementation, for any one node in each node of the control node management, the control node determines Any one described node whether be the candidate node that can create second virtual machine method, it is true with the control node Any one fixed described node whether be the candidate node that can create first virtual machine method it is identical, referring to step The description of S601-S609, details are not described herein again.
In another possible embodiment, if the control node receives the third virtual machine wound that third client is sent Request is built, and does not have the demand parameter of third virtual machine, i.e., the described third virtual machine not to have in third virtual machine creating request There is demand parameter, then the control node determines the third target section for creating the third virtual machine in multiple nodes of management Third virtual machine creating request is transmitted to the third destination node so that the third destination node is according to institute by point It states the request of the second virtual machine creating and creates second virtual machine, wherein the third destination node only has the deployment of the second class Condition.
In virtual machine creation method provided by the present application, control node receives the first virtual machine wound that the first client is sent Request is built, the first kind demand parameter of the first virtual machine carried in being asked according to first virtual machine creating, in the control The first object node for creating first virtual machine is determined in multiple nodes of node administration processed, and first virtual machine is created It builds request and is transmitted to the first object node so that the first object node can be according to the demand of first virtual machine Parameter creates first virtual machine, wherein the first kind demand parameter of first virtual machine meets the destination node pair The whole first kind deployment conditions answered.Since the first kind demand parameter of first virtual machine meets the first object node Corresponding whole first kind deployment conditions, i.e., only having in multiple nodes of control node management can be with the of the first virtual machine The node of a kind of matched first kind deployment conditions of demand parameter, can create first virtual machine, so that described First virtual machine can be monopolized and the matched first kind deployment conditions of the first kind demand parameter of first virtual machine.
Below by way of two specific embodiments, virtual machine creation method provided by the present application is described in detail.Wherein, The demand parameter of virtual machine to be created and the deployment conditions of node use tag characterization, control node Node-0 management This 5 nodes of Node-1, Node-2, Node-3, Node-4 and Node-5.Node-1 corresponds to a first kind deployment conditions, With label A ' it indicates, Node-2 corresponds to a first kind deployment conditions and a second class deployment conditions, uses label A respectively ' and B Indicate, Node-3 also corresponds to a first kind deployment conditions and a second class deployment conditions, uses label A respectively ' and B expressions, Node-4 corresponds to a second class deployment conditions, is indicated with label B, and Node-5 also corresponds to a second class deployment conditions, with mark B is signed to indicate.
Specific embodiment one, the demand parameter that virtual machine VM1 and VM2, VM1 and VM2 have been created on Node-1 is one First kind demand parameter, with label A ' it indicates, the demand parameter that virtual machine VM4, VM4 have been created on Node-2 is one first Class demand parameter and a second class demand parameter use label A respectively ' and label B expression, virtual machine has been created on Node-3 The demand parameter of VM5 and VM6, VM6 are a first kind demand parameter and a second class demand parameter, use label A respectively ' and Label B indicates that the demand parameter of VM6 is a first kind demand parameter, with label A ' it indicates, it has been created on Node-4 virtual The demand parameter of machine VM7, VM7 are a second class demand parameter, are indicated with label B, virtual machine has been created on Node-5 The demand parameter of VM8, VM8 are a second class demand parameter, are indicated with label B.
Client creates the process of virtual machine VM3 by the node that control node Node-0 is managed, as shown in fig. 7, mainly Include the following steps:
(1) client sends virtual machine creating request to control node Node-0.Wherein, in the virtual machine creating request Carry the label A of virtual machine VM3 ', the first kind demand parameter of label A ' characterization VM3.
(2) after control node Node-0 receives virtual machine creating request, successively by the label A of VM3 ' respectively with The label of each node of Node-0 management is matched, and is determined to create the both candidate nodes of VM3.
In implementation, control node Node-0 carries out the label A of the VM3 ' label respectively with the Node-0 each nodes managed When matching, if the label A of the label and VM3 of a node of Node-0 management ', and there is no other for characterizing for the node The label of first kind deployment conditions, then successful match, determines that the node is the both candidate nodes that can create VM3, otherwise, matching Failure, determines that the node cannot create VM3.Due to there is the label with VM3 in the label of Node-1, Node-2 and Node-3 The matched label As of A ' ', and there is no other labels for characterizing first kind deployment conditions, the labels of Node-4 and Node-5 With the label A of VM3 ' it mismatches, therefore Node-1, Node-2 and Node-3 are that can create VM3 in the node of Node-0 management Both candidate nodes, Node-4 and Node-5 cannot create VM3.
In one specific embodiment, control node Node-0 is by the tag filter of itself, respectively to the mark of VM3 Label A ' is matched with the label of the Node-0 each nodes managed.
(3) control node Node-0 according to default rule from Node-1, Node-2 and Node-3 select Node-2 as Create the destination node of VM3.
(4) virtual machine creating request is transmitted to Node-2 by control node Node-0.
Correspondingly, Node-2 receives the virtual machine creating request, is asked to create VM3 according to the virtual machine creating.
Specific embodiment two, the demand parameter that virtual machine VM1 and VM2, VM1 and VM2 have been created on Node-1 is one First kind demand parameter, with label A ' it indicates, virtual machine VM3 and VM4 are created on Node-2, the demand parameter of VM3 is one A first kind demand parameter, with label A ' it indicates, the demand parameter of VM4, which is a first kind demand parameter and second class, to be needed Parameter is sought, uses label A respectively ' and label B expression, virtual machine VM5 and VM6 have been created on Node-3, and the demand parameter of VM6 is One first kind demand parameter and a second class demand parameter use label A respectively ' and label B expression, the demand parameter of VM6 For a first kind demand parameter, with label A ' it indicates, the demand parameter that virtual machine VM7, VM7 have been created on Node-4 is one A second class demand parameter, is indicated with label B, does not create virtual machine on Node-5 also.
Client creates the process of virtual machine VM8 by the node that control node Node-0 is managed, as shown in figure 8, mainly Include the following steps:
(1) client sends virtual machine creating request to control node Node-0.Wherein, in the virtual machine creating request Carry the label B of virtual machine VM8 ', the second class demand parameter of label B ' characterization VM3.
(2) after control node Node-0 receives virtual machine creating request, successively by the label B of VM8 respectively with The label of each node of Node-0 management is matched, and is determined to create the both candidate nodes of VM8.
In implementation, control node Node-0 by the label B of VM8 respectively with Node-0 manage each node label carry out Timing, if the label B of the label and VM8 of a node of Node-0 management, and the node is not present for characterizing the first kind The label of deployment conditions, then successful match, determines that the node is the both candidate nodes that can create VM8, and otherwise, it fails to match, Determine that the node cannot create VM8.Since the label of Node-1 and the label B of VM8 mismatch, and the label A of Node-1 ' table First kind deployment conditions are levied, therefore Node-1 cannot create VM8, although in the presence of with VM8's in the label of Node-2 and Node-3 The matched label B of label B, but there is also the labels for characterizing first kind deployment conditions in the label of Node-2 and Node-3 A ', therefore Node-2 and Node-3 can not create the label of VM8, Node-4 and Node-5 and be matched with the label B of VM8, and In the label of Node-4 and Node-5 there is no characterization first kind deployment conditions label, therefore Node-4 and Node-5 be can Create the both candidate nodes of VM3.
(3) control node Node-0 selects Node-5 as establishment according to default rule from Node-4 and Node-5 The destination node of VM3.
(4) virtual machine creating request is transmitted to Node-5 by control node Node-0.
Correspondingly, Node-5 receives the virtual machine creating request, is asked to create VM8 according to the virtual machine creating.
Based on above example, the embodiment of the present application provides a kind of control node, and the control node is for realizing such as Virtual machine creation method shown in fig. 5, as shown in fig.9, the control node 900 includes:Receiving unit 901, processing are single Member 902 and transmission unit 903.
The receiving unit 901, the first virtual machine creating request for receiving the transmission of the first client;Wherein, described Include the first kind demand parameter of the first virtual machine in the request of first virtual machine creating.
The processing unit 902, for the first kind demand parameter according to first virtual machine, in multiple sections of management The first object node for creating first virtual machine is determined in point;Wherein, the first kind demand parameter of first virtual machine Meet the corresponding whole first kind deployment conditions of the first object node.
The transmission unit 903, for first virtual machine creating request to be transmitted to the first object node.
In one possible embodiment, the processing unit 902 is in the first kind demand according to first virtual machine Parameter is specifically used for when determining the first object node for creating first virtual machine in multiple nodes of management:It is managing Multiple nodes in determine that multiple candidate nodes, the first kind demand parameter of first virtual machine meet the both candidate nodes pair The whole first kind deployment conditions answered;Selected from the multiple both candidate nodes according to preset rules one as first mesh Mark node.
In one possible embodiment, the first virtual machine creating request also includes the second of first virtual machine Second class demand parameter of class demand parameter, first virtual machine meets some or all of described first object node correspondence Second class deployment conditions.
In one possible embodiment, when first virtual machine creating request includes the second of first virtual machine When the second class demand parameter of class demand parameter and first virtual machine, the processing unit 902 is empty according to described first The first kind demand parameter of quasi- machine, determines the first object node for creating first virtual machine in multiple nodes of management When, it is specifically used for:Multiple candidate nodes are determined in multiple nodes of management;Wherein, the first kind of first virtual machine needs Parameter is asked to meet the corresponding whole first kind deployment conditions of the both candidate nodes, the second class demand parameter of first virtual machine Meet the second class deployment conditions of some or all of the both candidate nodes correspondence;According to preset rules from the multiple both candidate nodes It is middle select one as the first object node.
In one possible embodiment, the receiving unit 901 is additionally operable to:Receive the transmission of the second client second is empty Quasi- machine request to create;Wherein, the second class demand parameter of the second virtual machine is only included in the second virtual machine creating request;
The processing unit 902 is additionally operable to:According to the second class demand parameter of second virtual machine, in the multiple of management The second destination node for creating second virtual machine is determined in node;Wherein, the second class demand ginseng of second virtual machine Number meets the second class deployment conditions of some or all of the second destination node correspondence, and second destination node is not present First kind deployment conditions;
The transmission unit 903 is additionally operable to:Second virtual machine creating request is transmitted to second destination node.
It should be noted that being schematical, only a kind of logic function to the division of unit in the embodiment of the present application It divides, formula that in actual implementation, there may be another division manner.Each function module in embodiments herein can be integrated in Can also be that each unit physically exists alone in one processing unit, can also two or more units be integrated in one In a unit.The form that hardware had both may be used in above-mentioned integrated unit is realized, the form of SFU software functional unit can also be used It realizes.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, computer software product is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) or processor (processor) execute each reality of the application Apply all or part of step of the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disc or CD Etc. the various media that can store program code.
Based on above example, the embodiment of the present application also provides a kind of control node, the control node for realizing Virtual machine creation method as shown in Figure 5 has the function of control node 900 as shown in Figure 9.As shown in fig.10, described Control node 1000 includes:Communication interface 1001, memory 1002 and processor 1003, the processor 1003 and the communication Interface 1001, the memory 1002 are connected with each other.
The communication interface 1001, first for receiving the transmission of the first client under the control of the processor 1003 Virtual machine creating is asked;Wherein, the first kind demand parameter of the first virtual machine is included in the first virtual machine creating request.
The memory 1002, for storing program instruction.
The processor 1003 is executed for calling the program instruction stored in memory 1002:Call memory 1002 The program instruction of middle storage executes:According to the first kind demand parameter of first virtual machine, in multiple nodes of management really Surely the first object node of first virtual machine is created;And the communication interface 1001 is controlled by first virtual machine Request to create is transmitted to the first object node;Wherein, the first kind demand parameter of first virtual machine meets described The corresponding whole first kind deployment conditions of one destination node.
The communication interface 1001 is additionally operable to:First virtual machine creating is asked under the control of the processor 1003 It asks and is transmitted to the first object node.
Wherein, the memory 1002 may include volatile memory (volatile memory), such as arbitrary access Memory (random-access memory, RAM);The memory 1002 can also include nonvolatile memory (non- Volatile memory), for example, flash memory (flash memory, also referred to as flash memory), hard disk (hard disk drive, ) or solid state disk (solid-state drive, SSD) HDD;The memory 1002 can also include the storage of mentioned kind The combination of device.
The processor 1003 can be central processing unit (central processing unit, CPU), network processes The combination of device (networkprocessor, NP) or CPU and NP.Processor 1003 can further include hardware chip. Above-mentioned hardware chip can be application-specific integrated circuit (application-specific integrated circuit, ASIC), Programmable logic device (programmable logic device, PLD) or combinations thereof.Above-mentioned PLD can be complex programmable Logical device (complexprogrammable logic device, CPLD), field programmable gate array (field- Programmable gate array, FPGA), Universal Array Logic (generic array logic, GAL) or its arbitrary group It closes.
In one possible embodiment, the processor 1003 and the communication interface 1001, the memory 1002 It can be connected with each other by bus 1004.The bus 1004 can be Peripheral Component Interconnect standard (peripheral Componentinterconnect, PCI) bus or expanding the industrial standard structure (extended industry standard Architecture, EISA) bus etc..The bus 1004 can be divided into address bus, data/address bus, controlling bus etc..For Convenient for indicating, only indicated with a thick line in Figure 10, it is not intended that an only bus or a type of bus.
In a kind of possible embodiment, the first virtual machine creating request also includes the second of first virtual machine Second class demand parameter of class demand parameter, first virtual machine meets some or all of described first object node correspondence Second class deployment conditions.
In a kind of possible embodiment, the processor 1003 is joined according to the first kind demand of first virtual machine Number is specifically used for when determining the first object node for creating first virtual machine in multiple nodes of management:In management Determine that multiple candidate nodes, the first kind demand parameter of first virtual machine meet the both candidate nodes and correspond in multiple nodes Whole first kind deployment conditions;Selected from the multiple both candidate nodes according to preset rules one as the first object Node.
In a kind of possible embodiment, when first virtual machine creating request includes the second of first virtual machine When the second class demand parameter of class demand parameter and first virtual machine, the processor 1003 is virtual according to described first The first kind demand parameter of machine, when determining the first object node for creating first virtual machine in multiple nodes of management, It is specifically used for:Multiple candidate nodes are determined in multiple nodes of management;Wherein, the first kind demand ginseng of first virtual machine Number meets the corresponding whole first kind deployment conditions of the both candidate nodes, and the second class demand parameter of first virtual machine meets The second class deployment conditions of some or all of the both candidate nodes correspondence;It is selected from the multiple both candidate nodes according to preset rules Select the conduct first object node.
In a kind of possible embodiment, the communication interface 1001 is additionally operable to:Under the control of the processor 1003 Receive the second virtual machine creating request of the second client transmission;Wherein, only include the in second virtual machine creating request Second class demand parameter of two virtual machines;
The processor 1003 is additionally operable to:According to the second class demand parameter of second virtual machine, in the multiple of management The second destination node for creating second virtual machine is determined in node;And the communication interface 1001 is controlled by described second Virtual machine creating request is transmitted to second destination node;Wherein, the second class demand parameter of second virtual machine meets The second class deployment conditions of some or all of the second destination node correspondence, and the first kind is not present in second destination node Deployment conditions;
The communication interface 1001 is additionally operable to:Second virtual machine creating is asked under the control of the processor 1003 It asks and is transmitted to second destination node.
The embodiment of the present application provides a kind of control node, and the control node is according to the first virtual machine creating received The first kind demand parameter of the first virtual machine in request determines in multiple nodes of self-management and creates described first virtually First virtual machine creating request is transmitted to the first object node so that described first by the first object node of machine Destination node can create first virtual machine according to the demand parameter of first virtual machine.Wherein, described first is virtual The first kind demand parameter of machine meets the corresponding whole first kind deployment conditions of the destination node, i.e., the described control node management Multiple nodes in only have can be with the matched first kind deployment conditions of first kind demand parameter of first virtual machine Node can create first virtual machine, so that first virtual machine can be monopolized and first virtual machine The matched first kind deployment conditions of first kind demand parameter.
This application provides a kind of virtual machine creation method and device, the method includes:Control node receives the first visitor The first virtual machine creating request that family end is sent, the of the first virtual machine carried in being asked according to first virtual machine creating A kind of demand parameter determines the first object node for creating first virtual machine, by institute in multiple nodes of self-management It states the request of the first virtual machine creating and is transmitted to the first object node so that the first object node can be according to described the The demand parameter of one virtual machine creates first virtual machine, wherein the first kind demand parameter of first virtual machine meets The corresponding whole first kind deployment conditions of the destination node.Since the first kind demand parameter of first virtual machine meets institute The corresponding whole first kind deployment conditions of first object node are stated, i.e., only there is energy in multiple nodes of the described control node management Enough nodes with the matched first kind deployment conditions of first kind demand parameter of first virtual machine can create described the One virtual machine so that first virtual machine can monopolize it is matched with the first kind demand parameter of first virtual machine First kind deployment conditions.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which generates, includes The manufacture of command device, described instruction device are realized in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, those skilled in the art can carry out the embodiment of the present application various modification and variations without departing from this Shen Please embodiment range.In this way, if these modifications and variations of the embodiment of the present application belong to the application claim and its wait Within the scope of technology, then the application is also intended to include these modifications and variations.

Claims (15)

1. a kind of virtual machine creation method, which is characterized in that including:
Control node receives the first virtual machine creating request that the first client is sent;Wherein, first virtual machine creating is asked Include the first kind demand parameter of the first virtual machine in asking;
The control node is determined in multiple nodes of management and is created according to the first kind demand parameter of first virtual machine The first object node of first virtual machine;Wherein, the first kind demand parameter of first virtual machine meets described first The corresponding whole first kind deployment conditions of destination node;
First virtual machine creating request is transmitted to the first object node by the control node.
2. the method as described in claim 1, which is characterized in that the first virtual machine creating request also includes described first empty Second class demand parameter of quasi- machine, it is corresponding that the second class demand parameter of first virtual machine meets the first object node Part or all of second class deployment conditions.
3. method as claimed in claim 1 or 2, which is characterized in that the control node is according to the of first virtual machine A kind of demand parameter determines the first object node for creating first virtual machine in multiple nodes of management, including:
Multiple candidate nodes are determined in multiple nodes of management, described in the first kind demand parameter of first virtual machine meets The corresponding whole first kind deployment conditions of both candidate nodes;
Selected from the multiple both candidate nodes according to preset rules one as the first object node.
4. method as claimed in claim 2, which is characterized in that the control node is according to the first kind of first virtual machine Demand parameter determines the first object node for creating first virtual machine in multiple nodes of management, including:
Multiple candidate nodes are determined in multiple nodes of management;Wherein, the first kind demand parameter of first virtual machine is full The corresponding whole first kind deployment conditions of the foot both candidate nodes, described in the second class demand parameter of first virtual machine meets The second class deployment conditions of some or all of both candidate nodes correspondence;
Selected from the multiple both candidate nodes according to preset rules one as the first object node.
5. the method as described in claim 1-4 any one, which is characterized in that the method further includes:
The control node receives the second virtual machine creating request that the second client is sent;Wherein, the second virtual machine wound It builds in request and only includes the second class demand parameter of the second virtual machine;
The control node is determined in multiple nodes of management and is created according to the second class demand parameter of second virtual machine Second destination node of second virtual machine;Wherein, the second class demand parameter of second virtual machine meets described second The second class deployment conditions of some or all of destination node correspondence, and there is no the first kind to dispose item for second destination node Part;
Second virtual machine creating request is transmitted to second destination node by the control node.
6. a kind of control node, which is characterized in that including:Receiving unit, processing unit and transmission unit;
The receiving unit, the first virtual machine creating request for receiving the transmission of the first client;Wherein, described first is virtual Include the first kind demand parameter of the first virtual machine in machine request to create;
The processing unit, for the first kind demand parameter according to first virtual machine, in multiple nodes of management really Surely the first object node of first virtual machine is created;Wherein, the first kind demand parameter of first virtual machine meets institute State the corresponding whole first kind deployment conditions of first object node;
The transmission unit, for first virtual machine creating request to be transmitted to the first object node.
7. control node as claimed in claim 6, which is characterized in that first virtual machine creating request also includes described the Second class demand parameter of the second class demand parameter of one virtual machine, first virtual machine meets the first object node pair Some or all of answer the second class deployment conditions.
8. control node as claimed in claims 6 or 7, which is characterized in that the processing unit is virtual according to described first The first kind demand parameter of machine, when determining the first object node for creating first virtual machine in multiple nodes of management, It is specifically used for:
Multiple candidate nodes are determined in multiple nodes of management, described in the first kind demand parameter of first virtual machine meets Corresponding the second class of the whole deployment conditions of both candidate nodes;
Selected from the multiple both candidate nodes according to preset rules one as the first object node.
9. control node as claimed in claim 6, which is characterized in that the processing unit is according to first virtual machine First kind demand parameter, when determining the first object node for creating first virtual machine in multiple nodes of management, specifically For:
Multiple candidate nodes are determined in multiple nodes of management;Wherein, the first kind demand parameter of first virtual machine is full The corresponding whole first kind deployment conditions of the foot both candidate nodes, described in the second class demand parameter of first virtual machine meets Some or all of both candidate nodes correspondence first kind deployment conditions;
Selected from the multiple both candidate nodes according to preset rules one as the first object node.
10. the control node as described in claim 6-9 any one, which is characterized in that the receiving unit is additionally operable to:It receives The second virtual machine creating request that second client is sent;Wherein, only include second empty in the second virtual machine creating request Second class demand parameter of quasi- machine;
The processing unit is additionally operable to the second class demand parameter according to second virtual machine, in multiple nodes of management Determine the second destination node for creating second virtual machine;Wherein, the second class demand parameter of second virtual machine meets The second class deployment conditions of some or all of the second destination node correspondence, and the first kind is not present in second destination node Deployment conditions;
The transmission unit, is additionally operable to:Second virtual machine creating request is transmitted to second destination node.
11. a kind of control node, which is characterized in that including:Communication interface, memory and processor;
The communication interface, for being received in the first virtual machine for receiving the first client and sending under the control of the processor Request to create;Wherein, the first kind demand parameter of the first virtual machine is included in the first virtual machine creating request;
The memory, for storing program instruction;
The processor is executed for calling the program instruction stored in the memory:According to the of first virtual machine A kind of demand parameter determines the first object node for creating first virtual machine in multiple nodes of management;And control First virtual machine creating request is transmitted to the first object node by the communication interface;Wherein, described first is virtual The first kind demand parameter of machine meets the corresponding whole first kind deployment conditions of the first object node;
The communication interface is additionally operable to:First virtual machine creating request is transmitted to the first object node.
12. control node as claimed in claim 11, which is characterized in that the first virtual machine creating request also includes described Second class demand parameter of the second class demand parameter of the first virtual machine, first virtual machine meets the first object node Some or all of corresponding second class deployment conditions.
13. the control node as described in claim 11 or 12, which is characterized in that the processor is virtual according to described first The first kind demand parameter of machine, when determining the first object node for creating first virtual machine in multiple nodes of management, It is specifically used for:
Multiple candidate nodes are determined in multiple nodes of management, described in the first kind demand parameter of first virtual machine meets The corresponding whole first kind deployment conditions of both candidate nodes;
Selected from the multiple both candidate nodes according to preset rules one as the first object node.
14. control node as claimed in claim 11, which is characterized in that the processor is according to first virtual machine First kind demand parameter, when determining the first object node for creating first virtual machine in multiple nodes of management, specifically For:
Multiple candidate nodes are determined in multiple nodes of management;Wherein, the first kind demand parameter of first virtual machine is full The corresponding whole first kind deployment conditions of the foot both candidate nodes, described in the second class demand parameter of first virtual machine meets The second class deployment conditions of some or all of both candidate nodes correspondence;
Selected from the multiple both candidate nodes according to preset rules one as the first object node.
15. the control node as described in claim 11-14 any one, which is characterized in that the communication interface is additionally operable to: The second virtual machine creating request of the second client transmission is received under the control of the processor;Wherein, second virtual machine Only include the second class demand parameter of the second virtual machine in request to create;
The processor is additionally operable to:According to the second class demand parameter of second virtual machine, in multiple nodes of management really Surely the second destination node of second virtual machine is created;And the communication interface is controlled by second virtual machine creating Request is transmitted to second destination node;Wherein, the second class demand parameter of second virtual machine meets second mesh The second class deployment conditions of some or all of node correspondence are marked, and first kind deployment conditions are not present in second destination node;
The communication interface is additionally operable to:Second virtual machine creating request is transmitted under the control of the processor described Second destination node.
CN201810246362.7A 2018-03-23 2018-03-23 Virtual machine creating method and device Active CN108614727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810246362.7A CN108614727B (en) 2018-03-23 2018-03-23 Virtual machine creating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810246362.7A CN108614727B (en) 2018-03-23 2018-03-23 Virtual machine creating method and device

Publications (2)

Publication Number Publication Date
CN108614727A true CN108614727A (en) 2018-10-02
CN108614727B CN108614727B (en) 2021-04-20

Family

ID=63658791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810246362.7A Active CN108614727B (en) 2018-03-23 2018-03-23 Virtual machine creating method and device

Country Status (1)

Country Link
CN (1) CN108614727B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326102A (en) * 2021-08-02 2021-08-31 中电长城网际安全技术研究院(北京)有限公司 Large-scale virtual machine creating method and device, computer equipment and readable medium
CN113992511A (en) * 2021-10-19 2022-01-28 京东科技信息技术有限公司 Cloud host creation method and device, electronic equipment and storage medium
CN114070888A (en) * 2021-11-10 2022-02-18 中国联合网络通信集团有限公司 Service processing method, server, equipment and system based on cloud terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797462A (en) * 2013-10-23 2014-05-14 华为技术有限公司 Method, system, and device for creating virtual machine
US20140359619A1 (en) * 2012-01-30 2014-12-04 Lg Electronics Inc. Method for managing virtual machine and device therefor
CN104424013A (en) * 2013-08-26 2015-03-18 国际商业机器公司 Method and device for deploying virtual machine in computing environment
CN104683408A (en) * 2013-11-29 2015-06-03 中国科学院深圳先进技术研究院 Method and system for OpenStack cloud computing management platform to build virtual machine instance
CN105718299A (en) * 2014-12-04 2016-06-29 中国移动通信集团广东有限公司 Virtual machine configuration method, device and system
CN106020937A (en) * 2016-07-07 2016-10-12 腾讯科技(深圳)有限公司 Method, device and system for creating virtual machine
CN106354544A (en) * 2016-08-24 2017-01-25 华为技术有限公司 Virtual machine creating method and system and host
CN106919435A (en) * 2015-12-25 2017-07-04 华为技术有限公司 The creation method of virtual machine, the management method of resource and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140359619A1 (en) * 2012-01-30 2014-12-04 Lg Electronics Inc. Method for managing virtual machine and device therefor
CN104424013A (en) * 2013-08-26 2015-03-18 国际商业机器公司 Method and device for deploying virtual machine in computing environment
CN103797462A (en) * 2013-10-23 2014-05-14 华为技术有限公司 Method, system, and device for creating virtual machine
CN104683408A (en) * 2013-11-29 2015-06-03 中国科学院深圳先进技术研究院 Method and system for OpenStack cloud computing management platform to build virtual machine instance
CN105718299A (en) * 2014-12-04 2016-06-29 中国移动通信集团广东有限公司 Virtual machine configuration method, device and system
CN106919435A (en) * 2015-12-25 2017-07-04 华为技术有限公司 The creation method of virtual machine, the management method of resource and device
CN106020937A (en) * 2016-07-07 2016-10-12 腾讯科技(深圳)有限公司 Method, device and system for creating virtual machine
CN106354544A (en) * 2016-08-24 2017-01-25 华为技术有限公司 Virtual machine creating method and system and host

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326102A (en) * 2021-08-02 2021-08-31 中电长城网际安全技术研究院(北京)有限公司 Large-scale virtual machine creating method and device, computer equipment and readable medium
CN113992511A (en) * 2021-10-19 2022-01-28 京东科技信息技术有限公司 Cloud host creation method and device, electronic equipment and storage medium
CN113992511B (en) * 2021-10-19 2024-06-18 京东科技信息技术有限公司 Cloud host creation method and device, electronic equipment and storage medium
CN114070888A (en) * 2021-11-10 2022-02-18 中国联合网络通信集团有限公司 Service processing method, server, equipment and system based on cloud terminal
CN114070888B (en) * 2021-11-10 2024-04-12 中国联合网络通信集团有限公司 Service processing method, server, equipment and system based on cloud terminal

Also Published As

Publication number Publication date
CN108614727B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
US10979293B2 (en) Service deployment method and network functions acceleration platform
US20210373778A1 (en) Method and apparatus for fine tuning and optimizing nvme-of ssds
CN105657081B (en) The method, apparatus and system of DHCP service are provided
CN108614727A (en) A kind of virtual machine creation method and device
CN104270416A (en) Load balancing control method and management node
CN111490949A (en) Method, network card, host device and computer system for forwarding data packets
EP3099032A1 (en) A load balancing method, device, system and computer storage medium
CN113900982B (en) Distributed heterogeneous acceleration platform communication method, system, device and medium
US20220004873A1 (en) Techniques to manage training or trained models for deep learning applications
CN104272697A (en) Packet processing of data using multiple media access controllers
US20190079791A1 (en) Data Storage Method and Apparatus
CN115934623B (en) Data processing method, device and medium based on remote direct memory access
US20230097087A1 (en) Image detection method based on neural network model, electronic device, and storage medium
CN110048875A (en) A kind of method and apparatus of upgrading driving
CN106576260A (en) Policy coordination method and apparatus in NFV system
CN108418752B (en) A kind of creation method and device of aggregation group
CN103995745B (en) A kind of IP hard disks task executing method and IP hard disks
CN108347377B (en) Data forwarding method and device
CN104077187A (en) Method and system for scheduling execution of application programs
CN113794581B (en) Distributed CP unified deployment method, network equipment and storage medium
US20140359114A1 (en) Computer-readable recording medium, usage mode data generation method, and usage mode data generation device
CN106576068A (en) Software security verification method, equipment and system
CN108632321A (en) Treating method and apparatus based on scheduling of resource under big data platform
US10833990B2 (en) Transmitting packet
US10129147B2 (en) Network-on-chip flit transmission method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220216

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221208

Address after: 518129 Huawei Headquarters Office Building 101, Wankecheng Community, Bantian Street, Gangqu District, Shenzhen, Guangdong

Patentee after: Shenzhen Huawei Cloud Computing Technology Co.,Ltd.

Address before: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee before: Huawei Cloud Computing Technology Co.,Ltd.

TR01 Transfer of patent right