CN105975329A - Creating method and device of virtual machine - Google Patents

Creating method and device of virtual machine Download PDF

Info

Publication number
CN105975329A
CN105975329A CN201610282565.2A CN201610282565A CN105975329A CN 105975329 A CN105975329 A CN 105975329A CN 201610282565 A CN201610282565 A CN 201610282565A CN 105975329 A CN105975329 A CN 105975329A
Authority
CN
China
Prior art keywords
virtual machine
network segment
demand
address
untapped
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
CN201610282565.2A
Other languages
Chinese (zh)
Other versions
CN105975329B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610282565.2A priority Critical patent/CN105975329B/en
Publication of CN105975329A publication Critical patent/CN105975329A/en
Application granted granted Critical
Publication of CN105975329B publication Critical patent/CN105975329B/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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • 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
    • 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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a creating method and device of a virtual machine. The method comprises the following steps: receiving a virtual machine creating demand, and obtaining a virtual machine creating parameter in the demand; according to the virtual machine creating parameter, determining an AZ (Availability Zone) which meets the demand, and available host machine information in the AZ; obtaining a network segment corresponding to the AZ, and determining an IP (Internet Protocol) address which is not used in the network segment corresponding to the AZ; and according to the AZ, the available host machine information in the AZ and the IP address which is not used in the network segmentation corresponding to the AZ, creating the virtual machine on the basis of the virtual machine creating demand. The technical scheme can obtain the available IP address without calling an IP address resolution interface, so that the available host machine in the AZ can be quickly and efficiently optimized, the virtual machine finishes being created on the host machine, and the use scene of the virtual machine is greatly expanded.

Description

The creation method of a kind of virtual machine and device
Technical field
The present invention relates to field of computer technology, be specifically related to creation method and the device of a kind of virtual machine.
Background technology
In current IT technology, by creating virtual machine on host, can carry out soft on a virtual machine The exploitation of part, test etc., saved resource effectively.And along with the development of cloud, technical staff By under cloud platform environment dispose multiple stage virtual machine so that this mode effectively.But Dispose multiple stage virtual machine under cloud platform environment and will relate to the assignment problem of IP address, need according to demand Name for virtual machine to be created and be its distribute IP address, set up corresponding relation between the two simultaneously. Therefore, in prior art before creating virtual machine, it is necessary to need to call corresponding interface and come according to waiting to create The virtual machine name resolving built is to the IP address distributed for it, but cloud platform can not carry under a lot of scenes For such interface, or such interface can not be called, thus cannot complete virtual according to demand The establishment of machine.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least partly Ground solves creation method and the device of the virtual machine of the problems referred to above.
According to one aspect of the present invention, it is provided that the creation method of a kind of virtual machine, including:
Sink virtual machine creates demand, and obtains the virtual machine creating parameter in described demand;
The range of applicability AZ and described AZ of this demand is met according to described virtual machine creating parameter determination In available host information;
Obtain the network segment corresponding to described AZ, and determine untapped IP ground in the network segment corresponding to described AZ Location;
According to the network segment that the available host information in described AZ, described AZ and described AZ are corresponding In untapped IP address, and based on described virtual machine creating demand create virtual machine.
Alternatively, the described range of applicability AZ meeting this demand according to described virtual machine creating parameter determination Farther include with the available host information in described AZ:
Described virtual machine creating parameter is sent to scheduler;
Receive the available place in the range of applicability AZ and described AZ that meet this demand that scheduler returns Host information.
Alternatively, described virtual machine creating parameter includes:
Mirror Info, host type and virtual machine quantity.
Alternatively, described determine that in the network segment corresponding to described AZ, untapped IP address farther includes:
Obtain the identification information of all IP addresses in the described network segment,
According to the virtual machine quantity of described identification information and required establishment, from the network segment that described AZ is corresponding The middle untapped IP address determining respective numbers.
Alternatively, corresponding for the described AZ of the described acquisition network segment farther includes:
According to the corresponding relation of AZ Yu the network segment, determine described range of applicability AZ pair meeting this demand The network segment answered.
Alternatively, AZ pre-sets with Internet resources according to physical resource with the corresponding relation of the network segment.
Alternatively, described method also includes:
If creating virtual machine success, then described IP is set in the identification information of described untapped IP address The state of address is for use.
According to another aspect of the present invention, it is provided that the establishment device of a kind of virtual machine, including:
Resource information acquiring unit, is suitable to sink virtual machine and creates demand, and obtain the void in described demand Plan machine creates parameter, meets the range of applicability AZ of this demand according to described virtual machine creating parameter determination With the available host information in described AZ;
IP allocation unit, is suitable to obtain the network segment corresponding to described AZ, and determines that described AZ is corresponding The network segment in untapped IP address;
Call unit, is suitable to according to the available host information in described AZ, described AZ and described Untapped IP address in the network segment that AZ is corresponding, and create virtual machine based on described virtual machine creating demand.
Alternatively, described resource information acquiring unit, be suitable to be sent to described virtual machine creating parameter adjust Degree device, receives can use in the range of applicability AZ and described AZ that meet this demand that scheduler returns Host information.
Alternatively, described virtual machine creating parameter includes:
Mirror Info, host type, virtual machine quantity.
Alternatively, described IP allocation unit, be suitable to obtain the mark of all IP addresses in the described network segment Knowledge information, according to the virtual machine quantity of described identification information and required establishment, corresponding from described AZ The network segment determines the untapped IP address of respective numbers.
Alternatively, described IP allocation unit, be suitable to the corresponding relation according to AZ Yu the network segment, determine The described network segment corresponding for range of applicability AZ meeting this demand.
Alternatively, AZ pre-sets with Internet resources according to physical resource with the corresponding relation of the network segment.
Alternatively, described IP allocation unit, it is further adapted for after creating virtual machine success, in institute State and the identification information of untapped IP address arranges the state of described IP address for use.
From the foregoing, technical scheme, carry according in the virtual machine creating demand received Virtual machine creating parameter, determine the available host information in AZ and AZ meeting this demand, enter One step obtains the network segment corresponding for AZ and determines untapped IP address in the network segment corresponding to AZ, finally depends on According to untapped IP address in the network segment that the available host information in AZ, AZ and AZ are corresponding, And create virtual machine based on virtual machine creating demand.This technical scheme can need not call IP address resolution Interface just obtain the IP address that can use, therefore can the most preferably go out host available in AZ Machine has also created virtual machine on host, is greatly expanded the use scene of virtual machine.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention Art means, and can being practiced according to the content of description, and in order to allow, the present invention's is above and other Objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit for this Field those of ordinary skill will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical parts.In the accompanying drawings:
Fig. 1 shows the flow process signal of the creation method of a kind of virtual machine Figure;
Fig. 2 shows the structural representation creating device of a kind of virtual machine Figure.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows the flow chart of the creation method of a kind of virtual machine, As it is shown in figure 1, the method includes:
Step S110, sink virtual machine creates demand, and obtains the virtual machine creating parameter in demand.
Specifically, virtual machine creating parameter includes Mirror Info, host type and virtual machine quantity. Wherein, Mirror Info is the mirror image of virtual machine, directly can create according to this Mirror Info on host Virtual machine.Host type identification creates the environment required for virtual machine, and (such as CPU core number, internal memory is big Little, disk size, and Framework, JAVA environment etc.), i.e. define the ring to host Border requirement.
Step S120, meets can use in AZ and AZ of this demand according to virtual machine creating parameter determination Host information.
In cloud platform, often each host is pressed owing to machine quantity is more AZ (availability zone, Range of applicability) it is managed.In the case of machine quantity is huge, also can be according to Region (region Machine room) order of AZ AG (aggregate group, host groups), carry out multi-layer from top to bottom Management, has multiple AZ, has multiple AG, have multiple stage in each AG in each AZ in the most each machine room Host.But generally, the network segment is allocated according to AZ, it is therefore desirable to AZ be Index, determines the available host information in AZ.In other embodiments, if the network segment is according to AG Or machine room is allocated, then it needs to be determined that available host information in machine room/AG.
Step S130, obtains the network segment corresponding to AZ, and determines untapped IP in the network segment corresponding to AZ Address.Untapped IP address in the network segment is distributed, in order to avoid causing address conflict for virtual machine.
Step S140, according in the network segment that the available host information in AZ, AZ and AZ are corresponding Untapped IP address, and create virtual machine based on virtual machine creating demand.
Visible, the method shown in Fig. 1, according to the virtual machine carried in the virtual machine creating demand received Create parameter, determine the available host information in AZ and AZ meeting this demand, obtain further The network segment that AZ is corresponding also determines untapped IP address in the network segment corresponding to AZ, last according to AZ, Untapped IP address in available host information in AZ and the network segment corresponding to AZ, and based on Virtual machine creating demand creates virtual machine.This technical scheme can need not call the interface of IP address resolution Just obtain the IP address that can use, therefore can the most preferably go out in AZ available host and Create virtual machine on host, be greatly expanded the use scene of virtual machine.
In one embodiment of the invention, in the method shown in Fig. 1, true according to virtual machine creating parameter Surely the available host information met in AZ and AZ of this demand farther includes: by virtual machine creating Parameter is sent to scheduler;Receive the available place in AZ and AZ meeting this demand that scheduler returns Host information.
The available host in AZ and AZ meeting demand is obtained in the present embodiment by scheduler Information, so can dispatch the host in all AZ and AZ by scheduler, therefrom choose and meet The AZ of demand and host are the most more efficiently.
In one embodiment of the invention, in said method, determine in the network segment corresponding to AZ and do not use IP address farther include: obtain the identification information of all IP addresses in the network segment, according to identification information And the virtual machine quantity of required establishment, from the network segment that AZ is corresponding, determine the untapped of respective numbers IP address.
Such as, the network segment corresponding for AZ-A100 is 192.168.1.100-192.168.1.120, wherein 192.168.1.101 with the identification information of 192.168.1.102 for use, the mark letter of remaining IP address Breath is not for use.As a example by virtual machine quantity in virtual machine creating parameter is 5, then can be by IP address 192.168.1.103,192.168.1.104,192.168.1.105,192.168.1.106 and 192.168.1.107 Distribute to this 5 virtual machines to be created.It should be noted that when there being multiple IP address can use, can Being that each virtual machine is allocated by sequence of addresses or the mode such as random.
In one embodiment of the invention, in said method, obtain the network segment corresponding for AZ and wrap further Include: according to the corresponding relation of AZ Yu the network segment, determine the network segment corresponding for AZ meeting this demand.Specifically Ground, can set up the data base of a storage AZ and network segment corresponding relation, true by calling this data base Surely the network segment corresponding to the AZ of this demand is met.Wherein AZ is to provide according to physics with the corresponding relation of the network segment Source pre-sets with Internet resources.
In one embodiment of the invention, in said method, method also includes: become if creating virtual machine Merit, then arrange the state of IP address for use in the identification information of untapped IP address.Specifically Ground, can change in data base, the attribute of the IP address in the network segment that each AZ is corresponding.
Fig. 2 shows the structural representation creating device of a kind of virtual machine Figure, as in figure 2 it is shown, the establishment device 200 of virtual machine includes:
Resource information acquiring unit 210, is suitable to sink virtual machine and creates demand, and obtain the void in demand Plan machine creates parameter, meets can use in AZ and AZ of this demand according to virtual machine creating parameter determination Host information.
Specifically, virtual machine creating parameter includes Mirror Info, host type and virtual machine quantity. Wherein, Mirror Info is the mirror image of virtual machine, directly can create according to this Mirror Info on host Virtual machine.Host type identification creates the environment required for virtual machine, and (such as CPU core number, internal memory is big Little, disk size, and Framework, JAVA environment etc.), i.e. define the ring to host Border requirement.In cloud platform, often each host is managed by AZ owing to machine quantity is more. In the case of machine quantity is huge, also can according to the order of Region (region machine room) AZ AG, Carry out multi-layer management from top to bottom, the most each machine room have multiple AZ, each AZ has multiple AG, Each AG has multiple stage host.But generally, the network segment is allocated according to AZ, It is thus desirable to AZ for index, determine the available host information in AZ.In other embodiments, If the network segment is allocated according to AG or machine room, then it needs to be determined that available host in machine room/AG Machine information.
IP allocation unit 220, is suitable to obtain the network segment corresponding to AZ, and determines net corresponding to AZ Untapped IP address in Duan.Untapped IP address in the network segment is distributed, in order to avoid causing ground for virtual machine Conflict in location.
Call unit 230, is suitable to according to the available host information in AZ, AZ and AZ corresponding The network segment in untapped IP address, and based on virtual machine creating demand create virtual machine.
Visible, the device shown in Fig. 2, cooperating by each unit, according to the virtual machine received The virtual machine creating parameter carried in establishment demand, determines can use in AZ and AZ meeting this demand Host information, obtains the network segment corresponding for AZ further and determines in the network segment corresponding to AZ untapped IP address, in the last network segment corresponding according to the available host information in AZ, AZ and AZ not The IP address used, and create virtual machine based on virtual machine creating demand.This technical scheme can need not Call the IP address that the interface of IP address resolution just obtains can use, therefore can the most preferably go out Host available in AZ has also created virtual machine on host, is greatly expanded making of virtual machine Use scene.
In one embodiment of the invention, in the device shown in Fig. 2, resource information acquiring unit, suitable In virtual machine creating parameter being sent to scheduler, receive scheduler return the AZ meeting this demand and Available host information in AZ.
The available host in AZ and AZ meeting demand is obtained in the present embodiment by scheduler Information, so can dispatch the host in all AZ and AZ by scheduler, therefrom choose and meet The AZ of demand and host are the most more efficiently.
In one embodiment of the invention, in said apparatus, IP allocation unit, be suitable to obtain net The identification information of all IP addresses in Duan, foundation identification information and the virtual machine quantity of required establishment, from The network segment that AZ is corresponding determines the untapped IP address of respective numbers.
Such as, the network segment corresponding for AZ-A100 is 192.168.1.100-192.168.1.120, wherein 192.168.1.101 with the identification information of 192.168.1.102 for use, the mark letter of remaining IP address Breath is not for use.As a example by virtual machine quantity in virtual machine creating parameter is 5, then can be by IP address 192.168.1.103,192.168.1.104,192.168.1.105,192.168.1.106 and 192.168.1.107 Distribute to this 5 virtual machines to be created.It should be noted that when there being multiple IP address can use, can Being that each virtual machine is allocated by sequence of addresses or the mode such as random.
In one embodiment of the invention, in said apparatus, IP allocation unit, be suitable to basis AZ and the corresponding relation of the network segment, determine the network segment corresponding for AZ meeting this demand.Specifically, Ke Yijian The data base of a vertical storage AZ and network segment corresponding relation, determines meet this need by calling this data base The network segment corresponding for AZ asked.Wherein AZ is to provide with network according to physical resource with the corresponding relation of the network segment Source pre-sets.
In one embodiment of the invention, in said apparatus, IP allocation unit, it is further adapted for After creating virtual machine success, the identification information of untapped IP address arranges the state of IP address For using.Specifically, can change in data base, the IP address in the network segment that each AZ is corresponding Attribute.
In sum, technical scheme, according to carry in the virtual machine creating demand received Virtual machine creating parameter, determines the available host information in AZ and AZ meeting this demand, enters one Step obtains the network segment corresponding for AZ and determines untapped IP address, last foundation in the network segment corresponding to AZ Untapped IP address in available host information in AZ, AZ and the network segment corresponding to AZ, and Virtual machine is created based on virtual machine creating demand.This technical scheme can need not call IP address resolution Interface just obtains the IP address that can use, and therefore can the most preferably go out host available in AZ And on host, created virtual machine, it is greatly expanded the use scene of virtual machine.
It should be understood that
Algorithm and display be not solid with any certain computer, virtual bench or miscellaneous equipment provided herein Have relevant.Various fexible units can also be used together with based on teaching in this.As described above, Construct the structure required by this kind of device to be apparent from.Additionally, the present invention is also not for any specific Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, And the description done language-specific above is the preferred forms in order to disclose the present invention.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this Inventive embodiment can be put into practice in the case of not having these details.In some instances, not It is shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect one Or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes It is grouped together in single embodiment, figure or descriptions thereof.But, should be by the disclosure Method be construed to reflect an intention that i.e. the present invention for required protection require ratio in each claim The middle more feature of feature be expressly recited.More precisely, as the following claims reflect As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows Claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each right Requirement itself is all as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit excludes each other, can use any combination that (this specification is included companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment Close and mean to be within the scope of the present invention and formed different embodiments.Such as, in following power In profit claim, one of arbitrarily can mode making in any combination of embodiment required for protection With.
The all parts embodiment of the present invention can realize with hardware, or to process at one or more The software module run on device realizes, or realizes with combinations thereof.Those skilled in the art should Understand, microprocessor or digital signal processor (DSP) can be used in practice to realize basis The some or all merits of the some or all parts created in device of the virtual machine of the embodiment of the present invention Energy.The present invention is also implemented as part or all set for performing method as described herein Standby or device program (such as, computer program and computer program).Such realize this Bright program can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, Or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, And those skilled in the art can design replacement in fact without departing from the scope of the appended claims Execute example.In the claims, should not will be located in any reference marks between bracket to be configured to right is wanted The restriction asked.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.It is positioned at unit Word "a" or "an" before part does not excludes the presence of multiple such element.The present invention can be by means of Include the hardware of some different elements and realize by means of properly programmed computer.Listing If in the unit claim of equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.Can be by this A little word explanations are title.
Embodiment of the invention discloses that: A1, the creation method of a kind of virtual machine, including:
Sink virtual machine creates demand, and obtains the virtual machine creating parameter in described demand;
The range of applicability AZ and described AZ of this demand is met according to described virtual machine creating parameter determination In available host information;
Obtain the network segment corresponding to described AZ, and determine untapped IP ground in the network segment corresponding to described AZ Location;
According to the network segment that the available host information in described AZ, described AZ and described AZ are corresponding In untapped IP address, and based on described virtual machine creating demand create virtual machine.
A2, method as described in A1, wherein, described meet according to described virtual machine creating parameter determination Available host information in the range of applicability AZ and described AZ of this demand farther includes:
Described virtual machine creating parameter is sent to scheduler;
Receive the available place in the range of applicability AZ and described AZ that meet this demand that scheduler returns Host information.
A3, method as described in A1 or A2, wherein, described virtual machine creating parameter includes:
Mirror Info, host type and virtual machine quantity.
A4, method as according to any one of A1-A3, wherein, described determine net corresponding to described AZ In Duan, untapped IP address farther includes:
Obtain the identification information of all IP addresses in the described network segment,
According to the virtual machine quantity of described identification information and required establishment, from the network segment that described AZ is corresponding The middle untapped IP address determining respective numbers.
A5, method as according to any one of A1-A4, wherein, the net that the described AZ of described acquisition is corresponding Section farther includes:
According to the corresponding relation of AZ Yu the network segment, determine described range of applicability AZ pair meeting this demand The network segment answered.
A6, method as according to any one of A1-A5, wherein, AZ with the corresponding relation of the network segment is Pre-set according to physical resource and Internet resources.
A7, method as according to any one of A1-A6, wherein, described method also includes:
If creating virtual machine success, then described IP is set in the identification information of described untapped IP address The state of address is for use.
Embodiments of the invention are it is disclosed that B8, the establishment device of a kind of virtual machine, wherein, and this device Including:
Resource information acquiring unit, is suitable to sink virtual machine and creates demand, and obtain the void in described demand Plan machine creates parameter, meets the range of applicability AZ of this demand according to described virtual machine creating parameter determination With the available host information in described AZ;
IP allocation unit, is suitable to obtain the network segment corresponding to described AZ, and determines that described AZ is corresponding The network segment in untapped IP address;
Call unit, is suitable to according to the available host information in described AZ, described AZ and described Untapped IP address in the network segment that AZ is corresponding, and create virtual machine based on described virtual machine creating demand.
B9, device as described in B8, wherein,
Described resource information acquiring unit, is suitable to described virtual machine creating parameter is sent to scheduler, connects Receive the available host letter in the range of applicability AZ and described AZ that meet this demand that scheduler returns Breath.
B10, device as described in B8 or B9, wherein, described virtual machine creating parameter includes:
Mirror Info, host type, virtual machine quantity.
B11, device as according to any one of B8-B10, wherein,
Described IP allocation unit, is suitable to obtain the identification information of all IP addresses in the described network segment, According to the virtual machine quantity of described identification information and required establishment, from the network segment that described AZ is corresponding really Determine the untapped IP address of respective numbers.
B12, device as according to any one of B8-B11, wherein,
Described IP allocation unit, is suitable to the corresponding relation according to AZ Yu the network segment, determines described satisfied The network segment corresponding for range of applicability AZ of this demand.
B13, device as according to any one of B8-B12, wherein,
AZ pre-sets with Internet resources according to physical resource with the corresponding relation of the network segment.
B14, device as according to any one of B8-B13, wherein,
Described IP allocation unit, is further adapted for, after creating virtual machine success, not using described IP address identification information in the state of described IP address is set for use.

Claims (10)

1. a creation method for virtual machine, including:
Sink virtual machine creates demand, and obtains the virtual machine creating parameter in described demand;
The range of applicability AZ and described AZ of this demand is met according to described virtual machine creating parameter determination In available host information;
Obtain the network segment corresponding to described AZ, and determine untapped IP ground in the network segment corresponding to described AZ Location;
According to the network segment that the available host information in described AZ, described AZ and described AZ are corresponding In untapped IP address, and based on described virtual machine creating demand create virtual machine.
The most described according to described virtual machine creating parameter determination The available host information met in the range of applicability AZ and described AZ of this demand farther includes:
Described virtual machine creating parameter is sent to scheduler;
Receive the available place in the range of applicability AZ and described AZ that meet this demand that scheduler returns Host information.
3. method as claimed in claim 1 or 2, wherein, described virtual machine creating parameter includes:
Mirror Info, host type and virtual machine quantity.
4. the method as according to any one of claim 1-3, wherein, described determines that described AZ is corresponding The network segment in untapped IP address farther include:
Obtain the identification information of all IP addresses in the described network segment,
According to the virtual machine quantity of described identification information and required establishment, from the network segment that described AZ is corresponding The middle untapped IP address determining respective numbers.
5. the method as according to any one of claim 1-4, wherein, the described AZ of described acquisition is corresponding The network segment farther include:
According to the corresponding relation of AZ Yu the network segment, determine described range of applicability AZ pair meeting this demand The network segment answered.
6. the method as according to any one of claim 1-5, wherein, AZ and the corresponding relation of the network segment Pre-set with Internet resources according to physical resource.
7. the method as according to any one of claim 1-6, wherein, described method also includes:
If creating virtual machine success, then described IP is set in the identification information of described untapped IP address The state of address is for use.
8. an establishment device for virtual machine, wherein, this device includes:
Resource information acquiring unit, is suitable to sink virtual machine and creates demand, and obtain the void in described demand Plan machine creates parameter, meets the range of applicability AZ of this demand according to described virtual machine creating parameter determination With the available host information in described AZ;
IP allocation unit, is suitable to obtain the network segment corresponding to described AZ, and determines that described AZ is corresponding The network segment in untapped IP address;
Call unit, is suitable to according to the available host information in described AZ, described AZ and described Untapped IP address in the network segment that AZ is corresponding, and create virtual machine based on described virtual machine creating demand.
9. device as claimed in claim 8, wherein,
Described resource information acquiring unit, is suitable to described virtual machine creating parameter is sent to scheduler, connects Receive the available host letter in the range of applicability AZ and described AZ that meet this demand that scheduler returns Breath.
10. device as claimed in claim 8 or 9, wherein, described virtual machine creating parameter includes:
Mirror Info, host type, virtual machine quantity.
CN201610282565.2A 2016-04-29 2016-04-29 A kind of creation method and device of virtual machine Active CN105975329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610282565.2A CN105975329B (en) 2016-04-29 2016-04-29 A kind of creation method and device of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610282565.2A CN105975329B (en) 2016-04-29 2016-04-29 A kind of creation method and device of virtual machine

Publications (2)

Publication Number Publication Date
CN105975329A true CN105975329A (en) 2016-09-28
CN105975329B CN105975329B (en) 2019-05-31

Family

ID=56993582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610282565.2A Active CN105975329B (en) 2016-04-29 2016-04-29 A kind of creation method and device of virtual machine

Country Status (1)

Country Link
CN (1) CN105975329B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970830A (en) * 2017-03-22 2017-07-21 佛山科学技术学院 The storage controlling method and virtual machine of a kind of distributed virtual machine
CN107145305A (en) * 2017-03-22 2017-09-08 佛山科学技术学院 The application method and virtual machine of a kind of distributed physical disk
CN107168646A (en) * 2017-03-22 2017-09-15 佛山科学技术学院 A kind of Distributed Storage control method and server
CN108170508A (en) * 2017-12-12 2018-06-15 顺丰科技有限公司 Batch creates method, apparatus, equipment and its storage medium of virtual machine

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885831A (en) * 2012-12-19 2014-06-25 中国电信股份有限公司 Host machine selecting method and device of virtual machine
US20140189031A1 (en) * 2012-12-27 2014-07-03 Hon Hai Precision Industry Co., Ltd. Computing device and method of creating virtual machines in hosts
CN103970581A (en) * 2013-01-24 2014-08-06 国际商业机器公司 Method and equipment creating virtual resource package
CN104793982A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Method and device for establishing virtual machine
US9104460B2 (en) * 2011-05-31 2015-08-11 Red Hat, Inc. Inter-cloud live migration of virtualization systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9104460B2 (en) * 2011-05-31 2015-08-11 Red Hat, Inc. Inter-cloud live migration of virtualization systems
CN103885831A (en) * 2012-12-19 2014-06-25 中国电信股份有限公司 Host machine selecting method and device of virtual machine
US20140189031A1 (en) * 2012-12-27 2014-07-03 Hon Hai Precision Industry Co., Ltd. Computing device and method of creating virtual machines in hosts
CN103970581A (en) * 2013-01-24 2014-08-06 国际商业机器公司 Method and equipment creating virtual resource package
CN104793982A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Method and device for establishing virtual machine

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970830A (en) * 2017-03-22 2017-07-21 佛山科学技术学院 The storage controlling method and virtual machine of a kind of distributed virtual machine
CN107145305A (en) * 2017-03-22 2017-09-08 佛山科学技术学院 The application method and virtual machine of a kind of distributed physical disk
CN107168646A (en) * 2017-03-22 2017-09-15 佛山科学技术学院 A kind of Distributed Storage control method and server
CN107168646B (en) * 2017-03-22 2020-07-28 佛山科学技术学院 Distributed data storage control method and server
CN107145305B (en) * 2017-03-22 2020-07-28 佛山科学技术学院 Use method of distributed physical disk and virtual machine
CN106970830B (en) * 2017-03-22 2020-07-28 佛山科学技术学院 Storage control method of distributed virtual machine and virtual machine
CN108170508A (en) * 2017-12-12 2018-06-15 顺丰科技有限公司 Batch creates method, apparatus, equipment and its storage medium of virtual machine

Also Published As

Publication number Publication date
CN105975329B (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN108614726B (en) Virtual machine creation method and device
JP2022023772A (en) Method for sharing gpu, device, electronic device, computer readable storage medium and computer program
US20050283759A1 (en) Method and system for managing application deployment
CN105975329A (en) Creating method and device of virtual machine
CN109451088A (en) A kind of data access method and device
CN105490910B (en) Network communication method and client
CN106484544B (en) Method and device for virtualizing Internet of things equipment
CN106713028A (en) Service degradation method and apparatus, and distributed task scheduling system
CN114244717A (en) Configuration method and device of virtual network card resources, computer equipment and medium
CN110262933A (en) Test method, test device and storage medium
CN113302901A (en) Method and system for cloud application and service integration using pattern-based discovery
JP2022548579A (en) Correspondence between external operations on containers and mutation events
CN103647775A (en) Method and apparatus for registration in webpage
WO2016206519A1 (en) Ip address allocation method and device
CN107038063A (en) Start the method and device that application is attended to anything else on the terminal device
CN106682198B (en) Method and device for realizing automatic database deployment
CN114500549A (en) Method, apparatus, and medium to deploy k8s hosting cluster for users in public cloud
CN108897858A (en) The appraisal procedure and device, electronic equipment of distributed type assemblies index fragment
CN110609707B (en) Online data processing system generation method, device and equipment
CN111813415A (en) Gray level shunting method and device, electronic equipment and computer readable storage medium
CN113051245A (en) Method, device and system for migrating data
CN106951236B (en) Plug-in development method and device
CN109614230A (en) Resource virtualizing method, apparatus and electronic equipment
CN106557310B (en) Remote desktop management method and system
CN113377652A (en) Test data generation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20220801

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right