***
Host OS release: Ubuntu 14.04.4 LTS with 4.7.0-rc6 x86_64 kernel
Virtualbox release: 5.0.24r108355, installed from .run installer
igb: 5.3.5.3 on 4-port Intel 82576 (8086:10e8) NIC
***
I am unable to passthrough Intel Corporation 82576 Virtual Function NICs to the guest. I am using pci_stub. I have blacklisted igbvf driver, but I also tried to use it and then unbind from/bind to pci_stub manually, but no difference. Attached VFs simply are not recognized from guests (guest is running Ubuntu, but I tried FreeBSD as well and vfs are not shown in pciconf -lv)
I am able to passthrough Physical ports though, but not without errors.
Code: Select all
[ 876.357493] vboxpci 0000:07:00.0: PCIRAW_POWER_ON
[ 876.467546] vboxpci 0000:07:00.0: failed to attach to IOMMU, error -22Also these errors are printed:
Code: Select all
[ 874.627676] pci-stub 0000:07:00.0: claimed by stub
[ 874.627704] pci-stub 0000:07:00.0: enabling device (0002 -> 0003)
[ 874.627775] vboxpci 0000:07:00.0: vboxPciOsDevInit
[ 874.627892] vboxpci 0000:07:00.0: region 0: mmio fbfe0000+131072
[ 874.627897] vboxpci 0000:07:00.0: region 1: mmio fb800000+4194304
[ 874.627901] vboxpci 0000:07:00.0: region 2: pio 6000+32
[ 874.627905] vboxpci 0000:07:00.0: region 3: mmio fb7f0000+16384
[ 874.627945] vboxpci 0000:07:00.0: got irq 49
[ 874.628554] vboxpci 0000:07:00.0: reg=0 start=fbfe0000 size=131072
[ 874.628618] vboxpci 0000:07:00.0: invalid region 1
[ 874.628667] vboxpci 0000:07:00.0: invalid region 3Code: Select all
# VBoxManage showvminfo --details (UUID)
...
Attached physical PCI devices:
Host device host08:10.1 at 08:10.1 attached as 01:10.1 <----- these are 4 VFs, none of them are visible later
Host device host08:10.3 at 08:10.3 attached as 01:10.3
Host device host08:10.5 at 08:10.5 attached as 01:10.5
Host device host08:10.7 at 08:10.7 attached as 01:10.7
Host device host07:00.0 at 07:00.0 attached as 01:00.0 <----- this is Physical port
...
# VBoxManage showvminfo --details (UUID) --machinereadable | grep -i pci
AttachedHostPCI=08:10.1,01:10.1
AttachedHostPCI=08:10.3,01:10.3
AttachedHostPCI=08:10.5,01:10.5
AttachedHostPCI=08:10.7,01:10.7
AttachedHostPCI=07:00.0,01:00.0
# grep -i "device" /opt/VirtualBox/vms/VM/Logs/VBox.log | grep -i host
00:00:00.065596 DeviceName <string> = "host08:10.1" (cb=12)
00:00:00.065603 HostPCIDeviceNo <integer> = 0x0000000000000010 (16)
00:00:00.065630 DeviceName <string> = "host08:10.3" (cb=12)
00:00:00.065636 HostPCIDeviceNo <integer> = 0x0000000000000010 (16)
00:00:00.065663 DeviceName <string> = "host08:10.5" (cb=12)
00:00:00.065670 HostPCIDeviceNo <integer> = 0x0000000000000010 (16)
00:00:00.065696 DeviceName <string> = "host08:10.7" (cb=12)
00:00:00.065702 HostPCIDeviceNo <integer> = 0x0000000000000010 (16)
00:00:00.065729 DeviceName <string> = "host07:00.0" (cb=12)
00:00:00.065735 HostPCIDeviceNo <integer> = 0x0000000000000000 (0)
00:00:00.400282 Attached PCI device ffff:ffff host address 08:10.1 to guest address 01:10.1
00:00:00.400436 Attached PCI device ffff:ffff host address 08:10.3 to guest address 01:10.3
00:00:00.400576 Attached PCI device ffff:ffff host address 08:10.5 to guest address 01:10.5
00:00:00.400715 Attached PCI device ffff:ffff host address 08:10.7 to guest address 01:10.7
00:00:00.505534 Attached PCI device 8086:10e8 host address 07:00.0 to guest address 01:00.0
However device ID is detected correctly as per dmesg:
Code: Select all
[ 874.522568] vboxpci 0000:08:10.1: vboxPciOsDevInit
[ 874.522624] vboxpci 0000:08:10.1: region 0: mmio faf40000+16384
[ 874.522629] vboxpci 0000:08:10.1: region 3: mmio faf60000+16384
[ 874.522706] vboxpci: detected device: 8086:10ca at 08:10.3, driver pci-stubI tried with intel_iommu=pt, intel_iommu=on, intel_iommu=on iommu=pt, but none of these worked for successful VF passthrough. I have CONFIG_VFIO is not set so I use pci_stub.
I tried to check the issue with 12.1.3. The built-in VM debugger , but I have headless installation with no GUI. Can I use debugger without GUI?
If any log extractions required, please ask me. Thanks!
-Alex