VM not starting with 9070 XT pci passthrough

palmis

New Member
Mar 4, 2026
1
0
1
Hi, newbie here, i'm trying to configure a VM to use my gpu with pci passthrough.
My specs are:
  • CPU: intel 265k
  • MB: gigabyte z890 eagle
  • GPU: gigabyte RX 9070 XT GAMING OC 16G
Now I know that an nvidia gpu would have worked better but here I am. Some people managed to get it to work so hopefully I'll get it to work, too.

I followed some guides and used various methods, but the only thing i get is this:
error writing '1' to '/sys/bus/pci/devices/0000:04:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:04:00.0', but trying to continue as not all devices need a reset
swtpm_setup: Not overwriting existing state file.
kvm: -device vfio-pci,host=0000:04:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: vfio 0000:04:00.0: error getting device from group 17: No such device
Verify all devices in group 17 are bound to vfio-<bus> or pci-stub and not already in use
stopping swtpm instance (pid 2144) due to QEMU startup error
TASK ERROR: start failed: QEMU exited with code 1
The usual stuff should be configured correctly: virtualization, IOMMU, and RBAR enabled in bios, vfio modules at startup, vfio device ids configured to be pass together, amdgpu blacklisted, ect.
I tried with or without hook scripts, with and without rom file.
I can provide logs and additional system details if someone could point me toward the best way to troubleshoot this.
Any help appreciated, thank you.