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.

(SOLVED) Need help figuring out server crash from VM

Featured Replies

Hey guys, most of you know that I'm new to all this....my computer experience is just as a basic Windows user who doesnt know what half of this in Unraid is talking about....I just follow videos and pray it works  lol....which is has except for this issue....

 

When I try to pass though my Radeon RX580 GPU with a W10 VM my server crashes.  I was watching this SI video (Advanced GPU Passthrough) which has you looking at the XML for the template to make sure that the video and audio portions of the GPU shows up correctly in the same bus and slot. Mine did not, and I corrected them like the video shows and it seemed like it was going to work because rather than giving me a error message it looked like it booted but after a few seconds the server crashed.

 

Anyway, there is something in my template that was not in SI's template. My GPU video and audio are both set as bus 1 and it is in fact located in the top slot. In his video nothing else showed up in his XML for that bus....I even put the video on 25% and watched through his template as he scrolled down. Mine on the other had has this, which is in the same but 0x01 as the GPU.

 

 <controller type='pci' index='9' model='pcie-to-pci-bridge'>
      <model name='pcie-pci-bridge'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </controller> 

 

*** For comparison here is the XML for the GPU also......

 

<address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x1'/>

 

 

Is that one above causeing some kind of conflict with my GPU and causing the server to crash?  I dont really know exactly what I'm looking at or what a pcie-pci-bridge is and if that is something physical or virtual but just wanted to verify if it is okay or not.

 

Thanks!

 

Edited by SPOautos

  • Author

Nevermind! I got it figured out and actually have my Radeon RX580 running on the VM!!!  For anyone else trying to passthrough a RX580 here is what I did....I am using Machine Q35 - 4.2 with Bios OVMF. I added the GPU as well as its audio portion. Then following the SpaceInvader video on "Advanced GPU Passthrough Techniques" I made sure the video and audio were showing up on the same virtual bus. They were not before and I had to edit them, its very easy.  Lastly, I downloaded the Vbios for my exact GPU from https://www.techpowerup.com/vgabios/ saved it in Unraid and pointed the VM template to it where it asks for a optional Vbios.

 

Once all that was in place, the VM booted and works perfectly.  I was then able to go into the W10 VM and install the Radeon rx580 driver for my specific GPU. Its all working.....Today is a good day!

  • 2 weeks later...
On 9/12/2020 at 1:48 AM, SPOautos said:

Nevermind! I got it figured out and actually have my Radeon RX580 running on the VM!!!  For anyone else trying to passthrough a RX580 here is what I did....I am using Machine Q35 - 4.2 with Bios OVMF. I added the GPU as well as its audio portion. Then following the SpaceInvader video on "Advanced GPU Passthrough Techniques" I made sure the video and audio were showing up on the same virtual bus. They were not before and I had to edit them, its very easy.  Lastly, I downloaded the Vbios for my exact GPU from https://www.techpowerup.com/vgabios/ saved it in Unraid and pointed the VM template to it where it asks for a optional Vbios.

 

Once all that was in place, the VM booted and works perfectly.  I was then able to go into the W10 VM and install the Radeon rx580 driver for my specific GPU. Its all working.....Today is a good day!

Hi SPOautos, was the RX580 your only GPU?

I'm having issues passing through the GPU getting black screen at the moment. Watched a whole bunch of SpaceInvaderOne videos and tried exactly what you suggested (before reading this post). Good to hear it worked for you.

My setup is (Asus RX580, Ryzen 7 3700x, Asus Tuf gaming x570-plus). Anyone got any suggestions what I could try to resolve this?

  • Author
1 hour ago, DrJake said:

Hi SPOautos, was the RX580 your only GPU?

I'm having issues passing through the GPU getting black screen at the moment. Watched a whole bunch of SpaceInvaderOne videos and tried exactly what you suggested (before reading this post). Good to hear it worked for you.

My setup is (Asus RX580, Ryzen 7 3700x, Asus Tuf gaming x570-plus). Anyone got any suggestions what I could try to resolve this?

 

Yes, I only have the one GPU.  Did you install the Vbios for your exact GPU (the exact Asus model)?  It seems like mind was going to a black screen prior to me entering in the Vbios.  But I'm sure having two cards might make a difference with the settings and what all has to be done.  Are you trying to only pass though just the RX580 or both of them? 

 

I wish I was a expert that could REALLY help you but I just had to throw darts at it until I hit the bulls eye and it worked.  I dont really know enough about everything to give you any guidance aside from just sharing what I did.

 

edit - Do you have splashtop or something similar setup to remote into your VM?  If you are in Unraid when the screen goes black it may just be because your Unraid lost video. My Unraid goes black since I only have 1 video card, but I can remote into my VM and its fine. Maybe that is what yours is doing. If so, remote in and install the gpu driver. Then you can figure out how to get the other card to be your primary card that Unraid uses so that it keeps video when you turn on the VM.

 

Are you looking through a monitor or tv thats hooked directly to your Unraid or through a different computer?

Edited by SPOautos

2 hours ago, SPOautos said:

 

Yes, I only have the one GPU.  Did you install the Vbios for your exact GPU (the exact Asus model)?  It seems like mind was going to a black screen prior to me entering in the Vbios.  But I'm sure having two cards might make a difference with the settings and what all has to be done.  Are you trying to only pass though just the RX580 or both of them? 

 

I wish I was a expert that could REALLY help you but I just had to throw darts at it until I hit the bulls eye and it worked.  I dont really know enough about everything to give you any guidance aside from just sharing what I did.

 

edit - Do you have splashtop or something similar setup to remote into your VM?  If you are in Unraid when the screen goes black it may just be because your Unraid lost video. My Unraid goes black since I only have 1 video card, but I can remote into my VM and its fine. Maybe that is what yours is doing. If so, remote in and install the gpu driver. Then you can figure out how to get the other card to be your primary card that Unraid uses so that it keeps video when you turn on the VM.

 

Are you looking through a monitor or tv thats hooked directly to your Unraid or through a different computer?

Wow thx for the quick reply. Loving the community spirit here :)

 

I only have the one RX580, no secondary GPU. I tried 3 version of the vbios from https://www.techpowerup.com/. The latest version was crashing the VM bootup initially. I know it crashed because 1) black screen and 2) cannot RDC to the VM. The older version of the vbios seems to not crash (but not work), and miraculously after using the older version the latest version of the vbios also doesn't crash the VM anymore (no idea what's going on).

 

Anyhow, so now I can boot up the VM, and RDC to it. But the screen is still black. It seems like "something" (not nothing because the display adaptor is different in the VM OS) is passthrough to the VM, but not the RX580. See screenshots below:

897599847_norx.PNG.07979626afd225f1fab73a95c392871f.PNG

 

I now have an "Unknown device" which isnt there if I use VNC

1730674749_norx2.thumb.PNG.cf15b296b27e28bc545bbdd57562da40.PNG

 

I tried to manually install the RX580 driver, but no success

rx3.PNG.60d012b23d31a631431b92fb4ff5ae3b.PNG

IOMMU.thumb.PNG.934f9c922dce0a967e2cdb836d8126d5.PNG

770947169_vmsetting.thumb.PNG.1d688f38b101449700a992966dd02a13.PNG

 

2 hours ago, SPOautos said:

If you are in Unraid when the screen goes black it may just be because your Unraid lost video. My Unraid goes black since I only have 1 video card, but I can remote into my VM and its fine. Maybe that is what yours is doing.

Well I only have the one GPU, and only one monitor is connected to it. During boot, you can see the Unraid scripts. The "Tower login:" disappears as soon as I boot up the VM with the RX580 passed through.

 

This thread is marked as (SOLVED) I hope people still read it... 

My IOMMU grouping seems fine (only the RX580 is in group 23), and my VM settings too (as discussed above)

🤦‍♂️🤦‍♂️🤦‍♂️

  • Author
14 hours ago, DrJake said:

 

My IOMMU grouping seems fine (only the RX580 is in group 23), and my VM settings too (as discussed above)

🤦‍♂️🤦‍♂️🤦‍♂️

 

From the template click "form view" to see the XML and post that. Did you make the XML changes, you didnt mention them so I'm wondering if that's what's missing? If you did modify the XML, everytime you change a setting in the template and hit apply the previous XML modifications go away. This means you have to redo them after trying every change.....its a pita, goes like this.... make a template change, apply, go back to edit, switch to XML, make change, then apply.

 

Post all your XML for the VM so we can take a look at that part. I can compare it to the changes I had to make to get it to work. There was definitely issues with how the RX580 was listed in the XML that was causing me issues that I had to correct.

Edited by SPOautos

7 hours ago, SPOautos said:

 

From the template click "form view" to see the XML and post that. Did you make the XML changes, you didnt mention them so I'm wondering if that's what's missing? If you did modify the XML, everytime you change a setting in the template and hit apply the previous XML modifications go away. This means you have to redo them after trying every change.....its a pita, goes like this.... make a template change, apply, go back to edit, switch to XML, make change, then apply.

 

Post all your XML for the VM so we can take a look at that part. I can compare it to the changes I had to make to get it to work. There was definitely issues with how the RX580 was listed in the XML that was causing me issues that I had to correct.

Hi SPOautos, thank you for the offer. I think knowing that you got it working kept me motivated to try :) I can report now that the passthrough is working. As to how exactly, I don't really have a clue, but I'll describe the situation maybe future users can pick out the relevant bits.

 

Issues:

  • I think I've inherited some VM issues from the recent hardware upgrades. I upgraded from Xeon to Ryzen, and kept all the VMs which were created on the old hardware.
  • Also the VM I'm using is Windows 8.1 (not windows 10), because I have a PRO license for it, to use Remote Desktop Connection.
  • I read on Reddit that one should remote connect with streaming software and not to use RDC, something about the protocol and stuff.

My newbie solutions - no hex edits; no xml edits (confirmed to be working):

  • Created a NEW VM, using Windows 10 (I can also confirm that RX580 passthrough on a new Windows 8.1 VM does not work).
  • Used VNC to install TeamViewer. Used TeamViewer to install RX580 drivers.
  • My Graphics ROM BIOS field is left blank (I don't know exactly how it works, but I've tried many vbios version as described in earlier posts), but left blank seems to work, so why change it...
  • Think some luck is involved, after starting the VM, and seeing a black screen, I went on to reading forums on the other computer. Prob after couple minutes delay the screen just came on... I tried to passthrough the keyboard and mouse afterwards (quite straight forward, just 2 checkboxes in VM settings), that seems to have messed with the GPU passthrough which didnt work for a while (even when all the settings were the same as before, when it did work :s). Anyways, after a few VM restarts, everything seems to work again................... Luck I tell you, this doesnt make sense to me....
  • The USB keyboard, mouse, and GPU passthrough continues to work now, haven't encountered any of the delays described in the dot point above.

System info:

  • AMD RYZEN 7 3700x; ASUS Radeon RX580 Dual OC 8GB (only one GPU); ASUS TUF Gaming x570-plus; Corsair Vengeance LPX 32GB (2x16GB) DDR4; 
  • Unraid 6.8.3
  • Windows 10 VM setting (Q35-4.2; OVMF; passing both RX580 GPU and Sound)

Bottom line, I wanted to thank you. Many other posts were quite discouraging, things like RX580 wont work as the only GPU, or AMD GPU difficult to passthrough etc etc. Knowing that SPOautos got a similar setup to work kept me going. If anyone else runs into this problem, hope they find this thread helpful :)

  • Author
2 hours ago, DrJake said:

Hi SPOautos, thank you for the offer. I think knowing that you got it working kept me motivated to try :) I can report now that the passthrough is working. As to how exactly, I don't really have a clue, but I'll describe the situation maybe future users can pick out the relevant bits.

 

Issues:

  • I think I've inherited some VM issues from the recent hardware upgrades. I upgraded from Xeon to Ryzen, and kept all the VMs which were created on the old hardware.
  • Also the VM I'm using is Windows 8.1 (not windows 10), because I have a PRO license for it, to use Remote Desktop Connection.
  • I read on Reddit that one should remote connect with streaming software and not to use RDC, something about the protocol and stuff.

My newbie solutions - no hex edits; no xml edits (confirmed to be working):

  • Created a NEW VM, using Windows 10 (I can also confirm that RX580 passthrough on a new Windows 8.1 VM does not work).
  • Used VNC to install TeamViewer. Used TeamViewer to install RX580 drivers.
  • My Graphics ROM BIOS field is left blank (I don't know exactly how it works, but I've tried many vbios version as described in earlier posts), but left blank seems to work, so why change it...
  • Think some luck is involved, after starting the VM, and seeing a black screen, I went on to reading forums on the other computer. Prob after couple minutes delay the screen just came on... I tried to passthrough the keyboard and mouse afterwards (quite straight forward, just 2 checkboxes in VM settings), that seems to have messed with the GPU passthrough which didnt work for a while (even when all the settings were the same as before, when it did work :s). Anyways, after a few VM restarts, everything seems to work again................... Luck I tell you, this doesnt make sense to me....
  • The USB keyboard, mouse, and GPU passthrough continues to work now, haven't encountered any of the delays described in the dot point above.

System info:

  • AMD RYZEN 7 3700x; ASUS Radeon RX580 Dual OC 8GB (only one GPU); ASUS TUF Gaming x570-plus; Corsair Vengeance LPX 32GB (2x16GB) DDR4; 
  • Unraid 6.8.3
  • Windows 10 VM setting (Q35-4.2; OVMF; passing both RX580 GPU and Sound)

Bottom line, I wanted to thank you. Many other posts were quite discouraging, things like RX580 wont work as the only GPU, or AMD GPU difficult to passthrough etc etc. Knowing that SPOautos got a similar setup to work kept me going. If anyone else runs into this problem, hope they find this thread helpful :)

 

That's great! At least it's going! If you decide that it's not working quite right or stable, try the XML edit....its very easy and I'll walk ya through it. Glad to hear it's working! 

Archived

This topic is now archived and is closed to further replies.

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.