December 23, 20241 yr Enjoying unraid, but encountering some issues with GPU Passthrough to VM. Message from libvirtlog: 8616: error : virHostdevResetAllPCIDevices:601 : Failed to reset PCI device: internal error: Unknown PCI header type '127' for device '0000:07:00.0' So basically I have 2x AMD Radeon RX 5600 XT in my Tower. (Which I want to Passthrough virtual machines) IOMMU Groups: - made sure I split them, ended up with PCIe ACS override=Both (VM Manager) - selected them and Bind Selected to VFIO at Boot (System Devices) VM Assignment: - created a Windows 10 VM and assigned the Graphics card, also assigned the matching sound card (0000:03:00.0) - created a Ubuntu 24 VM and assigned the Graphics card, also assigned the matching sound card (0000:07:00.0) Everything was working fine. (rebooted the vm a couple of times, did updates, etc...) - Then decided to install the AMD drivers after install cannot boot the vm, get Execution error internal error: Unknown PCI header type '127' for device '0000:07:00.0 - Also noticed, even without installing the AMD drivers in the vm, after a while would get the same results - This was all done on unraid 6.12... just recently upgraded to unraid 7.0.0-rc.2 with same results - Basically a reboot of the system fixes it until this happens again (failing to reset pci device) Any assistance would be much appreciated. I am sure there must be a magic trick for this.
December 23, 20241 yr Community Expert Solution 13 minutes ago, JTLFTech said: Enjoying unraid, but encountering some issues with GPU Passthrough to VM. Message from libvirtlog: 8616: error : virHostdevResetAllPCIDevices:601 : Failed to reset PCI device: internal error: Unknown PCI header type '127' for device '0000:07:00.0' So basically I have 2x AMD Radeon RX 5600 XT in my Tower. (Which I want to Passthrough virtual machines) IOMMU Groups: - made sure I split them, ended up with PCIe ACS override=Both (VM Manager) - selected them and Bind Selected to VFIO at Boot (System Devices) VM Assignment: - created a Windows 10 VM and assigned the Graphics card, also assigned the matching sound card (0000:03:00.0) - created a Ubuntu 24 VM and assigned the Graphics card, also assigned the matching sound card (0000:07:00.0) Everything was working fine. (rebooted the vm a couple of times, did updates, etc...) - Then decided to install the AMD drivers after install cannot boot the vm, get Execution error internal error: Unknown PCI header type '127' for device '0000:07:00.0 - Also noticed, even without installing the AMD drivers in the vm, after a while would get the same results - This was all done on unraid 6.12... just recently upgraded to unraid 7.0.0-rc.2 with same results - Basically a reboot of the system fixes it until this happens again (failing to reset pci device) Any assistance would be much appreciated. I am sure there must be a magic trick for this. Try install AMD reset plugin
December 23, 20241 yr Author Thank you Simon for the tip, you did find the magic trick. Installed the AMD Reset Plugin and its working great for me. Running on unraid 7.0.0-rc2. cheers
January 14, 20251 yr Author Good day everyone. So just updated my system to version 7.0.0 And now the AMD pass thought is no longer working. I get the following: 2025-01-14T00:48:50.730413Z qemu-system-x86_64: vfio: Cannot reset device 0000:03:00.1, no available reset mechanism. I tried to uninstall the AMD Vendor Reset plugin and then reinstall. Still no success. Any ideas? Cheers,
January 26, 20251 yr Hey @JTLFTech I don't have much to add as far as a solution. I was trying to pass through my 7800XT GPU for months with constant issue after issue. I could not get it to work without issues for the life of me. I could get the VM running but I couldn't restart it or shut it down without Unraid freaking out. Once I switched to Nvidia, all my issues went away. i did nothing different at all. I hate to be that guy but Unraid and VMs do not play nicely with AMD GPUs.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.