GPU Passtrough with single GPU not working (tried almost everything)


Zwen1111
Go to solution Solved by Zwen1111,

Recommended Posts

I'm trying to passthrough my single GPU to a Windows 11 VM, but my GPU doesn't get recognized because it doesn't show up in device manager and there's no video output.

 

CPU: Ryzen 5 1600X

MOBO: ASUS B350-PLUS

GPU: ASUS ROG STRIX-GTX1060-O6G-GAMING

 

  • I've made sure that the GPU is in its own IOMMU group
    • and is bound to VFIO at boot
      1765825667_Schermafbeelding2022-11-30om20_04_44.thumb.jpg.6ff21bfdcc78b1aff3677a963edcf295.jpg
  • Passed a vbios (grabbed the one from techpowerup) AsusGTX1060dump_2.rom
    • Removed the NVIDIA header
  • Bus/slot/function is correct in the VM xml
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/user/domains/vbios/AsusGTX1060dump_2.rom'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
    </hostdev>

     

  • multifunction='on' in the VM xml

  • Legacy is set in bios
  • CSM is enabled in bios
  • I added video=efifb:off to syslinux.cfg: syslinux.cfg

 

Because I don't have another windows system I can't dump my own vbios (without temporarily using my unraid server as a desktop).

 

I would really appreciate your help!

VM.xml viki-diagnostics-20221130-2008.zip

Link to comment
20 hours ago, josh5565 said:

Here check out this video on how to dump your bios from within unraid with just a couple clicks!

 

How to Easily Dump the vBios from any GPU for Passthrough

 

I am struggling with passing through a GPU atm also. Extremely frustrating & almost to the point of giving up and just buying another machine instead of VM

 

Thanks for the tip. A few days ago I found out this was possible from unraid, but the dumped vbios unfortunately didn't do the trick...

 

I'm thinking about buying an AM4 cpu with onboard graphics, just to get this working!

Link to comment
  • Solution

Somehow I got it working after re-creating the VM. I think it was messed up with drivers. The dumped vbios is working for me! After setting up the GPU for the VM and connecting via RDP the GPU didn't showed up in Device Manager, but there were two display adapters. One of them was the RedHat and the other one some Microsoft Display Adapter. While unpacking the NVIDIA driver the adapter in Device Manager changed to the GTX 1060. I think Windows Update was updating the driver on the background what made the adapter change in Device Manager.

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.