Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Enabling SR-IOV for VMware

The physical network interfaces support single root I/O virtualization (SR-IOV) capability and can be connected to the VMs using PCI passthrough. Before you enable SR-IOV for VMware, note the following:

  • SR-IOV is only supported with Intel Ivy Bridge CPU (or higher) and Intel X520 NICs using ixgbe driver or X710 NICs with 10G ports and using i40e driver. Any other NIC models are not supported.

    Support for ixgbe driver and i40e driver is available from Junos OS Release 18.4R1 onwards.

  • Starting in Junos OS Release 18.4R1, in VMware deployments operating in SR-IOV mode with an ESXi server, support is available for VLAN-tagged traffic for vMX interfaces.

To enable vMX with vSphere for SR-IOV adapters, perform these tasks:

Enable SR-IOV on a Physical Adapter

Use the following steps to enable SRX-IOV on a physical adapter. The following procedures are applicable for ESXi version 6.5.

To enable SR-IOV on a physical adapter in vSphere client:

  1. Navigate to the host in the left navigation pane and click the Manage tab. Go to Hardware tab. Under PCI Devices option, select the physical adapter and click Configure SR-IOV option.
  2. In the populated window, select Yes to enable SR-IOV. In the virtual functions text box, specify the number of virtual functions to configure for the adapter.
  3. Click Save.
  4. Restart the host.
  5. Verify the status of SR-IOV post reboot. The status is displayed as Active.

Add vSwitch and Port Groups

Use the following steps to enable SRX-IOV on a physical adapter if you are using ESXi version 6.5:

To add vSwitch and Port Groups:

  1. To create vSwitch: Navigate to Networking tab and select Virtual Switches and click Add standard virtual switch.
  2. To create port groups: Navigate to Networking tab and select Port Groups and click Add port group.

Assigning the SR-IOV NIC to the VFP VM

Use the following steps to enable SRX-IOV on a physical adapter if you are using ESXi version 6.5:

To assign the SR-IOV to the VFP VM using the vSphere Web Client:

  1. Power-off the VFP when you add SR-IOV to the VFP VM.
  2. Navigate to the VFP VM in the left navigation pane and click the Manage tab.
  3. Select VM Hardware, and click Edit near the top right corner.
  4. In the Edit setting, go to Virtual Hardware tab and click Add network adapter option.
  5. Under New Network Adapter, select the respective port group for mapping.
  6. Change Adapter Type as SR-IOV passthrough.
  7. Map Physical function to respective SR-IOV NIC.
  8. Click Save.
    Now, the SR-IOV interface is added to the VFP VM.

Enable VLAN Tagging on SR-IOV Interfaces

You can configure VLAN tagging on SR-IOV interfaces on vMX instance deployed in VMware ESXi host with the following steps::

We've used the hardware and software combination for the following procedure:

  • VMware ESXi version 6.5 Update 3
  • i40en driver version 1.10.6 for Intel 700 Series network adapters
  • Firmware version 7.20 for Intel 700 Series network adapters
  1. Enter the CLI configuration mode after logging in to the vMX.
  2. Include the vlan-tagging statement to enable VLAN tagging.
  3. Include the vlan-offload statement to offload the VLAN filtering .

    Example:

  4. Log in to the ESXi Web console . Navigate to Networking and select Port groups tab. Edit the settings for the required port.
    Enable the VLAN trunking for the vSwitch that includes the SR-IOV interface. You must set the VLAN value to 4095.

    Note the following:

    • The VLAN ID 4095 allows any VLAN traffic.

    • The VLAN ID 0 does not allow any VLAN traffic.

    • Ensure that you have configured the VLAN ID matching to the VLAN configuration on the mapped interface. Example: If you have configured a VLAN ID 100 on the associated logical interface, then use VLAN ID 100 for SR-IOV. This setting enables receive and forwarding incoming frames that contain a matching VLAN ID that is VLAN 100.

  5. Click Save to save your settings.

SR-IOV Interface for Layer 2 Services

To use SR-IOV interface for Layer 2 Services such as VPLS, Layer 2 VPN, Layer 2 circuit or bridging on a vMX instance deployed in VMware ESXi host, you must enable the trust mode and disable the spoof check in Intel NIC settings. Use the following steps to enable the trust mode and disable the spoof check:
  1. Install Intel esxcli plug-in. For instructions, see VMware KB article.
  2. Verify the trust mode and the spoof check status on the SR-IOV NIC by entering the following command in ESXi shell mode:

    Example:

  3. Enable the trust mode and disable the spoof check on Intel NIC.

    Example:

  4. Restart the vMX FPC configured with the SR-IOV interface after changing to the trust mode and spoof check values.

    Once the FPC is online, Layer-2 services start working on SR-IOV interface.