'No SRIOV Virtual Function is available for given physical function

I am trying to configure VM on ESX 7 with an SRIOV passthrough NIC and I get this error:

Module DevicePowerOn power on failed. Failed to start the virtual machine. pciPassthru15: No SR-IOV virtual function (VF) is available for given physical function (PF) (00000:094:00.0).

this is the lspci output. I made sure that there are VFs configured on the PFs:

0000:5e:00.0 Ethernet controller: Mellanox Technologies ConnectX-5 VPI adapter card EDR IB (100Gb/s) and 100GbE dual-port QSFP28 (MCX556A-ECAT) [vmnic2]
0000:5e:00.1 Ethernet controller: Mellanox Technologies ConnectX-5 VPI adapter card EDR IB (100Gb/s) and 100GbE dual-port QSFP28 (MCX556A-ECAT) [vmnic3]
0000:5e:00.2 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_0]
0000:5e:00.3 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_1]
0000:5e:00.4 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_2]
0000:5e:00.5 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_3]
0000:5e:00.6 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_4]
0000:5e:00.7 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_5]
0000:5e:01.0 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_6]
0000:5e:01.1 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.0_VF_7]
0000:5e:02.2 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.1_VF_0]
0000:5e:02.3 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.1_VF_1]
0000:5e:02.4 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.1_VF_2]
0000:5e:02.5 Ethernet controller: Mellanox Technologies MT27800 Family [ConnectX-5 Virtual Function] [PF_0.94.1_VF_3]

Any ideas what is going on and what can one do to fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source