Jump to content
SpaceInvaderOne

VIDEO GUIDE***How to pass through an NVIDIA GPU as primary or only gpu in unRAID

134 posts in this topic Last Reply

Recommended Posts

hi guys i having issues i trying to get like 2 windows 10VMs or later  2 win 98 vms to play my old games networked etc

i have a Asus Maxmimus Hero vIII board  and it has onboard video   and i have a 2nd card  in slot one i cant stick in slot too  it doesnt sit with the expansion slots of the case right   and when i did  the card doesnt work  or it will make my computer constantly reboot  never boots up

  move the card  and all i left is vnc and the intel onboard video card  to select from.. so its tempermental...    

and what is a bios dump for?  and cant i just use firmware from the gigabyte site   and i did download the techpowerup  bios for this card  well i picked the first one  there was a bunch of them didnt know which one to choose

 

but i plan to make the 1VM my dedicated everyday computer  and the 2nd VM  be  if i wanted to play win98 games   

so i been watching videos but stuff not working right    any step by step stuff that works 100% of the time..  i tried to follow linus techs tips video for 2 gamerss 1 cpu but they went toooo fast in the setups etc

Share this post


Link to post
Posted (edited)

small question does anyone know how to remove the acpi qemu0002 device?

it seams it triggers 43 mode on nvidia card... 

only way to get rid of it that I found is to set pc-i440fx-1.4

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Windows 10</name>
  <uuid>d6446ff7-1d2a-dfd1-1c21-5f0d819ce30e</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='3'/>
    <vcpupin vcpu='2' cpuset='6'/>
    <vcpupin vcpu='3' cpuset='7'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-1.4'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/d6446ff7-1d2a-dfd1-1c21-5f0d819ce30e_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='off'/>
      <vapic state='off'/>
      <spinlocks state='off'/>
      <vendor_id state='on' value='ab1234567890'/>
    </hyperv>
    <kvm>
      <hidden state='on'/>
    </kvm>
    <vmport state='off'/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='1'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/Windows 10/vdisk1.img'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:41:0e:7c'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/user/isos/gtx970.me.dump.rom'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </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='0x00' slot='0x06' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
</domain>

Screenshot_1.png.36199f9c8bc7b9830ba1892055b0ddd8.png

Edited by thor2002ro

Share this post


Link to post
Posted (edited)

Here is the Vbios dump for the Asus GTX 1050 2048 MB BIOS (PH-GTX1050-2G)

 

Tested briefly and seems to be working fine.

 

Thanks for the tutorial @SpaceInvaderOne

 

PH-GTX1050-2G.rom

Edited by jeffreyf
updated to confirm that its working

Share this post


Link to post
Posted (edited)

Thanks for the great tutorials, @SpaceInvaderOne! I have managed to pass through my GTX 1070 to a Windows 10 VM using an edited vbios. However, I have now run into a bizarre problem that I can't seem to fix. The VM starts fine, it boots to login screen where everything works pretty much normally (except the spinner icon). After I log in, the desktop is visible for 2-3 seconds and after that everything goes black. The VM remains responsive, however. The screen does come back momentarily in certain cases:

  • If I type Ctrl-Alt-Del, it briefly (<1sec) flashes the transition screen. The mouse icon changes when I move it over the links even though the screen is black.
  • After Ctrl-Alt-Del and launching the task manager, the desktop is visible for about 1sec with the task manager launched before turning black again.
  • After Ctrl-Alt-Del and clicking the "Switch User" button, the screen comes back showing the login screen and stays visible for as long as I remain on the login screen. All the menus and even sound works on this screen.

VM and Unraid logs don't show any kind of errors.

Does anyone have ideas? I use the recommended Splashtop Streamer.

Edited by sam19

Share this post


Link to post

Hello everyone,

 

I've bought a Gigabyte 1650 Mini OC 4Gb.

I've dumped the vbios with GPUZ and it gave me a file of 1022kb.

Is this ok to use or do i have to hex it?

Currently the 1650 is the 2nd gpu but i want to have it as the primary so i can free a pcie slot.

 

I attached the file if anyone wants to use check it or even use it.

 

Gigabyte GeForce® GTX 1650 Mini ITX OC 4G

GVN1650IO4-00-10

TU117.rom

Share this post


Link to post

Battling the Code 43 myself using a card in slot 1/unraid's monitor passing a ROM file. In a different slot with no ROM file, no issue with Code 43 and no workarounds in place.

 

Here's my Quadro ROMs

P2000.rom P620.rom

Share this post


Link to post

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.