GPU Passthrough is EASY - Here's how


Recommended Posts

GPU passthough is much easier than made out.

You don't need to do any of the stuff in videos..

 

Set up the VM with software VNC.

Load the VM.

Click to open VNC in web browser.

Install windows etc.

Set up windows user.

Close VM.

 

Then Go to top menu choose unraid -> tool system -> devices scroll down and tick the NVIDIA GPU or AMD GPU & its soundcard.

Reboot unraid.

 

Edit VM.

Add 2nd graphics card choose your AMD or Nvidia device.

Add sound card choose your AMD or Nvidia device.

Apply.

 

Start VM.

It should automatically install basic drivers for the card.

Now go to amd or nvidia websites and download the drivers for your card.

Run the installer for your card.

Reboot VM.

 

Now you have a gaming VM.

Enjoy.

 

  

12 hours ago, RaidUnnewb said:

Jesus, this took me a couple hours to troubleshoot....
I couldn't figure out what you were talking about by adding a second video card.

 

Theres a tiny easily missed plus button to add more cards in the VM settings:

 

image.png.62481ab86403d5ad219c22d050117159.png

 

 

Edited by dopeytree
Added screenshot
  • Like 3
Link to comment
  • 2 months later...
  • 1 month later...
  • 2 weeks later...

Hi, I have a RX 6750 XT that I bought for vm gpu passtrough. But it didn’t work: I tried “multifunction” in the XML, YouTube tutorial and any AMD driver. When I start the vm and arrive at the Windows desktop 2/3 minutes and the whole server crash. Can anyone help?

 

7DF6A805-F4C7-4F5C-9E29-D71788F2CDD1.thumb.jpeg.d84a635f5a12b91a278d01e8e4e4a2ac.jpeg

 

858DBA5E-048D-4D1D-A735-5E88741DC658.thumb.jpeg.cc5eabfa23c9815396ee21d0c6bc0752.jpeg

 

984D190C-B472-47A5-9A35-44296A0EBD2D.thumb.jpeg.c2bd2bb8f56c00186b82936d1e2a5b15.jpeg

 

 

Link to comment
  • 1 month later...
  • 2 weeks later...

Understanding you can create a gaming VM but how are you viewing the VM's desktop?  Through an output display port or through some kind of accelerated virtual window (aka: VNC). I know there are various apps out there that can accomplish this but curious what would be a good solution.

Link to comment

If you follow this method you have both options available.

Depends how many PCs you have available I guess. For me I have a mac laptop.

 

If you right click the VM you can open a VNC window in browser.

Once booted into windows in control panel somewhere you can turn on Microsoft Remote Desktop for a better VNC type experience.

Then download the Microsoft remote desktop app for your PC. Enter the login info and you now can connect remotely with decent video quality etc.

 

You can also hook up a hdmi or display port out of the graphics card to a display..

Edited by dopeytree
Link to comment
  • 4 weeks later...
On 5/18/2023 at 10:59 PM, mv_dev said:

Hi, I have a RX 6750 XT that I bought for vm gpu passtrough. But it didn’t work: I tried “multifunction” in the XML, YouTube tutorial and any AMD driver. When I start the vm and arrive at the Windows desktop 2/3 minutes and the whole server crash. Can anyone help?

 

7DF6A805-F4C7-4F5C-9E29-D71788F2CDD1.thumb.jpeg.d84a635f5a12b91a278d01e8e4e4a2ac.jpeg

 

858DBA5E-048D-4D1D-A735-5E88741DC658.thumb.jpeg.cc5eabfa23c9815396ee21d0c6bc0752.jpeg

 

984D190C-B472-47A5-9A35-44296A0EBD2D.thumb.jpeg.c2bd2bb8f56c00186b82936d1e2a5b15.jpeg

 

 

Did someone help this guy out? I've run a 1080 in a gaming VM with zero issues for years, but am having issues with my new 6700XT.  Mine doesn't crash. It just doesn't let the VM power off, and whines about not being able to change power state of it when booting up. Is there some issue with 6700/6750XT?

 

Edit:

Not sure why you're bothering with VNC if you're intending to game, etc. Ideally you've already installed an NVME or SSD in the server and have installed Windows on that. Then it's just a matter of passing-through the NVME/SSD. Then it's just a matter of passing through GPU/GPU-Sound/NVME or SSD/Mouse and Keyboard/Headphones. All explained years ago in SpaceInvaders tutorials. One PC, One GPU, One Monitor - good to go UnRaid VM and Gaming Machine all-in-one. He does need to refresh some of his guides for Windows 11's quirks, though.

Edited by Lebowski89
Link to comment
  • 3 weeks later...

I'm having the same issue.  Mine crashes hard.  I've tried:

Error / Issue:  Driver NOT loading correctly in Win11 VM & low resolution
- Using ROM BIOS
- Resizable BAR enabled

Error / Issue:  Driver loading correctly in Win11 VM and resolution correct BUT Unraid crashes (locks up)

- No ROM BIOS (also tried with ROM BIOS)
- Resizable BAR disabled

Any ideas?

Link to comment
  • 3 weeks later...

Can I do same for primary card ?

 

I have currently two cards in my server GT710 and 2080Ti. 

 

The 2080ti I'm able to passthrough using 

 

 append vfio-pci.ids=1022:148c,10de:1ad6,10de:1ad7 video=efifb:off isolcpus=2-11,26-35

 

pic-ids are devicesID for 2080 

 

but I am not able to passthrough GT710 ?

 

Should I also list it within VFIO ?

 

 

 

Link to comment
4 minutes ago, macmus said:

Can I do same for primary card ?

 

I have currently two cards in my server GT710 and 2080Ti. 

 

The 2080ti I'm able to passthrough using 

 

 

 append vfio-pci.ids=1022:148c,10de:1ad6,10de:1ad7 video=efifb:off isolcpus=2-11,26-35

 

 

pic-ids are devicesID for 2080 

 

but I am not able to passthrough GT710 ?

 

Should I also list it within VFIO ?

 

 

 

You should be able to passthru that card also, You can bind to vfio, but you dont have to bind to vfio to passthru to a vm.

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.