CN106982133A - A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information - Google Patents

A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information Download PDF

Info

Publication number
CN106982133A
CN106982133A CN201610032817.6A CN201610032817A CN106982133A CN 106982133 A CN106982133 A CN 106982133A CN 201610032817 A CN201610032817 A CN 201610032817A CN 106982133 A CN106982133 A CN 106982133A
Authority
CN
China
Prior art keywords
operating system
virtual machine
microsoft loopback
loopback adapter
master operating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610032817.6A
Other languages
Chinese (zh)
Other versions
CN106982133B (en
Inventor
阎松明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610032817.6A priority Critical patent/CN106982133B/en
Priority to PCT/CN2017/071525 priority patent/WO2017125016A1/en
Publication of CN106982133A publication Critical patent/CN106982133A/en
Application granted granted Critical
Publication of CN106982133B publication Critical patent/CN106982133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to virtual machine technique field, more particularly to a kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information, the technical problem for solving to depend critically upon hardware when changing VF configuration information.This method includes:Asked by running on the first virtual machine in electronic equipment to the master operating system send configuration run in the electronic equipment;The configuring request is used for the configuration information for indicating the first Microsoft Loopback Adapter that the master operating system changes first virtual machine;By the master operating system, the first configuration information that the configuration information of first Microsoft Loopback Adapter is changed to carry in the configuring request.

Description

A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information
Technical field
The present invention relates to virtual machine technique field, more particularly to a kind of method for changing Microsoft Loopback Adapter configuration information, Equipment and system.
Background technology
In virtual machine (Virtual Machine, VM) environment, network card equipment passes through single source input/output Virtualize (Sing Root I/O Virtualization, SR-IOV) or virtual machine facility queue (Virtual Machine Device Queue, VMDq) etc. I/O virtualization technologies realize multiple Microsoft Loopback Adapter (Virtual Function, VF), each virtual machine distributes a number of VF according to demand.
In this case, if virtual machine needs to adjust the VF of oneself configuration information, for example, need pair Medium education (Media Access Control, the MAC) address of VF port or VLAN The characteristics such as (Virtual Local Area Network, VLAN) mark are configured, then are only relied at present Operated in the special collocation channel of each hardware vendor offer, for example, corresponding Hardware Subdivision can only be given Part sends message, and configuration is completed by hardware component.
It can be seen that, hardware is depended critically upon when changing VF configuration information at present, system cost is higher, and In certain applications scene, the message categories that hardware is provided are limited, if hardware does not provide modification corresponding configuration The operation of information, then if not changing hardware driving code, also can not just realize the configuration information to VF Adjustment.
The content of the invention
The present invention provides a kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information, for solving The technical problem of hardware is depended critically upon during the configuration information for changing VF.
First aspect there is provided it is a kind of change Microsoft Loopback Adapter configuration information method, including:
By running on the first virtual machine in electronic equipment to the main operation run in the electronic equipment System send configuration is asked;The configuring request is used to indicate that the master operating system change described first is virtual The configuration information of first Microsoft Loopback Adapter of machine;
By the master operating system, the configuration information of first Microsoft Loopback Adapter is changed into the configuration please Seek the first configuration information of middle carrying.
Optionally, by running on the first virtual machine in electronic equipment to running in the electronic equipment Master operating system send configuration request before, in addition to:
The communication set up by the master operating system between the master operating system and first virtual machine Passage.
Optionally, set up by the master operating system between the master operating system and first virtual machine Communication port, including:
By the master operating system, the master operating system and first virtual machine are passed through into OVS nets Bridge is connected;Or
By the master operating system, the master operating system and first virtual machine are passed through into chain of command Serial line interface is connected.
Optionally, by the master operating system, the configuration information of first Microsoft Loopback Adapter is changed to After the first configuration information carried in the configuring request, in addition to:
Response message is sent to first virtual machine by the master operating system;The response message is used for Indicate the configuration information change success or failure of first Microsoft Loopback Adapter.
Optionally, by running on the first virtual machine in electronic equipment to running in the electronic equipment Master operating system send configuration request after, in addition to:
The response message that the master operating system is sent is waited by first virtual machine;The response message For indicating that the configuration information of first Microsoft Loopback Adapter changes success or failure;
If not receiving answering for the master operating system transmission also in the timer expiry of first virtual machine Message is answered, then determining that the configuration information of first Microsoft Loopback Adapter is changed by first virtual machine fails.
Optionally, the configuration information includes the MAC Address of first Microsoft Loopback Adapter, first void At least one of VLAN, the mode of operation of first Microsoft Loopback Adapter where plan network interface card;Described first The mode of operation of Microsoft Loopback Adapter is used to indicate that the master that first Microsoft Loopback Adapter is first virtual machine is virtual Network interface card or standby Microsoft Loopback Adapter.
There is provided a kind of dummy machine system, including master operating system and virtual machine for second aspect;Wherein,
First processing module is provided with the virtual machine, for being asked to the master operating system send configuration; The configuring request is used for the first Microsoft Loopback Adapter for indicating that the master operating system changes first virtual machine Configuration information;
Second processing module is provided with the master operating system, will be described for receiving the configuring request The configuration information of first Microsoft Loopback Adapter is changed to the first configuration information carried in the configuring request.
Optionally, the Second processing module is additionally operable to:
Before the configuring request is received, the communication set up between the master operating system and the virtual machine Passage.
Optionally, the Second processing module is used for:
The master operating system is connected with the virtual machine by OVS bridges;Or
The master operating system is connected with the virtual machine by the serial line interface of chain of command.
Optionally, the Second processing module is additionally operable to:
Match somebody with somebody in be changed to carry in the configuring request by the configuration information of first Microsoft Loopback Adapter first After confidence breath, response message is sent to the virtual machine;The response message is used to indicate that described first is empty Intend the configuration information change success or failure of network interface card.
Optionally, the first processing module is additionally operable to:
After being asked to the master operating system send configuration, the response for waiting the master operating system to send Message;The response message is used for the configuration information change success or failure for indicating first Microsoft Loopback Adapter;
If the response for not receiving the master operating system transmission also in the timer expiry of the virtual machine disappears Breath, it is determined that the configuration information change failure of first Microsoft Loopback Adapter.
Optionally, the configuration information includes the MAC Address of first Microsoft Loopback Adapter, first void At least one of VLAN, the mode of operation of first Microsoft Loopback Adapter where plan network interface card;Described first The mode of operation of Microsoft Loopback Adapter is used to indicate that the master that first Microsoft Loopback Adapter is first virtual machine is virtual Network interface card or standby Microsoft Loopback Adapter.
The third aspect there is provided a kind of electronic equipment, including:
First sending module, for by running on the first virtual machine in electronic equipment to running on the electricity Master operating system send configuration request in sub- equipment;The configuring request is used to indicate the master operating system Change the configuration information of the first Microsoft Loopback Adapter of first virtual machine;
Module is changed, for by the master operating system, by the configuration information of first Microsoft Loopback Adapter more It is changed to the first configuration information carried in the configuring request.
Optionally, the electronic equipment also includes setting up module, is used for:
It is described to running on by running on the first virtual machine in electronic equipment in first sending module Before master operating system send configuration request in electronic equipment, the master is set up by the master operating system Communication port between operating system and first virtual machine.
Optionally, the module of setting up is used for:
By the master operating system, the master operating system and first virtual machine are passed through into OVS nets Bridge is connected;Or
By the master operating system, the master operating system and first virtual machine are passed through into chain of command Serial line interface is connected.
Optionally, the electronic equipment also includes the second sending module, is used for:
In the change module by the master operating system, by the configuration information of first Microsoft Loopback Adapter more It is changed to after the first configuration information for being carried in the configuring request, by the master operating system to described One virtual machine sends response message;The response message is used for the configuration information for indicating first Microsoft Loopback Adapter Change success or failure.
Optionally, the electronic equipment also includes waiting module and determining module;
The wait module, for first empty in electronic equipment by running in first sending module After plan machine is asked to the master operating system send configuration run in the electronic equipment, pass through described first Virtual machine waits the response message that the master operating system is sent;The response message is used to indicate described first The configuration information change success or failure of Microsoft Loopback Adapter;
The determining module, if not receiving the master also during for timer expiry in first virtual machine The response message that operating system is sent, then determine matching somebody with somebody for first Microsoft Loopback Adapter by first virtual machine Confidence breath change failure.
Optionally, the configuration information includes the MAC Address of first Microsoft Loopback Adapter, first void At least one of VLAN, the mode of operation of first Microsoft Loopback Adapter where plan network interface card;Described first The mode of operation of Microsoft Loopback Adapter is used to indicate that the master that first Microsoft Loopback Adapter is first virtual machine is virtual Network interface card or standby Microsoft Loopback Adapter.
One or two in above-mentioned technical proposal, at least has the following technical effect that:
When needing to change the configuration information of the first Microsoft Loopback Adapter of the first virtual machine, the first virtual machine can be to Master operating system send configuration is asked, and master operating system can just change the configuration information of the first Microsoft Loopback Adapter, Without the participation of extra hardware component, system cost is saved, even if hardware does not provide modification corresponding configuration The operation of information, because modification configuration information is independent of hardware, then also just do not influence to configuration information Modification, mitigates to the degree of dependence of hardware, even if the implementation of different network interface card producers is inconsistent, also without Different changes need to be done according to different hardware, required operation is reduced, improves the success rate of modification.
Brief description of the drawings
The schematic diagram that Fig. 1 identifies for the VLAN of configuration virtual machine;
Fig. 2 is the flow chart of the method for change Microsoft Loopback Adapter configuration information in the embodiment of the present invention;
Fig. 3 is the schematic diagram of the MAC Address of change Microsoft Loopback Adapter in the embodiment of the present invention;
The flow chart of the MAC Address of Microsoft Loopback Adapter is changed in Fig. 4 embodiment of the present invention;
The schematic diagram of the masterslave switchover of Microsoft Loopback Adapter in Fig. 5 embodiment of the present invention;
The schematic diagram of the VLAN marks of Microsoft Loopback Adapter is changed in Fig. 6 embodiment of the present invention;
Fig. 7 is the structured flowchart of dummy machine system in the embodiment of the present invention;
Fig. 8 is the structured flowchart of electronic equipment in the embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that Described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based in the present invention Embodiment, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
The application scenarios of the embodiment of the present invention introduced below.
As shown in figure 1, such as one server is configured with two pieces of physical network cards, such as respectively NIC1 108 VF ports are configured by SR-IOV with NIC2 110, wherein NIC1 108, such as NIC1's 108 VF is VF1 112, and NIC1 110 configures VF ports again by SR-IOV, such as NIC1's 112 VF is VF2 114.On that server start two virtual machines, for example, VM1 100, VM2 102, VF1 112 is distributed into VM1 100, can set VF1's 112 when VM1 100 are started VLAN is designated 10, and VF2 114 is distributed into VM2 102, can be when VM2 102 are started VF2 114 VLAN is set to be designated 20.
After virtual machine VM1 100 and VM2 102 bring into operation, for example, need VM1 100 and VM2 102 are communicated, then be accomplished by VM1 100 and VF1 112 VLAN marks are set to and VF2 114 VLAN marks are consistent.Under existing mechanism, the operation can only use the physical function interface of hardware (Physical Function, PF)-VF mailbox (mailbox) message mechanism is realized, such as, is passed through VF1 112 sends out PF1 104 of the message to NIC1 108, so as to allow PF1 104 to reset VF1's 112 VLAN is identified.
It can be seen that, hardware is depended critically upon when changing VF configuration information (such as VLAN marks) at present, System cost is higher.
The embodiment of the present invention fully takes into account problem above, is needing the first virtual net of the first virtual machine of change During the configuration information of card, the first virtual machine can be asked to master operating system send configuration, and master operating system is just The configuration information of the first Microsoft Loopback Adapter can be changed, without the participation of extra hardware component, save system into This, though hardware do not provide modification corresponding configuration information operation because modification configuration information independent of Hardware, then also just do not influence the modification to configuration information, mitigates the degree of dependence to hardware, even if different Network interface card producer implementation it is inconsistent, without doing different changes according to different hardware, reduce Required operation, improves the success rate of modification.
The preferred embodiment of the invention is introduced below in conjunction with the accompanying drawings.
Fig. 2 is referred to, the embodiment of the present invention provides a kind of method for changing Microsoft Loopback Adapter configuration information, the party The flow of method is described as follows.
Step 201:By running on the first virtual machine in electronic equipment to the master run in electronic equipment Operating system send configuration is asked;Configuring request is used to indicate master operating system changes the first virtual machine first The configuration information of Microsoft Loopback Adapter;
Step 202:By master operating system, the configuration information of the first Microsoft Loopback Adapter is changed to configuring request First configuration information of middle carrying.
The electronic equipment, for example, can be server, naturally it is also possible to be other kinds of electronic equipment.Should For example operation has one or more virtual machines in electronic equipment, and the first virtual machine is run in the electronic equipment Wherein any one virtual machine.
Master operating system (Host OS) can be installed, the master operating system is not belonging to appoint in the electronic equipment What virtual machine, meanwhile, corresponding operating system can also have been run in different virtual machines, in order to Distinguish, the operating system run in virtual machine is properly termed as sub-operating system (Guest OS), for example, The operating system run in first virtual machine is properly termed as the first sub-operating system.
The physical network card of the electronic equipment is that the electronics is set by I/O virtualization technology (such as SR-IOV) The virtual machine of standby middle operation provides Microsoft Loopback Adapter and supported.By SR-IOV, it can be provided on physical network card One PF, while providing multiple VF interfaces.Wherein, PF master operating systems in the electronic equipment are controlled, It is mainly used in Host OS itself PERCOM peripheral communication demands and configuration needs for physical network card in itself etc.. VF is controlled by the sub-operating system in virtual machine.
Optionally, by running on the first virtual machine in electronic equipment to the master run in electronic equipment Before the request of operating system send configuration, in addition to:
The communication port set up by master operating system between master operating system and the first virtual machine.
That is, in order to realize the communication between master operating system and the first virtual machine, it is necessary to initially set up main operation Communication port between system and the first virtual machine.Communication port between master operating system and the first virtual machine, It can be appreciated that the communication port between master operating system and the first sub-operating system.
Optionally, the communication port set up by master operating system between master operating system and the first virtual machine, Including:
By master operating system, master operating system and the first virtual machine are passed through into open virtual switch (Open vSwitch, OVS) bridge is connected;Or
By master operating system, master operating system is connected with the first virtual machine by the serial line interface of chain of command Connect.
How on earth the embodiment of the present invention between master operating system and the first virtual machine for setting up communication port It is not restricted.
For example, on electronic equipment after electricity, master operating system completes the initialization and configuration of physical network card first Work, the communication port set up between the first virtual machine.
First sub-operating system according to the demand of itself configure the first Microsoft Loopback Adapter characteristic, and by with main behaviour The communication port made between system is asked to master operating system send configuration, and first can be carried in configuring request The information for the first Microsoft Loopback Adapter that sub-operating system is used, and the first sub-operating system can be carried for The configuration information of one Microsoft Loopback Adapter.
Wherein, the target MAC (Media Access Control) address of configuring request can be the MAC of the management mouth of sub-operating system Location, source MAC can be the MAC Address of the first Microsoft Loopback Adapter, and the type of configuring request can be request Asked content can be carried in message, configuring request.
After master operating system receives the configuring request of the first virtual machine transmission, according to what is carried in configuring request Configuration information, sets the configuration information of corresponding first Microsoft Loopback Adapter, and configuration result is passed through into response message The first virtual machine is sent to, that is, is sent to the first sub-operating system, response message is used to indicate the first virtual net The configuration information of card is changed successfully or change fails.
Wherein, the target MAC (Media Access Control) address of response message can be the MAC of the management mouth of the first sub-operating system Address, the type of response message can be carry in response/notification message, response message response content.
After first sub-operating system is asked to master operating system send configuration, you can to wait master operating system The response message of transmission.
Optionally, after the first sub-operating system is asked to master operating system send configuration, timing can be started Device, if before timer expiry, the first sub-operating system have received response message, then the first child-operation System analysis response message, may thereby determine that the configuration information of the first Microsoft Loopback Adapter is changed successfully or more Change failure.And if the first sub-operating system does not receive response message also in timer expiry, then first is sub Operating system can determine the configuration information change failure of the first Microsoft Loopback Adapter, without continuing waiting for, Ke Yijin Other work of row, so, it is to avoid the first sub-operating system is constantly in wait state.
Optionally, where the MAC Address of configuration information including the first Microsoft Loopback Adapter, the first Microsoft Loopback Adapter At least one of VLAN, mode of operation of the first Microsoft Loopback Adapter, can also include the first virtual net certainly Other possible arbitrary disposition information of card;The mode of operation of first Microsoft Loopback Adapter is used to indicate the first virtual net Block the main Microsoft Loopback Adapter or standby Microsoft Loopback Adapter for first virtual machine.
VLAN where first Microsoft Loopback Adapter, for example, include the mark of the VLAN where the first Microsoft Loopback Adapter Know (i.e. VLAN marks).
Change Microsoft Loopback Adapter configuration information provided in an embodiment of the present invention is introduced below by several examples Method.
Example 1:The scene of the MAC Address of first Microsoft Loopback Adapter need to be set for the first sub-operating system.
Fig. 3 is referred to, an electronic equipment passes through two physical network cards and Ethernet switch (Ethernet Switch) connect.A virtual machine (being for example referred to as VM 110), VM 110 have been run in the electronic equipment It is connected by OVS with master operating system, configuring request can be interacted by the form of ether network packet. Two pieces of physical network cards of the electronic equipment are respectively designated as NIC1 100 and NIC2 102, wherein NIC1 100 VF ports are configured by SR-IOV, such as NIC1 100 VF is VF1 104, and NIC2 102 is same VF ports are configured by SR-IOV, such as NIC2 102 VF is VF2 106.By 104 points of VF1 Dispensing VM 110, referred to as such as VNIC1, and VF2 106 is distributed into VM 110, such as referred to as VNIC2.
Need VF's according to used in the self-demands of VM 110 reset VM 110 on VM 110 after electricity MAC Address, the process step of flow elements refers to Fig. 4.
Fig. 4 illustrates that master operating system (is for example referred to as the first child-operation with the sub-operating system in VM 110 System) between interaction.
1st, after electronic equipment starts successfully, master operating system is built by OVS with the first sub-operating system first Vertical communication port.
2nd, after the communication port is successfully constructed, the first sub-operating system is needing the MAC of setting Microsoft Loopback Adapter When address (such as needing to set VNIC1 MAC Address and VNIC2 MAC Address), lead to Cross the communication port set up to ask to master operating system send configuration, the new of VF is carried in configuring request MAC Address.
After send configuration request, the first sub-operating system can start timer, wait master operating system hair The response message sent.
3rd, master operating system receives configuring request by communication port, parses configuring request, it is determined that configuration please Seek the content of middle carrying.
4th, master operating system sends response message to the first sub-operating system.
Master operating system judges the validity of configuring request according to the configuration information of itself, if in configuring request The parameter error of carrying, then master operating system can be to the first sub-operating system transmission response message, the response Message is used to indicate configuration information change failure.If configuring request is correct, master operating system can basis The type of message of configuring request, calls IOCTRL interfaces to issue MAC configuration informations respectively to NIC1 100 With NIC2 102 (reference can be made to arrow in Fig. 3), complete MAC Address and set.
Master operating system judges whether configuration succeeds by the returning result of reception, and construction issues the first son behaviour Make the response message of system, the response message is sent to the first sub-operating system, the response message is used to indicate MAC Address changes success or failure.
Wherein, the first sub-operating system can start timer, to wait sub- behaviour after send configuration request Make the response message of system.If before timer expiry, the first sub-operating system have received main operation system System sends response message, then the first sub-operating system stops timer, the content of response message is parsed, with true Determine MAC Address to change successfully or fail.
If it is determined that MAC Address is changed successfully, then the first sub-operating system can terminate this configuration setting Flow.If in timer expiry, the first sub-operating system does not receive response message also, or receive Response message indicates MAC Address change failure, then it represents that mistake is occurred in that in configuration process, then VNIC1 Possibly can not normally it be run with VNIC2, then the first sub-operating system can close the VNIC1 of this configuration And VNIC2, prevent error diffusion.
Example 2:First sub-operating system initiates the masterslave switchover of bond mouthfuls of Microsoft Loopback Adapter.
Fig. 5 is referred to, an electronic equipment is connected by two physical network cards with Ethernet switch.The electricity Two virtual machines (being for example referred to as VM1 110 and VM2 120), VM1 110 have been run in sub- equipment It is connected respectively by OVS with master operating system with VM2 120, configuring request can pass through ether network packet Form is interacted.Two pieces of physical network cards of the electronic equipment are respectively designated as NIC1 100 and NIC2 102, Wherein NIC1 100 configures VF ports by SR-IOV, and such as NIC1 100 VF is VF1 104 With VF1 105, NIC2 102 VF ports, such as NIC2 102 VF are configured again by SR-IOV For VF2 106 and VF2 107.VF1 104 and VF2106 are distributed into VM1 110, for example, claimed respectively For VNIC1 and VNIC2, VF1 105 and VF2 107 are distributed into VM2 120, for example, are referred to as VNIC3 and VNIC4.Wherein, VF1 104 and VF2 106 as VM1 110 active and standby bond, VF1 105 and VF2 107 as VM2 120 active and standby bond.Such as NIC1 100 is main physical network card, NIC2 102 be spare physical network interface card.
For example, needed on VM1 110 after electricity according to VM1 110 demands of itself reset VNIC1 and VNIC2 active and standby bond information.
After electronic equipment starts successfully, master operating system and (VM1 110 operation of the first sub-operating system System) and the second sub-operating system (VM2 120 operating system) pass through chain of command OVS respectively first Mode set up communication port.
After the communication port is successfully constructed, the first sub-operating system is according to the demand of itself, it is necessary to initiate Active and standby bond mouthfuls of VNIC1 and VNIC2 are switched, and the first sub-operating system is sent to master operating system matches somebody with somebody Request is put, VNIC1 and VNIC2 bond masterslave switchover configuration informations are carried in the configuring request. After send configuration request, the first sub-operating system can start timer, wait the response of master operating system to disappear Breath.
Master operating system is received after configuring request, respectively to NIC1 100 and the issuing messages of NIC2 102, with Indicate switching NIC1 100 and NIC2 102 active and standby bond states.
Master operating system judges NIC1 100 and NIC2 102 active and standby bond by the returning result of reception Whether switching succeeds, and master operating system constructs the response for issuing the first sub-operating system according to the result of switching Message.
If NIC1 100 and NIC2 102 active and standby bond is switched successfully, meanwhile, master operating system hair Also have VNIC3 and VNIC4 on existing NIC1 100 and NIC2 102, therefore, master operating system except to First sub-operating system is sent outside response message, can also be in the lump to the first sub-operating system and/or second Sub-operating system sends a notification message, for indicating that NIC1 100 and NIC2 102 there occurs masterslave switchover.
If NIC1 100 and NIC2 102 active and standby bond handoff failures, master operating system is to first Sub-operating system sends the response message for indicating handoff failure.
If it is determined that VNIC1 and VNIC2 active and standby bond is switched successfully, then the first sub-operating system can To terminate the flow that this configuration is set.
In addition, if determine that VNIC1 and VNIC2 active and standby bond is switched successfully, then the second child-operation System is also possible to receive the notification message of master operating system transmission, then the second sub-operating system can be logical according to this Know message to set VNIC3 and VNIC4 activestandby state.
If the first sub-operating system does not receive response message, or the response received also in timer expiry Message indicates VNIC1 and VNIC2 active and standby bond handoff failures, then it represents that occurred in that in configuration process Mistake, then VNIC1 and VNIC2 possibly can not normally be run, then the first sub-operating system can be closed The VNIC1 and VNIC2 of this configuration, prevent error diffusion.
Example 3:First sub-operating system initiates the setting of VLAN marks.
It (is respectively VM1 for example to refer to and 4 virtual machines have been run on Fig. 6, an electronic equipment 418~VM4 424), each virtual machine has the VF of oneself to be connected with physical network card NIC1, wherein, VM1 418 manages the configuration of each virtual machine internal, system as the management node in this 4 virtual machines The information such as meter.Wherein 420~VM4 of VM2 424 have 1 VF (VF2~VF4) to be connected to physics respectively On network interface card NIC1, the external network interface of virtual machine is used as.418~VM4 of VM1 424 lead to master operating system Cross OVS bridging communications.
The VF according to used in the configuration needs of user reset VM2~VM4 is needed on VM1 418 after electricity Port vlan information.
After electronic equipment starts successfully, master operating system passes through chain of command first with each sub-operating system OVS mode sets up communication port.After communication port is successfully constructed, VM1 418 operating system (example Such as be referred to as the first sub-operating system) as management node, it is necessary to set the VLAN of each virtual machine.First Sub-operating system is asked to master operating system send configuration, and the configuring request is used to ask configuration VF2~VF4 VLAN.After send configuration request, the first sub-operating system can start timer, wait main operation The response message of system.
Master operating system is received after the configuring request of the first sub-operating system transmission, to NIC1 issuing messages, VLAN for configuring VF2~VF4, master operating system by receive returning result judge configuration whether into Work(, and send response message to the first sub-operating system.
Before timer expiry, if the first sub-operating system have received response message, stop timer, The content of response message is parsed, if configuration successful, the first sub-operating system can be distinguished by chain of command Send a notification message to 420~VM4 of VM2 424, i.e., send a notification message respectively and give VM2 420~VM4 424 operating system, terminates the flow that this configuration is set.If the first child-operation in timer expiry System does not receive response message, or response message is used to indicate configuration failure, then the first sub-operating system stops This VLAN setting procedure.
If 420~VM4 of VM2 424 receive the notification message from the first sub-operating system, according to notice The vlan information of the port of the storage of the content update of message locally, configuration take-effective.
The device in the embodiment of the present invention is introduced below in conjunction with the accompanying drawings.
Fig. 7 is referred to, based on same inventive concept, the embodiment of the present invention provides a kind of dummy machine system, should Dummy machine system can include master operating system 701 and virtual machine 702.
Wherein, first processing module 7021 can be provided with virtual machine 702, for master operating system 701 send configurations are asked;Configuring request is used to indicate the first of the change virtual machine 702 of master operating system 701 The configuration information of Microsoft Loopback Adapter;
Second processing module 7011 is provided with master operating system 701, for receiving configuring request, by The configuration information of one Microsoft Loopback Adapter is changed to the first configuration information carried in configuring request.
Optionally, Second processing module 7011 is additionally operable to:
Before configuring request is received, the communication port set up between master operating system 701 and virtual machine 702.
Optionally, Second processing module 7011 is used for:
Master operating system 701 is connected with virtual machine 702 by OVS bridges;Or
Master operating system 701 is connected with virtual machine 702 by the serial line interface of chain of command.
Optionally, Second processing module 7011 is additionally operable to:
By the configuration information of the first Microsoft Loopback Adapter be changed to the first configuration information for being carried in configuring request it Afterwards, response message is sent to virtual machine 702;Response message is used for the configuration information for indicating the first Microsoft Loopback Adapter Change success or failure.
Optionally, first processing module 7021 is additionally operable to:
After being asked to the send configuration of master operating system 701, the response for waiting master operating system 701 to send Message;Response message is used for the configuration information change success or failure for indicating the first Microsoft Loopback Adapter;
If not receiving the response message of the transmission of master operating system 701 also in the timer expiry of virtual machine 702, Then determine the configuration information change failure of the first Microsoft Loopback Adapter.
Optionally, where the MAC Address of configuration information including the first Microsoft Loopback Adapter, the first Microsoft Loopback Adapter At least one of VLAN, mode of operation of the first Microsoft Loopback Adapter;The mode of operation of first Microsoft Loopback Adapter is used In the main Microsoft Loopback Adapter or standby Microsoft Loopback Adapter that indicate that the first Microsoft Loopback Adapter is first virtual machine.
Wherein, Second processing module 7011 can be master operating system 701 itself, or can also be main One of functional module in operating system 701, first processing module 7021 can be virtual machine 702 Itself, or can also be one of functional module in virtual machine 702.
The dummy machine system can be realized such as the method in preceding Fig. 2-Fig. 6, such as virtual machine 702 can be as Preceding the first described virtual machine, for the function achieved by modules in the dummy machine system, is referred to The description of method part.
Fig. 8 is referred to, based on same inventive concept, the embodiment of the present invention provides a kind of electronic equipment, the electricity Sub- equipment can include the first sending module 801 and change module 802.
First sending module 801, for by running on the first virtual machine in electronic equipment to running on electricity Master operating system send configuration request in sub- equipment;Configuring request is used to indicate master operating system change first The configuration information of first Microsoft Loopback Adapter of virtual machine;
Module 802 is changed, for by master operating system, the configuration information of the first Microsoft Loopback Adapter to be changed to The first configuration information carried in configuring request.
Optionally, the electronic equipment also includes setting up module, is used for:
In the first sending module 801 by running on the first virtual machine in electronic equipment to running on electronics Before master operating system send configuration request in equipment, master operating system and the are set up by master operating system Communication port between one virtual machine.
Optionally, setting up module is used for:
By master operating system, master operating system is connected with the first virtual machine by OVS bridges;Or
By master operating system, master operating system is connected with the first virtual machine by the serial line interface of chain of command Connect.
Optionally, the electronic equipment also includes the second sending module, is used for:
In change module 802 by master operating system, the configuration information of the first Microsoft Loopback Adapter is changed to configuration After the first configuration information carried in request, response message is sent to the first virtual machine by master operating system; Response message is used for the configuration information change success or failure for indicating the first Microsoft Loopback Adapter.
Optionally, the electronic equipment also includes waiting module and determining module;
Wait module, in the first sending module 801 by running on the first virtual machine in electronic equipment To after the master operating system send configuration request run in electronic equipment, waited and led by the first virtual machine The response message that operating system is sent;Response message is used to indicate that the configuration information of the first Microsoft Loopback Adapter is modified to Work(or failure;
Determining module, if do not receive main operation transmission during for timer expiry in the first virtual machine also should Message is answered, then determining that the configuration information of the first Microsoft Loopback Adapter is changed by the first virtual machine fails.
Optionally, where the MAC Address of configuration information including the first Microsoft Loopback Adapter, the first Microsoft Loopback Adapter At least one of VLAN, mode of operation of the first Microsoft Loopback Adapter;The mode of operation of first Microsoft Loopback Adapter is used In the main Microsoft Loopback Adapter or standby Microsoft Loopback Adapter that indicate that the first Microsoft Loopback Adapter is the first virtual machine.
The electronic equipment can be realized such as the method in preceding Fig. 2-Fig. 6, for modules in the electronic equipment Achieved function, refers to the description of method part.
It is apparent to those skilled in the art that, for convenience and simplicity of description, only with above-mentioned The division progress of each functional unit is for example, in practical application, as needed can divide above-mentioned functions With by different functional unit completions, i.e., the internal structure of device is divided into different functional units, with complete Into all or part of function described above.The specific works mistake of the system, apparatus, and unit of foregoing description Journey, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can in several embodiments provided herein, it should be understood that disclosed apparatus and method To realize by another way.For example, device embodiment described above is only schematical, example Such as, the division of the unit or unit, only a kind of division of logic function can have another when actually realizing Outer dividing mode, such as multiple units or component can combine or be desirably integrated into another system, or Some features can be ignored, or not perform.Another, shown or discussed coupling or straight each other Connect coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, as The part that unit is shown can be or may not be physical location, you can with positioned at a place, or It can also be distributed on multiple NEs.It can select according to the actual needs therein some or all of Unit realizes the purpose of this embodiment scheme.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, Can also be that unit is individually physically present, can also two or more units be integrated in a unit In.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ SFU software functional unit Form is realized.
If the integrated unit is realized using in the form of SFU software functional unit and is used as independent production marketing Or in use, can be stored in a computer read/write memory medium.Understood based on such, this Shen Part that technical scheme please substantially contributes to prior art in other words or the technical scheme it is complete Portion or part can be embodied in the form of software product, and the computer software product is stored in a storage In medium, including some instructions to cause a computer equipment (can be personal computer, server, Or the network equipment etc.) or processor (processor) perform the complete of the application each embodiment methods described Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic Dish or CD etc. are various can be with the medium of store program codes.
Described above, above example is only described in detail to the technical scheme to the application, but with The explanation of upper embodiment is only intended to help the method for understanding the embodiment of the present invention, should not be construed as to the present invention The limitation of embodiment.Those skilled in the art, can in the technical scope that the embodiment of the present invention is disclosed The change or replacement readily occurred in, should all cover within the protection domain of the embodiment of the present invention.

Claims (18)

1. a kind of method for changing Microsoft Loopback Adapter configuration information, it is characterised in that including:
By running on the first virtual machine in electronic equipment to the main operation run in the electronic equipment System send configuration is asked;The configuring request is used to indicate that the master operating system change described first is virtual The configuration information of first Microsoft Loopback Adapter of machine;
By the master operating system, the configuration information of the first Microsoft Loopback Adapter is changed in the configuring request The first configuration information carried.
2. the method as described in claim 1, it is characterised in that by running in electronic equipment Before first virtual machine is asked to the master operating system send configuration run in the electronic equipment, in addition to:
The communication set up by the master operating system between the master operating system and first virtual machine Passage.
3. method as claimed in claim 2, it is characterised in that institute is set up by the master operating system The communication port between master operating system and first virtual machine is stated, including:
By the master operating system, the master operating system and first virtual machine are passed through into OVS nets Bridge is connected;Or
By the master operating system, the master operating system and first virtual machine are passed through into chain of command Serial line interface is connected.
4. method as claimed in claim 3, it is characterised in that by the master operating system, incite somebody to action The configuration information of first Microsoft Loopback Adapter be changed to the first configuration information for being carried in the configuring request it Afterwards, in addition to:
Response message is sent to first virtual machine by the master operating system;The response message is used for Indicate the configuration information change success or failure of first Microsoft Loopback Adapter.
5. method as claimed in claim 3, it is characterised in that by running in electronic equipment After first virtual machine is asked to the master operating system send configuration run in the electronic equipment, in addition to:
The response message that the master operating system is sent is waited by first virtual machine;The response message For indicating that the configuration information of first Microsoft Loopback Adapter changes success or failure;
If not receiving answering for the master operating system transmission also in the timer expiry of first virtual machine Message is answered, then determining that the configuration information of first Microsoft Loopback Adapter is changed by first virtual machine fails.
6. method as claimed in claim 3, it is characterised in that the configuration information includes described first VLAN, first Microsoft Loopback Adapter where the MAC Address of Microsoft Loopback Adapter, first Microsoft Loopback Adapter At least one of mode of operation;The mode of operation of first Microsoft Loopback Adapter is used to indicate that described first is empty Intend main Microsoft Loopback Adapter or standby Microsoft Loopback Adapter that network interface card is first virtual machine.
7. a kind of dummy machine system, it is characterised in that including master operating system and virtual machine;Wherein,
First processing module is provided with the virtual machine, for being asked to the master operating system send configuration; The configuring request is used to indicate matching somebody with somebody for the first Microsoft Loopback Adapter that the master operating system changes the first virtual machine Confidence ceases;
Second processing module is provided with the master operating system, will be described for receiving the configuring request The configuration information of first Microsoft Loopback Adapter is changed to the first configuration information carried in the configuring request.
8. dummy machine system as claimed in claim 7, it is characterised in that the Second processing module is also For:
Before the configuring request is received, the communication set up between the master operating system and the virtual machine Passage.
9. dummy machine system as claimed in claim 8, it is characterised in that the Second processing module is used In:
The master operating system is connected with the virtual machine by OVS bridges;Or
The master operating system is connected with the virtual machine by the serial line interface of chain of command.
10. dummy machine system as claimed in claim 9, it is characterised in that the Second processing module is also For:
Match somebody with somebody in be changed to carry in the configuring request by the configuration information of first Microsoft Loopback Adapter first After confidence breath, response message is sent to the virtual machine;The response message is used to indicate that described first is empty Intend the configuration information change success or failure of network interface card.
11. dummy machine system as claimed in claim 9, it is characterised in that the first processing module is also For:
After being asked to the master operating system send configuration, the response for waiting the master operating system to send Message;The response message is used for the configuration information change success or failure for indicating first Microsoft Loopback Adapter;
If the response for not receiving the master operating system transmission also in the timer expiry of the virtual machine disappears Breath, it is determined that the configuration information change failure of first Microsoft Loopback Adapter.
12. dummy machine system as claimed in claim 9, it is characterised in that the configuration information includes institute State VLAN where the MAC Address of the first Microsoft Loopback Adapter, first Microsoft Loopback Adapter, it is described first empty Intend at least one of mode of operation of network interface card;The mode of operation of first Microsoft Loopback Adapter is described for indicating First Microsoft Loopback Adapter is the main Microsoft Loopback Adapter or standby Microsoft Loopback Adapter of first virtual machine.
13. a kind of electronic equipment, it is characterised in that including:
First sending module, for by running on the first virtual machine in electronic equipment to running on the electricity Master operating system send configuration request in sub- equipment;The configuring request is used to indicate the master operating system Change the configuration information of the first Microsoft Loopback Adapter of first virtual machine;
Module is changed, for by the master operating system, by the configuration information of first Microsoft Loopback Adapter more It is changed to the first configuration information carried in the configuring request.
14. electronic equipment as claimed in claim 13, it is characterised in that the electronic equipment also includes Module is set up, is used for:
It is described to running on by running on the first virtual machine in electronic equipment in first sending module Before master operating system send configuration request in electronic equipment, the master is set up by the master operating system Communication port between operating system and first virtual machine.
15. electronic equipment as claimed in claim 14, it is characterised in that the module of setting up is used for:
By the master operating system, the master operating system and first virtual machine are passed through into OVS nets Bridge is connected;Or
By the master operating system, the master operating system and first virtual machine are passed through into chain of command Serial line interface is connected.
16. electronic equipment as claimed in claim 15, it is characterised in that the electronic equipment also includes Second sending module, is used for:
In the change module by the master operating system, by the configuration information of first Microsoft Loopback Adapter more It is changed to after the first configuration information for being carried in the configuring request, by the master operating system to described One virtual machine sends response message;The response message is used for the configuration information for indicating first Microsoft Loopback Adapter Change success or failure.
17. electronic equipment as claimed in claim 15, it is characterised in that the electronic equipment also includes Wait module and determining module;
The wait module, for first empty in electronic equipment by running in first sending module After plan machine is asked to the master operating system send configuration run in the electronic equipment, pass through described first Virtual machine waits the response message that the master operating system is sent;The response message is used to indicate described first The configuration information change success or failure of Microsoft Loopback Adapter;
The determining module, if not receiving the master also during for timer expiry in first virtual machine The response message that operating system is sent, then determine matching somebody with somebody for first Microsoft Loopback Adapter by first virtual machine Confidence breath change failure.
18. electronic equipment as claimed in claim 15, it is characterised in that the configuration information includes institute State VLAN where the MAC Address of the first Microsoft Loopback Adapter, first Microsoft Loopback Adapter, it is described first empty Intend at least one of mode of operation of network interface card;The mode of operation of first Microsoft Loopback Adapter is described for indicating First Microsoft Loopback Adapter is the main Microsoft Loopback Adapter or standby Microsoft Loopback Adapter of first virtual machine.
CN201610032817.6A 2016-01-18 2016-01-18 Method, equipment and system for changing configuration information of virtual network card Active CN106982133B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610032817.6A CN106982133B (en) 2016-01-18 2016-01-18 Method, equipment and system for changing configuration information of virtual network card
PCT/CN2017/071525 WO2017125016A1 (en) 2016-01-18 2017-01-18 Method, apparatus and system for modifying configuration information of virtual network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610032817.6A CN106982133B (en) 2016-01-18 2016-01-18 Method, equipment and system for changing configuration information of virtual network card

Publications (2)

Publication Number Publication Date
CN106982133A true CN106982133A (en) 2017-07-25
CN106982133B CN106982133B (en) 2020-12-29

Family

ID=59339888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610032817.6A Active CN106982133B (en) 2016-01-18 2016-01-18 Method, equipment and system for changing configuration information of virtual network card

Country Status (2)

Country Link
CN (1) CN106982133B (en)
WO (1) WO2017125016A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109245925A (en) * 2018-08-28 2019-01-18 郑州云海信息技术有限公司 A kind of method, apparatus and computer readable storage medium configuring vlan
CN111698141A (en) * 2019-03-13 2020-09-22 中兴通讯股份有限公司 Message forwarding method and device
CN113132200A (en) * 2019-12-30 2021-07-16 中兴通讯股份有限公司 Data forwarding method, data forwarding device, data forwarding system, server and storage medium
CN115314380A (en) * 2022-06-30 2022-11-08 山东浪潮科学研究院有限公司 VF configuration method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3376376B1 (en) * 2017-01-20 2020-03-11 Huawei Technologies Co., Ltd. Method, network card, host device and computer system for forwarding data packages
CN114844744B (en) * 2022-03-04 2023-07-21 阿里巴巴(中国)有限公司 Virtual private cloud network configuration method and device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101323A1 (en) * 2005-10-28 2007-05-03 Microsoft Corporation Automatic virtual machine adjustments to network changes
CN101800658A (en) * 2008-12-30 2010-08-11 英特尔公司 Apparatus and method for managing subscription requests for a network interface component
EP2423826A2 (en) * 2010-08-27 2012-02-29 Hitachi Ltd. Computer system, i/o device control method, and i/o drawer
US8370838B1 (en) * 2005-02-07 2013-02-05 Parallels IP Holdings GmbH System and method for starting a cloud-based virtualization system with partially deprivileged host OS
US20150301844A1 (en) * 2014-04-21 2015-10-22 Oracle International Corporation Shadow vnics for the control and observability of io virtual functions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370838B1 (en) * 2005-02-07 2013-02-05 Parallels IP Holdings GmbH System and method for starting a cloud-based virtualization system with partially deprivileged host OS
US20070101323A1 (en) * 2005-10-28 2007-05-03 Microsoft Corporation Automatic virtual machine adjustments to network changes
CN101800658A (en) * 2008-12-30 2010-08-11 英特尔公司 Apparatus and method for managing subscription requests for a network interface component
EP2423826A2 (en) * 2010-08-27 2012-02-29 Hitachi Ltd. Computer system, i/o device control method, and i/o drawer
US20150301844A1 (en) * 2014-04-21 2015-10-22 Oracle International Corporation Shadow vnics for the control and observability of io virtual functions

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109245925A (en) * 2018-08-28 2019-01-18 郑州云海信息技术有限公司 A kind of method, apparatus and computer readable storage medium configuring vlan
CN111698141A (en) * 2019-03-13 2020-09-22 中兴通讯股份有限公司 Message forwarding method and device
CN113132200A (en) * 2019-12-30 2021-07-16 中兴通讯股份有限公司 Data forwarding method, data forwarding device, data forwarding system, server and storage medium
CN113132200B (en) * 2019-12-30 2024-01-19 中兴通讯股份有限公司 Data forwarding method, repeater, system, server and storage medium
CN115314380A (en) * 2022-06-30 2022-11-08 山东浪潮科学研究院有限公司 VF configuration method and device
CN115314380B (en) * 2022-06-30 2024-03-01 山东浪潮科学研究院有限公司 VF configuration method and device

Also Published As

Publication number Publication date
CN106982133B (en) 2020-12-29
WO2017125016A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
CN106982133A (en) A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information
EP2904739B1 (en) Discovering, validating, and configuring hardware-inventory components
CN106933753B (en) Control method and device of intelligent interface card
CN102272723A (en) System, apparatus, and method for fast startup of USB devices
CN108139924A (en) Hot plug hardware and Software implementations
CN113312143B (en) Cloud computing system, command processing method and virtualization simulation device
CN106406847A (en) Method and system for remote system configuration management and non-transitory computer-readable storage medium
CN109471660A (en) Docking station device, electronic device and MAC address clone method
CN103455363B (en) Command processing method, device and physical host of virtual machine
CN107749807A (en) A kind of network function verification method and checking system towards NFV
CN104731635A (en) Virtual machine access control method and virtual machine access control system
CN104102490B (en) Method for realizing CEN/XFS SP on basis of Windows service
CN109542525A (en) A kind of method, apparatus, terminal and storage medium by BMC switching system memory configurations
CN105515811A (en) USB wireless network card configuration method, host, USB wireless network card and communication system
CN111159090B (en) Information processing method and device and electronic equipment
CN113778739B (en) System repair method, system, equipment and storage medium of all-in-one machine
CN102253845A (en) Server system
EP3522055B1 (en) System and method to enable component inventory and compliance in the platform
WO2007054447A1 (en) Method for controlling mobile data connection through usb ethernet management
CN104158709A (en) Optical module identification method and port extender
CN112099916B (en) Virtual machine data migration method and device, computer equipment and storage medium
CN106576068A (en) Software security verification method, equipment and system
CN113886153B (en) Network card pressure testing method and device based on container
CN109032765A (en) A kind of virtual machine two-node cluster hot backup dispositions method, device and equipment
CN110874264A (en) Example hot migration method and device, storage medium and processor

Legal Events

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