Ubuntu: Ubuntu KVM Server Won't Create SR-IOV Virtual Interfaces


I'm working on a Ubuntu KVM server. It's Ubuntu 14.04 LTS with kernel 3.19. The motherboard is the Gigabyte ga-990fxa-ud5 r5 with bios ver. 3. I have qeum/kvm 2.2 installed. I have IOMMU on in the kernel and can pass my video cards and usb through. I have a Intel 82576 four port card and it is detected and shows SR-IOV capability. I have installed the latest verion of the IGB driver for it. Seems to be fine as it is attached to the ports on the card.

My issue is that when I put "max_vfs=4" in a file under modprobe.d and reboot, no virtual functions show up. I also have one "modprobe -r igb" and then "modprobe igb max_vfs=4" as suggested by people. Nothing. I just can't seem to program this server and make the virtual functions show up.

Is it even possible with this motherboard? Is the kernel the issue?


Firstly, rebooting is not required when creating VFs. Infact rebooting will remove the VFs(if any created).

Use the below command to view the number of VFs for a specific PCI device:

cat /sys/bus/pci/devices/<pci-address>/max_vfs  

It should be zero when no VF is created, now create a VF using the below command:

echo 1 > /sys/bus/pci/devices/<pci-address>/max_vfs  view the VF using "lspci" command  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »