Gpu passthrough and host same time

mer0x39

New Member
Mar 19, 2024
4
1
3
Hello, I want to know if it s possible to passthrough dedicated GPU to the VM and to be used by Proxmox host in the same time? If yes, how should be this done? Thank you!
 
i know that a gpu can be shared between to up to 7 VMs (highly depends on some creteria)
but why somebody want to use gpu on proxmox ? for compatibility reasons use the onboad graphikcard.
 
Hi,
that is currently not really possible. What you might want to look at is VirGL, but that only works with Linux guests.

i know that a gpu can be shared between to up to 7 VMs (highly depends on some creteria)
If you are refering to Nvidias MIG, that's going to be very expensive and probably not what the OP is looking for. There is some interesting stuff happening around the Intel Flex cards, but that's still unfolding and would still be pretty expensive
 
  • Like
Reactions: mer0x39
that is currently not really possible. What you might want to look at is VirGL, but that only works with Linux guests.
Is there any problem I firstly install GPU drivers on proxmox host and then passthrough the GPU to the VM? I want to be able to use the GPU in VMs or LXCs depending on needs, but don't know if it is possible.
 
Is there any problem I firstly install GPU drivers on proxmox host and then passthrough the GPU to the VM? I want to be able to use the GPU in VMs or LXCs depending on needs, but don't know if it is possible.
It is possible to unbind vfio-pci and load the actual drivers for the GPU after the VM (with passthrough) shuts down. That way, you can use it on the host (and CTs) again. This requires that the GPU resets properly. There are some threads on this forum about unbinding and rebinding drivers and using hookscripts.
 
  • Like
Reactions: nissens10