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 virtualization (virtio-gpu, virGL, sr-iov, MxGPU, VDI, spice)

Featured Replies

Hi,

 

The issue:

 

At the moment, there is two way to use a 3D application in a VM with unRAID. First way is to passtrough a GPU to it. While this solution is nice and work well if you have only 1 or 2 VM's that need GPU acceleration, it's not ideal when you need multiples accelerated VM's. The second way is to use the intel GVT capabilities, however, the UPT is not super well implemented yet and the graphical power of those IGD are not that great.

 

The solution:

 

It would be nice if you could include GPU virtualisation (vGPU) solution, there is more than one solution to achieve this, but I think virtio-gpu and virGL is our best shoot. There is also MxGPU with the AMD GIM driver or Nvidia GRID but it require expensive gpu card to work. 

 

If virtio-gpu is implemented, it would be nice to see spice implemented as well since its more efficient than a VNC.

 

Also I might dreaming here, but if there was a way to use one GPU to display more than one VM desktop. Example, if there 3 hdmi output on the card, display the desktop on the VM 1 on the HDM1 and the VM 2 on the HDMI2 and so on. 

 

Some interestings links :

 

https://www.spice-space.org/spice-user-manual.html 

https://www.kraxel.org/blog/2016/09/using-virtio-gpu-with-libvirt-and-spice/

https://www.kraxel.org/slides/qemu-gfx-2016/

 

Regards, Mathieu

in for no other reason than it could be fun to play a vGPU..

  • 5 months later...
  • Author

VirGL is now part of Mesa and work with QEMU/KVM. Also spice is already available in KVM with QXL, since it's way faster than VNC, I think it would be a nice feature to add to unRAID. 

This!!  As GPU prices drop this would be a ton of fun to have at home.  Would really make UnRaid take off as well!

  • 1 month later...
  • 1 year later...

Can you please get this implemented? It shouldn't be hard, just a couple of compile flags.

  • 2 months later...

For the Intel GVT-g (mediated virtual GPUs) I think all that is needed is for these modules to be included: kvmgt vfio-iommu-type1 vfio-mdev

 

I wouldn't ask for a whole web GUI, I'd be happy if I could play around with it editing XML and generating the mediated devices from the command line.

Indeed, no need for a GUI as this is quite advanced, but please get virgl enabled

  • 3 months later...

I'm at a Point were i need VirtIO GPU otherwise i need new Hardware. Is there a way to activate it without waiting for implementation?

  • 3 months later...

+1

Yes please!!! I'd really love this feature

  • 2 weeks later...

Also think this is a great idea - I think a webgui option would be sweet though. By the way, is there some type of sound virtualization that's possible ?

  • 3 weeks later...

Better VM Graphics needs to be a priority, i have gone through 4 different computers and 3 different graphic cards all with mixed mostly failed results, and the videos by Spaceinvader and others are out of date and in those videos issues are pointed out that should have been addressed by now, and i have not found a updated list of supported tested hardware ether, the wiki by unraid is very out of date.

 

Unraid is looking less and less of a option for me unless the whole VM issues get fixed/updated

5 hours ago, mark seaton said:

Better VM Graphics needs to be a priority, i have gone through 4 different computers and 3 different graphic cards all with mixed mostly failed results, and the videos by Spaceinvader and others are out of date and in those videos issues are pointed out that should have been addressed by now, and i have not found a updated list of supported tested hardware ether, the wiki by unraid is very out of date.

 

Unraid is looking less and less of a option for me unless the whole VM issues get fixed/updated

This feature request has nothing to do with your problem. Based on your previous post, it's GPU pass-through, which isn't GPU virtualisation.

 

Also, SIO tutorials with regards to pass through are very certainly NOT outdated.

 

While I understand your plight of not being able to get PCIe pass-through to work, I don't think you appreciate the danger of having a "list of supported hardware" when it comes to PCIe pass-through.

There are nuances that would be impossible to put in a generic list. For example (just to name some that I know of),

  • Some cards work but only if it isn't initialised at boot
    • Some motherboards don't allow you to change primary display
    • Some motherboards disable onboard graphics if dedicated card is installed
    • Some motherboards (BIOS) + CPU combo just downright don't cooperate with passthrough
    • UEFI boot may or may not initialise display
  • Motherboard BIOS e.g. different BIOS for different vendors may or may not work and there's no way to know in advance without someone actually testing it out
  • Some cards work with quirks if already initialised at boot e.g. reset issue
    • There are workarounds for reset issue but may or may not work
  • Some cards work with special kernel patch e.g. Vega
    • Kernel patch would break other working cards so can't be released with general Unraid release
  • Dumping vbios
    • User cannot dump own vbios and download wrong vbios from TechPowerup
    • Dump vbios incorrectly
  • New hardware / technology / kernel version breaking existing working hardware (or making previously-not-working-hardware work)
    • Plenty of examples with Ryzen BIOS updates
    • Threadripper "dirty patch", PCIe root port patch etc.
    • 10th-gen iGPU can't be passed through but 8th-gen is ok

So having a "list of supported hardware" would put the burden and responsibility on LT to provide support for things that would be virtually impossible to support without being physically at the site. A lot to ask for a small team with such cheap product (if you know how much Microsoft and the like charge for that kind of support).

 

 

Edited by testdasi

  • 4 months later...

Used AMD s7150x2 fall into real deal now (approx CN Yuan$1k), nobody look into how get it done in Unraid?

Edited by Lee Kim Tatt

  • 5 weeks later...

Came across a video where a guy compiled QEMU to support Virgl... Didnt look at all complicated!?  Would be nice as an option

 

 

+1

  • 5 months later...

Yeah, we have the GPU drivers built into unraid now so I think we just need QEMU compiled with the right flags?

i had made t thread about this here

 

it is referring to this video youtube - craft computing using proxmox to emulate a GTX9xx to RTX 30xx to visible as a nvidia tesla card. but as proxmox and unraid both use the same emulation software, surely there would be a way to getting unraid to do the same thing. it would be great being able to to have 2 gaming pcs using the same gpu

  • 1 month later...

This is really needed moving forward, Been a unraid fan for years back before Linus showed everyone the 2 gamers 1 cpu setup. Unfortunately many more application I'm running need gpu access and I don't need 2-8 gaming VMs I just need multiple VMs with GPU assist and compute help. Without making the change I'd have to have dedicated graphics for each, which is over kill. Hyper-v GPU-P is even looking like a solution at this point, but can't run unraid nested on it due to USB issues, so might just have to slowly start moving to proxmox and nest unraid if I decide to keep it. Love ya, but when needs are not being met relationships end :(
PS Spent better part of 20 hours trying to work around to keep unraid with nested esxi or hyper-v but the shared gpu needs to be at host level and nested just doesn't work from what I've tried. Gonna give it some time as I've slowly been plinking away at the proxmox vgpu hack on unraid.... requires a lot more, but still only at the compile drivers part and I'm no expert.
note for anyone trying the vgpu github has a 'merged' version of the hack for kernel 5.10 and up

 

  • 8 months later...

Proxmox added support for virtio-gl / virGL display driver, results look promising.

I saw in Unraid 6.10rc release notes QEMU has been compiled with OpenGL support, but not sure how to check compiled flags to confirm virGL support.

 

  • 1 month later...

+1

  • 1 month later...

Hello there.
I might be resurrecting some old thread, but do we have VGPU support on UnraidOs now ? 🙂
All the best

Sincerely

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.