SR-IOV for LXC w/ X520/I350 on R740

This site looks very well laid out but not heavily used yet. Thanks to whoever helped putting it together.

I haven’t been able to get SR-IOV working on my R740. I have an X520 based network daughter card from Dell. The Proxmox instructions for SR-IOV PCI Passthrough say:

Host Configuration

Generally, there are two methods for enabling virtual functions on a device.

  • sometimes there is an option for the driver module e.g. for some Intel drivers

max_vfs=4

which could be put file with .conf ending under /etc/modprobe.d/. (Do not forget to update your initramfs after that)

Please refer to your driver module documentation for the exact parameters and options.

But I don’t know how to do that and haven’t been able to find documentation about how to set that. I’m using systemd instead of grub. I’m guessing it needs to be added to the kernel command line but I’m not sure how to determine the device name or how to do it.

I’ve also tried the second approach:

  • The second, more generic, approach is using the sysfs. If a device and driver supports this you can change the number of VFs on the fly. For example, to setup 4 VFs on device 0000:01:00.0 execute:

echo 4 > /sys/bus/pci/devices/0000:01:00.0/sriov_numvfs

To make this change persistent you can use the ‘sysfsutilsDebian package. After installation configure it via **/etc/sysfs.conf** or aFILE.conf’ in /etc/sysfs.d/.

It will run successfully from the command line. But trying to run it as a service like I see in tutorials in an error saying “Command line is not complete”.

I’ve seen references that vf-enabled cards now have np in the port name, but mine are only labeled eno1, eno2, etc. I have an X710 card that does produce eno1np0, eno2np1, etc. but that card spins the fans up higher on my server for some reason so I switched it back out.

If anyone has succeeded with this and able to help, great. If I’m able to get it working, I’m happy put together a working setup on here.