CN109933405A - Virtual machine creation method and device, electronic equipment, storage medium - Google Patents
Virtual machine creation method and device, electronic equipment, storage medium Download PDFInfo
- Publication number
- CN109933405A CN109933405A CN201910020478.3A CN201910020478A CN109933405A CN 109933405 A CN109933405 A CN 109933405A CN 201910020478 A CN201910020478 A CN 201910020478A CN 109933405 A CN109933405 A CN 109933405A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- configuration information
- target configuration
- creation method
- destination node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a kind of virtual machine creation method and device, electronic equipment, storage medium, which includes: the configuration information for obtaining virtual machine, and the configuration information of the virtual machine is stored into allocation list;The foundation request of the virtual machine is received, it is described to establish the identification information that request includes the virtual machine;Corresponding target configuration information is obtained from the allocation list according to the identification information;The virtual machine is established on corresponding destination node according to the target configuration information.The technical solution of the embodiment of the present invention can not only automate creation virtual machine, and can reduce because of faulty operation caused by artificial, improve working efficiency.
Description
Technical field
The present invention relates to field of computer technology, fill in particular to a kind of virtual machine creation method, virtual machine creating
It sets, electronic equipment and computer readable storage medium.
Background technique
With the development of internet technology, the purposes of virtual machine (Virtual Machine) is more and more extensive, in computer
Many aspects such as performance test or enterprises system requirements usually may require that batch creation virtual machine.
Currently, the method that batch creates virtual machine mainly passes through script and command-line tool in existing technical solution
Multiple scripts and device parameter are write to create virtual machine in batches.The method needs of this batch creation virtual machine manually pass through
Script and device parameter are write in continuous repetitive operation completion, then re-call script file and new device parameter is called to go
Batch creation virtual machine, the speed for not only creating virtual machine is slow, needs to consume a large amount of human resources, and due to artificial weight
The information input error rate operated again is high, reduces the creation efficiency of virtual machine.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of virtual machine creation method, virtual machine creating device, electronic equipment
And computer readable storage medium, and then overcome as caused by the limitation and defect of the relevant technologies at least to a certain extent
The operating mistake rate height of manual creation virtual machine and ineffective problem.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention
Practice and acquistion.
According to a first aspect of the embodiments of the present invention, a kind of virtual machine creation method is provided, comprising: obtain virtual machine
Configuration information stores the configuration information of the virtual machine into allocation list;The foundation request of the virtual machine is received, it is described to build
Vertical request includes the identification information of the virtual machine;Corresponding target is obtained from the allocation list according to the identification information to match
Confidence breath;The virtual machine is established on corresponding destination node according to the target configuration information.
In some example embodiments of the present invention, aforementioned schemes are based on, according to the target configuration information by the void
Quasi- machine is established on corresponding destination node, comprising: obtains the current processing capabilities parameter of multiple nodes;Matched according to the target
Confidence breath and the current processing capabilities parameter match corresponding destination node, and the virtual machine is established corresponding described
On destination node.
In some example embodiments of the present invention, aforementioned schemes are based on, the current processing capabilities parameter includes processing
Device nucleus number, free memory size, remaining hard disk size and network segment.
In some example embodiments of the present invention, aforementioned schemes are based on, according to the target configuration information and described
Current processing capabilities parameter matches corresponding destination node, comprising: obtains whole score values of the target configuration information;Determine institute
The calculated result that whole score values are weighted summation is stated, according to the current processing capabilities parameter of the calculated result and node
Match corresponding destination node.
In some example embodiments of the present invention, aforementioned schemes are based on, according to the calculated result and node
Current processing capabilities parameter matches corresponding destination node, further includes: determines the knot of remaining target configuration information weighted sum
Fruit value is greater than multiple nodes of the end value of whole target configuration information weighted sums;It is selected in determining the multiple node
Select the highest destination node of end value of whole target configuration information weighted sums.
In some example embodiments of the present invention, aforementioned schemes are based on, it is described to be matched according to the identification information from described
It sets and obtains corresponding target configuration information in table, comprising: obtain the identification information for establishing the virtual machine in request;Base
In script and command-line tool, corresponding target in the allocation list is obtained by the identification information of the virtual machine and matches confidence
Breath.
In some example embodiments of the present invention, aforementioned schemes are based on, the allocation list is comma separated value table.
In some example embodiments of the present invention, aforementioned schemes are based on, the configuration information of the virtual machine includes virtual
Processor nucleus number, memory size, hard disk size and the network segment of machine.
According to a second aspect of the embodiments of the present invention, a kind of virtual machine creating device is provided, comprising: storage unit is used
In the configuration information for obtaining virtual machine, the configuration information of the virtual machine is stored into allocation list;Receiving unit, for receiving
The foundation of the virtual machine is requested, described to establish the identification information that request includes the virtual machine;Acquiring unit, for according to institute
It states identification information and obtains corresponding target configuration information from the allocation list;Virtual machine establishes unit, for according to the mesh
Configuration information is marked to establish the virtual machine on corresponding destination node.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: processor;And memory, institute
It states and is stored with computer-readable instruction on memory, realize when the computer-readable instruction is executed by the processor according to upper
State virtual machine creation method described in any one.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine program realizes the virtual machine creation method according to above-mentioned any one when the computer program is executed by processor.
Technical solution provided in an embodiment of the present invention can include the following benefits:
Virtual machine creation method according to embodiments of the present invention, establishes allocation list according to the configuration information of virtual machine, leads to
The identification information crossed in virtual machine creating request obtains corresponding configuration information in allocation list, according to configuration information by virtual machine
It establishes on corresponding node.On the one hand, configuration information needed for creation virtual machine is stored in allocation list, wscript.exe is logical
It crosses identification information and obtains the corresponding configuration information of virtual machine automatically, not only increase the creation speed of virtual machine, and created
Journey does not need manually to participate in, and saves a large amount of human resources;On the other hand, believed according to the mark of the virtual machine in request to create
Corresponding configuration information establishes virtual machine in the automatic acquisition allocation list of breath, improves the correct of the configuration information of creation virtual machine
Rate improves the creation efficiency of virtual machine.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates the schematic diagram of virtual machine creation method process according to some embodiments of the present invention;
Fig. 2 diagrammatically illustrate according to some embodiments of the present invention according to target configuration information choose destination node stream
The schematic diagram of journey;
Fig. 3 diagrammatically illustrate other embodiments according to the present invention according to target configuration information choose destination node
The schematic diagram of process;
Fig. 4 diagrammatically illustrates the schematic diagram of virtual machine creating device according to some embodiments of the present invention;
Fig. 5 diagrammatically illustrates the structural representation of the computer system of electronic equipment according to some embodiments of the present invention
Figure;
Fig. 6 diagrammatically illustrates the schematic diagram of computer readable storage medium according to some embodiments of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However,
It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail,
Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side
Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
In an exemplary embodiment of the present invention, a kind of virtual machine creation method is provided firstly, Fig. 1 is diagrammatically illustrated
The schematic diagram of virtual machine creation method process according to some embodiments of the present invention.With reference to shown in Fig. 1, the virtual machine creating
Method may comprise steps of:
Step S110 obtains the configuration information of virtual machine, and the configuration information of the virtual machine is stored into allocation list;
Step S120 receives the foundation request of the virtual machine, described to establish the mark letter that request includes the virtual machine
Breath;
Step S130 obtains corresponding target configuration information according to the identification information from the allocation list;
Step S140 establishes the virtual machine on corresponding destination node according to the target configuration information.
Virtual machine creation method according to the present exemplary embodiment, on the one hand, confidence will be matched needed for creation virtual machine
Breath is stored in allocation list, and wscript.exe obtains the corresponding configuration information of virtual machine by identification information automatically, is not only increased
The creation speed of virtual machine, and create process and do not need manually to participate in, save a large amount of human resources;On the other hand, root
Corresponding configuration information in allocation list is obtained automatically according to the identification information of the virtual machine in request to create and establishes virtual machine, is improved
The accuracy for creating the configuration information of virtual machine, improves the creation efficiency of virtual machine.
In the following, by the virtual machine creation method in the present exemplary embodiment is further detailed.
In step s 110, the configuration information for obtaining virtual machine, by the configuration information storage of the virtual machine to allocation list
In.
In a kind of example embodiment of the invention, virtual machine (Virtual Machine) refers to the tool simulated by software
Have complete hardware system function, operate in complete computer in a completely isolated environment.Virtual machine matches confidence
Breath includes: processor CPU core number, memory size, hard disk size and the network segment of virtual machine, wherein network segment (Network
Segment) referring to being capable of Direct Communication using same physical layer equipment such as repeater, hub etc. in a computer network
Part, such as from 192.168.0.1 to 192.168.255.255 be a network segment.The configuration information of virtual machine is in addition to network segment
Different outer, other configurations item can be the same or different.Allocation list can be comma separated value (Comma-Separated
Values, CSV) document format table, the configuration information as storage virtual machine can make configuration information using CSV table
Retrieval and export are more convenient and quick.It should be noted that the allocation list is also possible to discrete table, the present invention is not done herein
Particular determination.
In a kind of example embodiment of the invention, virtual machine configuration data can be side of the system manager by message
Formula is sent, and system is obtained according to pre-defined rule from respective field when receiving virtual machine configuration data required for creating virtual machine
Obtained configuration information is stored in CSV allocation list by the configuration information for taking specific virtual machine, for example, being stored in CSV table
In data be " identification information of virtual machine, the processor nucleus number of virtual machine, the memory size of virtual machine, the hard disk of virtual machine
The form of size, the network segment of virtual machine ", the configuration information of a data line i.e. virtual machine.
In the step s 120, the foundation request of the virtual machine is received, it is described to establish the mark that request includes the virtual machine
Know information.
In a kind of example embodiment of the invention, the foundation that system receives the creation virtual machine that system manager sends is asked
It asks, obtains the identification information for the virtual machine for including in foundation request, such as the ID of virtual machine.The identification information of virtual machine with match
Network segment information in confidence breath uniquely corresponds to, therefore can uniquely be found in CSV allocation list by the identification information of virtual machine
Corresponding virtual machine configuration information.
In step s 130, corresponding target configuration information is obtained from the allocation list according to the identification information.
In a kind of example embodiment of the invention, target configuration information refers to system according to the mark of virtual machine to be created
Information extracts the corresponding configuration information of virtual machine to be created from allocation list.Specifically, believed according to the mark of virtual machine to be created
Breath retrieves corresponding network segment information in CSV allocation list, obtains the corresponding target configuration information of network segment information void i.e. to be created
The configuration information of quasi- machine.
Further, according to the identification information of virtual machine to be created, through script and command-line tool in CSV allocation list
Target configuration information is obtained, such as script and command-line tool can be PowerCLI tool.Because in CSV allocation list
The configuration information of all virtual machines to be created is contained, script and command-line tool PowerCLI only need that primary call is called to order
Order can automate batch creation virtual machine, do not need that call operation process is repeated several times, improve the working efficiency of system.
In step S140, the virtual machine is established on corresponding destination node according to the target configuration information.
In a kind of example embodiment of the invention, node, which refers to possess independent address and have, sendes or receive data function
Can the equipment such as computer, server of network connection etc., the virtual machine in the present invention can create on node.Destination node
Refer to the most suitable node selected in multiple enabled nodes according to the target configuration information of virtual machine to be created.Specifically,
The target configuration information obtained in receiving step S130 chooses target section according to the target configuration information in multiple enabled nodes
Point establishes the corresponding virtual machine to be created of target configuration information on the target node.
Refering to what is shown in Fig. 2, Fig. 2 diagrammatically illustrate according to some embodiments of the present invention according to target configuration information select
The schematic diagram for taking destination node process, is specifically described below.
In step S210, the current processing capabilities parameter of multiple nodes is obtained.
In a kind of example embodiment of the invention, current processing capabilities parameter includes processor CPU core number, free memory
Size, remaining hard disk size and network segment etc..Entirety ability due to each node and being presently processing of the task
Difference, therefore the current processing capabilities of each node and surplus resources are different.The current processing capabilities parameter of node is obtained,
According to the current processing capabilities parameter of node can effectively reasonable distribution virtual machine, avoid multiple virtual machine creatings from handling
The problem for making node load excessive on the node of scarce capacity improves the working efficiency of node.
In step S220, corresponding mesh is matched according to the target configuration information and the current processing capabilities parameter
Node is marked, the virtual machine is established on the corresponding destination node.
It is in a kind of example embodiment of the invention, CPU core number, the free memory in current processing capabilities parameter is big
Small, remaining hard disk size and network segment, respectively with CPU core number, memory size, hard disk size and the net in target configuration parameter
Duan Jinhang matching determines suitable destination node creation virtual machine.
Specifically, according to the CPU core in the current processing capabilities parameter of CPU core number and each node in target configuration information
The CPU core number that number match in determining destination node, such as detection current processing capabilities parameter is greater than in target configuration information
CPU core number node, qualified node is compared, CPU core number highest in multiple nodes of condition is determined for compliance with
Node as destination node.Optionally, it is determined for compliance with the node work that CPU core number in multiple nodes of condition is greater than nucleus number threshold value
For destination node.Certainly, the selection condition of destination node is merely exemplary, does not do particular determination herein.
Specifically, according to the residue in the current processing capabilities parameter of memory size and each node in target configuration information
The free memory size that memory size match in determining destination node, such as detection current processing capabilities parameter is greater than target
Qualified node is compared by the node of the memory size in configuration information, is determined for compliance in multiple nodes of condition
The highest node of free memory size is as destination node.Optionally, it is big to be determined for compliance with free memory in multiple nodes of condition
The small node greater than memory size threshold value is as destination node.Certainly, the selection condition of destination node is merely exemplary,
Particular determination is not done herein.
Specifically, according to the residue in the current processing capabilities parameter of hard disk size and each node in target configuration information
The remaining hard disk size that hard disk size match in determining destination node, such as detection current processing capabilities parameter is greater than target
Qualified node is compared by the node of the hard disk size in configuration information, is determined for compliance in multiple nodes of condition
The remaining highest node of hard disk size is as destination node.Optionally, it is big that remaining hard disk is determined for compliance in multiple nodes of condition
The small node greater than hard disk size threshold value is as destination node.Certainly, the selection condition of destination node is merely exemplary,
Particular determination is not done herein.
Specifically, in the present invention, network segment is equivalent to the preceding several sections of virtual machine and the occupied IP address of node, example
It such as 273.38.87.82, can specify that 273.38 be network segment belonging to virtual machine or node, also can specify that 273.38.87 is empty
Network segment belonging to quasi- machine or node.According to the net in the current processing capabilities parameter of network segment and each node in target configuration information
Duan Jinhang, which is matched, determines destination node, such as determines the network segment in target configuration information and the network segment in current processing capabilities parameter
Identical node optionally determines the node for the network segment that the network segment in target configuration information belongs in current processing capabilities parameter.
Certainly, the selection condition of destination node is merely exemplary, does not do particular determination herein.
Refering to what is shown in Fig. 3, Fig. 3 diagrammatically illustrate other embodiments according to the present invention according to target configuration information
The schematic diagram for choosing destination node process, is specifically described below.
In step s310, whole score values of the target configuration information are obtained.
In another example embodiment of the invention, whole score values of target configuration information refer in target configuration information
The weighted value of each parameter, such as CPU core number are important, score value 5, and followed by memory size score value is 3, hard disk size point
Value is 2.It should be noted that the score value of the parameters in target configuration information is corresponding with the current processing capabilities parameter of node
Parameters weighted value it is identical.
In step s 320, determine that whole score values are weighted the calculated result of summation, according to the calculated result
Destination node corresponding with the current processing capabilities parameter matching of node.
In another example embodiment of the invention, network segment and current processing capabilities in target configuration information are being determined
When network segment in parameter is identical or relation belonging to, whole score values of target configuration information are passed through into weighted sum formula (1)
It is calculated:
Wherein, xnIndicate the parameters in target configuration information, wnIndicate that the parameters institute in target configuration information is right
The score value answered i.e. weighted value.Whole score values of current processing capabilities parameter and target configuration parameter are weighted summation to obtain
Calculated result value determines that whole score value weighted sum calculated result values of current processing capabilities parameter are greater than target configuration parameter
The node of whole score value weighted sum calculated result values chooses whole score value weighted sums in determining multiple nodes and calculates knot
Fruit is worth highest node as destination node.Optionally, a node is randomly selected in determining multiple nodes as target
Node.Certainly, the selection condition of destination node is merely exemplary, does not do particular determination herein.
It should be noted that although describing each step of method in the present invention in the accompanying drawings with particular order,
This does not require that or implies must execute these steps in this particular order, or have to carry out step shown in whole
Just it is able to achieve desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and held by certain steps
Row, and/or a step is decomposed into execution of multiple steps etc..
In addition, in this exemplary embodiment, additionally providing a kind of virtual machine creating device.Referring to shown in Fig. 4, the virtual machine
Creating device 400 includes: the configuration information that storage unit 410 is used to obtain virtual machine, and the configuration information of the virtual machine is deposited
It stores up in allocation list;Receiving unit 420 is used to receive the foundation request of the virtual machine, and the foundation request includes described virtual
The identification information of machine;Acquiring unit 430 from the allocation list for obtaining corresponding target configuration according to the identification information
Information;Virtual machine establishes unit 440 for establishing the virtual machine in corresponding target section according to the target configuration information
Point on.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, acquiring unit 430 is configured as: obtaining institute
State the identification information for the virtual machine established in request;Based on script and command-line tool, pass through the mark of the virtual machine
Corresponding target configuration information in allocation list described in acquisition of information.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, it includes: parameter that virtual machine, which establishes unit 440,
Acquiring unit, for obtaining the current processing capabilities parameter of multiple nodes;Destination node matching unit, for according to the target
Configuration information and the current processing capabilities parameter match corresponding destination node, and the virtual machine is established in corresponding institute
It states on destination node.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, the current processing capabilities parameter includes place
Manage device nucleus number, free memory size, remaining hard disk size and network segment.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, destination node matching unit is configured as: being obtained
Take whole score values of the target configuration information;Determine that whole score values are weighted the calculated result of summation, according to described
Calculated result destination node corresponding with the current processing capabilities parameter matching of node.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, destination node matching unit is configured as: really
The end value of fixed remaining target configuration information weighted sum is greater than the end value of whole target configuration information weighted sums
Multiple nodes;The highest mesh of end value of whole target configuration information weighted sums is selected in determining the multiple node
Mark node.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, the allocation list is comma separated value table.
In a kind of exemplary embodiment of the invention, aforementioned schemes are based on, the configuration information of the virtual machine includes void
Processor nucleus number, memory size, hard disk size and the network segment of quasi- machine.
The detail of each module of virtual machine creating device carries out in corresponding virtual machine creation method among the above
Detailed description, therefore details are not described herein again.
It should be noted that although being referred to several modules or unit of virtual machine creating device in the above detailed description,
But it is this divide it is not enforceable.In fact, embodiment according to the present invention, two or more above-described modules
Either the feature and function of unit can embody in a module or unit.Conversely, an above-described module or
The feature and function of person's unit can be to be embodied by multiple modules or unit with further division.
In addition, in an exemplary embodiment of the disclosure, additionally providing one kind can be realized above-mentioned virtual machine creation method
Electronic equipment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, completely
Software implementation (including firmware, microcode etc.) or hardware and software in terms of combine embodiment, may be collectively referred to as here
Circuit, " module " or " system ".
The electronic equipment 500 of this embodiment according to the present invention is described referring to Fig. 5.Electronics shown in fig. 5 is set
Standby 500 be only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 is showed in the form of universal computing device.The component of electronic equipment 500 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connection
The bus 530 of (including storage unit 520 and processing unit 510), display unit 540.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510
Row, so that various according to the present invention described in the execution of the processing unit 510 above-mentioned " illustrative methods " part of this specification
The step of exemplary embodiment.For example, the processing unit 510 can execute step S110 as shown in fig. 1, obtain virtual
The configuration information of machine stores the configuration information of the virtual machine into allocation list;Step S120 receives building for the virtual machine
Vertical request, it is described to establish the identification information that request includes the virtual machine;Step S130 matches according to the identification information from described
It sets and obtains corresponding target configuration information in table;Step S140 establishes the virtual machine according to the target configuration information
On corresponding destination node.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 521 and/or cache memory unit 522, it can further include read-only memory unit (ROM) 523.
Storage unit 520 can also include program/utility 524 with one group of (at least one) program module 525,
Such program module 525 includes but is not limited to: operating system, one or more application program, other program modules and
It may include the realization of network environment in program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 500 can also be with one or more external equipments 570 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 500 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 500 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, electronic equipment 500 can be with
By network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of electronic equipment 500.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 500, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein
It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure
The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can
To be personal computer, server, terminal installation or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention can be with
It is embodied as a kind of form of program product comprising program code, it is described when described program product is run on the terminal device
Program code is for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to the present invention
The step of various exemplary embodiments.
Refering to what is shown in Fig. 6, describing the journey for realizing above-mentioned virtual machine creation method of embodiment according to the present invention
Sequence product 600, can be using portable compact disc read only memory (CD-ROM) and including program code, and can be in terminal
It is run in equipment, such as PC.However, program product of the invention is without being limited thereto, and in this document, readable storage medium storing program for executing
It can be any tangible medium for including or store program, which can be commanded execution system, device or device and use
Or it is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein
It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure
The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can
To be personal computer, server, touch control terminal or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of virtual machine creation method characterized by comprising
The configuration information for obtaining virtual machine stores the configuration information of the virtual machine into allocation list;
The foundation request of the virtual machine is received, it is described to establish the identification information that request includes the virtual machine;
Corresponding target configuration information is obtained from the allocation list according to the identification information;
The virtual machine is established on corresponding destination node according to the target configuration information.
2. virtual machine creation method according to claim 1, which is characterized in that will be described according to the target configuration information
Virtual machine is established
Obtain the current processing capabilities parameter of multiple nodes;
Corresponding destination node is matched according to the target configuration information and the current processing capabilities parameter, it will be described virtual
Machine is established on the corresponding destination node.
3. virtual machine creation method according to claim 2, which is characterized in that the current processing capabilities parameter includes place
Manage device nucleus number, free memory size, remaining hard disk size and network segment.
4. virtual machine creation method according to claim 2, which is characterized in that according to the target configuration information and institute
Stating the corresponding destination node of current processing capabilities parameter matching includes:
Obtain whole score values of the target configuration information;
Determine that whole score values are weighted the calculated result of summation, according to the current place of the calculated result and node
It manages ability parameter and matches corresponding destination node.
5. virtual machine creation method according to claim 4, which is characterized in that according to the institute of the calculated result and node
It states current processing capabilities parameter and matches corresponding destination node further include:
Determine that the end value of remaining target configuration information weighted sum is greater than the knot of whole target configuration information weighted sums
Multiple nodes of fruit value;
The highest target section of end value of whole target configuration information weighted sums is selected in determining the multiple node
Point.
6. virtual machine creation method according to claim 1, which is characterized in that it is described according to the identification information from described
Corresponding target configuration information is obtained in allocation list includes:
Obtain the identification information for establishing the virtual machine in request;
Based on script and command-line tool, corresponding target in the allocation list is obtained by the identification information of the virtual machine and is matched
Confidence breath.
7. according to claim 1 to virtual machine creation method described in 6 any one, which is characterized in that the virtual machine is matched
Confidence breath includes processor nucleus number, memory size, hard disk size and the network segment of virtual machine.
8. a kind of virtual machine creating device characterized by comprising
Storage unit stores the configuration information of the virtual machine into allocation list for obtaining the configuration information of virtual machine;
Receiving unit, the foundation for receiving the virtual machine are requested, described to establish the mark letter that request includes the virtual machine
Breath;
Acquiring unit, for obtaining corresponding target configuration information from the allocation list according to the identification information;
Virtual machine establishes unit, for being established the virtual machine in corresponding destination node according to the target configuration information
On.
9. a kind of electronic equipment, comprising:
Processor;And
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor
Virtual machine creation method as claimed in any of claims 1 to 7 in one of claims is realized when row.
10. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor
Shi Shixian virtual machine creation method as claimed in any of claims 1 to 7 in one of claims.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910020478.3A CN109933405A (en) | 2019-01-09 | 2019-01-09 | Virtual machine creation method and device, electronic equipment, storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910020478.3A CN109933405A (en) | 2019-01-09 | 2019-01-09 | Virtual machine creation method and device, electronic equipment, storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109933405A true CN109933405A (en) | 2019-06-25 |
Family
ID=66984967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910020478.3A Pending CN109933405A (en) | 2019-01-09 | 2019-01-09 | Virtual machine creation method and device, electronic equipment, storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109933405A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489208A (en) * | 2019-07-17 | 2019-11-22 | 南京苏宁软件技术有限公司 | Virtual machine configuration parameter check method, system, computer equipment and storage medium |
CN110764876A (en) * | 2019-10-25 | 2020-02-07 | 浪潮电子信息产业股份有限公司 | Cloud host creation method, device, equipment and readable storage medium |
CN111104200A (en) * | 2019-12-11 | 2020-05-05 | 秒针信息技术有限公司 | Virtual machine management method, device, storage medium and server |
CN111538545A (en) * | 2020-04-23 | 2020-08-14 | 京东方科技集团股份有限公司 | Java application running method, device, medium and electronic equipment |
CN113407259A (en) * | 2021-07-13 | 2021-09-17 | 北京百度网讯科技有限公司 | Scene loading method, device, equipment and storage medium |
CN113992511A (en) * | 2021-10-19 | 2022-01-28 | 京东科技信息技术有限公司 | Cloud host creation method and device, electronic equipment and storage medium |
CN114816672A (en) * | 2022-05-06 | 2022-07-29 | 中国电信股份有限公司 | Virtual machine creation method and device, electronic equipment and storage medium |
CN115794316A (en) * | 2023-02-03 | 2023-03-14 | 青软创新科技集团股份有限公司 | Method, apparatus, medium, and program product for building a cloud computing experimental environment |
CN111538545B (en) * | 2020-04-23 | 2024-07-12 | 京东方科技集团股份有限公司 | Java application running method, java application running device, java application running medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799464A (en) * | 2012-06-25 | 2012-11-28 | 北京奇虎科技有限公司 | Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system |
CN105630632A (en) * | 2015-12-25 | 2016-06-01 | 华为技术有限公司 | Virtual machine recovery method and virtual machine management device |
CN105808323A (en) * | 2016-04-05 | 2016-07-27 | 浪潮电子信息产业股份有限公司 | Virtual machine creation method and system |
CN106919435A (en) * | 2015-12-25 | 2017-07-04 | 华为技术有限公司 | The creation method of virtual machine, the management method of resource and device |
CN108170508A (en) * | 2017-12-12 | 2018-06-15 | 顺丰科技有限公司 | Batch creates method, apparatus, equipment and its storage medium of virtual machine |
-
2019
- 2019-01-09 CN CN201910020478.3A patent/CN109933405A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799464A (en) * | 2012-06-25 | 2012-11-28 | 北京奇虎科技有限公司 | Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system |
CN105630632A (en) * | 2015-12-25 | 2016-06-01 | 华为技术有限公司 | Virtual machine recovery method and virtual machine management device |
CN106919435A (en) * | 2015-12-25 | 2017-07-04 | 华为技术有限公司 | The creation method of virtual machine, the management method of resource and device |
CN105808323A (en) * | 2016-04-05 | 2016-07-27 | 浪潮电子信息产业股份有限公司 | Virtual machine creation method and system |
CN108170508A (en) * | 2017-12-12 | 2018-06-15 | 顺丰科技有限公司 | Batch creates method, apparatus, equipment and its storage medium of virtual machine |
Non-Patent Citations (4)
Title |
---|
(美)戴夫•沙克尔福: "《虚拟化安全解决方案》", 31 January 2016, 机械工业出版社 * |
VMWARE: "《vSphere PowerCLI User’s Guide》", 3 September 2017, HTTPS://MAX.BOOK118.COM/HTML/2017/0903/131534417.SHTM * |
Y. SHAFRANOVICH: "《RFC 4180》", 31 October 2005, IETF * |
杨连贺等: "《Python程序设计实用教程》", 30 June 2018, 清华大学出版社 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489208A (en) * | 2019-07-17 | 2019-11-22 | 南京苏宁软件技术有限公司 | Virtual machine configuration parameter check method, system, computer equipment and storage medium |
CN110489208B (en) * | 2019-07-17 | 2022-03-22 | 南京苏宁软件技术有限公司 | Virtual machine configuration parameter checking method, system, computer equipment and storage medium |
CN110764876A (en) * | 2019-10-25 | 2020-02-07 | 浪潮电子信息产业股份有限公司 | Cloud host creation method, device, equipment and readable storage medium |
CN111104200A (en) * | 2019-12-11 | 2020-05-05 | 秒针信息技术有限公司 | Virtual machine management method, device, storage medium and server |
CN111538545A (en) * | 2020-04-23 | 2020-08-14 | 京东方科技集团股份有限公司 | Java application running method, device, medium and electronic equipment |
CN111538545B (en) * | 2020-04-23 | 2024-07-12 | 京东方科技集团股份有限公司 | Java application running method, java application running device, java application running medium and electronic equipment |
CN113407259A (en) * | 2021-07-13 | 2021-09-17 | 北京百度网讯科技有限公司 | Scene loading method, device, equipment and storage medium |
CN113407259B (en) * | 2021-07-13 | 2022-09-16 | 北京百度网讯科技有限公司 | Scene loading method, device, equipment and storage medium |
CN113992511A (en) * | 2021-10-19 | 2022-01-28 | 京东科技信息技术有限公司 | Cloud host creation method and device, electronic equipment and storage medium |
CN114816672A (en) * | 2022-05-06 | 2022-07-29 | 中国电信股份有限公司 | Virtual machine creation method and device, electronic equipment and storage medium |
CN115794316A (en) * | 2023-02-03 | 2023-03-14 | 青软创新科技集团股份有限公司 | Method, apparatus, medium, and program product for building a cloud computing experimental environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109933405A (en) | Virtual machine creation method and device, electronic equipment, storage medium | |
WO2020192306A1 (en) | Wireless router deployment method and apparatus, and storage medium and electronic device | |
US20210149737A1 (en) | Method for fast scheduling for balanced resource allocation in distributed and collaborative container platform environment | |
US10347542B2 (en) | Client-initiated leader election in distributed client-server systems | |
CN109783472A (en) | Moving method, device, computer equipment and the storage medium of table data | |
CN113377520A (en) | Resource scheduling method, device, equipment and storage medium | |
CN111694646A (en) | Resource scheduling method and device, electronic equipment and computer readable storage medium | |
CN113568860B (en) | Deep learning-based multi-machine cluster topology mapping method and device and program product | |
CN111552550A (en) | Task scheduling method, device and medium based on GPU (graphics processing Unit) resources | |
CN113850394B (en) | Federal learning method and device, electronic equipment and storage medium | |
CN114157701B (en) | Task testing method, device, equipment and storage medium | |
CN105144109A (en) | Distributed data center technology | |
CN111143039A (en) | Virtual machine scheduling method and device and computer storage medium | |
CN114911598A (en) | Task scheduling method, device, equipment and storage medium | |
CN111625949A (en) | Simulation engine system, simulation processing method, device and medium | |
CN108985556B (en) | Method, apparatus, equipment and the computer storage medium of flow scheduling | |
CN113419865A (en) | Cloud resource processing method, related device and computer program product | |
CN109697117A (en) | Terminal control method, device and computer readable storage medium | |
CN114579311B (en) | Method, device, equipment and storage medium for executing distributed computing task | |
CN115202580A (en) | Multipath equipment detection method, device, equipment and storage medium | |
CN113691403A (en) | Topological node configuration method, related device and computer program product | |
CN113760446A (en) | Resource scheduling method, device, equipment and medium | |
CN113656268B (en) | Performance test method and device for business service, electronic equipment and storage medium | |
CN115454647A (en) | Data processing method and device, equipment and medium | |
CN116382852A (en) | Micro-service deployment method and device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190625 |