CN104040950B - A kind of method and apparatus that network configuration is carried out to virtual machine - Google Patents
A kind of method and apparatus that network configuration is carried out to virtual machine Download PDFInfo
- Publication number
- CN104040950B CN104040950B CN201280002829.4A CN201280002829A CN104040950B CN 104040950 B CN104040950 B CN 104040950B CN 201280002829 A CN201280002829 A CN 201280002829A CN 104040950 B CN104040950 B CN 104040950B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- virtual
- network
- connection
- message
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 82
- 238000012790 confirmation Methods 0.000 claims abstract description 28
- 238000004891 communication Methods 0.000 claims abstract description 19
- 230000005012 migration Effects 0.000 claims description 76
- 238000013508 migration Methods 0.000 claims description 76
- 230000004044 response Effects 0.000 claims description 46
- 230000005540 biological transmission Effects 0.000 claims description 37
- 238000012545 processing Methods 0.000 claims description 29
- 239000011800 void material Substances 0.000 claims description 10
- 230000005055 memory storage Effects 0.000 claims description 4
- 230000008569 process Effects 0.000 description 12
- 230000003993 interaction Effects 0.000 description 11
- 230000009471 action Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000004080 punching Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in 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)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of method and apparatus that network configuration is carried out to virtual machine, is related to the communications field, to reduce the time delay of interacting message in virtual machine network connection procedure.This method includes:Create virtual machine;The network configuration for sending the network connection information for including the virtual machine to the corresponding virtual switch of the virtual machine triggers message, to cause the virtual switch to set up the connection of the virtual switch and the virtual machine according to the network connection information of the virtual machine;Receive the virtual machine and set up the confirmation message being connected with the virtual switch.The embodiment of the present invention is used to carry out network configuration to virtual machine.
Description
Technical field
The present invention relates to IT field, more particularly to a kind of method and apparatus that network configuration is carried out to virtual machine.
Background technology
Widespread deployment and the extensive use of virtual machine technique with data center, administrative staff face number of servers with
It is day all increase, the lot of challenges such as data volume is increasingly huge, management service is difficult, current common data center deployment, including virtual
Machine administrative center and network management center, the two manages computing resource and Internet resources respectively.
In the prior art, when virtual machine creating or migration, it is necessary to computing system and network system are worked in coordination, Cai Nengwei
Virtual machine distributes and sets up Internet resources, for example, must interacting with each other by Virtual Machine Manager center and network management center
It could be virtual machine configuration Internet resources, so so that the interaction flow between Virtual Machine Manager center and network management center
Complicated and cumbersome, the time delay that the network during causing virtual machine creating or migrating sets up procedural information interaction is larger, so that
The interruption of business during being likely to cause virtual machine creating or migrating.
The content of the invention
Embodiments of the invention provide a kind of method and apparatus that network configuration is carried out to virtual machine, to reduce virtual machine net
The time delay of interacting message in network connection procedure.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
First aspect there is provided it is a kind of to virtual machine carry out network configuration method, including:
Create virtual machine;
The network for sending the network connection information for including the virtual machine to the corresponding virtual switch of the virtual machine is matched somebody with somebody
Triggering message is put, to cause the virtual switch to set up the virtual switch according to the network connection information of the virtual machine
With the connection of the virtual machine, wherein, network configuration triggering message is created for the Virtual Machine Manager module
Virtual machine carries out network configuration;
Receive the virtual machine and set up the confirmation message being connected with the virtual switch.
In first aspect in the first possible implementation, the establishment virtual machine includes:
Receive the establishment virtual machine request message that Virtual Machine Manager center is sent;
According to the establishment virtual machine request message, select the corresponding physical resource of the virtual machine and create described virtual
Machine.
It is described to the virtual machine pair in second of possible implementation with reference to the first possible implementation
The virtual switch answered sends the network configuration triggering message of the network connection information comprising the virtual machine, including:
Network configuration request message or connection request message, the network configuration request are sent to the virtual switch
Message or connection request message include the network connection information of the virtual machine.
With reference to second of possible implementation, in the third possible implementation, if to the virtual switch
Network configuration request message is sent, before the connection for setting up the virtual machine with the virtual switch, methods described
Also include:
Receive the network configuration response message that the virtual switch is sent;
After the virtual machine creating is completed and receives the configuration response message, send and connect to the virtual switch
Connect request message.
With reference in a first aspect, in the 4th kind of possible implementation, the establishment virtual machine includes:
Receive the virtual machine (vm) migration request message that Virtual Machine Manager center is sent;
The corresponding physical resource of the virtual machine is selected according to the virtual machine (vm) migration request message and creates described virtual
Machine.
With reference to the 4th kind of possible implementation, in the 5th kind of possible implementation, methods described also includes:
Network configuration request message is sent to the virtual switch, so that the virtual switch is receiving the net
After network configuration request message, network configuration information request message is sent to the network management center.
With reference to the 4th kind of possible implementation or the 5th kind of possible implementation, in the 6th kind of possible implementation
In, methods described also includes:
Data Migration request message is sent to Virtual Machine Manager center, so that the Virtual Machine Manager center is according to the number
According to migration request message by the Data Migration of source virtual machine to purpose virtual machine;
After the completion of the Data Migration, the Data Migration completion message that the Virtual Machine Manager center is sent is received.
Second aspect there is provided it is a kind of to virtual machine carry out network configuration method, including:
The network configuration triggering message that Virtual Machine Manager module is sent is received, the network configuration triggering message is used for for institute
The virtual machine progress network configuration that Virtual Machine Manager module is created is stated, includes the network connection information of the virtual machine;
Connection with the virtual machine is set up according to the network connection information;
The virtual machine is returned to the Virtual Machine Manager module to have set up really with the virtual switch network connection
Recognize message.
It is described to receive the network that the Virtual Machine Manager module is sent in second aspect in the first possible implementation
Configuration triggering message includes:The network configuration request message or connection request for receiving the Virtual Machine Manager module transmission disappear
Breath, the network configuration request message or connection request message include the network connection information of the virtual machine.
With reference to first aspect or first aspect the first possible implementation, in second of possible implementation,
The connection set up according to the network connection information with the virtual machine, including:
After the network connection information is received, however, it is determined that the network connection information pair of itself configured virtual machine
The virtual network answered, then directly set up the connection with the virtual machine;
If it is determined that itself not configuring the corresponding virtual network of network connection information of the virtual machine, then into network management
The heart sends network configuration information request message, so that the network management center is returned according to the network configuration information request message
Return network configuration information;The virtual switch according to the network configuration information configure virtual network and foundation with it is described virtual
The connection of machine.
With reference to the first possible implementation or second of possible implementation, in the third possible implementation
In, if receiving the network configuration request message that the Virtual Machine Manager module is sent, setting up the connection with the virtual machine
Before, methods described also includes:
Network configuration response message is sent to the Virtual Machine Manager module;
After the virtual machine creating is completed and the Virtual Machine Manager module receives the configuration response message, receive
The connection request message that the Virtual Machine Manager module is sent.
With reference to any one of second aspect to second aspect the third possible implementation, in the 4th kind of possible reality
In existing mode, methods described also includes:
Successful connection message is sent to the network management center, so that the network management center is it is determined that have conflict
During virtual machine, send connection to the corresponding virtual switch of the conflict virtual machine and disconnect message, to cause the conflict virtual
The corresponding virtual switch of machine disconnects the connection of message disconnection and the virtual machine that conflicts according to the connection, wherein, the punching
Prominent virtual machine is the network address and the network address identical virtual machine of the virtual machine.
With reference to the third possible implementation or the 4th kind of possible implementation, in the 5th kind of possible implementation
In, under virtual-machine data migration scene, purpose virtual switch notifies Virtual Machine Manager center by the data in source virtual machine
Migrate to purpose virtual machine, the corresponding purpose virtual switch of the purpose virtual machine sets up the company with the purpose virtual machine
Connect;The active virtual switch of the source virtual machine correspondence;It is described to be built in the corresponding purpose virtual switch of the purpose virtual machine
Stand with also including before the connection of the purpose virtual machine:
Source virtual switch receives the connection disconnection message that Virtual Machine Manager center is sent;
Source virtual switch disconnects message disconnection and the connection of the source virtual machine according to the connection.
The third aspect there is provided a kind of Virtual Machine Manager module, including:Processing unit, for creating virtual machine;
Processing unit, for creating virtual machine;
Transmitting element, the corresponding virtual switch of virtual machine for being created to the processing unit, which is sent, includes the void
The network configuration triggering message of the network connection information of plan machine, to cause the virtual switch according to the network of the virtual machine
Link information sets up the connection of the virtual switch and the virtual machine, wherein, the network configuration triggering message is for being
The virtual machine that the Virtual Machine Manager module is created carries out network configuration;
Receiving unit, for receiving the confirmation message that the virtual machine is connected with virtual switch foundation.
In the third aspect in the first possible implementation, the receiving unit is specifically for receiving in Virtual Machine Manager
The establishment virtual machine request message that the heart is sent;
The processing unit selects described specifically for the establishment virtual machine request message received according to the receiving unit
The corresponding physical resource of virtual machine simultaneously creates the virtual machine.
The first possible implementation with reference to the third aspect, it is described to send single in second of possible implementation
Member to the virtual switch specifically for sending network configuration request message or connection request message, and the network configuration please
Message or connection request message is asked to include the network connection information of the virtual machine.
With reference to second of possible implementation, in the third possible implementation, the receiving unit is additionally operable to,
Receive the network configuration response message that the virtual switch is sent;
The transmitting element is additionally operable to, and is completed in the processing unit virtual machine creating and the receiving unit receives institute
State after configuration response message, connection request message is sent to the virtual switch.
With reference to the third aspect, in the 4th kind of possible implementation, the receiving unit is specifically for receiving virtual machine
The virtual machine (vm) migration request message that administrative center sends;
The processing unit is specifically for described in the virtual machine (vm) migration request message selection that is received according to the receiving unit
The corresponding physical resource of virtual machine simultaneously creates the virtual machine.
With reference to the 4th kind of possible implementation, in the 5th kind of possible implementation, the transmitting element is additionally operable to,
To the virtual switch send network configuration request message, so as to the virtual switch receive the network configuration please
Ask after message, network configuration information request message is sent to the network management center.
With reference to the 4th kind of possible implementation or the 5th kind of possible implementation, in the 6th kind of possible implementation
In, the transmitting element is additionally operable to, and Data Migration request message is sent to Virtual Machine Manager center, so as to the Virtual Machine Manager
Center is according to the Data Migration request message by the Data Migration of source virtual machine to purpose virtual machine;
The receiving unit is additionally operable to, after the completion of the Data Migration, receives what the Virtual Machine Manager center was sent
Data Migration completion message.
Fourth aspect there is provided a kind of switch, including:Receiving unit, for virtual in Virtual Machine Manager module creation
During machine, the network configuration triggering message that the Virtual Machine Manager module is sent is received, the network configuration triggering message is for being
The virtual machine that the Virtual Machine Manager module is created carries out network configuration, includes the network connection information of the virtual machine;
Processing unit, the network connection information for being received according to the receiving unit sets up the company with the virtual machine
Connect;
Transmitting element, for returning to the virtual machine and the switch network connection to the Virtual Machine Manager module
The confirmation message set up.
In fourth aspect in the first possible implementation, the receiving unit is specifically for receiving the virtual machine
Network configuration request message or connection request message that management module is sent, the network configuration request message or connection please
Message is asked to include the network connection information of the virtual machine.
With reference to fourth aspect or fourth aspect the first possible implementation, in second of possible implementation,
The processing unit is specifically for the processing unit is specifically for after the network connection information is received, however, it is determined that from
The corresponding virtual network of network connection information of the configured virtual machine of body, then directly set up the connection with the virtual machine;
If it is determined that itself not configuring the corresponding virtual network of network connection information of the virtual machine, then into network management
The heart sends network configuration information request message, so that the network management center is returned according to the network configuration information request message
Return network configuration information;The processing unit configures virtual network and foundation and the virtual machine according to the network configuration information
Connection.
With reference to the first possible implementation or second of possible implementation, in the third possible implementation
In, the transmitting element is additionally operable to, before the connection with the virtual machine is set up, and net is sent to the Virtual Machine Manager module
Network configuration response message;
The receiving unit is additionally operable to, the virtual machine creating complete and the Virtual Machine Manager module receive it is described
After configuration response message, the connection request message that the Virtual Machine Manager module is sent is received.
With reference to the third possible implementation of fourth aspect to fourth aspect, in the 4th kind of possible implementation,
The transmitting element is additionally operable to, and successful connection message is sent to the network management center, so that the network management center exists
It is determined that when there is conflict virtual machine, sending connection to the corresponding switch of the conflict virtual machine and disconnecting message, to cause
The connection that the corresponding switch of conflict virtual machine disconnects message disconnection and the virtual machine that conflicts according to the connection is stated, its
In, the conflict virtual machine is the network address and the network address identical virtual machine of the virtual machine.
With reference to the third possible implementation or the 4th kind of possible implementation, in the 5th kind of possible implementation
In, the receiving unit is additionally operable to, and receives the connection disconnection message that Virtual Machine Manager center is sent;
The processing unit, be additionally operable to according to the receiving unit receive connection disconnect message disconnect it is virtual with the source
The connection of machine.
5th aspect is described to deposit there is provided a kind of device that network configuration is carried out to virtual machine, including processor and memory
Reservoir stores computer executed instructions, and the processor is connected with the memory by communication bus;
When described device is run, the computer executed instructions of memory storage described in the computing device make
Obtain the method described in the above-mentioned first aspect of described device execution.
6th aspect is described to deposit there is provided a kind of device that network configuration is carried out to virtual machine, including processor and memory
Reservoir stores computer executed instructions, and the processor is connected with the memory by communication bus;
When described device is run, the computer executed instructions of memory storage described in the computing device make
Obtain the method described in described device execution second aspect.
7th aspect is there is provided a kind of computer-readable medium, comprising computer executed instructions, when the center processing of computer
When device performs the computer executed instructions, the method described in the above-mentioned first aspect of the computer execution or second aspect.
By using such scheme, realized by the direct interaction of Virtual Machine Manager module and virtual switch to virtual machine
Network configuration, effectively reduce to the flow of interacting message and time in virtual machine network configuration process, reduction time delay
While, it is ensured that the stability and continuation of business.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of network system provided in an embodiment of the present invention;
Fig. 2 is a kind of method schematic diagram that network configuration is carried out to virtual machine provided in an embodiment of the present invention;
Fig. 3 is another method schematic diagram that network configuration is carried out to virtual machine provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet that network collocating method is carried out to virtual machine provided in an embodiment of the present invention;
Fig. 5 is another schematic flow sheet that network collocating method is carried out to virtual machine provided in an embodiment of the present invention;
Fig. 6 is another schematic flow sheet that network collocating method is carried out to virtual machine provided in an embodiment of the present invention;
Fig. 7 is another schematic flow sheet that network collocating method is carried out to virtual machine provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of Virtual Machine Manager module provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of switch provided in an embodiment of the present invention;
Figure 10 is a kind of schematic device that network configuration is carried out to virtual machine provided in an embodiment of the present invention;
Figure 11 is another schematic device that network configuration is carried out to virtual machine provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The technical scheme that various embodiments of the present invention are provided can be applied to a kind of system that network configuration is carried out to virtual machine, such as
Shown in Fig. 1, the system includes:
Virtual Machine Manager module, is the management module operated on every main frame, and Virtual Machine Manager is performed centrally through it
Management function on every main frame, with next embodiment, for receiving and forwarding the virtual friendship from Virtual Machine Manager center
The message changed planes and the state for reporting virtual machine.
Virtual Machine Manager center, be to system manager present virtual machine management system, be responsible for virtual machine management and
Control, including the attribute of virtual machine and the monitoring and modification of state are completed, establishment, migration, upper point and the lower point of virtual machine etc. is grasped
Make.
Network management center, is the NMS presented to network manager, he manages and controlled simultaneously physics
The network equipment and virtual network device, including complete the management and configuration of physical switches and its port, virtual machine and its port
Management and control, IP address management and virtual machine between the function such as network connection state management, traffic monitoring.
Virtual switch, can be operated on main frame, the equipment with function of exchange and mould realized by software
Block or pass through hard-wired switching equipment and module on physical network card.The virtual switch can be common
Virtual switch or distributed virtual switch.Network management center can carry out VLAN, ACL, QoS thereon
Etc. the configuration of the various network informations, complete the disconnection of virtual machine and network while it also coordinates with Virtual Machine Manager module and be connected
Deng operation.
The embodiment of the present invention provides a kind of method of virtual machine configuration, as shown in Fig. 2 the executive agent of the embodiment is void
Plan machine management module, including:
S201, Virtual Machine Manager module creation virtual machine.
Wherein, virtual network and virtual network interface are configured with network management center.
Specifically, Virtual Machine Manager module receives the establishment virtual machine request message that Virtual Machine Manager center is sent, and root
According to the establishment virtual machine request message, select the corresponding physical resource of the virtual machine and create the virtual machine.
S202, Virtual Machine Manager module are sent to the corresponding virtual switch of the virtual machine includes the network company of the virtual machine
The network configuration triggering message of information is connect, to cause the virtual switch to set up the void according to the network connection information of the virtual machine
Intend the connection of interchanger and the virtual machine.
Wherein, the virtual machine progress network that network configuration triggering message is used to be created for the Virtual Machine Manager module is matched somebody with somebody
Put.
S203, Virtual Machine Manager module receive the virtual machine and set up the confirmation message being connected with virtual switch.
Further, Virtual Machine Manager module sends network configuration request message or connection request to the virtual switch
Message.
The network configuration request message or connection request message include the network connection information of the virtual machine.
Specifically, if Virtual Machine Manager module sends network configuration request message, the virtual machine pipe to virtual switch
Module is managed after network configuration request message is sent, the network configuration response message of virtual switch transmission is received;And
Virtual machine creating is completed and received after the configuration response message, and connection request message is sent to the virtual machine.Setting up the void
After the connection of plan machine and the virtual switch, Virtual Machine Manager module receives the confirmation message of virtual switch transmission.
If Virtual Machine Manager module sends connection request message to virtual switch, in the virtual switch according to the company
The network connection information connect in request message is set up after the connection with the virtual machine, and Virtual Machine Manager module receives the virtual switch
The confirmation message that machine is sent.
It should be noted that above-mentioned Virtual Machine Manager module to the virtual switch send network configuration request message or
The difference of connection request message is:
If Virtual Machine Manager module sends network configuration request message to virtual switch, first basis should for virtual switch
Network configuration request message carries out network configuration, when the network for creating and receiving virtual switch transmission for completing the virtual machine
After response message, the Virtual Machine Manager module just sends connection request message to the virtual switch, so as to the virtual switch
Network connection information in the connection request message sets up the connection with the virtual machine;That is, Virtual Machine Manager mould
Block indicates that virtual switch carries out network configuration first, after the completion of network configuration, indicates that virtual switch is set up and virtual machine
Connection.
If Virtual Machine Manager module sends connection request message to virtual switch;Then the virtual switch is according to the connection
Request message carries out network configuration, and the network connection information foundation in the connection request message and the company of the virtual machine
Connect, that is to say, that virtual switch is received after connection request message, carry out network configuration and foundation and the connection of virtual machine.
Above-mentioned Virtual Machine Manager module sends network configuration request message to the virtual switch or connection request disappears
Breath is the difference in implementation, and the embodiment of the present invention is not limited thereto, but no matter which kind of mode is used, and should all fall into this
In the protection domain of invention.
It should be noted that above-mentioned network configuration can for VLAN (Virtual LocalArea Network, virtually
LAN), ACL (Access Control List, accesses control list), QoS (Quality of Service, Service Quality
Amount) etc. progress configuration, this is not limited by the present invention.
Further, the embodiment of the present invention can also be applied to the scene that virtual-machine data is migrated, under the scene, purpose
Virtual switch notifies Virtual Machine Manager center by the Data Migration in source virtual machine to purpose virtual machine, the purpose virtual machine pair
The purpose virtual switch answered sets up the connection with the purpose virtual machine;The active virtual switch of source virtual machine correspondence;
Now, the Virtual Machine Manager module in the present embodiment can include purpose Virtual Machine Manager module, above-mentioned steps
S201 can be:Purpose Virtual Machine Manager module receives the virtual machine (vm) migration request message that Virtual Machine Manager center is sent, and root
The corresponding physical resource of the virtual machine is selected according to the virtual machine (vm) migration request message and creates the virtual machine.Wherein, the virtual machine
Can for the purpose of virtual machine.
Further, after the completion of the purpose virtual machine creating, purpose Virtual Machine Manager module is to Virtual Machine Manager center
Data Migration request message is sent, so as to the Virtual Machine Manager center according to the Data Migration request message by the number of source virtual machine
According to migrating to purpose virtual machine;
After the completion of the Data Migration, the data that purpose Virtual Machine Manager module receives Virtual Machine Manager center transmission are moved
Move completion message.
After purpose Virtual Machine Manager module receives the Data Migration completion message, the embodiment of the present invention also includes following
Two kinds of embodiments:
Mode one:Purpose Virtual Machine Manager module sends network configuration completion message and data to the Virtual Machine Manager center
Completion notice message is migrated, request message is disconnected so that the Virtual Machine Manager center sends connection to source virtual machine management module
Afterwards, the source virtual machine management module to source virtual switch send connection disconnect message, with cause the source virtual switch according to
This disconnects request message disconnection and the connection of source virtual machine;
Purpose Virtual Machine Manager module receive the Virtual Machine Manager center transmission connection request notification message after, to
Purpose virtual switch sends connection request message, so that the purpose virtual switch sets up the connection with purpose virtual machine.
Mode two:Purpose Virtual Machine Manager module sends connection request message to the purpose virtual switch, so as to the mesh
Virtual switch set up and the connection of purpose virtual machine;
After the completion of connection is set up, the confirmation that purpose Virtual Machine Manager module receives purpose virtual switch transmission disappears
Breath, and send Data Migration completion message to the Virtual Machine Manager center.
Network management center can also receive the successful connection message of purpose virtual switch transmission, and it is determined that there is punching
During prominent virtual machine, send connection to the corresponding virtual switch of the conflict virtual machine and disconnect message, wherein, the conflict virtual machine is
The network address and the network address identical virtual machine of the virtual machine, to cause the corresponding virtual switch root of the conflict virtual machine
The connection that message disconnects the virtual machine that conflicts with this is disconnected according to the connection;If it should be noted that source virtual switch do not disconnect with
The connection of source virtual machine, then the conflict virtual machine include the source virtual machine.
Wherein, the network address can be MAC Address.
From the foregoing, the difference of mode one and mode two is:
Mode one is that source virtual switch disconnects connection with source virtual machine first, and purpose Virtual Machine Manager module is just to mesh
Virtual switch send connection request message, so that the purpose virtual switch is set up and the connection of purpose virtual machine;
Mode be second purpose virtual switch set up with after the connection of purpose virtual machine, network management center it is determined that
During in the presence of conflict virtual machine, initiate connection and disconnect, if source virtual switch does not disconnect the connection with source virtual machine, the conflict is empty
Plan machine includes the source virtual machine, then network management center sends connection disconnection request message to the source virtual switch, to cause
The source virtual switch disconnects the connection with the source virtual machine.
Certainly, in mode one, the purpose virtual switch is set up after the connection with purpose virtual machine, network management center
The successful connection message of purpose virtual switch transmission can be received, and is confirmed whether there is conflict virtual machine, if in the presence of referring to
Show that the corresponding virtual switch of the conflict virtual machine disconnects the connection for the virtual machine that conflicts with this.
It should be noted that the embodiment of the present invention is not limited to above-mentioned any mode, but no matter which kind of side used
Formula, should all fall within the scope of protection of the present invention.
Use above-mentioned executive agent for the method for Virtual Machine Manager module, pass through Virtual Machine Manager module and virtual switch
Direct interaction realize to the network configuration of virtual machine, effectively reduce to interacting message in virtual machine network configuration process
Flow and time, while time delay is reduced, it is ensured that the stability and continuation of business.
The embodiment of the present invention provides a kind of method that network configuration is carried out to virtual machine, as shown in figure 3, the execution of this method
Main body is virtual switch, and this method includes:
S301, in Virtual Machine Manager module creation virtual machine, virtual switch receive the Virtual Machine Manager module transmission
Network configuration triggering message.
The virtual machine that network configuration triggering message is used to be created for the Virtual Machine Manager module carries out network configuration, bag
Include the network connection information of the virtual machine.
Wherein, virtual network and virtual network interface are configured with network management center.
Further, virtual switch receives network configuration request message or the connection of Virtual Machine Manager module transmission
Request message, the network configuration request message or connection request message include the network connection information of the virtual machine, i.e., above-mentioned
Network configuration triggering message include network configuration request message or connection request message.
Specifically, if virtual switch receives the network configuration request message of Virtual Machine Manager module transmission, virtually
Interchanger first according to the network configuration request message carry out network configuration, when complete the virtual machine establishment and receive virtual friendship
Change planes after the network configuration response message of transmission, the Virtual Machine Manager module just sends connection request to the virtual switch and disappeared
Breath, the connection with the virtual machine is set up so as to network connection information of the virtual switch in the connection request message;
That is, Virtual Machine Manager module indicates that virtual switch carries out network configuration first, after the completion of network configuration, indicates virtual
Interchanger sets up the connection with virtual machine.
If virtual switch receives the connection request message that Virtual Machine Manager module is sent;Then the virtual switch is according to this
Connection request message carries out network configuration, and the network connection information foundation in the connection request message and the virtual machine
Connection, that is to say, that virtual switch is received after connection request message, carries out the company of network configuration and foundation and virtual machine
Connect.
Above-mentioned virtual switch receives network configuration request message or the connection request that Virtual Machine Manager module is sent
Message is the difference in implementation, and the embodiment of the present invention is not limited thereto, but no matter which kind of mode is used, and should all be fallen into
In protection scope of the present invention.
S302, virtual switch set up the connection with the virtual machine according to the network connection information.
S303, virtual switch have returned to the virtual machine and the virtual switch network connection to the Virtual Machine Manager module
The confirmation message of foundation.
Further, after the network connection information is received, virtual switch is if it is determined that itself configured virtual machine
The corresponding virtual network of network connection information, then directly set up with the connection of the virtual machine so that should by virtual machine access
Virtual network.
Specifically, virtual switch chance obtains virtual network interface to network management center, and passes through the virtual network end
The virtual machine is accessed the virtual network by mouth.
If it is determined that itself not configuring the corresponding virtual network of network connection information of the virtual machine, then to network management center
Network configuration information request message is sent, so that the network management center returns to network according to the network configuration information request message
Configuration information;The virtual switch configures virtual network and foundation and the connection of the virtual machine according to the network configuration information, from
And the virtual machine is accessed into the virtual network.
Specifically, virtual switch chance obtains virtual network interface to network management center, and passes through the virtual network end
The virtual machine is accessed the virtual network by mouth.
It should be noted that above-mentioned network configuration can be directed to the configuration of the progress such as VLAN, ACL, QoS, the present invention is to this
It is not construed as limiting.
Further, the embodiment of the present invention can also be applied to the scene that virtual-machine data is migrated, under the scene, purpose
Virtual switch notifies Virtual Machine Manager center by the Data Migration in source virtual machine to purpose virtual machine, the purpose virtual machine pair
The purpose virtual switch answered sets up the connection with the purpose virtual machine;The active virtual switch of source virtual machine correspondence.
In the present embodiment, the virtual switch can include purpose virtual switch.
Specifically, in purpose Virtual Machine Manager module creation purpose virtual machine, purpose virtual switch receives the purpose
The network configuration triggering message that Virtual Machine Manager module is sent, wherein, network configuration triggering message includes network connection information,
The purpose virtual switch according to the network connection information set up with the network connection of the purpose virtual machine, and to the virtual machine pipe
Reason module returns to the confirmation message that the virtual machine has been set up with the virtual switch network connection.It is complete in the purpose virtual machine creating
Cheng Hou, purpose Virtual Machine Manager module sends Data Migration request message to Virtual Machine Manager center, so as to the Virtual Machine Manager
Center is according to the Data Migration request message by the Data Migration of source virtual machine to purpose virtual machine;Completed in the Data Migration
Afterwards, purpose Virtual Machine Manager module receives the Data Migration completion message of Virtual Machine Manager center transmission.
After the Data Migration completion message that purpose Virtual Machine Manager module receives Virtual Machine Manager center transmission, this
Inventive embodiments also include following two embodiments:
Mode one:Source virtual switch disconnects the connection with source virtual machine, and purpose virtual switch receives purpose virtual machine
The connection request message that management module is sent;The connection request message include network connection information, purpose virtual switch according to
The network connection information sets up the connection with purpose virtual machine.
Mode two:Purpose virtual switch receives the connection request message of purpose Virtual Machine Manager module transmission;Wherein,
The connection request message includes network connection information, and purpose virtual switch sets up virtual with purpose according to the network connection information
The connection of machine, network management center can also receive purpose virtual switch transmission successful connection message, and it is determined that in the presence of
During conflict virtual machine, send connection to the corresponding virtual switch of the conflict virtual machine and disconnect message, to cause the conflict virtual
The corresponding virtual switch of machine disconnects the connection that message disconnects the virtual machine that conflicts with this according to the connection, wherein, the conflict is virtual
Machine is the network address identical virtual machine of the network address and the virtual machine, it is necessary to illustrate, if source virtual switch does not break
The connection with source virtual machine is opened, then the conflict virtual machine includes the source virtual machine.
Wherein, the network address can be MAC Address.
From the foregoing, the difference of mode one and mode two is:
Mode one is that source virtual switch disconnects connection with source virtual machine first, and purpose Virtual Machine Manager module is just to mesh
Virtual switch send connection request message, so that the purpose virtual switch is set up and the connection of purpose virtual machine.
Mode be second purpose virtual switch set up with after the connection of purpose virtual machine, network management center it is determined that
During in the presence of conflict virtual machine, initiate connection and disconnect, if source virtual switch does not disconnect the connection with source virtual machine, the conflict is empty
Plan machine includes the source virtual machine, then network management center sends connection disconnection request message to the source virtual switch, to cause
The source virtual switch disconnects the connection with the source virtual machine.
Certainly, in mode one, the purpose virtual switch is set up after the connection with purpose virtual machine, network management center
The successful connection message of purpose virtual switch transmission can be received, and is confirmed whether there is conflict virtual machine, if in the presence of referring to
Show that the corresponding virtual switch of the conflict virtual machine disconnects the connection for the virtual machine that conflicts with this.
It should be noted that the embodiment of the present invention is not limited to above-mentioned any mode, but no matter which kind of side used
Formula, should all fall within the scope of protection of the present invention.
Further, the virtual switch is also used as source virtual switch, in the corresponding purpose of purpose virtual machine
Virtual switch is set up before the connection with the purpose virtual machine, and the source virtual switch receives what Virtual Machine Manager center was sent
Connection disconnects message, and disconnects message disconnection and the connection of the source virtual machine according to the connection.
Above-mentioned executive agent is used for the method for virtual switch, passes through the straight of Virtual Machine Manager module and virtual switch
Interaction realization is connect to the network configuration of virtual machine, the flow to interacting message in virtual machine network configuration process is effectively reduced
And the time, while time delay is reduced, it is ensured that the stability and continuation of business.
The embodiment of the present invention provides a kind of method that network configuration is carried out to virtual machine, as shown in figure 4, this method embodiment
By network management center be already configured with virtual network and virtual network interface based on carry out, this method includes:
S401, Virtual Machine Manager center are sent to Virtual Machine Manager module creates virtual machine request message.
S402, Virtual Machine Manager module select the corresponding physical resource of the virtual machine according to the establishment virtual machine request message
And create the virtual machine.
S403, Virtual Machine Manager module send network configuration request message to the corresponding virtual switch of the virtual machine.
S404, virtual switch are after the network configuration request message is received, however, it is determined that itself does not configure the virtual machine
The corresponding virtual network of network connection information, to network management center send network configuration information solicited message.
Further, virtual switch can also obtain virtual network interface to network management center.
It should be noted that if it is determined that the corresponding virtual network of network connection information of itself configured virtual machine, then
Virtual network interface only is obtained to network management center, and network configuration response message is sent to Virtual Machine Manager module, is gone forward side by side
Row step S407 to S411.
S405, network management center return to network configuration information according to the network configuration information request message.
Alternatively, network management center also sends the configuration information to physical switches.
S406, virtual switch configure virtual network according to network configuration information, and send net to Virtual Machine Manager module
Network configuration response message.
Wherein, above-mentioned configuration virtual network can be the configuration for the progress such as VLAN, ACL, QoS, the present invention to this not
It is construed as limiting.
Alternatively, if physical switches also receive the network configuration information of network management center transmission, physical exchange
Machine is completed after virtual network configuration, also sends network configuration response message to Virtual Machine Manager module.
S407, in Virtual Machine Manager module complete the establishment of virtual machine and after receiving the network configuration response message, it is empty
Plan machine management module sends connection request message to virtual switch.
Wherein, the connection request message includes network connection information.
S408, virtual switch set up the connection with virtual machine according to the network connection information, and upon establishment of a connection, to
Virtual Machine Manager module returns to the confirmation message that the virtual machine has been set up with the virtual switch network connection.
S409, Virtual Machine Manager module send virtual machine wound after the confirmation message is received to Virtual Machine Manager center
Build completion message.
S410, virtual switch and virtual machine are set up after the completion of connection, and virtual switch is sent to network management center to be connected
Connect success message.
S411, the network management center are after the successful connection message is received, however, it is determined that there is conflict virtual machine, to this
The corresponding virtual switch of virtual machine that conflicts sends connection and disconnects message, to cause the corresponding virtual switch of conflict virtual machine
The connection that message disconnects the virtual machine that conflicts with this is disconnected according to the connection.Wherein, the conflict virtual machine is the network address and the void
The network address identical virtual machine of plan machine;The network address can be MAC Address.
It should be noted that above-mentioned Virtual Machine Manager module and virtual switch can be closed and be located in same main frame.
In addition, for above-mentioned embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to this hair
Bright, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
By using the above method, realize during virtual machine creating, pass through Virtual Machine Manager module and virtual friendship
The direct interaction changed planes realizes the network configuration to virtual machine, effectively reduces and message in virtual machine network configuration process is handed over
Mutual flow and time, while time delay is reduced, it is ensured that the stability and continuation of business.
The embodiment of the present invention provides a kind of method that network configuration is carried out to virtual machine, as shown in figure 5, this method embodiment
By network management center be already configured with virtual network and virtual network interface based on carry out, this method includes:
S501, Virtual Machine Manager center are sent to Virtual Machine Manager module creates virtual machine request message.
S502, Virtual Machine Manager module select the corresponding physical resource of the virtual machine according to the establishment virtual machine request message
And create the virtual machine.
S503, Virtual Machine Manager module send connection request message to the corresponding virtual switch of the virtual machine.
Wherein, the connection request message includes network connection information.
S504, virtual switch are after the connection request message is received, however, it is determined that itself does not configure the net of the virtual machine
The corresponding virtual network of network link information, network configuration information solicited message is sent to network management center.
Further, virtual switch can also obtain virtual network interface to network management center.
It should be noted that if it is determined that the corresponding virtual network of network connection information of itself configured virtual machine, then
Virtual network interface only is obtained to network management center, and network configuration response message is sent to Virtual Machine Manager module, is gone forward side by side
Row step S507 to S510.
S505, network management center return to network configuration information according to the network configuration information request message.
Alternatively, network management center also sends the configuration information to physical switches.
S506, virtual switch configure virtual network according to network configuration information.
Wherein, above-mentioned configuration virtual network can be the configuration for the progress such as VLAN, ACL, QoS, the present invention to this not
It is construed as limiting.
Alternatively, if physical switches also receive the network configuration information of network management center transmission, physical switches
Also virtual network can be configured according to the network configuration information.
S507, virtual switch set up the connection with virtual machine after configuration virtual network according to network connection information, and
Upon establishment of a connection, the confirmation that the virtual machine set up with the virtual switch network connection is returned to Virtual Machine Manager module to disappear
Breath.
S508, Virtual Machine Manager module are after receiving the confirmation message and completing the establishment of virtual machine, to virtual machine pipe
Reason center sends virtual machine creating completion message.
S509, virtual switch send successful connection after the completion of foundation and the connection of virtual machine to network management center
Message.
S510, the network management center are after the successful connection message is received, however, it is determined that there is conflict virtual machine, to this
The corresponding virtual switch of virtual machine that conflicts sends connection and disconnects message, to cause the corresponding virtual switch of conflict virtual machine
The connection that message disconnects the virtual machine that conflicts with this is disconnected according to the connection.
Wherein, the conflict virtual machine is the network address and the network address identical virtual machine of the virtual machine;The network
Location can be MAC Address.
It should be noted that above-mentioned Virtual Machine Manager module and virtual switch can be closed and be located in same main frame.
In addition, for above-mentioned embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to this hair
Bright, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
By using the above method, realize during virtual machine creating, pass through Virtual Machine Manager module and virtual friendship
The direct interaction changed planes realizes the network configuration to virtual machine, effectively reduces and message in virtual machine network configuration process is handed over
Mutual flow and time, while time delay is reduced, it is ensured that the stability and continuation of business.
The embodiment of the present invention provides a kind of method configured to virtual machine, as shown in fig. 6, this method embodiment application
Migrated in virtual-machine data in scene, the present embodiment, this method embodiment is carried out on the basis of source virtual machine creates completion
, wherein, the establishment of source virtual machine may be referred to the embodiment shown in above-mentioned Fig. 4 or Fig. 5, will not be repeated here, this method
Including:
S601, Virtual Machine Manager center send virtual machine (vm) migration request message to purpose Virtual Machine Manager module.
S602, purpose Virtual Machine Manager module select the corresponding physics of virtual machine to provide according to the virtual machine (vm) migration request message
Source simultaneously creates purpose virtual machine.
S603, purpose Virtual Machine Manager module are sent after the establishment of purpose virtual machine is completed to Virtual Machine Manager center
Data Migration request message.
S604, Virtual Machine Manager center are according to the Data Migration request message by the Data Migration in source virtual machine to purpose
Virtual machine, and after the completion of Data Migration, Data Migration completion message is sent to purpose Virtual Machine Manager module.
S605, purpose Virtual Machine Manager module send network when creating purpose virtual machine, to purpose virtual switch and matched somebody with somebody
Put request message.
S606, purpose virtual switch are after the network configuration request message is received, however, it is determined that itself does not configure the void
The corresponding virtual network of network connection information of plan machine, network configuration information solicited message is sent to network management center.
Further, virtual switch can also obtain virtual network interface to network management center.
It should be noted that if it is determined that the corresponding virtual network of network connection information of itself configured virtual machine, then
Virtual network interface only is obtained to network management center, and network configuration response message is sent to Virtual Machine Manager module, is gone forward side by side
Row step S608 to S620.
S607, network management center return to network configuration information according to the network configuration information request message.
Alternatively, network management center also sends the network configuration information to purpose physical switches.
S608, purpose virtual switch configure virtual network according to the network configuration message, and to purpose Virtual Machine Manager
Module sends network configuration response message.
Wherein, above-mentioned configuration virtual network can be the configuration for the progress such as VLAN, ACL, QoS, the present invention to this not
It is construed as limiting
Alternatively, if purpose physical switches also receive the network configuration information of network management center transmission, purpose
Physical switches are completed after virtual network configuration, also send network configuration response message to purpose Virtual Machine Manager module.
S609, purpose Virtual Machine Manager module are after the network configuration response message is received, to Virtual Machine Manager center
Send network configuration completion message.
S610, Virtual Machine Manager center are after the completion of the network configuration completion message and Data Migration is received, Xiang Yuanxu
Plan machine management module sends connection and disconnects request message.
S611, source virtual machine management module send connection to source virtual switch and disconnect message.
S612, source virtual switch disconnect message disconnection and the connection of source virtual machine according to the connection.
S613, source virtual switch send connection to source virtual machine management module and disconnect response message.
S614, source virtual machine management module are sent out after connection disconnection response message is received to Virtual Machine Manager center
Connection is sent to disconnect notification message.
S615, Virtual Machine Manager center are after connection disconnection notification message is received, to purpose Virtual Machine Manager module
Send connection request notification message.
S616, purpose Virtual Machine Manager module are after the connection request notification message is received, to purpose virtual switch
Send connection request message.
S617, purpose virtual switch set up the connection with purpose virtual machine according to the connection request message.
S618, purpose virtual switch set up with after the completion of the connection of the purpose virtual machine, purpose virtual switch to
Purpose Virtual Machine Manager module sends the confirmation message that connection is set up.
S619, purpose Virtual Machine Manager module send virtual after the confirmation message is received to Virtual Machine Manager center
Machine migrates completion message.
S620, purpose virtual switch set up with after the completion of the connection of the purpose virtual machine, purpose virtual switch to
Network management center sends successful connection message.
S621, the network management center are receiving the successful connection message family, however, it is determined that there is conflict virtual machine, to this
The corresponding virtual switch of virtual machine that conflicts sends connection and disconnects message, to cause the corresponding virtual switch of conflict virtual machine
The connection that message disconnects the virtual machine that conflicts with this is disconnected according to the connection.
Wherein, the conflict virtual machine is the network address and the network address identical virtual machine of the virtual machine;The network
Location can be MAC Address.
It should be noted that above-mentioned source virtual machine management module and source virtual switch can be closed and be located in source host, on
Stating purpose Virtual Machine Manager module and purpose virtual switch can close and be located in destination host.
In addition, for above-mentioned embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to this hair
Bright, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
By using the above method, realize in virtual-machine data transition process, pass through purpose Virtual Machine Manager module
The network configuration to virtual machine is realized with the direct interaction of purpose virtual switch, effectively reduces and virtual machine network is configured
During interacting message flow and the time, reduce time delay while, it is ensured that the stability and continuation of business.
The embodiment of the present invention provides a kind of method that network configuration is carried out to virtual machine, as shown in fig. 7, this method embodiment
Migrated applied to virtual-machine data in scene, the present embodiment, this method embodiment is on the basis of source virtual machine creates completion
Carry out, wherein, the establishment of source virtual machine may be referred to the embodiment shown in above-mentioned Fig. 4 or Fig. 5, will not be repeated here, should
Method includes:
S701, Virtual Machine Manager center send virtual machine (vm) migration request message to purpose Virtual Machine Manager module.
S702, purpose Virtual Machine Manager module select the corresponding physics of virtual machine to provide according to the virtual machine (vm) migration request message
Source simultaneously creates purpose virtual machine.
S703, purpose Virtual Machine Manager module are sent after the establishment of purpose virtual machine is completed to Virtual Machine Manager center
Data Migration request message.
S704, Virtual Machine Manager center are according to the Data Migration request message by the Data Migration in source virtual machine to purpose
Virtual machine, and after the completion of Data Migration, Data Migration completion message is sent to purpose Virtual Machine Manager module.
S705, purpose Virtual Machine Manager module send network when creating purpose virtual machine, to purpose virtual switch and matched somebody with somebody
Put request message.
S706, purpose virtual switch are after the network configuration request message is received, however, it is determined that itself does not configure the void
The corresponding virtual network of network connection information of plan machine, network configuration information request message is sent to network management center.
Further, virtual switch can also obtain virtual network interface to network management center.
It should be noted that if it is determined that the corresponding virtual network of network connection information of itself configured virtual machine, then
Virtual network interface only is obtained to network management center, and network configuration response message is sent to Virtual Machine Manager module, is gone forward side by side
Row step S709 to S714.
S707, network management center return to network configuration information according to the network configuration information request message.
Alternatively, network management center also sends the configuration information to purpose physical switches.
S708, purpose virtual switch configure virtual network according to the network configuration message, and to purpose Virtual Machine Manager
Module sends network configuration response message.
Wherein, above-mentioned configuration virtual network can be the configuration for the progress such as VLAN, ACL, QoS, the present invention to this not
It is construed as limiting
Alternatively, if purpose physical switches also receive the network configuration information of network management center transmission, purpose
Physical switches are completed after virtual network configuration, also send network configuration response message to purpose Virtual Machine Manager module.
S709, purpose Virtual Machine Manager module are after the network configuration response message is received, to purpose virtual switch
Send connection request message.
S710, purpose virtual switch set up the connection with purpose virtual machine according to the connection request message.
S711, purpose virtual switch send connection after the completion of connection is set up, to purpose Virtual Machine Manager module and set up
Confirmation message.
S712, purpose Virtual Machine Manager module send virtual after the confirmation message is received to Virtual Machine Manager center
Machine migrates completion message.
S713, purpose virtual switch send successful connection message after the completion of connection is set up to network management center.
S714, the network management center are after the successful connection message is received, however, it is determined that there is conflict virtual machine, to this
The corresponding virtual switch of virtual machine that conflicts sends connection and disconnects message, to cause the corresponding virtual switch of conflict virtual machine
The connection that message disconnects the virtual machine that conflicts with this is disconnected according to the connection.
Wherein, the conflict virtual machine is the network address and the network address identical virtual machine of the virtual machine;The network
Location can be MAC Address.
It should be noted that now, source virtual switch does not disconnect the connection with source virtual machine, then the conflict virtual machine bag
The source virtual machine is included, then network management center sends connection disconnection request message to the source virtual switch, to cause the source empty
Intend interchanger disconnection and the connection of the source virtual machine.
Wherein, if there are source physical switches and purpose physical switches, net in the network of network management center control
Network administrative center notifies the source physical switches to delete network configuration information.
It should be noted that above-mentioned source virtual machine management module and source virtual switch can be closed and be located in source host, on
Stating purpose Virtual Machine Manager module and purpose virtual switch can close and be located in destination host.
In addition, for above-mentioned embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to this hair
Bright, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
By using the above method, realize in virtual-machine data transition process, pass through purpose Virtual Machine Manager module
The network configuration to virtual machine is realized with the direct interaction of purpose virtual switch, effectively reduces and virtual machine network is configured
During interacting message flow and the time, reduce time delay while, it is ensured that the stability and continuation of business.
The embodiment of the present invention provides a kind of Virtual Machine Manager module 800, as shown in figure 8, including:
Processing unit 801, for creating virtual machine.
Transmitting element 802, the corresponding virtual switch of virtual machine for being created to the processing unit 801, which is sent, to be included being somebody's turn to do
The network configuration triggering message of the network connection information of virtual machine, to cause the virtual switch to be connected according to the network of the virtual machine
Connect the connection that information sets up the virtual switch and the virtual machine.
Wherein, the virtual machine progress network that network configuration triggering message is used to be created for the Virtual Machine Manager module is matched somebody with somebody
Put.
Receiving unit 803, for receiving the confirmation message that the virtual machine is connected with virtual switch foundation.
Alternatively, the receiving unit 803 disappears specifically for receiving the establishment virtual machine request that Virtual Machine Manager center is sent
Breath;
The processing unit 801 is specifically for the establishment virtual machine request message received according to the receiving unit 803, and selection should
The corresponding physical resource of virtual machine simultaneously creates the virtual machine.
Alternatively, the transmitting element 802 to the virtual switch specifically for sending network configuration request message or company
Request message is connect, the network configuration request message or connection request message include the network connection information of the virtual machine.
Specifically, if sending network configuration request message, after network configuration request message is sent, this is received virtual
The network configuration response message that interchanger is sent;And after virtual machine creating is completed and receives the configuration response message, to this
Virtual machine sends connection request message.After connection of the virtual machine with the virtual switch is set up, the virtual switch is received
The confirmation message of transmission.
If connection request message is sent, in network connection information of the virtual switch in the connection request message
Set up after the connection with the virtual machine, receive the confirmation message of virtual switch transmission.
It should be noted that above-mentioned send network configuration request message or connection request message to the virtual switch
Difference is:
If sending network configuration request message to virtual switch, virtual switch first disappears according to the network configuration request
Breath carries out network configuration, after the network response message for creating and receiving virtual switch transmission of the virtual machine is completed,
Connection request message is sent to the virtual switch, so as to network connection of the virtual switch in the connection request message
Information sets up the connection with the virtual machine;That is, indicate that virtual switch carries out network configuration first, it is complete in network configuration
Cheng Hou, indicates that virtual switch sets up the connection with virtual machine.
If sending connection request message to virtual switch;Then the virtual switch carries out net according to the connection request message
Network is configured, and the network connection information in the connection request message sets up the connection with the virtual machine, that is to say, that virtual
Interchanger is received after connection request message, carries out network configuration and foundation and the connection of virtual machine.
Further, if transmitting element 802 sends network configuration request message, the receiving unit to virtual switch
803 are additionally operable to, and receive the network configuration response message of virtual switch transmission;
The transmitting element 802 is additionally operable to, and the completion of the virtual machine creating of unit 801 is managed in this place and the receiving unit receives this
After configuration response message, connection request message is sent to the virtual switch.
Further, when the Virtual Machine Manager module is used under virtual-machine data migration scene, the receiving unit is specific
Virtual machine (vm) migration request message for receiving the transmission of Virtual Machine Manager center.
The processing unit 801 should specifically for the virtual machine (vm) migration request message selection received according to the receiving unit 803
The corresponding physical resource of virtual machine simultaneously creates the virtual machine.
Alternatively, the transmitting element 802 is additionally operable to, and network configuration request message is sent to the virtual switch, so as to this
Virtual switch sends network configuration information request after the network configuration request message is received, to the network management center and disappeared
Breath.
Alternatively, the transmitting element 802 is additionally operable to, and Data Migration request message is sent to Virtual Machine Manager center, so as to
The Virtual Machine Manager center is according to the Data Migration request message by the Data Migration of source virtual machine to purpose virtual machine.
The receiving unit 803 is additionally operable to, after the completion of the Data Migration, receives the data of Virtual Machine Manager center transmission
Migrate completion message.
It should be noted that affiliated those skilled in the art can be understood that, for convenience and simplicity of description,
The specific work process of the Virtual Machine Manager module of foregoing description and description, may be referred to corresponding in preceding method embodiment
Journey, will not be repeated here.
It is real by the direct interaction of Virtual Machine Manager module and virtual switch by using above-mentioned Virtual Machine Manager module
Now to the network configuration of virtual machine, effectively reduce to the flow of interacting message and time in virtual machine network configuration process,
While time delay is reduced, it is ensured that the stability and continuation of business.
The embodiment of the present invention provides a kind of switch 900, for the network exchange of virtual machine, as shown in figure 9, including:
Receiving unit 901, the network configuration for receiving Virtual Machine Manager module transmission triggers message.
Wherein, the virtual machine progress network that network configuration triggering message is used to be created for the Virtual Machine Manager module is matched somebody with somebody
Put, include the network connection information of the virtual machine.
Processing unit 902, the network connection information for being received according to receiving unit 901 sets up the company with the virtual machine
Connect.
Transmitting element 903, for having returned to the virtual machine and the switch network connection to the Virtual Machine Manager module
The confirmation message of foundation.
Alternatively, the receiving unit 901 is specifically for the network configuration request for receiving Virtual Machine Manager module transmission disappears
The network connection that breath or connection request message, the network configuration request message or connection request message include the virtual machine is believed
Breath.
Specifically, if receiving the network configuration request message of Virtual Machine Manager module transmission, first matched somebody with somebody according to the network
Put request message and carry out network configuration, when the network configuration response for creating and receiving switch transmission for completing the virtual machine
After message, the connection request message of Virtual Machine Manager module transmission, and the network in the connection request message are just received
Link information sets up the connection with the virtual machine;That is, Virtual Machine Manager module indicates that switch carries out network first
Configuration, after the completion of network configuration, indicates that switch sets up the connection with virtual machine.
If receiving the connection request message that Virtual Machine Manager module is sent;Then network is carried out according to the connection request message to match somebody with somebody
Put, and the network connection information in the connection request message sets up the connection with the virtual machine, that is to say, that receiving
After connection request message, network configuration and foundation and the connection of virtual machine are carried out.
The network configuration request message or connection request message that above-mentioned reception Virtual Machine Manager module is sent are reality
Difference in existing mode, the embodiment of the present invention is not limited thereto, but no matter which kind of mode is used, and should all fall into the guarantor of the present invention
In the range of shield.
Further, the processing unit 902 specifically for, after receiving unit 901 receives the network connection information, if
The corresponding virtual network of network connection information of itself configured virtual machine is determined, then directly sets up the company with the virtual machine
Connect.
If it is determined that itself not configuring the corresponding virtual network of network connection information of the virtual machine, then to network management center
Network configuration information request message is sent, so that the network management center returns to network according to the network configuration information request message
Configuration information;The processing unit 902 configures virtual network and foundation and the connection of the virtual machine according to the network configuration information.
Further, the transmitting element 903 is additionally operable to, before the connection with the virtual machine is set up, to the virtual machine pipe
Manage module and send network configuration response message;
The receiving unit 901 is additionally operable to, and is completed in the virtual machine creating and the Virtual Machine Manager module receives the configuration
After response message, the connection request message of Virtual Machine Manager module transmission is received.
It should be noted that above-mentioned network configuration can be directed to the configuration of the progress such as VLAN, ACL, QoS, the present invention is to this
It is not construed as limiting.
Alternatively, the transmitting element 903 is additionally operable to, and successful connection message is sent to the network management center, so as to the net
Network administrative center sends connection disconnection when it is determined that there is conflict virtual machine, to the corresponding switch of the conflict virtual machine and disappeared
Breath, to cause the corresponding switch of conflict virtual machine to disconnect the company that message disconnects the virtual machine that conflicts with this according to the connection
Connect.
Wherein, the conflict virtual machine is the network address and the network address identical virtual machine of the virtual machine.
Further, the switch can include source exchanging device, and the receiving unit 901 is additionally operable to, and receives virtual machine
The connection that administrative center sends disconnects message.
The processing unit 902, be additionally operable to according to the receiving unit 901 receive connection disconnect message disconnect it is virtual with the source
The connection of machine.
It should be noted that affiliated those skilled in the art can be understood that, for convenience and simplicity of description,
The specific work process of the switch of foregoing description and description, may be referred to the corresponding process in preceding method embodiment,
This is repeated no more.
By using above-mentioned switch, realized by the direct interaction of Virtual Machine Manager module and switch to virtual
The network configuration of machine, was effectively reduced to the flow of interacting message and time in virtual machine network configuration process, in reduction
While prolonging, it is ensured that the stability and continuation of business.
It should be noted that above-mentioned Virtual Machine Manager module and above-mentioned switch can be closed and be located in same main frame,
And scene is migrated for virtual-machine data, source virtual machine management module and source exchanging device can be closed and be located in source host, purpose
Virtual Machine Manager module and purpose switch, which can be closed, to be located in destination host.
The structural representation for a kind of device that network configuration is carried out to virtual machine that Figure 10 provides for the present invention, such as Figure 10 institutes
Show, the device 100 includes:
Processor (processor) 101, communication interface (Communications Interface) 102, memory
(memory) 103 and communication bus 104;Wherein, the processor 101, the communication interface 102 and the memory 103 are logical
Cross the communication that the communication bus 104 completes mutually to ask.
Processor 101 is probably a central processor CPU, or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or it is arranged to implement one or more integrated electricity of the embodiment of the present invention
Road.
Memory 103 is used to deposit program code, and described program code includes computer-managed instruction.Memory 103 can
High-speed RAM memory can be included, it is also possible to also including nonvolatile memory (non-volatile memory), for example, at least
One magnetic disk storage.
The communication interface 102, for the code stream after the compression of output image.
The configuration processor code of processor 101, corresponding virtual is handed over for creating virtual machine, and to the virtual machine of establishment
Change planes and send the network configuration triggering message for the network connection information for including the virtual machine, to cause the virtual switch according to this
The network connection information of virtual machine sets up the connection of the virtual switch and the virtual machine, and receives the virtual machine and the virtual friendship
Change planes and set up the confirmation message of connection.
Wherein, network configuration triggering message includes network connection information.
Alternatively, the processor 101 is additionally operable to receive the establishment virtual machine request message that Virtual Machine Manager center is sent, and
According to the establishment virtual machine request message, select the corresponding physical resource of the virtual machine and create the virtual machine.
Alternatively, the processor 101 is additionally operable to send network configuration request message to the virtual switch or connection please
Message is sought, the network configuration request message or connection request message include the network connection information of the virtual machine.
Alternatively, the processor 101 is additionally operable to receive the network configuration response message that the virtual switch is sent, and at this
Virtual machine creating is completed and received after the configuration response message, and connection request message is sent to the virtual switch.
Further, the processor 101 is additionally operable to receive the virtual machine (vm) migration request message that Virtual Machine Manager center is sent,
And the corresponding physical resource of the virtual machine is selected according to the virtual machine (vm) migration request message and the virtual machine is created.
Alternatively, the processor 101 is additionally operable to send network configuration request message to the virtual switch, so that this is virtual
Interchanger sends network configuration information request message after the network configuration request message is received to the network management center.
Alternatively, the processor 101 is additionally operable to send Data Migration request message to Virtual Machine Manager center, so as to the void
Ni Ji administrative centers according to the Data Migration request message by the Data Migration of source virtual machine to purpose virtual machine, and in the data
After the completion of migration, the Data Migration completion message of Virtual Machine Manager center transmission is received.
The structural representation for a kind of device that network configuration is carried out to virtual machine that Figure 11 provides for the present invention, such as Figure 11 institutes
Show, the device 110 includes:
Processor (processor) 111, communication interface (Communications Interface) 112, memory
(memory) 113 and communication bus 114;Wherein, the processor 111, the communication interface 112 and the memory 113 are logical
Cross the communication bus 114 and complete mutual communication.
Processor 111 is probably a central processor CPU, or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or it is arranged to implement one or more integrated electricity of the embodiment of the present invention
Road.
Memory 113 is used to deposit program code, and described program code includes computer-managed instruction.Memory 113 can
High-speed RAM memory can be included, it is also possible to also including nonvolatile memory (non-volatile memory), for example, at least
One magnetic disk storage.
The communication interface 112, for the code stream after the compression of output image.
The configuration processor code of processor 111, the network configuration triggering for receiving the transmission of Virtual Machine Manager module disappears
Breath, the virtual machine that the network configuration triggering message is used to be created by the Virtual Machine Manager module carries out network configuration, bag
The network connection information of the virtual machine is included, and according to network connection information foundation and the connection of the virtual machine, and to
The Virtual Machine Manager module returns to the confirmation message that the virtual machine has been set up with the virtual switch network connection.
Further, the processor 111 is additionally operable to receive the network configuration request that the Virtual Machine Manager module sends and disappeared
Breath or connection request message, the network that the network configuration request message or connection request message include the virtual machine connect
Connect information.
Alternatively, the processor 111 is additionally operable to after the network connection information is received, however, it is determined that itself configured institute
The corresponding virtual network of network connection information of virtual machine is stated, then directly sets up the connection with the virtual machine;If it is determined that itself
The corresponding virtual network of network connection information of the virtual machine is not configured, then sends network configuration information to network management center
Request message, so that the network management center returns to network configuration information according to the network configuration information request message;Institute
State virtual switch and virtual network is configured according to the network configuration information and foundation and the connection of the virtual machine.
Alternatively, if the processor 111 is additionally operable to receive the network configuration request that the Virtual Machine Manager module is sent
Message, before the connection with the virtual machine is set up, network configuration response message is sent to the Virtual Machine Manager module;
The virtual machine creating is completed and the Virtual Machine Manager module is received after the configuration response message, receives the virtual machine
The connection request message that management module is sent.
Alternatively, the processor 111 is additionally operable to send successful connection message to the network management center, so as to the net
Network administrative center sends connection when it is determined that there is conflict virtual machine, to the corresponding virtual switch of the conflict virtual machine and disconnected
Message, to cause the corresponding virtual switch of the conflict virtual machine disconnects message according to the connection to disconnect and the void that conflicts
The connection of plan machine, wherein, the conflict virtual machine is the network address and the network address identical virtual machine of the virtual machine.
Further, the processor 111 is additionally operable under virtual-machine data migration scene, receives Virtual Machine Manager center hair
The connection sent disconnects message, and disconnects message disconnection and the connection of the source virtual machine according to the connection.
The embodiment of the present invention provides a kind of computer-readable medium, comprising computer executed instructions, when the center of computer
Described in computing device during computer executed instructions, the computer is used for the processor for performing the device of above-mentioned Figure 10 descriptions
Program code performed by the processor 111 of the device of program code or above-mentioned Figure 11 descriptions performed by 101.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (20)
1. a kind of method that network configuration is carried out to virtual machine, applied to the Virtual Machine Manager module operated on main frame, it is special
Levy and be, including:
Create virtual machine;
The network configuration for sending the network connection information for including the virtual machine to the corresponding virtual switch of the virtual machine is touched
Message is sent out, so that the virtual switch is after the network configuration triggering message is received, is sent out to the network management center
SCN Space Cable Network configuration request message, wherein, the network configuration triggering message is used to be created by the Virtual Machine Manager module
The virtual machine built carries out network configuration;
Receive the network configuration information response message from network management center that the virtual switch is sent;
Connection request message is sent to the virtual switch;
Receive the virtual machine and set up the confirmation message being connected with the virtual switch.
2. according to the method described in claim 1, it is characterised in that the establishment virtual machine includes:
Receive the establishment virtual machine request message that Virtual Machine Manager center is sent;
According to the establishment virtual machine request message, select the corresponding physical resource of the virtual machine and create the virtual machine.
3. method according to claim 2, it is characterised in that described to be sent to the corresponding virtual switch of the virtual machine
The network configuration triggering message of network connection information comprising the virtual machine, including:
Network configuration request message or connection request message, the network configuration request message are sent to the virtual switch
Or connection request message includes the network connection information of the virtual machine.
4. according to the method described in claim 1, it is characterised in that the establishment virtual machine includes:
Receive the virtual machine (vm) migration request message that Virtual Machine Manager center is sent;
The corresponding physical resource of the virtual machine is selected according to the virtual machine (vm) migration request message and the virtual machine is created.
5. method according to claim 4, it is characterised in that methods described also includes:
Data Migration request message is sent to Virtual Machine Manager center, so that the Virtual Machine Manager center is moved according to the data
Request message is moved by the Data Migration of source virtual machine to purpose virtual machine;
After the completion of the Data Migration, the Data Migration completion message that the Virtual Machine Manager center is sent is received.
6. a kind of method that network configuration is carried out to virtual machine, applied to virtual switch, it is characterised in that including:
The network configuration triggering message that Virtual Machine Manager module is sent is received, the network configuration triggering message is used to be the void
The virtual machine that plan machine management module is created carries out network configuration, includes the network connection information of the virtual machine;
Network configuration information solicited message is sent to network management center;
Receive the network configuration information response message that the network management center is returned;
The network configuration information response message is sent to Virtual Machine Manager module;
Receive the connection request message that the Virtual Machine Manager module is sent;
Set up the connection with the virtual machine;
The confirmation set up to the Virtual Machine Manager module return virtual machine with the virtual switch network connection disappears
Breath.
7. method according to claim 6, it is characterised in that the network that the reception Virtual Machine Manager module is sent
Configuration triggering message includes:The network configuration request message or connection request for receiving the Virtual Machine Manager module transmission disappear
Breath, the network configuration request message or connection request message include the network connection information of the virtual machine.
8. the method according to claim 6 or 7, it is characterised in that methods described also includes:
Successful connection message is sent to the network management center, so that the network management center is it is determined that have conflict virtually
During machine, send connection to the corresponding virtual switch of the conflict virtual machine and disconnect message, to cause the conflict virtual machine pair
The virtual switch answered disconnects the connection of message disconnection and the virtual machine that conflicts according to the connection, wherein, the conflict is empty
Plan machine is the network address and the network address identical virtual machine of the virtual machine.
9. method according to claim 8, it is characterised in that under virtual-machine data migration scene, purpose virtual switch
Machine notifies Virtual Machine Manager center by the Data Migration in source virtual machine to purpose virtual machine, the corresponding mesh of the purpose virtual machine
Virtual switch set up and the connection of the purpose virtual machine;The active virtual switch of the source virtual machine correspondence;It is described
The corresponding purpose virtual switch of the purpose virtual machine is set up with also including before the connection of the purpose virtual machine:
Source virtual switch receives the connection disconnection message that Virtual Machine Manager center is sent;
Source virtual switch disconnects message disconnection and the connection of the source virtual machine according to the connection.
10. a kind of Virtual Machine Manager module, it is characterised in that including:
Processing unit, for creating virtual machine;
Transmitting element, the corresponding virtual switch of virtual machine for being created to the processing unit, which is sent, includes the virtual machine
Network connection information network configuration triggering message, wherein, network configuration triggering message is used to be the virtual machine pipe
The virtual machine that reason module is created carries out network configuration;
Receiving unit, for receiving the confirmation message that the virtual machine is connected with virtual switch foundation;
The transmitting element is additionally operable to, and network configuration request message is sent to the virtual switch, so as to the virtual switch
Machine sends network configuration information request message after the network configuration request message is received to the network management center;
The receiving unit is additionally operable to, and receives the network configuration information response message that the virtual switch is sent;
The transmitting element is additionally operable to, and is completed in the processing unit virtual machine creating and the receiving unit receives described match somebody with somebody
Put after response message, connection request message is sent to the virtual switch.
11. module according to claim 10, it is characterised in that the receiving unit is additionally operable to receive in Virtual Machine Manager
The establishment virtual machine request message that the heart is sent;
The processing unit selects described virtual specifically for the establishment virtual machine request message received according to the receiving unit
The corresponding physical resource of machine simultaneously creates the virtual machine.
12. module according to claim 11, it is characterised in that the transmitting element is specifically for the virtual switch
Machine sends network configuration request message or connection request message, the network configuration request message or connection request message bag
Include the network connection information of the virtual machine.
13. module according to claim 10, it is characterised in that the receiving unit is specifically for receiving Virtual Machine Manager
The virtual machine (vm) migration request message that center is sent;
The processing unit is described virtual specifically for the virtual machine (vm) migration request message selection received according to the receiving unit
The corresponding physical resource of machine simultaneously creates the virtual machine.
14. module according to claim 13, it is characterised in that the transmitting element is additionally operable to, into Virtual Machine Manager
The heart sends Data Migration request message, so that the Virtual Machine Manager center is virtual by source according to the Data Migration request message
The Data Migration of machine is to purpose virtual machine;
The receiving unit is additionally operable to, after the completion of the Data Migration, receives the data that the Virtual Machine Manager center is sent
Migrate completion message.
15. a kind of switch, the network exchange for virtual machine, it is characterised in that including:
Receiving unit, triggers message, the network configuration is touched for receiving the network configuration that the Virtual Machine Manager module is sent
The virtual machine that hair message is used to be created by the Virtual Machine Manager module carries out network configuration, includes the network of the virtual machine
Link information;
Processing unit, the network connection information for being received according to the receiving unit sets up the connection with the virtual machine;
Transmitting element, for built to the Virtual Machine Manager module return virtual machine and the switch network connection
Vertical confirmation message
The processing unit to network management center specifically for sending network configuration information solicited message, so as to the network pipe
Reason center returns to network configuration information according to the network configuration information request message;
The processing unit configures virtual network and foundation and the connection of the virtual machine according to the network configuration information;
The transmitting element is additionally operable to, before the connection with the virtual machine is set up, and is sent to the Virtual Machine Manager module
Network configuration response message;
The receiving unit is additionally operable to, and is completed in the virtual machine creating and the Virtual Machine Manager module receives the configuration
After response message, the connection request message that the Virtual Machine Manager module is sent is received.
16. switch according to claim 15, it is characterised in that the receiving unit is specifically for receiving described
Virtual Machine Manager module send network configuration request message or connection request message, the network configuration request message or
Connection request message includes the network connection information of the virtual machine.
17. the switch according to claim 15 or 16, it is characterised in that the transmitting element is additionally operable to, to described
Network management center sends successful connection message, so that the network management center is when it is determined that have conflict virtual machine, to institute
State the corresponding switch of conflict virtual machine and send connection disconnection message, to cause the corresponding switch of the conflict virtual machine
The connection of message disconnection and the virtual machine that conflicts is disconnected according to the connection, wherein, the conflict virtual machine is the network address
With the network address identical virtual machine of the virtual machine.
18. switch according to claim 17, it is characterised in that the receiving unit is additionally operable to, receives virtual machine
The connection that administrative center sends disconnects message;
The processing unit, the connection for being additionally operable to be received according to the receiving unit disconnects message disconnection and the source virtual machine
Connection.
19. a kind of device that network configuration is carried out to virtual machine, it is characterised in that including processor and memory, the storage
Device stores computer executed instructions, and the processor is connected with the memory by communication bus;
When described device is run, the computer executed instructions of memory storage described in the computing device so that institute
State any described method of device perform claim requirement 1 to 5.
20. a kind of device that network configuration is carried out to virtual machine, it is characterised in that including processor and memory, the storage
Device stores computer executed instructions, and the processor is connected with the memory by communication bus;
When described device is run, the computer executed instructions of memory storage described in the computing device so that institute
State any described method of device perform claim requirement 6 to 9.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/084477 WO2014071637A1 (en) | 2012-11-12 | 2012-11-12 | Method and device for performing network configuration on virtual machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104040950A CN104040950A (en) | 2014-09-10 |
CN104040950B true CN104040950B (en) | 2017-09-29 |
Family
ID=50683964
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201280002829.4A Active CN104040950B (en) | 2012-11-12 | 2012-11-12 | A kind of method and apparatus that network configuration is carried out to virtual machine |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104040950B (en) |
WO (1) | WO2014071637A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107276783B (en) * | 2016-04-08 | 2022-05-20 | 中兴通讯股份有限公司 | Method, device and system for realizing unified management and intercommunication of virtual machines |
CN108599998B (en) * | 2018-04-04 | 2021-11-02 | 刘昱 | Network management and control method and device and computer readable storage medium |
CN108768895B (en) | 2018-05-18 | 2021-02-23 | 华为技术有限公司 | Virtual machine migration method and data center |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102084340A (en) * | 2009-04-28 | 2011-06-01 | 思科技术公司 | Traffic forwarding for virtual machines |
CN102412978A (en) * | 2010-09-21 | 2012-04-11 | 杭州华三通信技术有限公司 | Method for carrying out network configuration for VM and system thereof |
WO2012109868A1 (en) * | 2011-08-01 | 2012-08-23 | 华为技术有限公司 | Network policy configuration method, management device and network management centre device |
-
2012
- 2012-11-12 WO PCT/CN2012/084477 patent/WO2014071637A1/en active Application Filing
- 2012-11-12 CN CN201280002829.4A patent/CN104040950B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102084340A (en) * | 2009-04-28 | 2011-06-01 | 思科技术公司 | Traffic forwarding for virtual machines |
CN102412978A (en) * | 2010-09-21 | 2012-04-11 | 杭州华三通信技术有限公司 | Method for carrying out network configuration for VM and system thereof |
WO2012109868A1 (en) * | 2011-08-01 | 2012-08-23 | 华为技术有限公司 | Network policy configuration method, management device and network management centre device |
Also Published As
Publication number | Publication date |
---|---|
WO2014071637A1 (en) | 2014-05-15 |
CN104040950A (en) | 2014-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243265B (en) | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration | |
CN103109271B (en) | The implementation method of migrate application and system between a kind of platform | |
CN105531970B (en) | Method and system for the load that maps out the work in a network | |
EP3116177B1 (en) | Service implementation method for nfv system, and communications unit | |
US9559946B2 (en) | Link aggregation group (LAG) support on a software-defined network (SDN) | |
CN103026660A (en) | Network policy configuration method, management device and network management centre device | |
CN108632063B (en) | Method, device and system for managing network slice instances | |
CN108900384A (en) | Network flow monitoring method, apparatus and system, computer readable storage medium | |
CN111880902A (en) | Pod creation method, device, equipment and readable storage medium | |
CN107544841B (en) | Virtual machine live migration method and system | |
CN103369027A (en) | Location-aware virtual service provisioning in a hybrid cloud environment | |
CN104780071A (en) | Method and device for upgrading virtual switch | |
CN103002065A (en) | Method and device for sharing internet protocol (IP) address by host device and standby device | |
CN103001892B (en) | Based on network resource allocation method and the system of cloud computing | |
CN106031100A (en) | Service link deployment method and device | |
CN103326887B (en) | A kind of interface managerial method and system | |
CN101951665A (en) | Routing method of double-card mobile terminal and double-card mobile terminal | |
CN105763356A (en) | Resource virtualization processing method, device and controller | |
CN115118585B (en) | Service deployment method, device and system | |
CN108964964A (en) | A kind of network topology display methods and device | |
CN105867864A (en) | Method and device for displaying of K virtual machines (KVMs) | |
CN104040950B (en) | A kind of method and apparatus that network configuration is carried out to virtual machine | |
CN116319296A (en) | Method and device for deploying data centers in cross-SD-WAN fusion mode | |
CN105915604A (en) | Cloud server network system architecture | |
CN103096361A (en) | Interactive method and device of performance statistic data in wireless local area network system |
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: 20211224 Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province Patentee after: xFusion Digital Technologies Co., Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |