Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AMD Radeon GPU Passthrough problem

Featured Replies

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.

Solved by SimonF

  • 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

  • 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

  • 3 weeks later...
  • 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,

  • 2 weeks later...

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.