Unable to start VM when adding pci passthrough device

Rubincon78

New Member
Nov 8, 2024
1
0
1

VM will not boot with PCI passthrough configured.​


Error:


kvm: -device vfio-pci,host=0000:06:00.0,id=hostpci0,bus=pci.0,addr=0x10: vfio 0000:06:00.0: error getting device from group 15: No such device
Verify all devices in group 15 are bound to vfio-<bus> or pci-stub and not already in use


Troubleshooting info:


IOMMU Device Group
root@proxmox:/sys/kernel/iommu_groups/15/devices# ls
0000:03:02.0 0000:06:00.0

Device Descriptions:
lspci -nnk:
...
03:02.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port [1022:43f5] (rev 01)
Subsystem: ASMedia Technology Inc. 600 Series Chipset PCIe Switch Downstream Port [1b21:3328]
Kernel driver in use: pcieport
...
06:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8852CE PCIe 802.11ax Wireless Network Controller [10ec:c852] (rev 01)
Subsystem: AzureWave RTL8852CE PCIe 802.11ax Wireless Network Controller [1a3b:5600]
Kernel driver in use: vfio-pci
Kernel modules: rtw89_8852ce
...


VM Configuration:
root@proxmox:~# qm config 101
agent: 1
bios: ovmf
boot: order=ide0;net0
cores: 4
cpu: host
efidisk0: local-zfs:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
hostpci0: 0000:06:00.0
ide0: local-zfs:vm-101-disk-1,cache=writeback,discard=on,size=128G
machine: pc-q35-9.0,viommu=virtio
memory: 8192
meta: creation-qemu=9.0.2,ctime=1730375047
name: Windows-Jump
net0: virtio=BC:24:11:8E:3C:47,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: win11
scsihw: virtio-scsi-single
smbios1: uuid=0786b16b-e462-4ae1-9c32-2ffd65f5d485
sockets: 1
tpmstate0: local-zfs:vm-101-disk-2,size=4M,version=v2.0
vga: virtio
vmgenid: 304cbbf3-808c-4764-bb07-2d3b957c2915

I have tried all suggestions in docs: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough

root@proxmox:~# cd /etc/modprobe.d/
root@proxmox:/etc/modprobe.d# ls
pve-blacklist.conf rtw89_8852ce.conf vfio-pci.conf zfs.conf

root@proxmox:/etc/modprobe.d# cat pve-blacklist.conf
# This file contains a list of modules which are not supported by Proxmox VE
# nvidiafb see bugreport [URL]https://bugzilla.proxmox.com/show_bug.cgi?id=701[/URL]
blacklist nvidiafb
blacklist rtw89_8852ce

root@proxmox:/etc/modprobe.d# cat rtw89_8852ce.conf
softdep rtw89_8852ce pre: vfio-pci

root@proxmox:/etc/modprobe.d# cat vfio-pci.conf
#add per proxmox docs to enable passthrough of wlan device
options vfio-pci ids=1022:43f5,10ec:c852

Ran after all modprobe.d changes:
update-initramfs -u -k all

Also tried VM passthrough config with all 4 combinations of pcie=on|off and ROM-Bar=on|off.
 
Last edited: