Assigning AMD RX-580 GPU to VM Causes System to Crash and Reboot

florapig

Cadet
Joined
Mar 8, 2022
Messages
2
My machine has an Intel CPU with an iGPU as well as a RX-580. I have the system configured to use the iGPU for the host and I have assigned the RX-580 to an Ubuntu VM using the TrueNAS Scale web UI.

Without the RX-580 assigned the VM boots and works flawlessly. Once I assign the GPU and boot the VM the system hangs 5 -15 seconds after the start button is pressed. If the VM is set to autostart you end up in an infinite boot loop. o_O Removing the assignment fixes the problem.

I am not sure where to start debugging this. I've included a screenshot of what the VNC console was displaying when the system crashed.

Hardware:
Code:
       _,met$$$$$gg.          root@truenas.local
    ,g$$$$$$$$$$$$$$$P.       ------------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) x86_64
 ,$$P'              `$$$.     Host: Z490 AORUS ELITE
',$$P       ,ggs.     `$$b:   Kernel: 5.10.93+truenas
`d$$'     ,$P"'   .    $$$    Uptime: 14 mins
 $$P      d$'     ,    $$P    Packages: 1440 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: zsh 5.8
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'         CPU: 11th Gen Intel i5-11400 (12) @ 4.400GHz
 `$$b      "-.__              GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590
  `Y$$                        GPU: Intel Device 4c8b
   `Y$$.                      Memory: 2732MiB / 39936MiB
     `$$b.
       `Y$$b.                                         
          `"Y$b._                                     
              `"""


1PGojXP.png
 

florapig

Cadet
Joined
Mar 8, 2022
Messages
2
One quick update, in my BIOS I set the PCI to 2nd gen speeds and the machine no longer reboots so I may have some hardware/power issues. That's likely not a TrueNAS issue.

However, now the VM never seems to start. When I download the logs they are empty, and when viewing the VNC screen it is simply black. After 15 - 20 minutes SSH does not work either.
 
Top