Hi,
I'm trying to get the virtual functions of my Intel I350 passed through to a router vm. I got the SR-IOV working, basically following this guide on reddit.
I also blacklisted their module so they don't get loaded by the host (tried both blacklist and adding to vfio-pci).
Everything should be ready, but when I add one VF to my vm via the GUI or qemu command, with or without pcie on, I get this error:
After that, the whole card seems to crash, both ports stop working and the VFs disappear from lspci until reboot.
I found a few older forum posts about this, back then it was fixed by hot-adding the pci device with
Since that doesn't work anymore I'm helpless, maybe someone has an idea what to try.
Some more info:
Error log
dmesg after error
lspci
VM config
I'm trying to get the virtual functions of my Intel I350 passed through to a router vm. I got the SR-IOV working, basically following this guide on reddit.
I also blacklisted their module so they don't get loaded by the host (tried both blacklist and adding to vfio-pci).
Everything should be ready, but when I add one VF to my vm via the GUI or qemu command, with or without pcie on, I get this error:
Code:
TASK ERROR: can't reset pci device '0000:02:10.0'
After that, the whole card seems to crash, both ports stop working and the VFs disappear from lspci until reboot.
I found a few older forum posts about this, back then it was fixed by hot-adding the pci device with
Code:
qm> device_add pci-assign,host=02:10.0
Error: 'pci-assign' is not a valid device model name
qm> device_add vfio-pci,host=02:10.0
Error: Bus 'pcie.0' does not support hotplugging
Since that doesn't work anymore I'm helpless, maybe someone has an idea what to try.
Some more info:
Error log
Code:
Use of uninitialized value $name in concatenation (.) or string at /usr/share/perl5/PVE/SysFSTools.pm line 253.
Use of uninitialized value $name in concatenation (.) or string at /usr/share/perl5/PVE/SysFSTools.pm line 253.
Use of uninitialized value $name in concatenation (.) or string at /usr/share/perl5/PVE/SysFSTools.pm line 253.
Use of uninitialized value $name in concatenation (.) or string at /usr/share/perl5/PVE/SysFSTools.pm line 253.
Use of uninitialized value $name in concatenation (.) or string at /usr/share/perl5/PVE/SysFSTools.pm line 253.
TASK ERROR: can't reset pci device '0000:02:10.0'
dmesg after error
Code:
[ 269.895280] igb 0000:01:00.0: removed PHC on enp1s0f0
[ 269.895387] pci 0000:02:10.0: Removing from iommu group 1
[ 269.895743] pci 0000:02:10.4: Removing from iommu group 1
[ 269.895846] pci 0000:02:11.0: Removing from iommu group 1
[ 269.896104] pci 0000:02:11.4: Removing from iommu group 1
[ 269.896143] pci 0000:02:12.0: Removing from iommu group 1
[ 269.896180] pci 0000:02:12.4: Removing from iommu group 1
[ 269.896239] pci 0000:02:13.0: Removing from iommu group 1
[ 269.896245] pci_bus 0000:02: busn_res: [bus 02] is released
[ 271.530749] igb 0000:01:00.0: IOV Disabled
[ 271.620503] igb 0000:01:00.1: removed PHC on enp1s0f1
lspci
Code:
01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
02:10.0 Ethernet controller: Intel Corporation I350 Ethernet Controller Virtual Function (rev 01)
02:10.4 Ethernet controller: Intel Corporation I350 Ethernet Controller Virtual Function (rev 01)
02:11.0 Ethernet controller: Intel Corporation I350 Ethernet Controller Virtual Function (rev 01)
02:11.4 Ethernet controller: Intel Corporation I350 Ethernet Controller Virtual Function (rev 01)
02:12.0 Ethernet controller: Intel Corporation I350 Ethernet Controller Virtual Function (rev 01)
02:12.4 Ethernet controller: Intel Corporation I350 Ethernet Controller Virtual Function (rev 01)
02:13.0 Ethernet controller: Intel Corporation I350 Ethernet Controller Virtual Function (rev 01)
VM config
Code:
bios: ovmf
bootdisk: scsi0
cores: 2
efidisk0: local-lvm:vm-100-disk-1,size=128K
hostpci0: 02:10,pcie=1
ide2: local:iso/pfSense-CE-2.4.4-RELEASE-p3-amd64.iso,media=cdrom
machine: q35
memory: 1024
name: pfSense
numa: 0
ostype: other
scsi0: local-lvm:vm-100-disk-0,size=8G
scsihw: virtio-scsi-pci
smbios1: uuid=87e8aaff-831c-4b41-9b4e-e55e82ccfe98
sockets: 1
vmgenid: 074fab00-b25e-469e-a9c7-3a157c75dd82