this post was submitted on 28 Nov 2024
22 points (100.0% liked)

homelab

6668 readers
2 users here now

founded 4 years ago
MODERATORS
 

HyperV has GPU para virtualization

But for qemu,kvm,xen it seems like the best option is to passthrough a GPU to a single VM, unless the GPU supports srvio, which almost all of the retail cards don't.

I head about the woof and gaming on whales project, and they seem to get around this by using only containers for the subdivision.

What methods or options have you used to share a GPU with your VMs?

top 4 comments
sorted by: hot top controversial new old
[–] ArbiterXero@lemmy.world 8 points 6 days ago

I use containers instead

[–] Sailing7@lemmy.ml 5 points 6 days ago

Currently I simply dont.

On Xenn you should be capable with the correct drivers to put a couple of virtual GPU Profiles on your VMs to use.

On Hyper-V there is a command out there, but I don't know if its a dedicated access or if you are capable of sharing it across multiple instances.

On Proxmox though? Not sure but i think it was possible to forward it to a VM but thats all. Just dedicated acces afaik.

[–] AtariDump@lemmy.world 5 points 6 days ago

I’m using Hyper-V.

[–] spaghetti_carbanana@krabb.org 4 points 6 days ago

I'm looking into ways to get vGPU to work on VMware with the NVIDIA Tesla series, but as far as retail cards go, you will be hamstrung by the SR-IOV support and lack (or rarity) thereof.

For now I just use some low end Quadro GPUs passed through to VMs running docker, which then carves them up on a per-container basis.

Microsoft has GPU-P as you found, which is in Hyper-V on Windows 11 (maybe 10) and Windows Server 2025 and I believe works on retail cards.

For Proxmox, you have the vgpu-unlock script which will work for some consumer NVIDIA GPUs. I've heard of ways of getting this to work on xcp-ng as well.