Before you can connect a virtual machine to a virtual function, you have to configure the virtual functions of the physical NIC on your host by using a host profile.

You can also enable SR-IOV virtual functions on the host by using the esxcli system module parameters set vCLI command on the NIC driver parameter for virtual functions in accordance with the driver documentation. For more information about using vCLI commands, see vSphere Command-Line Interface Documentation.

Verify that the configuration of your environment supports SR-IOV. See SR-IOV Support.

Create a host profile using the SR-IOV capable host as a reference. For more information about host profiles, see the vSphere Host Profiles documentation.

1

From the vSphere Web Client Home, click Rules and Profiles > Host Profiles.

2

Select the host profile from the list and click the Manage tab.

3

Click Edit Host Profile and expand the General System Settings folder.

4

Expand Kernel Module Parameter and select the parameter of the physical function driver for creating virtual functions.

For example, the parameter for the physical function driver of an Intel physical NIC is max_vfs.

5

In the Value text box, type a comma-separated list of valid virtual function numbers.

Each list entry is the number of virtual functions that you want to configure for each physical function. A value of 0 means SR-IOV will not be enabled for that physical function.

For example, if you have a dual port, set the value to

x,y

where x or y is the number of virtual functions you want to enable for a single port.

If the target number of virtual functions on a single host is 30, you might have two dual port cards set to 0,10,10,10.

Note

The number of virtual functions supported and available for configuration depends on your system configuration.

6

Click Finish.

7

Remediate the modified host profile to the target host.

After the virtual functions become enabled on the host, the physical NIC no longer shows up as a host network adapter in the Physical Adapters list within the Networking tab for the host. It appears in the PCI Devices list in the Settings tab for the host.

Associate a virtual function with a virtual machine as a PCI device for networking through Direct Path I/O.