Hi! Fantastic writeup. For those of you on AMD platforms who were running into issues creating VFs:
Issue:
$# echo 4 > /sys/bus/pci/devices/0000:83:00.0/sriov_numvfs
-bash: echo: write error: Input/output error
$# dmesg | tail
i40e 0000:83:00.0: FW LLDP is enabled
i40e 0000:83:00.0: Allocating 4 VFs.
pci 0000:83:02.0: [8086:154c] type 7f class 0xffffff
pci 0000:83:02.0: unknown header type 7f, ignoring device
i40e 0000:83:00.0: entering allmulti mode.
i40e 0000:83:00.0: Failed to enable SR-IOV: -5
Solution: Enable PCIE ARI in BIOS
Thanks to this post in L1!