To ensure that a virtual machine and a physical NIC can exchange data, you must associate the virtual machine with one or more virtual functions as SR-IOV passthrough network adapters.

Prerequisites

  • Verify that the virtual functions exist on the host.

  • Verify that the passthrough networking devices for the virtual functions are active in the PCI Devices list on the Settings tab for the host.

  • Verify that the virtual machine compatibility is ESXi 5.5 and later.

  • Verify that Red Hat Enterprise Linux 6 and later or Windows has been selected as the guest operating system when the virtual machine was created.

Procedure

  1. Locate the virtual machine in the vSphere Web Client.
    1. Select a data center, folder, cluster, resource pool, or host and click the VMs tab.
    2. Click Virtual Machines and double-click the virtual machine from the list.
  2. Power off the virtual machine.
  3. On the Configure tab of the virtual machine, expand Settings and select VM Hardware.
  4. Click Edit and select the Virtual Hardware tab in the dialog box displaying the settings.
  5. From the New device drop-down menu, select Network and click Add.
  6. Expand the New Network section and connect the virtual machine to a port group.

    The virtual NIC does not use this port group for data traffic. The port group is used to extract the networking properties, for example VLAN tagging, to apply on the data traffic.

  7. From the Adapter type drop-down menu, select SR-IOV passthrough.
  8. From the Physical function drop-down menu, select the physical adapter to back the passthrough virtual machine adapter.
  9. To allow changes in the MTU of packets from the guest operating system, use the Guest OS MTU Change drop-down menu.
  10. Expand the Memory section, select Reserve all guest memory (All locked) and click OK.

    I/O memory management unit (IOMMU) must reach all virtual machine memory so that the passthrough device can access the memory by using direct memory access (DMA).

  11. Power on the virtual machine.

Results

When you power on the virtual machine, the ESXi host selects a free virtual function from the physical adapter and maps it to the SR-IOV passthrough adapter. The host validates all properties of the virtual machine adapter and the underlying virtual function against the settings of the port group to which the virtual machine belongs.