13–Windows Server 2016
Configuring VMMQ
218
AH0054601-00 B
Creating a VM and Enabling VMMQ on VMNetworkadapters
in the VM
To create a virtual machine (VM) and enable VMMQ on VMNetworksadapters
in the VM:
1.
Create a VM.
2.
Add the VMNetworkadapter to the VM.
3.
Assign a virtual switch to the VMNetworkadapter.
4.
To enable VMMQ on the VM, issue the following Windows PowerShell
command:
PS C:\Users\Administrators>
set-vmnetworkadapter -vmname vm1
-VMNetworkAdapterName "network adapter" -vmmqenabled $true
-vmmqqueuepairs 4
Example output of 64 virtual functions and 16 VMMQs is shown here:
PS C:\Users\Administrator>
get-netadaptervport
Name ID MacAddress VID ProcMask FID State ITR QPairs
---- -- ---------- --- -------- --- ----- --- ------
Ethernet 3 0 00-15-5D-36-0A-FB 0:0 PF Activated Unknown 4
Ethernet 3 1 00-0E-1E-C4-C0-A4 0:8 PF Activated Adaptive 4
Ethernet 3 2 0:0 0 Activated Unknown 1
Ethernet 3 3 0:0 1 Activated Unknown 1
Ethernet 3 4 0:0 2 Activated Unknown 1
Ethernet 3 5 0:0 3 Activated Unknown 1
Ethernet 3 6 0:0 4 Activated Unknown 1
Ethernet 3 7 0:0 5 Activated Unknown 1
Ethernet 3 8 0:0 6 Activated Unknown 1
Ethernet 3 9 0:0 7 Activated Unknown 1
Ethernet 3 10 0:0 8 Activated Unknown 1
Ethernet 3 11 0:0 9 Activated Unknown 1
.
.
.
Ethernet 3 64 0:0 62 Activated Unknown 1
Ethernet 3 65 0:0 63 Activated Unknown 1
Ethernet 3 66 00-15-5D-36-0A-04 0:16 PF Activated Adaptive 4
Ethernet 3 67 00-15-5D-36-0A-05 1:0 PF Activated Adaptive 4
Ethernet 3 68 00-15-5D-36-0A-06 0:0 PF Activated Adaptive 4
NOTE
For an SR-IOV capable virtual switch: If the VM switch and hardware
acceleration is SR-IOV-enabled, you must create 10 VMs with 8 virtual
NICs each to utilize VMMQ. This requirement is because the SR-IOV
has precedence over VMMQ.