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:
Enabling SR-IOV on a Host
To enable SR-IOV on a physical adapter:
- Navigate to the host in the left navigation pane and click
the Manage tab. Click the Networking tab and
select Physical Adapters.
You can review the SR-IOV property to determine whether a physical adapter supports SR-IOV.
- Select the physical adapter and click Edit Settings.
- Select Enabled from the Status box.
- In the number of virtual functions text box, specify the
number of virtual functions to configure for the adapter.
On a vMX instance, you are allowed to configure only one virtual function per physical function.
- Click OK.
- Restart the host.
Assigning the SR-IOV NIC to the VFP VM
To assign the SR-IOV to the VFP VM using the vSphere Web Client:
- Navigate to the VFP VM in the left navigation pane and click the Manage tab.
- Click the Settings tab, select VM Hardware, and click Edit near the top right corner.
- Select the Virtual Hardware tab, select PCI Device from the New device list, and click Add.
The list of SR-IOV virtual NICs appears under the New PCI device row.
- Select the SR-IOV NIC to assign to the VFP VM and click OK.
Configuring Port Binding for the Distributed Port Group
A distributed port group specifies port configuration options for each member port. Distributed port groups define how a connection is made to a network
To change the port binding configurations for distributed port group in the vSphere Web Client:
- Navigate to the VFP VM in the left navigation pane and click the Summary tab. The Summary tab displays the current status.
- On the Summary tab for the virtual machine, expand the VM Hardware panel and check the assigned distributed port group to SR-IOV ports inside the VM.
- Click the distributed port group and click Manage Distributed Port Groups option.
- In the new window, select General to edit the distributed port group settings from Static to Ephemeral.