Virtual machine network configuration method, device, storage medium and equipment
By deploying ANCS in the virtual machine and using udev rules to automatically update the network interface file, the problem of low virtual machine network configuration efficiency is solved, automated network configuration is realized, and the reliability and stability of the network are improved.
Patent Information
- Application Number
- CN201911211805.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2039-12-02
AI Technical Summary
In the network configuration of virtual machines, manual reconfiguration of network interface files is inefficient, especially when the network card name changes and needs to be manually updated, resulting in inefficient network configuration.
By deploying ANCS in a virtual machine, it automatically monitors network changes and uses udev rules to update network interface files to ensure real-time updates of network information and avoid manual intervention.
It realizes the automation of virtual machine network configuration, improves network configuration efficiency, avoids manual reconfiguration steps, and ensures that the network interface file is consistent with the actual network information.
Smart Images

Figure CN112994907B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular to a network configuration method, apparatus, storage medium and device for a virtual machine. Background Art
[0002] With the development of computer network technology, virtualization technology has become very popular. Virtual machine instantiation includes creating virtual machines, configuring networks, and deploying services. In actual applications, a virtual machine needs to access multiple network planes, and sometimes it involves dual network card binding, dual machines or cluster deployment. Therefore, it is required to configure multiple networks for the same virtual machine.
[0003] When configuring each network, the virtual machine can rely on the system's internal processing mechanism to automatically identify the network card name, and then write the network card name and the assigned IP (Internet Protocol) address as the network information of a network into the network interface file. In this way, subsequent network communication with the virtual machine can be carried out based on the network information in the network interface file.
[0004] When the network card name of the virtual machine changes due to some reasons, the network card name in the network interface file does not change, which causes the network card name in the network interface file to be inconsistent with the actual network card name, resulting in network anomalies. At this time, the staff needs to log in to the virtual machine through the console and then manually reconfigure the network interface file, but the manual reconfiguration method will lead to low efficiency of network configuration. Summary of the invention
[0005] The embodiments of the present application provide a network configuration method, device, storage medium and equipment for a virtual machine, which are used to solve the problem of low efficiency of network configuration caused by manual reconfiguration of network interface files. The technical solution is as follows:
[0006] In one aspect, a network configuration method for a virtual machine is provided, the method comprising:
[0007] When the network of the virtual machine changes, obtaining network information of the changed network;
[0008] Update the device manager udev rules in the virtual machine according to the network information;
[0009] The network interface file of the virtual machine is updated according to the udev rule, and the network information in the updated network interface file is the same as the network information of the changed network.
[0010] In one aspect, a network configuration device for a virtual machine is provided, the device comprising:
[0011] An acquisition module, used for acquiring network information of the network after the change when the network of the virtual machine changes;
[0012] An updating module, used for updating the device manager udev rules in the virtual machine according to the network information;
[0013] The update module is also used to update the network interface file of the virtual machine according to the udev rule, and the network information in the updated network interface file is the same as the network information of the changed network.
[0014] On the one hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the network configuration method of the virtual machine as described above.
[0015] On the one hand, an electronic device is provided, wherein a virtual machine of the electronic device includes a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the network configuration method of the virtual machine as described above.
[0016] The beneficial effects of the technical solution provided by the embodiments of the present application include at least:
[0017] When the network changes, the virtual machine can obtain the network information of the changed network, and then update the udev rules according to the network information. After that, the network interface file of the virtual machine can be automatically updated according to the udev rules, thereby ensuring that the network information in the network interface file is the same as the network information of the changed network, so that the network configuration can be automatically completed, avoiding manual reconfiguration of the network interface file, and improving the efficiency of network configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a method flow chart of a network configuration method for a virtual machine provided by an embodiment of the present application;
[0020] Figure 2 is a method flow chart of a network configuration method for a virtual machine provided by another embodiment of the present application;
[0021] Figure 3is a flowchart of a network configuration method for a virtual machine provided in another embodiment of the present application;
[0022] Figure 4 is a flowchart of a network configuration method for a virtual machine provided in another embodiment of the present application;
[0023] Figure 5 is a flowchart of a network configuration method for a virtual machine provided in another embodiment of the present application;
[0024] Figure 6 is a structural block diagram of a network configuration device for a virtual machine provided in yet another embodiment of the present application;
[0025] Figure 7 This is a structural block diagram of a network configuration device for a virtual machine provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0027] Please refer to Figure 1 , which shows a method flow chart of a network configuration method for a virtual machine provided by an embodiment of the present application, and the network configuration method for a virtual machine can be applied to a virtual machine of an electronic device. The network configuration method for a virtual machine may include:
[0028] Step 101: when the network of the virtual machine changes, obtain the network information of the changed network.
[0029] During use, the virtual machine may need to be rebuilt, a network card may be added or deleted, or a cloud hard disk may be added or deleted before being restarted. In the above cases, the network of the virtual machine may change, so the virtual machine needs to obtain the changed network information. The virtual machine may be created in the virtualization environment of the Openstack cloud platform, which is not limited in this embodiment.
[0030] In this embodiment, a set of ANCS (Automatic Network Configuration Settings) can be deployed in the virtual machine, and the ANCS operation can be triggered when the virtual machine is created. In this way, the virtual machine can automatically monitor whether the network changes, and trigger ANCS to implement this embodiment to perform network configuration when the network changes.
[0031] The virtual machine can detect changes in the network through hot loading and dynamic loading modules, and then obtain network information; or the virtual machine can obtain network information from the cloud platform at regular intervals. This embodiment does not limit the method of obtaining network information. The network information may include port name, IP address, gateway information, subnet mask, MAC address, PCI (Peripheral Component Interconnect) bus information, binding name, binding interface name, binding parameters and other reserved parameters. This embodiment does not limit the content of the network information.
[0032] Step 102: Update the udev rules in the virtual machine according to the network information.
[0033] Udev rules are rules set for the udev service component in the virtual machine. The service component is essentially a tool of the system that can update device files according to the status of the hardware devices in the system. That is, the network interface file of the virtual machine can be updated according to the udev rules. The network interface file contains the network information of each network configured in the virtual machine.
[0034] Step 103, updating the network interface file of the virtual machine according to the udev rule, and the network information in the updated network interface file is the same as the network information of the network after the change.
[0035] The virtual machine system running in user mode can provide a persistence mechanism for network information. Using this function of the udev service component, the network interface file can be matched and updated when a match is found.
[0036] To sum up, the network configuration method for a virtual machine provided in an embodiment of the present application is that when the network changes, the virtual machine can obtain the network information of the network after the change, and then update the udev rules according to the network information. After that, the network interface file of the virtual machine can be automatically updated according to the udev rules, thereby ensuring that the network information in the network interface file is the same as the network information of the network after the change, so that the network configuration can be automatically completed, avoiding manual reconfiguration of the network interface file, and improving the efficiency of the network configuration.
[0037] Please refer to Figure 2 , which shows a method flow chart of a network configuration method for a virtual machine provided by another embodiment of the present application, and the network configuration method for a virtual machine can be applied to a virtual machine of an electronic device. The network configuration method for a virtual machine may include:
[0038] Step 201: when a network of a virtual machine changes, obtain network information of the changed network.
[0039] During use, a virtual machine may need to be rebuilt, a network card may be added or deleted, or a cloud hard disk may be added or deleted before being restarted. In the above cases, the network of the virtual machine will change. The following describes these three cases.
[0040] 1. Monitor whether the virtual machine is rebuilt. If the virtual machine is rebuilt, determine whether the network of the virtual machine has changed.
[0041] When a virtual machine is rebuilt, the MAC address of the network card of the virtual machine will change. The MAC address is a type of network information, so the virtual machine needs to reacquire the network information.
[0042] 2. Monitor whether the network card in the virtual machine is added or deleted. If the network card in the virtual machine is added or deleted, it is determined that the network of the virtual machine has changed.
[0043] When a network card is added to a virtual machine, it means that a network is added to the virtual machine. At this time, the virtual machine needs to obtain new network information and add the network information; or, when a network card is deleted in a virtual machine, it means that a network in the virtual machine is deleted, so the virtual machine needs to delete the network information of the network.
[0044] It should be noted that, when a network card is added or deleted, the virtual machine may only obtain the changed network information; or, the virtual machine may re-acquire all network information, which is not limited in this embodiment.
[0045] 3. Monitor whether the virtual machine is restarted after the cloud hard disk is added or deleted. If the virtual machine is restarted after the cloud hard disk is added or deleted, it is determined that the network of the virtual machine has changed.
[0046] The virtual machine will allocate bus information for each connected hardware in order. When a cloud hard disk is added or deleted and the virtual machine is restarted to make the operation effective, the number of hardware in the virtual machine will change, which will also cause the allocated bus information to change. Bus information is a type of network information, so the virtual machine needs to re-acquire network information.
[0047] The manner in which the virtual machine obtains network information is described in detail in step 101 and will not be described in detail here.
[0048] Step 202, verify the validity of the network information; after the verification passes, execute step 203.
[0049] After obtaining the network information, the virtual machine can verify the network information according to the preset verification rules, for example, verifying whether the number of network information is the same as the number of network cards in the virtual machine, or verifying whether the MAC address is correct, etc. This embodiment does not limit the verification method.
[0050] If the verification passes, the virtual machine executes step 203; if the verification fails, the virtual machine can re-acquire the network information.
[0051] Step 203, generating a network card name for the changed network according to a preset network card naming rule; writing the network card name and the network information into a network information mapping table correspondingly, wherein the network information mapping table includes the network information of each network in the virtual machine.
[0052] In the related art, after a virtual machine is created, the virtual machine can automatically identify the network card name through the system's internal processing mechanism. The character name and number (such as eth0) in the network card name have a certain degree of randomness and uncertainty, which is not convenient for unified management of the network card name.
[0053] In this embodiment, a network card naming rule can be preset, and then each network card is named in turn according to the network card naming rule. It should be noted that the network card name obtained according to the network card naming rule is different from the system default name, so that the network card name in the udev rule can be avoided to be the same as the system default name, thereby avoiding the problem of name failure. For example, the system default name is eth0, and the network card name can be set to ethnet0, ethnet1, ethnet2, etc.
[0054] After obtaining the network card name, the virtual machine can create a network information mapping table. Each mapping relationship in the network information mapping table includes a network card name, physical port information and IP address, which can ensure the accuracy of the correspondence between the three and avoid confusion between the network card and the IP address. Please refer to a network information mapping table shown in Table 1 below.
[0055] Table 1
[0056]
[0057] Step 204: Acquire the network card name and physical port information of the changed network from the network information mapping table, where the physical port information includes at least one of a MAC address and bus information.
[0058] The udev rule in this embodiment generally includes a matching key and a persistent name. The matching key may be physical port information, and the persistent name may be a network card name. Therefore, the virtual machine needs to obtain the network card name and physical port information to create the udev rule.
[0059] Usually, the MAC address can be used as the matching key in the udev rule. However, according to Table 1, in the scenario of dual network card SR-IOV (Single Root I / O Virtualization), the MAC addresses of the two network cards are the same, so, optionally, other unique attribute key values such as bus-info bus information can also be used as the matching key value.
[0060] Step 205: write the network card name and physical port information into a udev rule in the virtual machine as a binding information. The udev rule includes at least one binding information, and each binding information includes a network card name and physical port information of a network.
[0061] In this embodiment, udev rules can bind the network card name and physical port information, so as to solidify the network card name and physical port information. In this way, the randomness of the system network card name is avoided, thereby making the relationship mapping between the network card name and the physical port information controllable from uncontrollable.
[0062] Please refer to Table 2 below, which is generated based on the network information mapping table shown in Table 1, and the udev rule uses the network card name as the persistent name and the MAC address and bus information as the matching key value.
[0063] Table 2
[0064] Name (persistent name) Mac(match key value) Businfo(matching key value) NAME="ethnet0" ATTR{address}=="fa:16:3e:d1:5c:c4" KERNELS=="0000:00:01.0" NAME="ethnet1" - KERNELS=="0000:00:05.0" NAME="ethnet2" - KERNELS=="0000:00:06.0"
[0065] Step 206, updating the network interface file of the virtual machine according to the udev rule, the network information in the updated network interface file is the same as the network information of the network after the change.
[0066] The virtual machine can obtain the network card name from the udev rule, and then obtain the complete network information from the network information mapping table based on the network card name, and then update the network interface file based on the network information. For example, the virtual machine can configure the IP, subnet mask, gateway and other network information on the ethnet0 network card.
[0067] In this embodiment, the Openstack cloud platform virtualization environment is taken as an example, and the summary is obtained based on repeated verification of cloud environments with multiple virtual machine system images and multiple network deployments. In this way, for different image templates and complex network configurations, the virtual machine system can follow the pre-arranged network card sequence and ensure the correct correspondence through custom udev rules. Thereby avoiding the problem of IP address confusion. In addition, the virtual machine system can automatically monitor, and can complete the automated network configuration without manual intervention when the network information changes. It has the characteristics of automatic configuration, automatic monitoring and automatic guarantee, which greatly improves the reliability and stability of the network.
[0068] To sum up, the network configuration method for a virtual machine provided in an embodiment of the present application is that when the network changes, the virtual machine can obtain the network information of the network after the change, and then update the udev rules according to the network information. After that, the network interface file of the virtual machine can be automatically updated according to the udev rules, thereby ensuring that the network information in the network interface file is the same as the network information of the network after the change, so that the network configuration can be automatically completed, avoiding manual reconfiguration of the network interface file, and improving the efficiency of the network configuration.
[0069] The following is an introduction to the virtual machine creation process for deploying ANCS. Please refer to Figure 3 Flowchart shown.
[0070] 1. The user orchestrates the virtual machine and physical port information through iVLM (Intelligent VNF life management), generates a Heat script, and initiates an instantiation request.
[0071] 2. The Openstack cloud platform processes the Heat script through Orchestrator, and then initiates the instantiation process through the Nova module to create a virtual machine instance.
[0072] 3. The Openstack cloud platform writes the physical port information of the host obtained from the resource pool to the config drive data source and mounts it to the host when the virtual machine starts.
[0073] 4. The virtual machine calls the local service of cloudinit to process the injected metadata or userdata information and obtain the physical port information.
[0074] 5. Virtual machine startup phase:
[0075] 1) Obtain network information and verify the validity of the network information.
[0076] 2) After the verification is passed, a network information relationship mapping table is generated, and the network card is named according to the network card naming rules.
[0077] 3) Customize udev rules according to the network relationship mapping table and bundle the physical port information and network card name.
[0078] 4) Update the network card interface file according to udev rules and network information mapping table.
[0079] 5) Start the network and automatic network monitoring.
[0080] 6. Install and deploy other business function software.
[0081] 7. The virtual machine is created.
[0082] The following is an introduction to the process of adding and deleting virtual machine networks when deploying ANCS. Please refer to Figure 4 Flowchart shown.
[0083] 1. The virtual machine system automatically monitors.
[0084] 2. Users add or delete network cards to virtual machines through the Openstack cloud platform, and the virtual machines obtain network information periodically or in real time.
[0085] 3. The virtual machine monitors network changes, obtains new network information, and verifies the new network information.
[0086] 4. Update the network information mapping table after verification.
[0087] 5. Update udev rules.
[0088] 6. Update network interface files.
[0089] 4. Complete the network information change process and return to step 1 to enter the next periodic monitoring state.
[0090] The following is an introduction to the process of adding and deleting cloud disks when deploying ANCS. Please refer to Figure 5 Flowchart shown.
[0091] 1. The virtual machine system automatically monitors.
[0092] 2. Users add or delete cloud hard disks to virtual machines through the Openstack cloud platform, and the virtual machines obtain network change information periodically or in real time.
[0093] Among them, since the cloud hard disk changes will cause the virtual machine system to rearrange the PCI bus sequence of the connected device, which will cause the PCI bus information in the network information to change.
[0094] 3. The virtual machine monitors network changes, obtains new network information, and verifies the new network information.
[0095] 4. Update the network information mapping table after verification.
[0096] 5. Update udev rules.
[0097] 6. Update network interface files.
[0098] 7. Complete the network information change process and return to step 1 to enter the next periodic monitoring state.
[0099] Please refer to Figure 6, which shows a structural block diagram of a network configuration device for a virtual machine provided by an embodiment of the present application, and the network configuration device for the virtual machine can be applied to a virtual machine of an electronic device. The network configuration device for the virtual machine may include:
[0100] The acquisition module 610 is used to acquire network information of the changed network when the network of the virtual machine changes;
[0101] An updating module 620, used to update udev rules in the virtual machine according to network information;
[0102] The updating module 620 is further used to update the network interface file of the virtual machine according to the udev rule, and the network information in the updated network interface file is the same as the network information of the changed network.
[0103] In an optional embodiment, the udev rule includes at least one piece of binding information, each piece of binding information includes a network card name and physical port information of a network, and the physical port information includes at least one of a media access control MAC address and bus information.
[0104] In an optional embodiment, the updating module 620 is further configured to:
[0105] Update the network information mapping table according to the network information, where the network information mapping table includes the network information of each network in the virtual machine;
[0106] Obtain the network card name and physical port information of the changed network from the network information mapping table;
[0107] Write the network card name and physical port information as a binding information into the udev rule in the virtual machine.
[0108] In an optional embodiment, the updating module 620 is further configured to:
[0109] Generate a network card name for the changed network according to the preset network card naming rules;
[0110] Write the network card name and network information into the network information mapping table accordingly.
[0111] Please refer to Figure 7 In an optional embodiment, the device further comprises:
[0112] The verification module 630 is used to verify the validity of the network information before the update module 620 updates the device manager udev rules in the virtual machine according to the network information;
[0113] The trigger module 640 is used to trigger the step of updating the device manager udev rules in the virtual machine according to the network information after the verification is passed.
[0114] In an optional embodiment, the device further comprises:
[0115] The first determination module 650 is used to monitor whether the virtual machine is rebuilt, and if the virtual machine is rebuilt, determine that the network of the virtual machine has changed; or,
[0116] The second determination module 660 is used to monitor whether a network card in the virtual machine is added or deleted. If the network card in the virtual machine is added or deleted, it is determined that the network of the virtual machine has changed; or
[0117] The third determination module 670 is used to monitor whether the virtual machine is restarted after the cloud hard disk is added or deleted. If the virtual machine is restarted after the cloud hard disk is added or deleted, it is determined that the network of the virtual machine has changed.
[0118] To summarize, the network configuration device for a virtual machine provided in an embodiment of the present application, when the network changes, the virtual machine can obtain the network information of the network after the change, and then update the udev rules according to the network information. After that, the network interface file of the virtual machine can be automatically updated according to the udev rules, thereby ensuring that the network information in the network interface file is the same as the network information of the network after the change, so that the network configuration can be automatically completed, avoiding manual reconfiguration of the network interface file, and improving the efficiency of the network configuration.
[0119] In this embodiment, the Openstack cloud platform virtualization environment is taken as an example, and the summary is obtained based on repeated verification of cloud environments with multiple virtual machine system images and multiple network deployments. In this way, for different image templates and complex network configurations, the virtual machine system can follow the pre-arranged network card sequence and ensure the correct correspondence through custom udev rules. Thereby avoiding the problem of IP address confusion. In addition, the virtual machine system can automatically monitor, and can complete the automated network configuration without manual intervention when the network information changes. It has the characteristics of automatic configuration, automatic monitoring and automatic guarantee, which greatly improves the reliability and stability of the network.
[0120] An embodiment of the present application provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the network configuration method of the virtual machine as described above.
[0121] An embodiment of the present application provides an electronic device, wherein a virtual machine of the electronic device includes a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the network configuration method of the virtual machine as described above.
[0122] It should be noted that: the network configuration device for a virtual machine provided in the above embodiment only uses the division of the above functional modules as an example when performing network configuration of the virtual machine. In actual applications, the above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the network configuration device for a virtual machine is divided into different functional modules to complete all or part of the functions described above. In addition, the network configuration device for a virtual machine provided in the above embodiment and the network configuration method embodiment for a virtual machine belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0123] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0124] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. A network configuration method for a virtual machine, characterized in that: The method comprises: When the network of the virtual machine changes, obtaining network information of the changed network; Update the device manager udev rules in the virtual machine according to the network information; Update the network interface file of the virtual machine according to the udev rule, wherein the network information in the updated network interface file is the same as the network information of the changed network; The updating of the network interface file of the virtual machine according to the udev rule comprises: According to the udev rule, the network information of the network after the change is obtained from the network information mapping table, and the network interface file is updated according to the network information of the network after the change; the network information mapping table is updated according to the network information of the network after the change, and the network information mapping table includes the network information of each network in the virtual machine.
2. The method according to claim 1, characterized in that The udev rule includes at least one piece of binding information, each piece of binding information includes a network card name and physical port information of a network, and the physical port information includes at least one of a media access control MAC address and bus information.
3. The method according to claim 2, characterized in that The updating of the device manager udev rules in the virtual machine according to the network information includes: Acquire the network card name and physical port information of the changed network from the network information mapping table; The network card name and the physical port information are written into the udev rule in the virtual machine as a piece of binding information.
4. The method according to claim 1, characterized in that: The step of updating the network information mapping table includes: Generate a network card name for the changed network according to a preset network card naming rule; The network card name and the network information are correspondingly written into the network information mapping table.
5. The method according to claim 1, characterized in that Before updating the device manager udev rule in the virtual machine according to the network information, the method further includes: Performing validity verification on the network information; After the verification is passed, the step of updating the device manager udev rules in the virtual machine according to the network information is triggered.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: monitoring whether the virtual machine is rebuilt, and if the virtual machine is rebuilt, determining that the network of the virtual machine has changed; or, monitoring whether a network card in the virtual machine is added or deleted, and if the network card in the virtual machine is added or deleted, determining that the network of the virtual machine has changed; or, Monitor whether the virtual machine is restarted after the cloud hard disk is added or deleted. If the virtual machine is restarted after the cloud hard disk is added or deleted, determine that the network of the virtual machine is changed.
7. A network configuration device for a virtual machine, characterized in that: The device comprises: An acquisition module, used for acquiring network information of the network after the change when the network of the virtual machine changes; An updating module, used for updating the device manager udev rules in the virtual machine according to the network information; The update module is also used to update the network interface file of the virtual machine according to the udev rules, and the network information in the network interface file after the update is the same as the network information of the network after the change; updating the network interface file of the virtual machine according to the udev rules includes: obtaining the network information of the network after the change from the network information mapping table according to the udev rules, and updating the network interface file according to the network information of the network after the change; the network information mapping table is updated according to the network information of the network after the change, and the network information mapping table includes the network information of each network in the virtual machine.
8. The device according to claim 7, characterized in that The udev rule includes at least one piece of binding information, each piece of binding information includes a network card name and physical port information of a network, and the physical port information includes at least one of a media access control MAC address and bus information.
9. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the network configuration method of the virtual machine as described in any one of claims 1 to 6.
10. An electronic device, characterized in that: The virtual machine of the electronic device includes a processor and a memory, the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the network configuration method of the virtual machine as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Network card information processing method and device based on virtual machine
CN106201657A
A method for configuring a cluster virtual machine qos
CN109005068A
