Set up networking for Hyper-V hosts and clusters in the VMM fabric
This version of Virtual Machine Manager (VMM) has reached the end of support, we recommend you to upgrade to VMM 2022.
Read this article to set up network settings for Hyper-V hosts and clusters in the System Center - Virtual Machine Manager (VMM) compute fabric.
You can apply network settings to a Hyper-V host or cluster using a logical switch. Applying a logical switch ensure that logical networks, and other network settings, are consistently assigned to multiple physical network adapters.
Before you start
- If you want to configure network settings manually ensure you've set up logical networks before you begin. In addition make sure that the network sites within your logical networks are configured to use the host group of the host you want to assign them to. Check this in Fabric > Servers > All Hosts, and click the host group. In Hosts, click the host > Properties.
- If you want to use a logical switch you need to create the logical switch and port profiles.
Configure network settings with a logical switch
To do this you'll need to configure the logical switch and port profiles you'll apply. Then you need to indicate what the physical network adapter is used for, and configure network settings by applying a logical switch. The network adapters that you configure can be physical or virtual adapters on the hosts.
Specify what the network adapter is used for
Regardless of any port profiles and logical switches you are using in your network configuration, you must specify whether a network adapter in a host is used for virtual machines, host management, neither, or both. (The host must already be under management in VMM.)
- Open Fabric > Servers > All Hosts > host-group-name > Hosts > Host > Properties > Hardware.
- Under Network adapters, click the physical network adapter that you want to configure.
- If you want to use this network adapter for virtual machines, ensure that Available for placement is checked.
- If you want to use this network adapter for communication between the host and the VMM management server, ensure that Used by management is checked. You must make sure that you have at least one network adapter available for communication between the host and the VMM management server.
- You don't need to configure individual settings in Logical network connectivity because you're using a switch.
Apply a logical switch
- Open Fabric > Servers > All Hosts > host group > Hosts > Host > Properties > Virtual Switches.
- Select the logical switch you created. Under Adapter, select the physical adapter that you want to apply the logical switch to.
- In the Uplink Port Profile list, select the uplink port profile that you want to apply. The list contains the uplink port profiles that have been added to the logical switch that you selected. If a profile seems to be missing, review the configuration of the logical switch and then return to this property tab. Click OK to finish. Note that if you didn't create the virtual switch earlier and do in now, the host might temporarily lose network connectivity when VMM creates the switch.
- Repeat the steps as needed. If you apply the same logical switch and uplink port profile to two or more adapters, the two adapters might be teamed, depending on a setting in the logical switch. To find out if they will be teamed, open the logical switch properties, click the Uplink tab, and view the Uplink mode setting. If the setting is Team, the adapters will be teamed. The specific mode in which they will be teamed is determined by a setting in the uplink port profile.
- After applying the logical switch you can check that the network adapter settings and verify whether they're in compliance with the switch:
- Click Fabric> Networking > Logical Switches > Home > Show > Hosts.
- In Logical Switch Information for Hosts verify the settings. Fully compliant indicates that the host settings are compliant with the logical switch. Partially compliant indicates some issues. Check the reasons in Compliance errors. Non compliant indicates that none of the IP subnets and VLANs defined for the logical network are assigned to the physical adapter. Click the switch > Remediate to fix this.
- If you have a cluster, check each node.
The following feature is applicable for 2019 UR2 and later.
Set affinity between vNICs and pNICs
This section provides the information on how to set affinity between virtual network adapters (vNICs) and physical network adapters (pNICs). Affinity between pNICs and vNICs brings in flexibility to route network traffic across teamed pNICs. With this feature, you can increase throughput by mapping RDMA capable physical adapter with a RDMA settings enabled vNIC. Also, you can route specific type of traffic (e.g. live migration) to a higher-bandwidth physical adapter. In HCI deployment scenarios, by specifying affinity, you can leverage SMB multichannel to meet high throughput for SMB traffic.
Before you begin
Ensure the following:
- Logical switch is deployed on a host.
- SET teaming property is enabled in the logical switch.
Follow these steps:
For a host, affinity between vNIC and pNIC can be set at virtual switch level. You can define affinity either when you add a new virtual network adapter to the virtual switch or when you modify the properties of an existing virtual network adapter.
Open Fabric > Servers > All Hosts > host group > Hosts > Host. Right-click Host, select Properties, and navigate to Virtual Switches tab.
Verify that the physical adapters to be teamed are added here. Affinity can be mapped only for physical adapters that are added here.
Click New virtual network adapter to add a new vNIC to the virtual switch.
By default, the affinity value is set as None. This setting corresponds to the existing behavior, where the operating system distributes the traffic from vNIC to any of the teamed physical NICs.
Set the affinity between a vNIC and physical NIC by selecting a physical adapter from the drop-down menu.
Once the affinity is defined, traffic from the vNIC is routed to the mapped physical adapter.
- We recommend you not to remove any of the physical adapter post teaming, as it could break the assigned affinity mappings.
- If the option This virtual adapter inherits the properties from the physical management adapter is checked, affinity cannot be defined for vNICs that handles management traffic.
Frequently asked questions
Q: I have deployed a SET enabled switch and teamed three physical adapters pNIC1, pNIC2 and pNIC3. I have set affinity between vNIC1 and pNIC1. For some reasons, if pNIC1 goes down, will there be no traffic flow from vNIC1?
A: No, traffic will continue to flow from vNIC1 to any of physical adapters (pNIC2 and pNIC3). When a physical adapter for which you have defined an affinity goes down, the default behavior of SET switch overrides affinity behavior. This means, operating system will map the traffic from vNIC1 to any of the active physical adapters (pNIC2 or pNIC3).
Monitor physical network devices
VMM supports Link Layer Discovery Protocol (LLDP). You can now leverage the LLDP information to remotely monitor physical network device properties and information. You can view this information by using VMM console and PowerShell.
To get the details of network devices from the VMM console, go to View > Host > Properties > Hardware Configuration > Network adapter.
The details displayed contain a time stamp (updated on). To get the current details, refresh the page.
The following LLDP information is displayed:
||Switch chassis ID|
||Switch port to which NIC is connected|
||Details related to the port such as Type|
|System Name Manufacturer
||Manufacturer, Software version details|
||Detailed system description|
||Available system capabilities (such as switching, routing)|
||Enabled system capabilities (such as switching, routing)|
||Virtual LAN identifier|
||IP management address|
Use the following PowerShell command to view/refresh the LLDP details:
By default, LLDP Packet wait time is set as 30 seconds. You can modify this value by modifying the registry key at Software\Microsoft\Microsoft System Center Virtual Machine Manager Server\Settings\LLdpPacketWaitIntervalSeconds. The minimum value you can set is 5 seconds, maximum value is 300 seconds.
Set up storage for Hyper-V hosts.