Guide to using AMD Radeon RX 6000 Series Cards


Recommended Posts

Being an old nvidia you could have error 43 in the vm and no video output.

Nvidia in the past did not allow consumer gpus to be passed through and used in a vm: there could be workaround to add to the xml just to mask that the gpu is running in a vm and make the drivers to work.

Newer drivers don't have this issue, since nvdia is allowing gpu passthrough now.

Link to comment
5 minutes ago, ghost82 said:

Being an old nvidia you could have error 43 in the vm and no video output.

Nvidia in the past did not allow consumer gpus to be passed through and used in a vm: there could be workaround to add to the xml just to mask that the gpu is running in a vm and make the drivers to work.

Newer drivers don't have this issue, since nvdia is allowing gpu passthrough now.

Thank you perfect, last question, if I have the AMD bug, I could try the AMD-Vendor-reset no ?

Link to comment

I remember I read that the issue can come for the audio part of the gpu. try to remove this block in the xml:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
    </hostdev>

in other words remove the passthrough of the audio with source address:

<address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      

and see if it crashes.

 

Another test, for shoutdown/boot (not for reboots): you can try to manually remove the gpu (video and audio) and rescan for it, and then start the vm.

You can try this and see if it works without crashing.

1. start the vm, it should output video

2. shutdown the vm

3. open a terminal in unraid and give the following commands, press 'enter' after each line:

echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.0/remove
echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.1/remove
sleep 1
echo -n mem > /sys/power/state
sleep 1
echo "1" | tee -a /sys/bus/pci/rescan

4. start the vm

Edited by ghost82
Link to comment
20 minutes ago, ghost82 said:

I remember I read that the issue can come for the audio part of the gpu. try to remove this block in the xml:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
    </hostdev>

in other words remove the passthrough of the audio with source address:

<address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      

and see if it crashes.

 

Another test, for shoutdown/boot (not for reboots): you can try to manually remove the gpu (video and audio) and rescan for it, and then start the vm.

You can try this and see if it works without crashing.

1. start the vm, it should output video

2. shutdown the vm

3. open a terminal in unraid and give the following commands, press 'enter' after each line:

echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.0/remove
echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.1/remove
sleep 1
echo -n mem > /sys/power/state
sleep 1
echo "1" | tee -a /sys/bus/pci/rescan

4. start the vm

Removing audio didn't worked.

I tried the terminal and it crashed, it crashed with "echo -n mem > /sys/power/state"
Any idea ?

Link to comment

Just wanted to share what helped me - running a 12th gen intel cpu so it might be slightly different:

  • In bios I had to switch to uefi, disable resizeable bar, 4g decoding, SR-IOV support: Yes and for my cpu features I set this:
    image.thumb.png.999ccf5048a217722eded5a989352056.png
  • in vm manager, i had to
    • VFIO allow unsafe interrupts: Yes
    • PCIe ACS override: Disabled
  • The VM looks like this for me:
    image.thumb.png.7e52eac348bfe00de634def947660e7c.png
  • PCI Devices and IOMMU Groups - vfio log
    image.thumb.png.812d93ddd37112f283ec5fc9a9755d81.png
  • image.thumb.png.d093d4bdf4514f5cbddf4cc0284a0b76.png
  • Boot Config
    image.thumb.png.96feb8d89d7604571390b69a00759e3a.png
    But I'm not sure what was needed or not to get the graphics card runnig, in the boot config, just added it in case there is something interesting in it. Added some options to safe some power.
Edited by Blobbonator
Link to comment
51 minutes ago, Blobbonator said:

Just wanted to share what helped me - running a 12th gen intel cpu so it might be slightly different:

  • In bios I had to use uefi, disable resizeable bar, 4g decoding
  • in vm manager, i had to
    • VFIO allow unsafe interrupts: Yes
    • PCIe ACS override: Disabled
  • The VM looks like this for me:
    image.thumb.png.7e52eac348bfe00de634def947660e7c.png
  • PCI Devices and IOMMU Groups - vfio log
    image.thumb.png.601c5def3135de101b72e83ca09bd311.png

I already tried, what is your GPU ?

Link to comment

 

On 2/21/2023 at 9:12 AM, ghost82 said:

I remember I read that the issue can come for the audio part of the gpu. try to remove this block in the xml:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
    </hostdev>

in other words remove the passthrough of the audio with source address:

<address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      

and see if it crashes.

 

Another test, for shoutdown/boot (not for reboots): you can try to manually remove the gpu (video and audio) and rescan for it, and then start the vm.

You can try this and see if it works without crashing.

1. start the vm, it should output video

2. shutdown the vm

3. open a terminal in unraid and give the following commands, press 'enter' after each line:

echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.0/remove
echo "1" | tee -a /sys/bus/pci/devices/0000\:03\:00.1/remove
sleep 1
echo -n mem > /sys/power/state
sleep 1
echo "1" | tee -a /sys/bus/pci/rescan

4. start the vm

Hello all, thanks ghost82 for all your help !

I finally bought a 3060 and sold the 6600.

Now it's working from the first try !

 

The only thing that is not working are the multiplayer games like Fortnite or R6.

I posted a message on this subject here :

thanks again for all your help.

Have a good day

 

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.