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.

GPU Passthrough is EASY - Here's how

Featured Replies

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

  • Replies 84
  • Views 105.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Yes the docker needs to use the host based drivers. As soon as you bind to vfio the host cannot no longer use the card and hence the docker does see the card.   You either need to have two c

  • RaidUnnewb
    RaidUnnewb

    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 mor

  • First off, @dopeytree , this is a great guide, very concise! Thanks for sharing it with us. I just want to clarify and update few things, since it's been a couple years, and I'm sure folks are still

Posted Images

Care to share for the rest of the class? Your font choice is not readable on the light theme.

image.thumb.png.8a9a400de48dbf7970399cad987c0f9c.png

  • Author

Apologies for that.

I didn't know one could select a font or colour. 

I'm writing in the dark theme

This should be auto changing with the users theme selection - I don't have access to that code.

 

538884167_Screenshot2023-01-11at18_08_13.thumb.png.0b84a1b8a4797ab12a897f01e27acc00.png

Edited by dopeytree

  • Author

Colour is set to automatic...

 

 

Screenshot 2023-01-11 at 18.12.18.png

  • 2 months later...

Thank you for the guide up and running great with my 1070.. question.. are your gpu fans spinning? As mine are not and I'm worried.

  • Author

You can see the fan speed with the gpu monitor plugin.

 

My fan has a default fan speed of 30% on all the time.

I gave it some new paste on the heatsink so the temp only really jumps to 55*c when under a heavy load (gaming etc) the fan might go up to 50%

 

Hello @dopeytree
First of all: nice tutorial!
It works for me with a 1060. 
I was struggling with ticking my in GPU Tools -> System Devices. 
In my BIOS IOMMU was not enabled. After enabling it, I could tick my GPU in System Devices and everything seems to work flawless so far.

did the steps however didn't work without a vbios selected I get following error 

internal error: Unknown PCI header type '127' for device '0000:0c:00.0'

So it doesn't even boot

Edited by exxis

  • 1 month later...

Will this work the same way for iGPU passthrough as well?

  • 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

 

 

  • 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.

  • Author

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

Is there a better version for Linux distros other than VNC?

Hello. This is my first time setting up GPU passthrough. You said "Add 2nd graphics card". Does that mean that it is necessary to have 2 GPUs in the server?

  • Author

No the 1st is a software VNC graphics card. 

The 2nd is your real graphics card.

Edited by dopeytree

On 7/1/2023 at 2:29 PM, buddylee7 said:

Is there a better version for Linux distros other than VNC?

nomachine works well for me.

FYI font choice is not readable on the dark theme.

image.thumb.png.3c388ac7736e63798013c843bfa1e8e6.png

On 7/4/2023 at 7:38 PM, JonathanM said:

nomachine works well for me.

Is that 3D accelerated?  Basically looking for a poor mans VDI

  • Author

It's the default font using dark mode as provided by limetec.

Not sure why no one hasn't fixed the bug yet.

Something like detect background if black make text white.

  • Author

Add comments here: 

 

  • 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

  • 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?

  • 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 ?

 

 

 

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.

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...

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.