WO2017125016A1 - 更改虚拟网卡配置信息的方法、设备及系统 - Google Patents

更改虚拟网卡配置信息的方法、设备及系统 Download PDF

Info

Publication number
WO2017125016A1
WO2017125016A1 PCT/CN2017/071525 CN2017071525W WO2017125016A1 WO 2017125016 A1 WO2017125016 A1 WO 2017125016A1 CN 2017071525 W CN2017071525 W CN 2017071525W WO 2017125016 A1 WO2017125016 A1 WO 2017125016A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
network card
virtual machine
virtual
virtual network
Prior art date
Application number
PCT/CN2017/071525
Other languages
English (en)
French (fr)
Inventor
阎松明
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017125016A1 publication Critical patent/WO2017125016A1/zh

Links

Images

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

Definitions

  • the present disclosure relates to the field of virtual machine technologies, for example, to a method, device, and system for changing virtual network card configuration information.
  • the NIC device uses Sing Root I/O Virtualization (SR-IOV) or Virtual Machine Device Queue (VMDq).
  • SR-IOV Sing Root I/O Virtualization
  • VMDq Virtual Machine Device Queue
  • O virtualization technology implements multiple virtual virtual machines (VFs), each of which allocates a certain number of VFs according to requirements.
  • the virtual machine needs to adjust its VF configuration information, for example, the multimedia access control (MAC) address or virtual local area network (VLAN) identifier of the VF port is required.
  • MAC multimedia access control
  • VLAN virtual local area network
  • the hardware When changing the configuration information of a VF port, the hardware is more dependent and the system cost is higher. However, in some application scenarios, the types of messages provided by the hardware are limited. If the hardware does not provide an operation to modify the configuration information of the virtual machine VF port, the hardware driver code needs to be modified to implement the adjustment of the configuration information of the VF port.
  • the present disclosure provides a method, device, and system for changing virtual network card configuration information, which can reduce hardware hardware dependency when changing configuration information of a VF port.
  • a method for changing virtual network card configuration information may include: a first virtual machine running in an electronic device sends a configuration request to a primary operating system running in the electronic device; the configuration request is used for Instructing the main operating system to change the configuration information of the first virtual network card of the first virtual machine; the main operating system changing the configuration information of the first virtual network card to the first configuration information carried in the configuration request .
  • the method further includes: the primary operating system establishing a communication channel between the primary operating system and the first virtual machine.
  • the primary operating system establishes a communication channel between the primary operating system and the first virtual machine, including: connecting the primary operating system to the first virtual machine by using an OVS bridge Or connecting the primary operating system to the first virtual machine through a serial interface of the management plane.
  • the method further includes: the primary operating system to the first virtual machine Sending a response message; the response message is used to indicate that the configuration information of the first virtual network card changes successfully or fails.
  • the method further includes: the first virtual machine waiting for the response sent by the primary operating system The response message is used to indicate that the configuration information of the first virtual network card is changed successfully or fails; if the response message sent by the primary operating system has not been received when the timer of the first virtual machine expires, And the first virtual machine determines that the configuration information of the first virtual network card fails to be changed.
  • the configuration information may include at least one of a MAC address of the first virtual network card, a VLAN where the first virtual network card is located, and an operating mode of the first virtual network card; the first virtual The working mode of the network card is used to indicate that the first virtual network card is a primary virtual network card or a standby virtual network card of the first virtual machine.
  • a virtual machine system including a main operating system and a virtual machine;
  • a first processing module is configured to send a configuration request to the main operating system, where the configuration request is used to instruct the main operating system to change a configuration of the first virtual network card of the first virtual machine.
  • the second processing module is configured to receive the configuration request, and the configuration information of the first virtual network card is changed to the first configuration information carried in the configuration request.
  • the second processing module is further configured to: establish a communication channel between the main operating system and the virtual machine before receiving the configuration request.
  • the second processing module may be further configured to: connect the main operating system to the virtual machine through an OVS bridge; or connect the main operating system by using a serial interface of a management plane The virtual machines are connected.
  • the second processing module may be further configured to: after the configuration information of the first virtual network card is changed to the first configuration information carried in the configuration request, send a response message to the virtual machine; The response message is used to indicate that the configuration information of the first virtual network card changes successfully or fails.
  • the first processing module may be further configured to: after sending a configuration request to the primary operating system, wait for a response message sent by the primary operating system; the response message is used to indicate the first virtual The configuration information of the network card is changed successfully or fails.
  • the response message sent by the primary operating system has not been received when the timer of the virtual machine expires, it is determined that the configuration information of the first virtual network card fails to be changed.
  • the configuration information may include at least one of a MAC address of the first virtual network card, a VLAN where the first virtual network card is located, and an operating mode of the first virtual network card; the first virtual The working mode of the network card is used to indicate that the first virtual network card is a primary virtual network card or a standby virtual network card of the first virtual machine.
  • an electronic device including: a first sending module, configured in a first virtual machine, configured to send a configuration request to a main operating system running in the electronic device; the configuration request is used to indicate The main operating system changes the configuration information of the first virtual network card of the first virtual machine; the change module is configured in the main operating system, and is configured to change the configuration information of the first virtual network card to the configuration request.
  • the first configuration information carried.
  • the electronic device further includes an establishing module, configured in the main operating system, configured to: before the first sending module sends a configuration request to a main operating system running in the electronic device, A communication channel between the main operating system and the first virtual machine.
  • an establishing module configured in the main operating system, configured to: before the first sending module sends a configuration request to a main operating system running in the electronic device, A communication channel between the main operating system and the first virtual machine.
  • the establishing module is configured in the main operating system, and is configured to: connect the main operating system to the first virtual machine through an OVS bridge; or use a serial interface of the management plane to The main operating system is connected to the first virtual machine.
  • the electronic device further includes a second sending module, configured in the main operating system, configured to: in the changing module, change configuration information of the first virtual network card to a number carried in the configuration request After the configuration information, the response message is sent to the first virtual machine; the response message is used to indicate that the configuration information of the first virtual network card is successfully changed or failed.
  • a second sending module configured in the main operating system, configured to: in the changing module, change configuration information of the first virtual network card to a number carried in the configuration request After the configuration information, the response message is sent to the first virtual machine; the response message is used to indicate that the configuration information of the first virtual network card is successfully changed or failed.
  • the electronic device further includes a waiting module and a determining module.
  • the waiting module is configured in the first virtual machine, and is configured to wait for the response message sent by the main operating system after the first sending module sends a configuration request to the main operating system running in the electronic device;
  • the response message is used to indicate that the configuration information of the first virtual network card changes successfully or fails.
  • the determining module is configured in the first virtual machine, and is configured to determine the first virtual network card when the response message sent by the primary operating system has not been received when the timer of the first virtual machine expires The configuration information change failed.
  • the configuration information may include at least one of a MAC address of the first virtual network card, a VLAN where the first virtual network card is located, and an operating mode of the first virtual network card; the first virtual The working mode of the network card is used to indicate that the first virtual network card is a primary virtual network card or a standby virtual network card of the first virtual machine.
  • a non-transitory computer readable storage medium stored with computer executable instructions for performing any of the methods of modifying virtual network card configuration information.
  • an electronic device comprising one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, when executed by one or more processors Perform any of the above methods to change the virtual NIC configuration information.
  • a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer And causing the computer to perform any of the above methods of changing virtual network card configuration information.
  • the first virtual machine may send a configuration request to the main operating system, and the main operating system may change the configuration information of the first virtual network card according to the received configuration request. It can save system cost without the need of additional hardware components, and even if the hardware does not provide the operation of modifying the corresponding configuration information, because the modification configuration information can be independent of the hardware, it can not affect the modification of the configuration information, and reduce the dependence on the hardware. The degree, even if the implementation of different NIC manufacturers is inconsistent, it is not necessary to make different changes according to different hardware, reducing the required operations and improving the success rate of the modification.
  • FIG. 1 is a schematic diagram of configuring a VLAN identifier of a virtual machine in the related art.
  • FIG. 2 is a flowchart of a method for changing virtual network card configuration information in this embodiment.
  • FIG. 3 is a schematic diagram of changing a MAC address of a virtual network card in this embodiment.
  • FIG. 4 is a flowchart of changing the MAC address of the virtual network card in the embodiment.
  • FIG. 5 is a schematic diagram of active/standby switchover of a virtual network card in this embodiment.
  • FIG. 6 is a schematic diagram of changing a VLAN identifier of a virtual network card in this embodiment.
  • FIG. 7 is a structural block diagram of a virtual machine system in the embodiment.
  • FIG. 8 is a structural block diagram of an electronic device in the embodiment.
  • FIG. 9 is a schematic structural diagram of hardware of an electronic device in the embodiment.
  • one server is configured with two physical network cards, namely NIC1 108 and NIC2 110, wherein NIC represents a network interface card, and NIC1 108 can configure a VF port through SR-IOV.
  • NIC represents a network interface card
  • NIC1 108 can configure a VF port through SR-IOV.
  • the VF port of the NIC1 108 is VF1 112
  • the NIC1 110 can also configure the VF port through the SR-IOV.
  • the VF port of the NIC1 112 is VF2 114.
  • Two virtual machines are started on the server, for example, VM1 100 and VM2 102, and the VF port VF1 112 is allocated to the virtual machine VM1 100.
  • the VLAN identifier of the VF1 112 is set to 10
  • the VF port VF2 is set.
  • 114 is assigned to virtual machine VM2 102, which can set the VLAN ID of VF2 114 to 20 when VM2 102 is started.
  • the VLAN ID of the VF port VF1 112 of the VM1 100 can be set to the VLAN of the VF port VF2 114 of the VM2 102 by the VM1 100.
  • the logo is consistent.
  • the operation needs to be implemented by a physical function (PF) interface of the server hardware-VF's mailbox message mechanism.
  • PF physical function
  • the virtual machine VM1 100 sends a message to the physics through the VF port VF1 112.
  • the PF1 104 of the network card NIC1 108 instructs the PF1 104 to reset the VLAN identification of the VF1 112 to coincide with the VLAN identification of the VF port VF2 114 of the VM2 102.
  • the embodiment is based on the foregoing problem, when the configuration information of the first virtual network card of the first virtual machine needs to be changed, the first virtual machine may send a configuration request to the main operating system, and the main operating system may change the first according to the received configuration request.
  • the configuration information of the virtual network card therefore, can save system cost without the involvement of additional hardware components. Since modifying the configuration information does not depend on the hardware, even if the hardware does not provide an operation to modify the corresponding configuration information, the modification of the configuration information is not affected. Therefore, the degree of dependence on the hardware can be reduced. Even if the implementation manners of different network card manufacturers are inconsistent, it is not necessary to make different changes according to different hardware, which reduces the required operations and improves the success rate of the modification.
  • the embodiment provides a method for changing virtual network card configuration information, and the method may include steps 201-202.
  • step 201 the first virtual machine running in the electronic device sends a configuration request to the main operating system running in the electronic device; the configuration request is used to instruct the main operating system to change the configuration information of the first virtual network card of the first virtual machine. ;
  • step 202 the main operating system changes the configuration information of the first virtual network card to the first configuration information carried in the configuration request.
  • the electronic device can be, for example, a server, and of course other types of electronic devices.
  • one or more virtual machines are running in the electronic device, and the first virtual machine may be any one of a plurality of virtual machines running in the electronic device.
  • the host device can be installed with a host operating system (Host OS).
  • the host operating system does not belong to any virtual machine.
  • a corresponding operating system can be run in different virtual machines.
  • the virtual machine can be used.
  • the operating system running in is called a guest OS.
  • an operating system running in the first virtual machine may be referred to as a first guest operating system.
  • the physical network card of the electronic device provides virtual network card support for virtual machines running in the electronic device through a single source input/output virtualization technology (eg, SR-IOV).
  • SR-IOV single source input/output virtualization technology
  • the PF can be controlled by the main operating system in the electronic device, and can be used for the external communication requirements of the Host OS itself, and the configuration requirements for the physical network card itself.
  • the VF port can be controlled by a guest operating system in the virtual machine.
  • the method further includes: establishing, by the main operating system, a communication channel between the main operating system and the first virtual machine .
  • the communication channel between the main operating system and the first virtual machine can also be understood as a communication channel between the main operating system and the first sub-operating system of the first virtual machine.
  • the main operating system establishes a communication channel between the main operating system and the first virtual machine, including: connecting, by the OVS bridge, the main operating system to the first virtual machine, or through the management plane The line interface, the main operating system connects the main operating system with the first virtual machine.
  • This embodiment does not limit how to establish a communication channel between the main operating system and the first virtual machine.
  • the main operating system first completes the initialization and configuration of the physical network card, and establishes a communication channel with the first virtual machine.
  • the first sub-operating system configures the characteristics of the first virtual network card according to the requirements of the first sub-operating system, and sends a configuration request to the main operating system through a communication channel with the main operating system, where the configuration request can carry the first used by the first sub-operating system.
  • the information of the virtual network card may also carry configuration information of the first sub-operating system for the first virtual network card.
  • the destination MAC address of the configuration request may be the MAC address of the management port of the guest operating system
  • the source MAC address may be the MAC address of the first virtual network card
  • the type of the configuration request may be a request message
  • the configuration request may carry the requested request. Content.
  • the main operating system After receiving the configuration request sent by the first virtual machine, the main operating system sets the configuration information of the corresponding first virtual network card according to the configuration information carried in the configuration request, and sends the configuration result to the first virtual machine by using a response message, that is, The first sub-operating system sent to the first virtual machine, the response message is used to indicate that the configuration information of the first virtual network card is successfully changed or the change fails.
  • the destination MAC address of the response message may be the MAC address of the management port of the first sub-operating system, and the type of the response message may be a response/notification message, and the response message may carry the content that is answered.
  • the first sub-operating system After the first sub-operating system sends a configuration request to the main operating system, it can wait for a response message sent by the main operating system.
  • the timer may be started. If the first sub-operating system receives the response message sent by the main operating system before the timer expires, the first sub-operation The system parses the response message, and according to the parsed response message, it can be determined whether the configuration information of the first virtual network card is a successful change or a change failure. If the first sub-operating system has not received the response message when the timer expires, the first sub-operating system may determine that the configuration information of the first virtual network card fails to be changed, and the waiting is ended, and other work may be performed to avoid the first sub-operation. The operating system is always waiting.
  • the configuration information may include at least one of a MAC address of the first virtual network card, a VLAN where the first virtual network card is located, and an operating mode of the first virtual network card, and may further include any other possible configuration of the first virtual network card.
  • the working mode of the first virtual network card is used to indicate that the first virtual network card is a primary virtual network card or a standby virtual network card of the first virtual machine.
  • the VLAN where the first virtual network card is located for example, includes the identifier of the VLAN where the first virtual network card is located (that is, the VLAN identifier).
  • the method for changing the virtual network card configuration information provided by the embodiment of the present disclosure is introduced by several examples.
  • Example 1 The first sub-operating system needs to set the MAC address of the first virtual network card.
  • an electronic device is connected to an Ethernet switch through two physical network cards.
  • the virtual device runs a virtual machine (for example, called VM 110), and the VM 110 is connected to the main operating system in the electronic device through the OVS, and the configuration request can be in the form of an Ethernet packet, and the sub-operation in the virtual machine.
  • the system interacts with the main operating system of the electronic device.
  • the two physical NICs of the electronic device are named NIC1 100 and NIC2 102 respectively, wherein the NIC1 100 configures the VF port through the SR-IOV, for example, the VF of the NIC1 100 is VF1 104, and the NIC2 102 also configures the VF port through the SR-IOV, such as the NIC2.
  • the VF of 102 is VF2 106.
  • VF1 104 is assigned to VM 110, for example, referred to as VNIC1
  • VF2 106 is assigned to VM 110, such as VNIC2.
  • the MAC address of the VF port used by the VM 110 needs to be reset according to the VM 110's own requirements. For the processing flow, refer to FIG.
  • FIG. 4 illustrates an information interaction process between a primary operating system of an electronic device and a guest operating system (eg, referred to as a first guest operating system) in virtual machine VM 110.
  • a guest operating system eg, referred to as a first guest operating system
  • the main operating system of the electronic device first establishes a communication channel with the first sub-operating system of the virtual machine VM 110 through the OVS.
  • the first sub-operating system of the virtual machine VM 110 needs to set the MAC address of the virtual network card (for example, the MAC address of the VNIC1 and the MAC address of the VNIC2), and the communication channel is established through the established communication channel.
  • the main operating system of the electronic device sends a configuration request, and the configuration request carries a new MAC address of the VF.
  • the first guest operating system of virtual machine VM 110 may initiate a timer waiting for a reply message sent by the primary operating system of the electronic device.
  • the main operating system receives the configuration request sent by the first sub-operating system of the virtual machine VM 110 through the communication channel, parses the configuration request, and determines the content carried in the configuration request.
  • the primary operating system of the electronic device sends a response message to the first guest operating system of the virtual machine VM 110.
  • the main operating system of the electronic device determines the validity of the configuration request according to the configuration information of the electronic device. If the parameter carried in the configuration request is incorrect, the main operating system of the electronic device may send a response message to the first guest operating system of the virtual machine VM 110. The reply message is used to indicate that the configuration information change failed. If the configuration request is correct, the main operating system of the electronic device can call the IOCTRL interface to send MAC configuration information to NIC1 100 and NIC2 102 respectively according to the message type of the configuration request (see the arrow in FIG. 3) to complete the MAC address setting.
  • the main operating system of the electronic device determines whether the configuration is successful by receiving the return result sent by the physical network card NIC1 100 and the NIC2 102, and constructs a response message to the first sub-operating system of the virtual machine.
  • the response message is sent to the first guest operating system of the virtual machine VM 110, the response message being used to indicate that the MAC address change was successful or failed.
  • the timer may be started to wait for a response message from the guest operating system. If the first guest operating system receives the primary operating system send response message before the timer expires, the first guest operating system stops the timer and parses the content of the response message to determine whether the MAC address change succeeds or fails.
  • the first guest operating system of the virtual machine VM 110 may end the flow of the current configuration setting.
  • the first sub-operating system has not received the response message when the timer expires, or the received response message indicates that the MAC address change failed, it indicates that an error occurred during the configuration, and VNIC1 and VNIC2 may not operate normally.
  • a sub-operating system can turn off VNIC1 and VNIC2 of this configuration to prevent errors from spreading.
  • Example 2 The active/standby switchover of the virtual NIC of the bond interface initiated by the first guest operating system.
  • an electronic device is connected to an Ethernet switch through two physical network cards.
  • Two virtual machines for example, VM1 110 and VM2 120, respectively
  • VM1 110 and VM2 120 can be connected to the main operating system through the OVS, respectively, and the configuration request can be in the form of an Ethernet message on the electronic device.
  • the main operating system and the virtual machine interact with each other from the operating system.
  • the two physical NICs of the electronic device can be named NIC1 100 and NIC2 102 respectively.
  • the NIC1 100 can configure the VF port through the SR-IOV.
  • the VF ports of the NIC1 100 are VF1 104 and VF1 105, and the NIC2 102 can also pass the SR- The IOV configures the VF ports, such as the VF ports of NIC2 102 as VF2 106 and VF2 107.
  • VF1 104 and VF2 106 are assigned to VM1 110, such as VNIC1 and VNIC2, respectively, and VF1 105 and VF2 107 are assigned to VM2 120, such as VNIC3 and VNIC4, respectively.
  • VF1 104 and VF2 106 can serve as the primary and backup bonds of VM1 110, and VF1 105 and VF2 107 can serve as the primary and backup bonds of VM2 120.
  • NIC1 100 is the primary physical NIC
  • NIC2 102 is the standby physical NIC.
  • the VM1 110 After the VM1 110 is powered on, it is necessary to reset the primary and backup bond information of the VNIC1 and the VNIC2 according to the requirements of the VM1 110 itself.
  • the main operating system of the electronic device establishes a communication channel with the first sub-operating system (the operating system of VM1 110) and the second sub-operating system (the operating system of VM2 120) through the control plane OVS.
  • the first sub-operating system After the communication channel is successfully built, the first sub-operating system initiates the switching of the active and standby interface ports of the VNIC1 and the VNIC2 according to the requirements of the first sub-operating system, and the first sub-operating system sends a configuration request to the main operating system of the electronic device, where the configuration request carries the VNIC1. Configuration information of the switchover between the active and standby interfaces of VNIC2. After sending the configuration request, the first guest operating system can start a timer and wait for the main operating system of the electronic device. The response message sent.
  • the main operating system of the electronic device After receiving the configuration request, the main operating system of the electronic device sends a message to the two physical network cards NIC1 100 and NIC2 102 of the electronic device to indicate the status of switching the active and standby interface ports of the NIC1 100 and the NIC 2 102.
  • the main operating system of the electronic device determines whether the switching between the active/standby bond of the NIC1 100 and the NIC2 102 is successful by receiving the return result sent by the physical network card NIC1 100 and the NIC2 102, and the main operating system of the electronic device is configured to send to the virtual machine according to the result of the switching.
  • the response message of the first guest operating system is configured to send to the virtual machine according to the result of the switching.
  • the primary operating system detects that two physical NICs NIC1 100 and NIC2 102 also include VNIC3 and VNIC4. Therefore, the main operating system of the electronic device is in addition to the first child.
  • the notification message may also be sent to the first sub-operating system and/or the second sub-operating system to notify the NIC1 100 and the NIC2 102 that an active/standby switchover has occurred.
  • the primary operating system of the electronic device sends a response message indicating the handover failure to the first guest operating system.
  • the first sub-operating system receives the response message sent by the main operating system, and parses the response message to determine whether the active/standby switchover of the VNIC1 and the VNIC2 is successful. When the first sub-operating system determines that the active/standby bond of the VNIC1 and the VNIC2 is successfully switched. , the first sub-operating system can end the process of this configuration setting.
  • the second sub-operating system may set the VNIC3 according to the notification message. Active/standby status of VNIC4.
  • the first guest operating system When the timer expires, the first guest operating system has not received the response message, or the received response message indicates that the master/slave bond of VNIC1 and VNIC2 fails to switch, indicating that an error occurred during the configuration, and VNIC1 and VNIC2 may not be able to. In normal operation, the first guest operating system can disable VNIC1 and VNIC2 of this configuration to prevent error diffusion.
  • Example 3 The first guest operating system initiates the setting of the VLAN identifier.
  • VM1 418, VM2 420, VM3 422, and VM4 424 are run on one electronic device, and each virtual machine has its own VF port connected to the physical network card NIC1, wherein VM1 418 can be used as a management node in these four virtual machines to manage configuration and statistics of each virtual machine.
  • VM2 420, VM3 422, and VM4 424 may have one VF port (for example, VF2, VF3, and VF4, respectively) connected to the physical network card NIC1 as the external network port of the virtual machine.
  • VM1 418, VM2 420, VM3 422, and VM4 424 can be separated from the main operating system of the electronic device. Do not establish a communication channel through the OVS bridge.
  • the VLAN information of the VF ports used by VM2 420, VM3 422, and VM4 424 needs to be reset according to the user's configuration requirements.
  • the main operating system of the electronic device and each of the sub-operating systems of the virtual machine can first establish a communication channel by means of the control plane OVS.
  • the operating system of VM1 418 serves as a management node, and the VLAN of each virtual machine can be set.
  • the first sub-operating system sends a configuration request to the main operating system, and the configuration request is used to request configuration of VLAN information of VF2, VF3, and VF4.
  • the first guest operating system may start a timer and wait to receive a response message sent by the host operating system.
  • the main operating system of the electronic device After receiving the configuration request sent by the first sub-operating system of the virtual machine, the main operating system of the electronic device sends a message to the NIC 1 for configuring the VLAN information of the VF2, VF3, and VF4, and the main operating system sends the physical network card NIC1. The result is returned to determine whether the configuration is successful, and a response message is sent to the first guest operating system.
  • the first sub-operating system stops the timer and parses the content of the response message. If the configuration succeeds, the first sub-operating system may separately send a notification message to the VM2 420 through the control plane. VM3 422 and VM4 424, respectively, send notification messages to the operating systems of VM2 420, VM3 422 and VM4 424 to end the flow of this configuration setting. If the first sub-operating system does not receive the response message when the timer expires, or the received response message is used to indicate that the configuration fails, the first sub-operating system stops the current VLAN setting process.
  • the VLAN information of the locally stored port is updated according to the content of the notification message, and the configuration takes effect.
  • an embodiment of the present disclosure provides a virtual machine system, which may include a main operating system 701 and a virtual machine 702.
  • the first processing module 7021 may be configured in the virtual machine 702, and configured to send a configuration request to the main operating system 701.
  • the configuration request is used to instruct the main operating system 701 to change the configuration information of the first virtual network card of the virtual machine 702.
  • the main operating system 701 is provided with a second processing module 7011, configured to receive the configuration request, and change the configuration information of the first virtual network card to the first configuration information carried in the configuration request.
  • the second processing module 7011 is further configured to: establish a communication channel between the main operating system 701 and the virtual machine 702 before receiving the configuration request.
  • the second processing module 7011 is configured to: connect the main operating system 701 with the OVS bridge The virtual machine 702 is connected; or the host operating system 701 is connected to the virtual machine 702 through a serial interface of the management plane.
  • the second processing module 7011 is further configured to: after changing the configuration information of the first virtual network card to the first configuration information carried in the configuration request, send a response message to the virtual machine 702; the response message is used to indicate the first The configuration information of the virtual NIC changed successfully or failed.
  • the first processing module 7021 is further configured to: after sending the configuration request to the main operating system 701, wait for the response message sent by the main operating system 701; the response message is used to indicate that the configuration information of the first virtual network card is successfully changed or failed. If the response message sent by the main operating system 701 has not been received when the timer of the virtual machine 702 expires, it is determined that the configuration information of the first virtual network card fails to be changed.
  • the configuration information may include at least one of a MAC address of the first virtual network card, a VLAN where the first virtual network card is located, and an operating mode of the first virtual network card; and the working mode of the first virtual network card is used to indicate the first virtual
  • the network card is a primary virtual network card or a standby virtual network card of the first virtual machine.
  • the second processing module 7011 may be the main operating system 701 itself, or may be a functional module in the main operating system 701.
  • the first processing module 7021 may be the operating system itself of the virtual machine 702, or may be A functional module in the operating system of the virtual machine 702.
  • the virtual machine system can implement any of the methods shown in FIG. 2 to FIG. 6, for example, the virtual machine 702 can be the first virtual machine as described above, and functions that can be implemented by different modules in the virtual machine system. See the description of the method section.
  • the embodiment provides an electronic device, which may include a first sending module 801 and a changing module 802.
  • the first sending module 801 is configured to be configured to send a configuration request to a primary operating system running in the electronic device, where the configuration request is used to instruct the primary operating system to change the first virtual network card of the first virtual machine. Configuration information.
  • the change module 802 is configured to be configured in the main operating system, and is configured to change the configuration information of the first virtual network card to the first configuration information carried in the configuration request.
  • the electronic device further includes an establishing module, configured in the main operating system, and configured to: establish a main operating system and the first sending module 801 before sending the configuration request to the main operating system running in the electronic device A communication channel between virtual machines.
  • an establishing module configured in the main operating system, and configured to: establish a main operating system and the first sending module 801 before sending the configuration request to the main operating system running in the electronic device A communication channel between virtual machines.
  • the establishing module may be further configured to: connect the main operating system to the first virtual machine through the OVS bridge; or connect the main operating system to the first virtual machine through a serial interface of the management plane.
  • the electronic device further includes a second sending module, configured in the main operating system, configured to: in the changing module 802, changing the configuration information of the first virtual network card to the first configuration carried in the configuration request After the information, the response message is sent to the first virtual machine; the response message is used to indicate that the configuration information of the first virtual network card changes successfully or fails.
  • a second sending module configured in the main operating system, configured to: in the changing module 802, changing the configuration information of the first virtual network card to the first configuration carried in the configuration request After the information, the response message is sent to the first virtual machine; the response message is used to indicate that the configuration information of the first virtual network card changes successfully or fails.
  • the electronic device further includes a waiting module and a determining module.
  • the waiting module is configured in the first virtual machine, and is configured to wait for the response message sent by the main operating system after the first sending module 801 sends the configuration request to the main operating system running in the electronic device; the response message is used to indicate the first The configuration information of the virtual NIC changed successfully or failed.
  • the determining module is configured in the first virtual machine, and is configured to determine that the configuration information of the first virtual network card fails to be changed if the response message sent by the primary operation has not been received when the timer of the first virtual machine expires.
  • the configuration information may include at least one of a MAC address of the first virtual network card, a VLAN where the first virtual network card is located, and an operating mode of the first virtual network card; and the working mode of the first virtual network card is used to indicate the first virtual
  • the NIC is the primary virtual NIC or the alternate virtual NIC of the first virtual machine.
  • the electronic device can implement any one of the methods shown in FIG. 2 to FIG. 6 above.
  • the functions that can be implemented by different modules in the electronic device reference may be made to the description of the method part.
  • the hardware structure of an electronic device is also provided in this embodiment.
  • the electronic device includes: a processor 910 and a memory 920. (Communications Interface) 930 and bus 940.
  • the processor 910, the memory 920, and the communication interface 930 can complete communication with each other through the bus 940.
  • the communication interface 930 can be used for information transmission.
  • the communication interface 930 can implement a communication connection between the electronic device and the physical network card, and can also implement a communication connection between the main operating system and the virtual machine in the electronic device.
  • the processor 910 can call the logic instructions in the memory 920, or can also parse the received information or request to implement any of the above embodiments to change the virtual machine network card configuration information.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit or unit is only one logical function division, and may also have other division manners, for example, multiple units or components may be combined or Can be integrated into another system, or some features Can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units.
  • the solution of this embodiment can be implemented by selecting some or all of the units as needed.
  • the functional units in this embodiment may be integrated into one processing unit, or a plurality of functional units may exist physically separately, or two or more functional units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a non-transitory computer readable storage medium, and instructions implementing the software functional unit may be used to perform any of the above A method of changing the configuration information of a virtual machine NIC.
  • all or part of the technical solutions of the present disclosure may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a computer device (which may be a personal computer, A server, or a network device, or the like, or a processor performs all or part of the steps of the method of the embodiments of the present disclosure.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
  • the present disclosure provides a method, device, and system for changing virtual network card configuration information, which can reduce hardware dependency on changing VF port configuration information of a virtual machine.

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

一种更改虚拟网卡配置信息的方法、设备及系统,该方法包括:运行于电子设备中的第一虚拟机向运行于所述电子设备中的主操作系统发送配置请求;所述配置请求用于指示所述主操作系统更改所述第一虚拟机的第一虚拟网卡的配置信息;所述主操作系统将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息。

Description

更改虚拟网卡配置信息的方法、设备及系统 技术领域
本公开涉及虚拟机技术领域,例如涉及一种更改虚拟网卡配置信息的方法、设备及系统。
背景技术
在虚拟机(Virtual Machine,VM)环境中,网卡设备通过单源输入/输出虚拟化(Sing Root I/O Virtualization,SR-IOV)或虚拟机设备队列(Virtual Machine Device Queue,VMDq)等I/O虚拟化技术来实现多个虚拟网卡(Virtual Function,VF),每个虚拟机根据需求分配一定数量的VF。
在这种情况下,如果虚拟机需要调整自己的VF的配置信息,例如需对VF端口的多媒体接入控制(Media Access Control,MAC)地址或虚拟局域网(Virtual Local Area Network,VLAN)标识等特性进行配置,则需要依赖于不同硬件厂商提供的特殊的配置通道来做操作,例如,虚拟机给与VF端口的MAC地址或VLAN标识的硬件部件发送消息,由硬件部件来完成对VF端口的MAC地址或VLAN标识等的配置。
在更改VF端口的配置信息时,对硬件的依赖程度较大,系统成本较高。然而在一些应用场景中,硬件提供的消息种类有限,如果硬件没有提供修改虚拟机VF端口的配置信息的操作,那么还需要修改硬件的驱动代码,以实现对VF端口的配置信息的调整。
发明内容
本公开提供一种更改虚拟网卡配置信息的方法、设备及系统,可以降低在更改VF端口的配置信息时对硬件硬件的依赖性。
第一方面,提供一种更改虚拟网卡配置信息的方法,可以包括:运行于电子设备中的第一虚拟机向运行于所述电子设备中的主操作系统发送配置请求;所述配置请求用于指示所述主操作系统更改所述第一虚拟机的第一虚拟网卡的配置信息;所述主操作系统将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息。
可选的,在运行于电子设备中的第一虚拟机向运行于所述电子设备中的主 操作系统发送配置请求之前,还包括:所述主操作系统建立所述主操作系统与所述第一虚拟机之间的通信通道。
可选的,所述主操作系统建立所述主操作系统与所述第一虚拟机之间的通信通道,包括:通过OVS网桥,将所述主操作系统与所述第一虚拟机相连接;或通过管理面的串行接口,将所述主操作系统与所述第一虚拟机相连接。
可选的,在所述主操作系统将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息之后,还包括:所述主操作系统向所述第一虚拟机发送应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败。
可选的,在运行于电子设备中的第一虚拟机向运行于所述电子设备中的主操作系统发送配置请求之后,还包括:所述第一虚拟机等待所述主操作系统发送的应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败;若在所述第一虚拟机的定时器超时时还未收到所述主操作系统发送的应答消息,则所述第一虚拟机确定所述第一虚拟网卡的配置信息更改失败。
可选的,所述配置信息可以包括所述第一虚拟网卡的MAC地址、所述第一虚拟网卡所在的VLAN和所述第一虚拟网卡的工作模式中的至少一种;所述第一虚拟网卡的工作模式用于指示所述第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
第二方面,提供一种虚拟机系统,包括主操作系统及虚拟机;其中,
所述虚拟机中设置有第一处理模块,设置为向所述主操作系统发送配置请求;所述配置请求用于指示所述主操作系统更改所述第一虚拟机的第一虚拟网卡的配置信息;所述主操作系统中设置有第二处理模块,设置为接收所述配置请求,将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息。
可选的,所述第二处理模块还设置为:在接收所述配置请求之前,建立所述主操作系统与所述虚拟机之间的通信通道。
可选的,所述第二处理模块还可以设置为:通过OVS网桥,将所述主操作系统与所述虚拟机相连接;或通过管理面的串行接口,将所述主操作系统与所述虚拟机相连接。
可选的,所述第二处理模块还可以设置为:在将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息之后,向所述虚拟机发送应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败。
可选的,所述第一处理模块还可以设置为:在向所述主操作系统发送配置请求之后,等待所述主操作系统发送的应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败;当在所述虚拟机的定时器超时时还未收到所述主操作系统发送的应答消息,则确定所述第一虚拟网卡的配置信息更改失败。
可选的,所述配置信息可以包括所述第一虚拟网卡的MAC地址、所述第一虚拟网卡所在的VLAN和所述第一虚拟网卡的工作模式中的至少一种;所述第一虚拟网卡的工作模式用于指示所述第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
第三方面,提供一种电子设备,包括:第一发送模块,配置于第一虚拟机中,设置为向运行于所述电子设备中的主操作系统发送配置请求;所述配置请求用于指示所述主操作系统更改所述第一虚拟机的第一虚拟网卡的配置信息;更改模块,配置于主操作系统中,设置为将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息。
可选的,所述电子设备还包括建立模块,配置于主操作系统中,设置为:在所述第一发送模块向运行于所述电子设备中的主操作系统发送配置请求之前,建立所述主操作系统与所述第一虚拟机之间的通信通道。
可选的,所述建立模块配置于主操作系统中,设置为:通过OVS网桥,将所述主操作系统与所述第一虚拟机相连接;或通过管理面的串行接口,将所述主操作系统与所述第一虚拟机相连接。
可选的,所述电子设备还包括第二发送模块,配置于主操作系统中,设置为:在所述更改模块将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息之后,向所述第一虚拟机发送应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败。
可选的,所述电子设备还包括等待模块和确定模块。
所述等待模块,配置于第一虚拟机中,设置为在所述第一发送模块向运行于所述电子设备中的主操作系统发送配置请求之后,等待所述主操作系统发送的应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败。
所述确定模块,配置于第一虚拟机中,设置为当在所述第一虚拟机的定时器超时时还未收到所述主操作系统发送的应答消息,则确定所述第一虚拟网卡的配置信息更改失败。
可选的,所述配置信息可以包括所述第一虚拟网卡的MAC地址、所述第一虚拟网卡所在的VLAN和所述第一虚拟网卡的工作模式中的至少一种;所述第一虚拟网卡的工作模式用于指示所述第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
第三方面,提供一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任意一种更改虚拟网卡配置信息的方法。
第四方面,提供一种电子设备,该电子设备包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述任意一种更改虚拟网卡配置信息的方法。
第五方面,提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种更改虚拟网卡配置信息的方法。
在需要更改第一虚拟机的第一虚拟网卡的配置信息时,第一虚拟机可以向主操作系统发送配置请求,主操作系统根据接收到的配置请求,可以更改第一虚拟网卡的配置信息,可以无需额外的硬件部件的参与,节省系统成本,并且即使硬件没有提供修改相应配置信息的操作,因为修改配置信息可以不依赖于硬件,也可以不影响对配置信息的修改,降低对硬件的依赖程度,即使不同的网卡厂家的实现方式不一致,也可以无需根据不同的硬件来做不同的更改,减少了所需的操作,提高了修改的成功率。
附图说明
图1为相关技术中配置虚拟机的VLAN标识的示意图。
图2为本实施例中更改虚拟网卡配置信息的方法的流程图。
图3为本实施例中更改虚拟网卡的MAC地址的示意图。
图4为本实施例中更改虚拟网卡的MAC地址的流程图。
图5为本实施例中虚拟网卡的主备倒换的示意图。
图6为本实施例中更改虚拟网卡的VLAN标识的示意图。
图7为本实施例中虚拟机系统的结构框图。
图8为本实施例中电子设备的结构框图。
图9为本实施例中电子设备的硬件结构示意图。
具体实施方式
为使本实施例的目的、技术方案和优点更加清楚,下面将结合本实施例中的附图,对本实施例中的技术方案进行清楚、完整地描述,所描述的实施例是本公开一部分实施例,而不是全部的实施例。在不冲突的情况下,以下实施例和实施例中的特征可以相互组合。
以下介绍本实施例的应用场景。
示例性地,如图1所示,一台服务器配置有两块物理网卡,分别为NIC1 108和NIC2 110,其中NIC表示网络接口卡(Network Interface Card),NIC1 108可通过SR-IOV配置VF端口,例如NIC1 108的VF端口为VF1 112,NIC1 110也可以通过SR-IOV配置VF端口,例如NIC1 112的VF端口为VF2 114。在该服务器上启动两个虚拟机,例如为VM1 100、VM2 102,将VF端口VF1 112分配给虚拟机VM1 100,可以在启动VM1 100的时候设置VF1 112的VLAN标识为10,将VF端口VF2 114分配给虚拟机VM2 102,可以在启动VM2 102的时候设置VF2 114的VLAN标识为20。
当虚拟机VM1 100和VM2 102开始运行以后,例如需要VM1 100和VM2 102进行通信,则可以通过VM1 100将VM1 100的VF端口VF1 112的VLAN标识设置为与VM2 102的VF端口VF2 114的VLAN标识一致。在相关技术的机制下,该操作需要通过服务器的硬件的物理功能(Physical Function,PF)接口-VF的信箱(mailbox)消息机制实现,比如,虚拟机VM1 100通过VF端口VF1 112发消息给物理网卡NIC1 108的PF1 104,指示PF1 104重新设置VF1 112的VLAN标识,以与VM2 102的VF端口VF2 114的VLAN标识一致。
因此,在相关技术中,在更改VF的配置信息(例如VLAN标识)时对硬件的依赖程度较大,系统成本较高。
本实施例基于上述问题,在需要更改第一虚拟机的第一虚拟网卡的配置信息时,第一虚拟机可以向主操作系统发送配置请求,主操作系统可以根据接收到的配置请求更改第一虚拟网卡的配置信息,因此,可以无需额外的硬件部件的参与,节省系统成本。由于修改配置信息不依赖于硬件,因此即使硬件没有提供修改相应配置信息的操作,也就不影响对配置信息的修改。从而可以降低对硬件的依赖程度,即使不同的网卡厂家的实现方式不一致,也无需根据不同的硬件来做不同的更改,减少了所需的操作,提高了修改的成功率。
下面结合附图介绍可选的实施例。
请参见图2,本实施例提供一种更改虚拟网卡配置信息的方法,该方法可以包括步骤201-步骤202。
在步骤201中,运行于电子设备中的第一虚拟机向运行于电子设备中的主操作系统发送配置请求;配置请求用于指示主操作系统更改第一虚拟机的第一虚拟网卡的配置信息;
在步骤202中,主操作系统将第一虚拟网卡的配置信息更改为配置请求中携带的第一配置信息。
该电子设备,例如可以是服务器,当然也可以是其他类型的电子设备。该电子设备中例如运行有一个或多个虚拟机,第一虚拟机可以为该电子设备中运行的多个虚拟机中的任意一个虚拟机。
该电子设备中可以安装有主操作系统(Host OS),该主操作系统不属于任何一个虚拟机,同时,在不同的虚拟机中也可以运行有相应的操作系统,为了区分,可以将虚拟机中运行的操作系统称为子操作系统(Guest OS),例如,第一虚拟机中运行的操作系统可以称为第一子操作系统。
该电子设备的物理网卡通过单源输入/输出虚拟化技术(例如SR-IOV)为该电子设备中运行的虚拟机提供虚拟网卡支持。通过SR-IOV,可以在物理网卡上提供一个PF,同时提供多个VF端口。其中,PF可以由该电子设备中主操作系统控制,可以用于Host OS自身外部通信需求、以及对于物理网卡本身的配置需求等。VF端口可以由虚拟机中的子操作系统控制。
可选地,在运行于电子设备中的第一虚拟机向运行于电子设备中的主操作系统发送配置请求之前,还包括:主操作系统建立主操作系统与第一虚拟机之间的通信通道。
为了实现主操作系统和第一虚拟机之间的通信,需要首先建立主操作系统和第一虚拟机之间的通信通道。主操作系统与第一虚拟机之间的通信通道,也可以理解为主操作系统与第一虚拟机的第一子操作系统之间的通信通道。
可选地,主操作系统建立主操作系统与第一虚拟机之间的通信通道,包括:通过OVS网桥,主操作系统将主操作系统与第一虚拟机相连接;或通过管理面的串行接口,主操作系统将主操作系统与第一虚拟机相连接。
本实施例对于主操作系统和第一虚拟机之间如何建立通信通道不作限制。
例如,电子设备上电后,主操作系统首先完成物理网卡的初始化以及配置工作,建立与第一虚拟机之间的通信通道。
第一子操作系统根据自身的需求配置第一虚拟网卡的特性,并通过与主操作系统之间的通信通道向主操作系统发送配置请求,配置请求中可以携带第一子操作系统使用的第一虚拟网卡的信息,还可以携带第一子操作系统对于第一虚拟网卡的配置信息。
可选地,配置请求的目的MAC地址可以是子操作系统的管理口的MAC地址,源MAC可以是第一虚拟网卡的MAC地址,配置请求的类型可以是请求消息,配置请求中可以携带所请求的内容。
当主操作系统收到第一虚拟机发送的配置请求后,根据配置请求中携带的配置信息,设置对应的第一虚拟网卡的配置信息,并将配置结果通过应答消息发送给第一虚拟机,即发送给第一虚拟机的第一子操作系统,应答消息用于指示第一虚拟网卡的配置信息更改成功或更改失败。
可选地,应答消息的目的MAC地址可以是第一子操作系统的管理口的MAC地址,应答消息的类型可以是应答/通知消息,应答消息中可以携带所应答的内容。
第一子操作系统向主操作系统发送配置请求之后,即可以等待主操作系统发送的应答消息。
可选地,第一子操作系统向主操作系统发送配置请求之后,可以启动定时器,如果在定时器超时之前,第一子操作系统接收到了主操作系统发送的应答消息,则第一子操作系统解析该应答消息,根据解析的应答消息,可以确定第一虚拟网卡的配置信息是更改成功还是更改失败。而如果在定时器超时时第一子操作系统还未收到应答消息,则第一子操作系统可以确定第一虚拟网卡的配置信息更改失败,结束等待,可以进行其他工作,从而避免第一子操作系统一直处于等待状态。
可选地,配置信息可以包括第一虚拟网卡的MAC地址、第一虚拟网卡所在的VLAN和第一虚拟网卡的工作模式中的至少一种,还可以包括第一虚拟网卡的其他可能的任意配置信息;第一虚拟网卡的工作模式用于指示第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
第一虚拟网卡所在的VLAN,例如包括第一虚拟网卡所在的VLAN的标识(即VLAN标识)。
下面通过几个示例来介绍本公开实施例提供的更改虚拟网卡配置信息的方法。
例1:第一子操作系统需设置第一虚拟网卡的MAC地址。
参见图3,一台电子设备通过两个物理网卡与以太网交换机(Ethernet Switch)连接。该电子设备中运行了一台虚拟机(例如称为VM 110),VM 110通过OVS和该电子设备中的主操作系统相连,配置请求可通过以太网报文的形式,在虚拟机的子操作系统和该电子设备的主操作系统之间交互。该电子设备的两块物理网卡分别命名为NIC1 100和NIC2 102,其中NIC1 100通过SR-IOV配置VF端口,例如NIC1 100的VF为VF1 104,NIC2 102也通过SR-IOV配置VF端口,例如NIC2 102的VF为VF2 106。将VF1 104分配给VM 110,例如称为VNIC1,和将VF2 106分配给VM 110,例如称为VNIC2。
VM 110上电后需要根据VM 110自身需求重新设置VM 110所用的VF端口的MAC地址,处理流程可参见图4。
图4说明了电子设备的主操作系统与虚拟机VM 110中的子操作系统(例如称为第一子操作系统)间的信息交互过程。
1、电子设备启动成功后,电子设备的主操作系统首先通过OVS与虚拟机VM 110的第一子操作系统建立通信通道。
2、该通信通道构建成功后,虚拟机VM 110的第一子操作系统在需要设置虚拟网卡的MAC地址(例如需设置VNIC1的MAC地址和VNIC2的MAC地址)的时候,通过建立的通信通道向电子设备的主操作系统发送配置请求,配置请求中携带VF的新的MAC地址。
在发送配置请求后,虚拟机VM 110的第一子操作系统可以启动定时器,等待电子设备的主操作系统发送的应答消息。
3、主操作系统通过通信通道接收虚拟机VM 110的第一子操作系统发送的配置请求,解析配置请求,确定配置请求中携带的内容。
4、电子设备的主操作系统向虚拟机VM 110的第一子操作系统发送应答消息。
电子设备的主操作系统根据自身的配置信息判断配置请求的有效性,如果配置请求中携带的参数错误,则电子设备的主操作系统可以向虚拟机VM 110的第一子操作系统发送应答消息,该应答消息用于指示配置信息更改失败。如果配置请求正确,则电子设备的主操作系统可以根据配置请求的消息类型,调用IOCTRL接口分别下发MAC配置信息给NIC1 100和NIC2 102(可参见图3中的箭头),完成MAC地址设置。
电子设备的主操作系统通过接收物理网卡NIC1 100和NIC2 102发送的返回结果判断配置是否成功,并构造发给虚拟机的第一子操作系统的应答消息, 向虚拟机VM 110的第一子操作系统发送该应答消息,该应答消息用于指示MAC地址更改成功或失败。
可选地,第一子操作系统在发送配置请求后,可以启动定时器,以等待子操作系统的应答消息。如果在定时器超时之前,第一子操作系统接收了主操作系统发送应答消息,则第一子操作系统停止定时器,解析应答消息的内容,以确定MAC地址更改成功还是失败。
如果确定MAC地址更改成功,则虚拟机VM 110的第一子操作系统可以结束本次配置设置的流程。当在定时器超时时第一子操作系统还未收到应答消息,或者收到的应答消息指示MAC地址更改失败,则表示配置过程中出现了错误,那么VNIC1和VNIC2可能无法正常运行,则第一子操作系统可以关闭本次配置的VNIC1和VNIC2,防止错误扩散。
例2:第一子操作系统发起bond口的虚拟网卡的主备倒换。
参见图5,一台电子设备通过两个物理网卡与以太网交换机连接。该电子设备中运行了两台虚拟机(例如分别称为VM1 110和VM2 120),VM1 110和VM2 120可以分别通过OVS与主操作系统相连,配置请求可通过以太网报文的形式在电子设备的主操作系统和虚拟机的自操作系统之间交互。该电子设备的两块物理网卡可以分别命名为NIC1 100和NIC2 102,其中NIC1 100可以通过SR-IOV配置VF端口,例如NIC1 100的VF端口为VF1 104和VF1 105,NIC2 102也可以通过SR-IOV配置VF端口,例如NIC2 102的VF端口为VF2 106和VF2 107。将VF1 104和VF2 106分配给VM1 110,例如分别称为VNIC1和VNIC2,将VF1 105和VF2 107分配给VM2 120,例如分别称为VNIC3和VNIC4。可选地,VF1 104和VF2 106可以作为VM1 110的主备bond,VF1 105和VF2 107可以作为VM2 120的主备bond。例如NIC1 100为主物理网卡,NIC2 102为备用物理网卡。
例如,VM1 110上电后需要根据VM1 110自身的需求重新设置VNIC1和VNIC2的主备bond信息。
在电子设备启动成功后,通过控制面OVS,电子设备的主操作系统分别与第一子操作系统(VM1 110的操作系统)和第二子操作系统(VM2 120的操作系统)建立通信通道。
该通信通道构建成功后,第一子操作系统根据自身的需求,发起VNIC1和VNIC2的主备bond口倒换,第一子操作系统向电子设备的主操作系统发送配置请求,该配置请求中携带VNIC1和VNIC2的主备bond口倒换的配置信息。在发送配置请求后,第一子操作系统可以启动定时器,等待电子设备的主操作系统 发送的应答消息。
电子设备的主操作系统接收配置请求后,分别向电子设备的两块物理网卡NIC1 100和NIC2 102下发消息,以指示切换NIC1 100与NIC2 102的主备bond口状态。
电子设备的主操作系统通过接收物理网卡NIC1 100和NIC2 102发送的返回结果判断NIC1 100与NIC2 102的主备bond切换是否成功,且电子设备的主操作系统根据切换的结果构造发给虚拟机的第一子操作系统的应答消息。
如果NIC1 100与NIC2 102的主备bond切换成功,同时,主操作系统还检测到两块物理网卡NIC1 100和NIC2 102上还包括VNIC3和VNIC4,因此,电子设备的主操作系统除了向第一子操作系统发送应答消息之外,还可以一并向第一子操作系统和/或第二子操作系统发送通知消息,用于通知NIC1 100和NIC2 102发生了主备倒换。
如果NIC1 100与NIC2 102的主备bond切换失败,则电子设备的主操作系统向第一子操作系统发送用于指示切换失败的应答消息。
第一子操作系统接收主操作系统发送的应答消息,并解析该应答消息,以确定VNIC1和VNIC2的主备bond切换是否成功,当第一子操作系统确定VNIC1和VNIC2的主备bond切换成功时,则第一子操作系统可以结束本次配置设置的流程。
另外,当第一子操作系统确定VNIC1和VNIC2的主备bond切换成功,且第二子操作系统接收到主操作系统发送的通知消息,则第二子操作系统可以根据该通知消息来设置VNIC3和VNIC4的主备状态。
当定时器超时时,第一子操作系统还未收到应答消息,或者收到的应答消息指示VNIC1和VNIC2的主备bond切换失败,则表示配置过程中出现了错误,那么VNIC1和VNIC2可能无法正常运行,则第一子操作系统可以关闭本次配置的VNIC1和VNIC2,防止错误扩散。
例3:第一子操作系统发起VLAN标识的设置。
参见图6,一台电子设备上运行了4个虚拟机(例如分别为VM1 418,VM2 420,VM3 422和VM4 424),每个虚拟机都有自己的VF端口与物理网卡NIC1相连,其中,VM1 418可以作为这4个虚拟机中的管理节点,管理每个虚拟机内部的配置、统计等信息。可选地,VM2 420,VM3 422和VM4 424分别可以有1个VF端口(例如分别为VF2,VF3和VF4)连接到物理网卡NIC1上,作为虚拟机对外的网口。VM1 418,VM2 420,VM3 422和VM4 424与电子设备的主操作系统可以分 别通过OVS网桥建立通信通道。
VM1 418上电后需要根据用户的配置需求重新设置VM2 420,VM3 422和VM4 424所用的VF端口的VLAN信息。
在电子设备启动成功后,电子设备的主操作系统与虚拟机的每个子操作系统首先可以通过控制面OVS的方式建立通信通道。通信通道构建成功后,VM1 418的操作系统(例如称为第一子操作系统)作为管理节点,可以设置每个虚拟机的VLAN。第一子操作系统向主操作系统发送配置请求,该配置请求用于请求配置VF2,VF3和VF4的VLAN信息。在发送配置请求后,第一子操作系统可以启动定时器,等待接收主操作系统发送的应答消息。
电子设备的主操作系统接收到虚拟机的第一子操作系统发送的配置请求后,向NIC1下发消息,用于配置VF2,VF3和VF4的VLAN信息,主操作系统通过接收物理网卡NIC1发送的返回结果判断配置是否成功,且向第一子操作系统发送应答消息。
在定时器超时之前,第一子操作系统若收到了应答消息,则停止定时器,解析应答消息的内容,如果配置成功,则第一子操作系统可以通过控制面分别发送通知消息给VM2 420,VM3 422和VM4 424,即分别发送通知消息给VM2 420,VM3 422和VM4 424的操作系统,结束本次配置设置的流程。如果在定时器超时时第一子操作系统未收到应答消息,或接收到的应答消息用于指示配置失败,则第一子操作系统停止本次VLAN设置流程。
VM2 420,VM3 422和VM4 424若收到来自第一子操作系统的通知消息,则根据通知消息的内容更新本地的存储的端口的VLAN信息,配置生效。
下面结合附图介绍本公开实施例中的装置。
参见图7,基于同一构思,本公开实施例提供一种虚拟机系统,该虚拟机系统可以包括主操作系统701和虚拟机702。
其中,虚拟机702中可以设置有第一处理模块7021,设置为向主操作系统701发送配置请求;配置请求用于指示主操作系统701更改虚拟机702的第一虚拟网卡的配置信息。
主操作系统701中设置有第二处理模块7011,设置为接收配置请求,将第一虚拟网卡的配置信息更改为配置请求中携带的第一配置信息。
可选的,第二处理模块7011还设置为:在接收配置请求之前,建立主操作系统701与虚拟机702之间的通信通道。
可选的,第二处理模块7011设置为:通过OVS网桥,将主操作系统701与 虚拟机702相连接;或通过管理面的串行接口,将主操作系统701与虚拟机702相连接。
可选的,第二处理模块7011还设置为:在将第一虚拟网卡的配置信息更改为配置请求中携带的第一配置信息之后,向虚拟机702发送应答消息;应答消息用于指示第一虚拟网卡的配置信息更改成功或失败。
可选的,第一处理模块7021还设置为:在向主操作系统701发送配置请求之后,等待主操作系统701发送的应答消息;应答消息用于指示第一虚拟网卡的配置信息更改成功或失败;若在虚拟机702的定时器超时时还未收到主操作系统701发送的应答消息,则确定第一虚拟网卡的配置信息更改失败。
可选的,配置信息可以包括第一虚拟网卡的MAC地址、第一虚拟网卡所在的VLAN和第一虚拟网卡的工作模式中的至少一种;第一虚拟网卡的工作模式用于指示第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
可选地,第二处理模块7011可以是主操作系统701本身,或者也可以是主操作系统701中的一个功能模块,第一处理模块7021可以是虚拟机702的操作系统本身,或者也可以是虚拟机702的操作系统中的一个功能模块。
该虚拟机系统可以实现上述图2-图6中所示的任意一种方法,例如虚拟机702可以是如前所述的第一虚拟机,对于该虚拟机系统中不同模块所能实现的功能,可参考方法部分的描述。
参见图8,本实施例提供一种电子设备,该电子设备可以包括第一发送模块801和更改模块802。
第一发送模块801,配置于第一虚拟机中,可以设置为向运行于电子设备中的主操作系统发送配置请求;配置请求用于指示主操作系统更改第一虚拟机的第一虚拟网卡的配置信息。
更改模块802,配置于主操作系统中,可以设置为将第一虚拟网卡的配置信息更改为配置请求中携带的第一配置信息。
可选的,该电子设备还包括建立模块,配置于主操作系统中,可以设置为:在第一发送模块801向运行于电子设备中的主操作系统发送配置请求之前,建立主操作系统与第一虚拟机之间的通信通道。
可选的,建立模块还可以设置为:通过OVS网桥,将主操作系统与第一虚拟机相连接;或通过管理面的串行接口,将主操作系统与第一虚拟机相连接。
可选的,该电子设备还包括第二发送模块,配置于主操作系统中,设置为:在更改模块802将第一虚拟网卡的配置信息更改为配置请求中携带的第一配置 信息之后,向第一虚拟机发送应答消息;应答消息用于指示第一虚拟网卡的配置信息更改成功或失败。
可选的,该电子设备还包括等待模块和确定模块。
等待模块,配置于第一虚拟机中,设置为在第一发送模块801向运行于电子设备中的主操作系统发送配置请求之后,等待主操作系统发送的应答消息;应答消息用于指示第一虚拟网卡的配置信息更改成功或失败。
确定模块,配置于第一虚拟机中,设置为若在第一虚拟机的定时器超时时还未收到主操作发送的应答消息,确定第一虚拟网卡的配置信息更改失败。
可选的,配置信息可以包括第一虚拟网卡的MAC地址、第一虚拟网卡所在的VLAN和第一虚拟网卡的工作模式中的至少一种;第一虚拟网卡的工作模式用于指示第一虚拟网卡为第一虚拟机的主虚拟网卡或备用虚拟网卡。
该电子设备可以实现上述图2-图6中所示的任意一种方法,对于该电子设备中不同模块所能实现的功能,可参考方法部分的描述。
如图9所示,本实施例还提供的一种电子设备的硬件结构示意图,如图9所示,该电子设备包括:处理器(processor)910和存储器(memory)920;还可以包括通信接口(Communications Interface)930和总线940。
其中,处理器910、存储器920和通信接口930可以通过总线940完成相互间的通信。通信接口930可以用于信息传输,例如该通信接口930可以实现电子设备与物理网卡的通信连接,还可以实现电子设备中主操作系统与虚拟机的通信连接。处理器910可以调用存储器920中的逻辑指令,或者还可以对接到的信息或请求进行解析,以实现上述实施例中的任意一种更改虚拟机网卡配置信息的方法。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的工作过程,可以参考前述方法实施例中的对应过程。
在本公开所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元或单元的划分,仅仅为一种逻辑功能划分,还可以有其他的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征 可以忽略,或不执行。此外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据需要选择其中的部分或者全部单元来实现本实施例方案。
另外,在本实施例中的功能单元可以集成在一个处理单元中,也可以是多个功能单元单独物理存在,或者还可以两个或两个以上功能单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非暂态计算机可读取存储介质中,实现该软件功能单元的指令可用于执行上述任意一种更改虚拟机网卡配置信息的方法。基于这样的理解,本公开的技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
工业实用性
本公开提供一种更改虚拟网卡配置信息的方法、设备及系统,可以降低在更改虚拟机的VF端口配置信息时对硬件的依赖性。

Claims (19)

  1. 一种更改虚拟网卡配置信息的方法,包括:
    运行于电子设备中的第一虚拟机向运行于所述电子设备中的主操作系统发送配置请求;所述配置请求用于指示所述主操作系统更改所述第一虚拟机的第一虚拟网卡的配置信息;以及
    所述主操作系统将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息。
  2. 如权利要求1所述的方法,在通过运行于电子设备中的第一虚拟机向运行于所述电子设备中的主操作系统发送配置请求之前,还包括:
    所述主操作系统建立所述主操作系统与所述第一虚拟机之间的通信通道。
  3. 如权利要求2所述的方法,其中,所述主操作系统建立所述主操作系统与所述第一虚拟机之间的通信通道,包括:
    通过开放的虚拟交互标准OVS网桥,所述主操作系统将所述主操作系统与所述第一虚拟机相连接;或
    通过管理面的串行接口,所述主操作系统将所述主操作系统与所述第一虚拟机相连接。
  4. 如权利要求3所述的方法,在所述主操作系统将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息之后,还包括:
    所述主操作系统向所述第一虚拟机发送应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败。
  5. 如权利要求3所述的方法,在运行于电子设备中的第一虚拟机向运行于所述电子设备中的主操作系统发送配置请求之后,还包括:
    所述第一虚拟机等待所述主操作系统发送的应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败;
    当在所述第一虚拟机的定时器超时时还未收到所述主操作系统发送的应答消息,则所述第一虚拟机确定所述第一虚拟网卡的配置信息更改失败。
  6. 如权利要求3所述的方法,其中,所述配置信息包括所述第一虚拟网卡的多媒体接入控制MAC地址、所述第一虚拟网卡所在的虚拟局域网VLAN和所述第一虚拟网卡的工作模式中的至少一种;所述第一虚拟网卡的工作模式用于指示所述第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
  7. 一种虚拟机系统,包括主操作系统及虚拟机;其中,
    所述虚拟机中设置有第一处理模块,设置为向所述主操作系统发送配置请求;所述配置请求用于指示所述主操作系统更改第一虚拟机的第一虚拟网卡的 配置信息;
    所述主操作系统中设置有第二处理模块,设置为接收所述配置请求,将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息。
  8. 如权利要求7所述的虚拟机系统,其中,所述第二处理模块还设置为:
    在接收所述配置请求之前,建立所述主操作系统与所述虚拟机之间的通信通道。
  9. 如权利要求8所述的虚拟机系统,其中,所述第二处理模块还设置为:
    通过开放的虚拟交互标准OVS网桥,将所述主操作系统与所述虚拟机相连接;或
    通过管理面的串行接口,将所述主操作系统与所述虚拟机相连接。
  10. 如权利要求9所述的虚拟机系统,其中,所述第二处理模块还设置为:
    在将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息之后,向所述虚拟机发送应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败。
  11. 如权利要求9所述的虚拟机系统,其中,所述第一处理模块还设置为:
    在向所述主操作系统发送配置请求之后,等待所述主操作系统发送的应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败;
    当在所述虚拟机的定时器超时时还未收到所述主操作系统发送的应答消息,则确定所述第一虚拟网卡的配置信息更改失败。
  12. 如权利要求9所述的虚拟机系统,其中,所述配置信息包括所述第一虚拟网卡的多媒体接入控制MAC地址、所述第一虚拟网卡所在的虚拟局域网VLAN和所述第一虚拟网卡的工作模式中的至少一种;所述第一虚拟网卡的工作模式用于指示所述第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
  13. 一种电子设备,包括:
    第一发送模块,配置于第一虚拟机中,设置为向运行于所述电子设备中的主操作系统发送配置请求;所述配置请求用于指示所述主操作系统更改所述第一虚拟机的第一虚拟网卡的配置信息;
    更改模块,配置于所述主操作系统中,设置为将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息。
  14. 如权利要求13所述的电子设备,还包括建立模块,配置于主操作系统中,设置为:
    在所述第一发送模块向运行于所述电子设备中的主操作系统发送配置请求 之前,通建立所述主操作系统与所述第一虚拟机之间的通信通道。
  15. 如权利要求14所述的电子设备,其中,所述建立模块设置为:
    通过开放的虚拟交互标准OVS网桥,将所述主操作系统与所述第一虚拟机相连接;或
    通过管理面的串行接口,将所述主操作系统与所述第一虚拟机相连接。
  16. 如权利要求15所述的电子设备,还包括第二发送模块,配置于主操作系统中,设置为:
    在所述更改模块将所述第一虚拟网卡的配置信息更改为所述配置请求中携带的第一配置信息之后,向所述第一虚拟机发送应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败。
  17. 如权利要求15所述的电子设备,还包括等待模块和确定模块;
    所述等待模块,配置于第一虚拟机中,设置为在所述第一发送模块向运行于所述电子设备中的主操作系统发送配置请求之后,等待所述第二发送模块发送的应答消息;所述应答消息用于指示所述第一虚拟网卡的配置信息更改成功或失败;
    所述确定模块,配置于第一虚拟机中,设置为当在所述第一虚拟机的定时器超时时还未收到所述第二发送模块发送的应答消息,则确定所述第一虚拟网卡的配置信息更改失败。
  18. 如权利要求15所述的电子设备,其中,所述配置信息包括所述第一虚拟网卡的多媒体接入控制MAC地址、所述第一虚拟网卡所在的虚拟局域网VLAN和所述第一虚拟网卡的工作模式中的至少一种;所述第一虚拟网卡的工作模式用于指示所述第一虚拟网卡为所述第一虚拟机的主虚拟网卡或备用虚拟网卡。
  19. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-6任一项所述的更改虚拟网卡配置信息的方法。
PCT/CN2017/071525 2016-01-18 2017-01-18 更改虚拟网卡配置信息的方法、设备及系统 WO2017125016A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610032817.6 2016-01-18
CN201610032817.6A CN106982133B (zh) 2016-01-18 2016-01-18 一种更改虚拟网卡配置信息的方法、设备及系统

Publications (1)

Publication Number Publication Date
WO2017125016A1 true WO2017125016A1 (zh) 2017-07-27

Family

ID=59339888

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071525 WO2017125016A1 (zh) 2016-01-18 2017-01-18 更改虚拟网卡配置信息的方法、设备及系统

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11252087B2 (en) * 2017-01-20 2022-02-15 Huawei Technologies Co., Ltd. Data packet forwarding method, network adapter, host device, and computer system
CN114844744A (zh) * 2022-03-04 2022-08-02 阿里巴巴(中国)有限公司 虚拟私有云网络配置方法和装置、电子设备及计算机可读存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109245925A (zh) * 2018-08-28 2019-01-18 郑州云海信息技术有限公司 一种配置vlan的方法、装置和计算机可读存储介质
CN111698141B (zh) * 2019-03-13 2022-12-02 中兴通讯股份有限公司 报文的转发方法及装置
CN113132200B (zh) * 2019-12-30 2024-01-19 中兴通讯股份有限公司 数据转发方法、转发器、系统、服务器和存储介质
CN115314380B (zh) * 2022-06-30 2024-03-01 山东浪潮科学研究院有限公司 Vf配置方法及装置

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 (zh) * 2008-12-30 2010-08-11 英特尔公司 用于管理网络接口组件的预订请求的装置和方法
US20120054393A1 (en) * 2010-08-27 2012-03-01 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 (zh) * 2008-12-30 2010-08-11 英特尔公司 用于管理网络接口组件的预订请求的装置和方法
US20120054393A1 (en) * 2010-08-27 2012-03-01 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11252087B2 (en) * 2017-01-20 2022-02-15 Huawei Technologies Co., Ltd. Data packet forwarding method, network adapter, host device, and computer system
US20220109628A1 (en) * 2017-01-20 2022-04-07 Huawei Technologies Co., Ltd. Data packet forwarding method, network adapter, host device, and computer system
US11805058B2 (en) 2017-01-20 2023-10-31 Huawei Technologies Co., Ltd. Data packet forwarding method, network adapter, host device, and computer system
CN114844744A (zh) * 2022-03-04 2022-08-02 阿里巴巴(中国)有限公司 虚拟私有云网络配置方法和装置、电子设备及计算机可读存储介质
CN114844744B (zh) * 2022-03-04 2023-07-21 阿里巴巴(中国)有限公司 虚拟私有云网络配置方法和装置、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN106982133B (zh) 2020-12-29
CN106982133A (zh) 2017-07-25

Similar Documents

Publication Publication Date Title
WO2017125016A1 (zh) 更改虚拟网卡配置信息的方法、设备及系统
US11005755B2 (en) Packet processing method in cloud computing system, host, and system
US11200079B2 (en) System and method for virtual machine live migration
US10671423B2 (en) Hot-plug hardware and software implementation
JP6513835B2 (ja) クラウドコンピューティングシステムにおけるパケット処理方法、ホスト、およびシステム
EP3197095B1 (en) Computer device and configuration management method thereof
US9619417B2 (en) Method and apparatus for remote delivery of managed USB services via a mobile computing device
US9350655B2 (en) Vertical converged framework
US11394607B2 (en) Method and system for network configuration
WO2014101531A1 (zh) 虚拟基站创建方法及装置
EP3407187B1 (en) Optical line terminal, and method for upgrading master device and slave device
WO2015131532A1 (zh) 多功能usb终端设备的适配方法、装置及系统
WO2021093455A1 (zh) 一种虚拟机接入方法及装置
CN104735176A (zh) Pxe启动的方法、装置和服务器单板
CN113312143A (zh) 云计算系统、命令处理方法及虚拟化仿真装置
US20160259659A1 (en) Method and system for unified application centric connectivity in various virtualization platforms
EP3358795B1 (en) Method and apparatus for allocating a virtual resource in network functions virtualization (nfv) network
US10191878B2 (en) High availability of PCIe devices under multiple processors to provide redundancy
US20070155422A1 (en) Method for controlling mobile data connection through USB Ethernet management of mobile station
CN104468389A (zh) 消息的处理方法、服务器和服务器系统
WO2015101100A1 (zh) 网络设备及网络中的业务处理方法
CN108886476B (zh) 虚拟交换机数据平面和数据平面迁移的多个提供器框架
WO2022151386A1 (zh) 一种节点分批升级的方法、相关装置以及设备
WO2014071637A1 (zh) 一种对虚拟机进行网络配置的方法和设备
WO2020122024A1 (ja) ネットワークインタフェースカード、コンピュータ、回路情報の書き換え方法及びプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17741047

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17741047

Country of ref document: EP

Kind code of ref document: A1