CN106878204A - The creation method and device of a kind of virtual machine - Google Patents

The creation method and device of a kind of virtual machine Download PDF

Info

Publication number
CN106878204A
CN106878204A CN201611193692.1A CN201611193692A CN106878204A CN 106878204 A CN106878204 A CN 106878204A CN 201611193692 A CN201611193692 A CN 201611193692A CN 106878204 A CN106878204 A CN 106878204A
Authority
CN
China
Prior art keywords
virtual machine
virtual
physical network
network
visited
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
CN201611193692.1A
Other languages
Chinese (zh)
Other versions
CN106878204B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201611193692.1A priority Critical patent/CN106878204B/en
Publication of CN106878204A publication Critical patent/CN106878204A/en
Application granted granted Critical
Publication of CN106878204B publication Critical patent/CN106878204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0272Virtual private networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
    • 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
    • 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/45587Isolation or security of virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a kind of creation method and device of virtual machine, and the method can be applied to cloud management platform, and the method is:The first request for creating virtual machine is received, first request includes the related mark of the physical network to be visited to virtual machine;It is determined that the corresponding virtual switch of mark that the physical network to be visited to virtual machine is related;Indicate virtualization physical host to create virtual machine, and indicate virtualization physical host to set up on the virtual switch determined the Microsoft Loopback Adapter of virtual machine when virtual machine is created.The method is by mapping relations in advance between planning virtual switch and physical network, so as to when virtual machine is created, can be according to above-mentioned mapping relations and virtual machine physical network to be visited, the Microsoft Loopback Adapter of virtual machine is deployed on the corresponding virtual switch of virtual machine physical network to be visited, the purpose of the physical network outlet that virtual machine selection is specified is embodied as.

Description

The creation method and device of a kind of virtual machine
Technical field
The application is related to the communications field, more particularly to a kind of virtual machine (Virtual Machine, VM) creation method and Device.
Background technology
The cloud management platform that cloud computing technology is expedited the emergence of can be user's automatic deployment virtual machine, manage the Life Cycle of virtual machine Phase, and the virtual network of isolation is provided for virtual machine.
In private clound, user is often desirable to the virtual machine of oneself and is able to access that the physical network that user specifies.But at present Cloud management platform can't realize this point.
The content of the invention
In view of this, the application provides a kind of creation method and device of virtual machine, is used to ensure that virtual machine is able to access that The physical network specified.
Specifically, the application is achieved by the following technical solution:
The application first aspect, there is provided a kind of creation method of virtual machine, methods described is applied to cloud management platform, bag Include:
The first request for creating virtual machine is received, first request includes the physical network phase to be visited with virtual machine The mark of pass;
It is determined that the corresponding virtual switch of mark that the physical network to be visited to virtual machine is related;
Instruction virtualizes physical host and creates virtual machine, and indicates virtualization physical host when virtual machine is created by virtually The Microsoft Loopback Adapter of machine is set up on the virtual switch determined.
A kind of the application second aspect, there is provided creating device of virtual machine, described device can apply to cloud management and put down In platform, with the function of realizing the above method, the function can be realized by hardware, it is also possible to be performed by hardware corresponding Software is realized.The hardware or software include one or more modules corresponding with above-mentioned functions or unit.
In a kind of possible implementation, described device includes:
Receiving unit, the first request of virtual machine is created for receiving, and first request includes waiting to visit with virtual machine The mark of the physical network correlation asked;
Determining unit, the virtual switch corresponding for determining the related mark of the physical network to be visited to virtual machine Machine;
Virtual machine creating unit, for indicating virtualization physical host to create virtual machine, and indicates to virtualize physical host The Microsoft Loopback Adapter of virtual machine is set up on the virtual switch determined when virtual machine is created.
In alternatively possible implementation, described device includes communication interface, processor, memory and bus, described It is connected with each other by bus between communication interface, the processor and the memory;The processor is deposited by described in reading The logical order stored in reservoir, performs the creation method of the virtual machine described in the application first aspect.
The scheme provided using the application, by mapping relations in advance between planning virtual switch and physical network, So that when virtual machine is created, can be according to above-mentioned mapping relations and virtual machine physical network to be visited, by the void of virtual machine Intend network interface card to be deployed on the corresponding virtual switch of virtual machine physical network to be visited, be embodied as the thing that virtual machine selection is specified Manage the purpose of network egress.
Brief description of the drawings
Fig. 1 is showing for the system architecture that a kind of virtual machine creation method shown in the exemplary embodiment of the application one is applied It is intended to;
Fig. 2 is a kind of flow chart of the virtual machine creation method shown in the exemplary embodiment of the application one;
Fig. 3 is a kind of schematic diagram of the deploying virtual machine mode shown in the exemplary embodiment of the application one;
Fig. 4 is a kind of functional block diagram of the creating device of the virtual machine shown in the exemplary embodiment of the application one;
Fig. 5 is a kind of hardware structure figure of the creating device of the virtual machine shown in the exemplary embodiment of the application one.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application. " one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
Hereinafter, the part term in the application is explained.
Virtual network:Refer between virtualization physical host inside or virtualization physical host by virtual interchanger and void The port of plan, the double layer network and three-layer network realized.Isolation between virtual machine and mutually can be realized by virtual network Even, it is interconnection between the virtual machine for accessing same virtual network, is isolation between the virtual machine for accessing different virtual networks.
Physical network:Be by various physical equipments (such as main frame, router, interchanger) and medium (such as optical cable, cable, Twisted-pair feeder etc.) couple together the network to be formed.
Technical scheme is illustrated with reference to Figure of description and each embodiment.
It is uncertain which physical network is the business of current virtual machine is exported on, therefore user cannot determine oneself The physical network that virtual machine can be accessed.
In order to solve the above problems, present applicant proposes the creation method and device of a kind of virtual machine, by planning in advance Mapping relations between virtual switch and physical network, so as to when virtual machine is created, can according to above-mentioned mapping relations and Virtual machine physical network to be visited, the corresponding void of virtual machine physical network to be visited is deployed in by the Microsoft Loopback Adapter of virtual machine Intend on interchanger, be embodied as the purpose of the physical network outlet that virtual machine selection is specified.
The system architecture that the method that the application is provided is applied is described below by Fig. 1:
Referring to Fig. 1, a kind of system architecture diagram that Fig. 1 is provided for the application, the system architecture includes cloud management platform 11 With virtualization physical host 12, by managing Network Communication between cloud management platform 11 and virtualization physical host 12.
Cloud management platform 11, can be described as cloud operating system again.Cloud management platform 11 can be received by external interface and created The request of virtual machine, and the parameters for creating virtual machine needs are received by external interface;The external interface can be net The interface of page (web) interface, Command Line Interface, man-machine interface or other forms.Cloud management platform 11 can be by managing net The parameter for creating virtual machine and needing is sent to virtualization physical host 12, virtualization physical host 12 is indicated according to these parameters Create virtual machine.Additionally, cloud management platform 11 can be also used for managing the life cycle of virtual machine, for virtual machine provides virtual net Network etc..In the application, the related mark of the physical network to be visited to virtual machine is included in the parameter for creating virtual machine needs. There is the mapping between virtual switch (vswitch) and physical network correlated identities to close due to being safeguarded in advance on cloud management platform 11 System, so that cloud management platform 11 can be indicated according to virtual machine physical network correlated identities to be visited and above-mentioned mapping relations Virtualization physical host 12 determines for the Microsoft Loopback Adapter of virtual machine which virtual switch be deployed in when virtual machine is created On.
Virtualization software (i.e. hypervisor) is run on virtualization physical host 12, hypervisor can be according to cloud pipe The instruction of platform 11 creates virtual machine on virtualization physical host 12.Virtualization physical host 12 is also integrated with virtual switch Machine function, different virtual switch is connected on the different physical network cards that virtualization physical host 12 includes, by physical network card It is connected to different physical network areas.In the application, hypervisor can also be flat according to cloud management when virtual machine is created Build in the Microsoft Loopback Adapter of virtual machine on specific virtual switch by the instruction of platform 11, so as to be embodied as what virtual machine selection was specified The function of physical network outlet.
Below based on the system shown in Fig. 1, the creation method of the virtual machine of the application is illustrated.It is that the application is carried referring to Fig. 2 The method flow diagram of confession, the method is applied to cloud management platform, and the flow may include following steps:
Step 201:Cloud management platform receives the first request for creating virtual machine, and first request includes and virtual machine The related mark of physical network to be visited.
Optionally, cloud management platform can by external interface, such as web interface, Command Line Interface, man-machine interface or its Interface of its form etc., receives the request for creating virtual machine.
Step 202:Cloud management platform determine physical network to be visited to virtual machine it is related identify it is corresponding virtual Interchanger.
Step 203:Cloud management platform indicates virtualization physical host to create virtual machine, and indicates virtualization physical host to exist The Microsoft Loopback Adapter of virtual machine is set up on the virtual switch determined when creating virtual machine.
The application virtualizes physical host when virtual machine is created, and is being specified except the Microsoft Loopback Adapter of virtual machine is set up Virtual machine interchanger on outside, remaining operation substantially with the prior art create virtual machine operation it is identical, the application does not make Describe in detail.
In an optional embodiment, the process of the corresponding virtual switch of determination described by above-mentioned steps 202 can To realize in the following way:
The mapping relations having between physical network title and virtual switch, this mapping are safeguarded on cloud management platform in advance The example ginseng of relation is shown in Table 1.
Table 1
Physical network title vswitch
E-gov Network vswitch1
Internet vswitch2
The implication of each field is as follows in table 1:
Physical network title:For identifying physical network.The name that can be readily appreciated that for user, such as physical network Title can be used for describing the purposes of this physical network, such as " E-gov Network " enumerated in table 1 is for characterizing Physical Network The purposes of network.
In practical application, physical network title can be also used for identifying the different Intranets under a physical network.For example, can Enterprises ' Office LAN is divided into multiple Intranets with according to the setting of department, accordingly, physical network title it is optional Value can have " research and development 1 ", " research and development 2 ", " experimental network ", " Office Network ", " financial net " etc..
vswitch:Title for describing the virtual switch that physical network is used on virtualization physical host.With table As a example by 1, the entitled vswitch1 of the virtual switch that E-gov Network is used, the virtual switch of Internet use it is entitled vswitch2。
From table 1, there are one-to-one mapping relations between physical network title and virtual switch.
Based on this, in step 201, in the first request of the establishment virtual machine that cloud management platform is received it is included with it is virtual The related mark of machine physical network to be visited, can be the title of virtual machine physical network to be visited.
Specifically, cloud management platform, can be by " physical network title " when the trigger command for creating virtual machine is received The selectable value of field is presented, for selection.Selected physical network title will be carried at and create the first of virtual machine Cloud management platform is sent in request.
So as to, in step 202, cloud management platform can according to the physical network title that pre-sets and virtual switch it Between mapping relations, it is determined that virtual switch corresponding with the described first physical network title for including of request.
In another optional embodiment, the process of the corresponding virtual switch of determination described by above-mentioned steps 202 Can also realize in the following way:
Safeguard there is physical network title, physical network identifier, available domain three and virtual friendship on cloud management platform in advance Mapping relations between changing planes, the example ginseng of this mapping relations is shown in Table 2.
Table 2
The implication of physical network title in table 2 and vswitch the two fields is identical with table 1, does not repeat.
The implication of remaining field is as follows:
Physical network identifier:It is equally used for identifying physical network.Difference with " physical network title " is, Physical Network Network identifier is the character string that cloud management platform can be recognized.
Available domain:Establishment position for indicating virtual machine.By taking table 2 as an example, the virtual machine of E-gov Network to be visited needs wound It build on the server that available domain zone1 or zone2 include.
From table 2, physical network title is one-to-one with physical network identifier, and is identified according to physical network Symbol (or physical network title) and available domain can uniquely determine out a virtual switch.
Based on this, before the first request for creating virtual machine is received, cloud management platform is receiving establishment virtual network Trigger command when, the selectable value of " physical network title " field can be presented, it is for selection.Selected Physical Network Network title is sent to cloud management platform in being carried at the second request for create virtual network.
Cloud management platform receives the second request for creating virtual network, and including virtual network in second request waits to tie up The title of fixed physical network.The second physical network title that includes of request, in having indicated this virtual network to be created The title of physical network that can access of virtual machine.
Cloud management platform according to the mapping relations between the physical network title and physical network identifier for pre-setting, really Fixed physical network identifier corresponding with the second request of above-mentioned establishment virtual network includes physical network title, Ran Houchuan Virtual network is built, and the physical network identifier that will be determined when virtual network is created is added to the physical network of virtual network In (physical network) attribute.By taking table 2 as an example, when the physical network that the second request includes is entitled " internet " When, corresponding physical network identifier " Internet " need to be added to virtual network to be created by cloud management platform In Physical network attributes.
" physical network " attribute mentioned here is the existing attribute of virtual network.The present embodiment by means of this One attribute is used for transmitting physical network identifier.
The application cloud management platform create virtual network when, except physical network identifier is added into virtual network Physical network attribute in outside, remaining operation substantially with the prior art create virtual network operation it is identical, the application is not It is described further.
Subsequently, cloud management platform receive create virtual machine trigger command when, the virtual network that will can have been created Title and the selectable value of " available domain " field presented, it is for selection.Selected virtual network title and available domain To be carried at create virtual machine first request in be sent to cloud management platform.
So as to, in step 201, included and virtual machine in the first request of the establishment virtual machine that cloud management platform is received The related mark of physical network to be visited, is the title of virtual machine virtual network to be visited and the available domain of virtual machine.
Accordingly, in step 202, cloud management platform determines the virtual network title pair included with the described first request first The virtual network answered, and physical network identifier is read from the physical network attribute of the virtual network for determining;Then, according to pre- Physical network identifier, the mapping relations between both available domains and virtual switch for first setting, it is determined that with the thing for reading out The corresponding virtual switch of available domain that reason network identifier and first request include.
It should be noted that in addition to the above-mentioned two ways enumerated, may also take on other manner to determine corresponding void Intend interchanger.For example, the related mark of the physical network to be visited to virtual machine that includes of the first request can be virtual machine The title of physical network to be visited and the available domain of virtual machine, cloud management platform can be according to the physical network names for pre-setting Title, the mapping relations between both available domains and virtual switch, determine corresponding virtual switch.Therefore, it is above-mentioned to enumerate Two kinds of restrictions of the mode and not paired enough the application for determining corresponding virtual switch.
After corresponding virtual switch is determined, the title of the virtual switch that cloud management platform will can be determined As one of attribute of virtual machine to be created, virtualization physical host is passed to;By on virtualization physical host Hypervisor obtains out the title of virtual machine virtual switch to be bound from the attribute of virtual machine, by the virtual of virtual machine Network interface card is built on corresponding virtual switch.
The physical network card for going to physical network is bound in advance due to virtual switch, the report for subsequently being sent from the virtual machine Text is reached by the virtual switch where reaching the Microsoft Loopback Adapter by the Microsoft Loopback Adapter of the virtual machine, then by virtual switch Bound physical network card, reaches finally by physical network card and specifies physical network.
In the embodiment of the present application, a virtual machine can have multiple network interface cards, and this multiple network interface card can be built in different respectively On virtual switch, the purpose of multiple specified physical networks can be accessed such that it is able to reach a virtual machine.
In sum, the business that the technical scheme that the application is provided can specify virtual machine exports the position on physical network Put, realize that user independently determines the function of the physical network that virtual machine can be accessed, and realize automating by cloud management platform Configuration.
For example, it is assumed that E-gov Network has mapping relations with vswitch1, there are mapping relations in internet with vswitch2, if 3 virtual machines are created, and allows virtual machine 1 only to support to access E-gov Network, allow virtual machine 2 to support to access E-gov Network and Yin Te simultaneously Net, allows virtual machine 3 only to support to access internet, a kind of deployment way as shown in figure 3, wherein, the Microsoft Loopback Adapter of virtual machine 1 is set up On vswitch1;Two Microsoft Loopback Adapters of virtual machine 2 are set up on vswitch1 and vswitch2 respectively;The void of virtual machine 3 Intend network interface card to set up on vswitch2.
The method that the application is provided is described above.The device that the application is provided is described below.
Referring to Fig. 4, a kind of functional block diagram of the creating device of virtual machine that the figure is provided for the embodiment of the present application should Device can apply in cloud management platform.Described device includes receiving unit 401, determining unit 402 and virtual machine creating list Unit 403.
The receiving unit 401, for receive create virtual machine first request, it is described first request include with it is virtual The related mark of machine physical network to be visited.
The determining unit 402, the void corresponding for determining the related mark of the physical network to be visited to virtual machine Intend interchanger.
The virtual machine creating unit 403, for indicating virtualization physical host to create virtual machine, and indicates virtual compound Reason main frame is set up on the virtual switch determined the Microsoft Loopback Adapter of virtual machine when virtual machine is created.
Optionally, the determining unit 402 is it is determined that the related mark of the physical network to be visited to virtual machine is corresponding Virtual switch when, can have following two modes:
The first:
The related title for being designated virtual machine physical network to be visited of the physical network to be visited to virtual machine;
It is determined that during the corresponding virtual switch of the related mark of the physical network to be visited to virtual machine, the determination Unit 402 specifically for:According to the mapping relations between the physical network title and virtual switch for pre-setting, it is determined that and institute State the corresponding virtual switch of physical network title that the first request includes.
Second:
The related title for being designated virtual machine virtual network to be visited of the physical network to be visited to virtual machine With the available domain of virtual machine;
It is determined that during the corresponding virtual switch of the related mark of the physical network to be visited to virtual machine, the determination Unit 402 specifically for:
It is determined that virtual network corresponding with the described first virtual network title for including of request, and from the virtual network for determining Physical network attribute in read physical network identifier;
According to the physical network identifier, the mapping relations between both available domains and virtual switch that pre-set, really Fixed virtual switch corresponding with the physical network identifier for reading out and first request include available domain.
Further, on the basis of above-mentioned second implementation method, the present embodiment to how to set up virtual network and How to determine that physical network identifier is further explained explanation.
Specifically, the receiving unit 401, before the first request for creating virtual machine is received, is additionally operable to receive establishment Second request of virtual network, second request includes the title of virtual network physical network to be bound.
The determining unit 402, is additionally operable to according between the physical network title and physical network identifier for pre-setting Mapping relations, it is determined that physical network identifier corresponding with the described second physical network title for including of request.
Described device also includes:
Virtual network creating unit, for creating virtual network, and the Physical Network that will be determined when virtual network is created Network identifier is added in the physical network attribute of virtual network.
So far, after virtual machine is created, the message that virtual machine sends reaches virtual net by the Microsoft Loopback Adapter of virtual machine Virtual switch where card, then the physical network card connected by virtual switch reaches virtual machine Physical Network to be visited Network.
The creating device of virtual machine provided in an embodiment of the present invention, by planning virtual switch and physical network in advance it Between mapping relations, so as to create virtual machine when, can according to above-mentioned mapping relations and virtual machine physical network to be visited, The Microsoft Loopback Adapter of virtual machine is deployed on the corresponding virtual switch of virtual machine physical network to be visited, virtual machine is embodied as The purpose of the physical network outlet that selection is specified.
It should be noted that the division in the embodiment of the present invention to unit is schematical, only a kind of logic function Divide, there can be other dividing mode when actually realizing.Each functional unit in embodiments herein can be integrated in In one processing unit, or unit is individually physically present, it is also possible to which two or more units are integrated in one In individual unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit Realize.
As shown in figure 5, the embodiment of the present application also provides a kind of device for creating virtual machine, described device includes communication interface 501st, processor 502, memory 503 and bus 504;Wherein, communication interface 501, processor 502, memory 503 pass through bus 504 complete mutual communication.
Wherein, communication interface 501, for being communicated with virtualization physical host.Processor 502 can be a center treatment Device (CPU), memory 503 can be nonvolatile memory (non-volatile memory), and be deposited in memory 503 The establishment logical order of virtual machine is contained, the establishment logic that processor 502 can perform the virtual machine stored in memory 503 refers to Order, to realize the function of the creation method medium cloud management platform of above-mentioned virtual machine, flow shown in Figure 2.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.

Claims (10)

1. a kind of creation method of virtual machine, it is characterised in that methods described is applied to cloud management platform, including:
The first request for creating virtual machine is received, first request includes that the physical network to be visited to virtual machine is related Mark;
It is determined that the corresponding virtual switch of mark that the physical network to be visited to virtual machine is related;
Indicate virtualization physical host to create virtual machine, and indicate virtualization physical host when virtual machine is created by virtual machine Microsoft Loopback Adapter is set up on the virtual switch determined.
2. the method for claim 1, it is characterised in that the related mark of the physical network to be visited to virtual machine It is the title of virtual machine physical network to be visited;
The corresponding virtual switch of the mark for determining that the physical network to be visited to virtual machine is related, including:
According to the mapping relations between the physical network title and virtual switch for pre-setting, it is determined that with first request bag The corresponding virtual switch of physical network title for including.
3. the method for claim 1, it is characterised in that the related mark of the physical network to be visited to virtual machine It is the title and the available domain of virtual machine of virtual machine virtual network to be visited;
The corresponding virtual switch of the mark for determining that the physical network to be visited to virtual machine is related, including:
It is determined that virtual network corresponding with the described first virtual network title for including of request, and from the thing of the virtual network for determining Physical network identifier is read in reason network attribute;
According to the physical network identifier, the mapping relations between both available domains and virtual switch that pre-set, it is determined that with The corresponding virtual switch of available domain that the physical network identifier and first request for reading out include.
4. method as claimed in claim 3, it is characterised in that before first request for receiving and creating virtual machine, institute Stating method also includes:
The second request for creating virtual network is received, second request includes the name of virtual network physical network to be bound Claim;
According to the mapping relations between the physical network title and physical network identifier for pre-setting, it is determined that please with described second Ask including the corresponding physical network identifier of physical network title;
Virtual network is created, and the physical network identifier that will be determined when virtual network is created is added to the thing of virtual network In reason network attribute.
5. the method as described in claim any one of 1-4, it is characterised in that after virtual machine is created, the virtual machine hair Virtual switch where the Microsoft Loopback Adapter arrival Microsoft Loopback Adapter that the message for sending passes through the virtual machine, then by virtual friendship The physical network card of connection of changing planes reaches virtual machine physical network to be visited.
6. a kind of creating device of virtual machine, it is characterised in that described device is applied to cloud management platform, including:
Receiving unit, the first request of virtual machine is created for receiving, and first request includes to be visited with virtual machine The related mark of physical network;
Determining unit, the virtual switch corresponding for determining the related mark of the physical network to be visited to virtual machine;
Virtual machine creating unit, for indicating virtualization physical host to create virtual machine, and indicates virtualization physical host in wound The Microsoft Loopback Adapter of virtual machine is set up on the virtual switch determined when building virtual machine.
7. device as claimed in claim 6, it is characterised in that the related mark of the physical network to be visited to virtual machine It is the title of virtual machine physical network to be visited;
It is determined that during the corresponding virtual switch of the related mark of the physical network to be visited to virtual machine, the determining unit Specifically for:
According to the mapping relations between the physical network title and virtual switch for pre-setting, it is determined that with first request bag The corresponding virtual switch of physical network title for including.
8. device as claimed in claim 6, it is characterised in that the related mark of the physical network to be visited to virtual machine It is the title and the available domain of virtual machine of virtual machine virtual network to be visited;
It is determined that during the corresponding virtual switch of the related mark of the physical network to be visited to virtual machine, the determining unit Specifically for:
It is determined that virtual network corresponding with the described first virtual network title for including of request, and from the thing of the virtual network for determining Physical network identifier is read in reason network attribute;
According to the physical network identifier, the mapping relations between both available domains and virtual switch that pre-set, it is determined that with The corresponding virtual switch of available domain that the physical network identifier and first request for reading out include.
9. device as claimed in claim 8, it is characterised in that
The receiving unit, before the first request for creating virtual machine is received, is additionally operable to receive the second of establishment virtual network Request, second request includes the title of virtual network physical network to be bound;
The determining unit, is additionally operable to be closed according to the mapping between the physical network title and physical network identifier for pre-setting System, it is determined that physical network identifier corresponding with the physical network title that the described second request includes;
Described device also includes:
Virtual network creating unit, for creating virtual network, and the physical network mark that will be determined when virtual network is created Know symbol to be added in the physical network attribute of virtual network.
10. the device as described in claim any one of 6-9, it is characterised in that after virtual machine is created, the virtual machine hair Virtual switch where the Microsoft Loopback Adapter arrival Microsoft Loopback Adapter that the message for sending passes through the virtual machine, then by virtual friendship The physical network card of connection of changing planes reaches virtual machine physical network to be visited.
CN201611193692.1A 2016-12-21 2016-12-21 Virtual machine creating method and device Active CN106878204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611193692.1A CN106878204B (en) 2016-12-21 2016-12-21 Virtual machine creating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611193692.1A CN106878204B (en) 2016-12-21 2016-12-21 Virtual machine creating method and device

Publications (2)

Publication Number Publication Date
CN106878204A true CN106878204A (en) 2017-06-20
CN106878204B CN106878204B (en) 2020-09-08

Family

ID=59164041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611193692.1A Active CN106878204B (en) 2016-12-21 2016-12-21 Virtual machine creating method and device

Country Status (1)

Country Link
CN (1) CN106878204B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506295A (en) * 2017-07-12 2017-12-22 深信服科技股份有限公司 Method of testing, equipment and the computer-readable recording medium of virtual machine backup
CN108063761A (en) * 2017-12-11 2018-05-22 新华三云计算技术有限公司 Network processing method, cloud platform and software defined network SDN controllers
CN108322326A (en) * 2017-06-27 2018-07-24 新华三技术有限公司 A kind of Interface status control method, message transmitting method and device
WO2021135551A1 (en) * 2020-07-20 2021-07-08 平安科技(深圳)有限公司 Method and apparatus for configuring multiple network interface cards for cloud host, device, and storage medium
CN113114552A (en) * 2020-01-13 2021-07-13 上海云轴信息科技有限公司 Method and equipment for providing network for virtual machine and container in cloud platform
CN114124997A (en) * 2021-11-10 2022-03-01 云知声(上海)智能科技有限公司 Extended platform logic equipment system based on Internet of things
CN114422296A (en) * 2022-01-05 2022-04-29 北京天一恩华科技股份有限公司 Multi-scene virtual network construction system, method, terminal and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980490A (en) * 2010-12-01 2011-02-23 杭州华三通信技术有限公司 Link establishment method for virtual switch and physical switch and device thereof
CN102136931A (en) * 2010-09-20 2011-07-27 华为技术有限公司 Method for configuring virtual port network strategies, network management center and related equipment
CN102316001A (en) * 2011-10-13 2012-01-11 杭州华三通信技术有限公司 Virtual network connection configuration realizing method and network equipment
CN102316043A (en) * 2011-09-29 2012-01-11 中国联合网络通信集团有限公司 Port virtualization method, switch and communication system
WO2012109868A1 (en) * 2011-08-01 2012-08-23 华为技术有限公司 Network policy configuration method, management device and network management centre device
CN103067242A (en) * 2012-12-04 2013-04-24 中国电信股份有限公司云计算分公司 Virtual machine system used for providing network service
CN103607308A (en) * 2013-11-29 2014-02-26 杭州东信北邮信息技术有限公司 Virtual machine multi-network management system and method in cloud computing environment
CN103607430A (en) * 2013-10-30 2014-02-26 中兴通讯股份有限公司 Network processing method and system, and network control center
US20140122681A1 (en) * 2012-10-31 2014-05-01 Fujitsu Limited Management server, virtual machine system, computer-readable recording medium, and connection method
US8726093B2 (en) * 2010-06-30 2014-05-13 Oracle America, Inc. Method and system for maintaining direct hardware access in the event of network interface card failure

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8726093B2 (en) * 2010-06-30 2014-05-13 Oracle America, Inc. Method and system for maintaining direct hardware access in the event of network interface card failure
CN102136931A (en) * 2010-09-20 2011-07-27 华为技术有限公司 Method for configuring virtual port network strategies, network management center and related equipment
CN101980490A (en) * 2010-12-01 2011-02-23 杭州华三通信技术有限公司 Link establishment method for virtual switch and physical switch and device thereof
WO2012109868A1 (en) * 2011-08-01 2012-08-23 华为技术有限公司 Network policy configuration method, management device and network management centre device
CN102316043A (en) * 2011-09-29 2012-01-11 中国联合网络通信集团有限公司 Port virtualization method, switch and communication system
CN102316001A (en) * 2011-10-13 2012-01-11 杭州华三通信技术有限公司 Virtual network connection configuration realizing method and network equipment
US20140122681A1 (en) * 2012-10-31 2014-05-01 Fujitsu Limited Management server, virtual machine system, computer-readable recording medium, and connection method
CN103067242A (en) * 2012-12-04 2013-04-24 中国电信股份有限公司云计算分公司 Virtual machine system used for providing network service
CN103607430A (en) * 2013-10-30 2014-02-26 中兴通讯股份有限公司 Network processing method and system, and network control center
CN103607308A (en) * 2013-11-29 2014-02-26 杭州东信北邮信息技术有限公司 Virtual machine multi-network management system and method in cloud computing environment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322326A (en) * 2017-06-27 2018-07-24 新华三技术有限公司 A kind of Interface status control method, message transmitting method and device
CN108322326B (en) * 2017-06-27 2021-02-26 新华三技术有限公司 Interface state control method, message transmission method and device
CN107506295A (en) * 2017-07-12 2017-12-22 深信服科技股份有限公司 Method of testing, equipment and the computer-readable recording medium of virtual machine backup
CN108063761A (en) * 2017-12-11 2018-05-22 新华三云计算技术有限公司 Network processing method, cloud platform and software defined network SDN controllers
CN108063761B (en) * 2017-12-11 2019-09-13 新华三云计算技术有限公司 Network processing method, cloud platform and software defined network SDN controller
CN113114552A (en) * 2020-01-13 2021-07-13 上海云轴信息科技有限公司 Method and equipment for providing network for virtual machine and container in cloud platform
WO2021135551A1 (en) * 2020-07-20 2021-07-08 平安科技(深圳)有限公司 Method and apparatus for configuring multiple network interface cards for cloud host, device, and storage medium
CN114124997A (en) * 2021-11-10 2022-03-01 云知声(上海)智能科技有限公司 Extended platform logic equipment system based on Internet of things
CN114422296A (en) * 2022-01-05 2022-04-29 北京天一恩华科技股份有限公司 Multi-scene virtual network construction system, method, terminal and storage medium
CN114422296B (en) * 2022-01-05 2024-02-20 北京天一恩华科技股份有限公司 Multi-scene virtual network construction system, method, terminal and storage medium

Also Published As

Publication number Publication date
CN106878204B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN106878204A (en) The creation method and device of a kind of virtual machine
CN102571698B (en) Access authority control method, system and device for virtual machine
CN107580083B (en) Method and system for allocating IP addresses of containers
CN104718723B (en) For the networking in virtual network and the frame of security service
CN105684357B (en) The management of address in virtual machine
EP3031174B1 (en) Hybrid network management
US10505806B2 (en) Learning and deploying datacenter landscapes
CN109067877B (en) Control method for cloud computing platform deployment, server and storage medium
CN108111470A (en) Communication means and relevant apparatus between the dispositions method of container, service
CN110063051A (en) Reconfigurable server
CN110088732A (en) A kind of data package processing method, host and system
CN107689882A (en) The method and apparatus of service deployment in a kind of virtualization network
WO2020005530A1 (en) Network-accessible computing service for micro virtual machines
US11563799B2 (en) Peripheral device enabling virtualized computing service extensions
CN103685608B (en) A kind of method and device for automatically configuring secure virtual machine IP address
US11470119B2 (en) Native tag-based configuration for workloads in a virtual computing environment
CN103946834A (en) Virtual network interface objects
CN106789363A (en) A kind of method and device to virtual machine configuration network interface card
US9686237B2 (en) Secure communication channel using a blade server
US11520530B2 (en) Peripheral device for configuring compute instances at client-selected servers
CN103441935B (en) Automatically method and the device of the syntople of identified server and access switch
CN106155264B (en) Manage the computer approach and computer system of the power consumption of storage subsystem
WO2014086193A1 (en) Data flow affinity for heterogenous virtual machines
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN104092661B (en) The communication means and device of virtual machine serial ports

Legal Events

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