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] GPU passthrough issue on VM reboot

Featured Replies

Hi all,

i'm alex and new to unraid and this community.

 

Now I played many houres with unraid, viewed much videos about it, but encounterd some strange problems, i can not find much information about.

 

I have build a new ITX gaming pc with the following setup:

Gigabyte X570 Auros I Wifi Pro

AMD Ryzen 5 3600

Gainward GTX 1070 Phoenix GS

 

After setting up a flash drive, unraid seams to run fine except the GPU passthrough to a windows 10 VM.

First i have setup a VM with only VNC and installed windows to it. After getting windows installed and updated...

1. shut down VM

2. downloaded the ROM directly from the GPU

3. added the GTX1070 as second GPU to the VM, with the ROM linked

4. started the VM

 

so far so good, this works quite well. I can shutdown and start the VM again and i can reboot the VM.

 

Now I added the sound card of the GTX1070 to the VM and started it again.

As long i only shutdown and start the VM it works, but if i restart the VM there is no video output anymore.

I have to reboot the host to get it working again, create new VM and start adding the GPU without the sound card first.... after adding the sound card -> same behavier.

What i have tried:

- different bios version -> no impact

- ROMs from techpowerup -> it seams to work only with the dumped ROM

- legacy and uefi boot -> legacy is more reliable, but at the end with the same issue

- video=efifb:off

- echo 0 > /sys/class/vtconsole/vtcon0/bind; echo 0 > /sys/class/vtconsole/vtcon1/bind; echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind

- bind GPU and sound card via vfio-pci-config

 

maybe there is some one of you with the same problem and may can provide help?

 

P.S. i tried the same with an DELL T3600 workstation with a GTX970 (only GPU) -> exactly same behavier!

Edited by DerPsychater

  • Author

so.... i think i have not searched the forum enough and now finally got the solution.

 

- create VM based on Q35 and i440fx

- I now used a ROM from techpowerup and edited it

- in VM xml switch bus and slot configuration for the GPU and sound device

old:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/user/isos/Gainward.GTX1070.rom'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>

 

new:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <rom file='/mnt/user/isos/Gainward.GTX1070.rom'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </hostdev>

 

now all is working quite nice and as excpected ;)

 

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.