Assign the GPU to a VM via passthrough, which will make the VM take control of the physical GPU output.
How to handle GPU sharing between the VMs and the Proxmox host running containers, without rebooting everything?
Use
SR-IOV
or
vGPU
technologies, if supported, to share the GPU between VMs and the Proxmox host simultaneously.
--------
Ok, so let me know if you spot any errors in all this, if there is a better way to achieve these goals or if you have some lateral method to achieve these not discussed above. Oh, and if there already exists tested scripts to do any of this ?
I have a workstation and have multiple displays with each connected to VM with GPU/PCI passthrough.
Is it possible to swap the GPU between the VM at will and efficiently ?
Yes, if you have the right hardware.
AMD has reset bug, there are some chances the GPU isn't returned to the host correctly. So don't switch AMD graphics card much on the host.
Nvidia has better chances at this stage.
GPU switch has to be manual because once the vm is shutdown, the GPU will be returned to the host. You'll see the fans start to spinning loud without drivers. You can then assign this to another VM. Doing too soon will likely cause the host to crash.
GPU sharing is possible with VMWare workstation inside your windows 11 VM. e.g. On proxmox, you pass through your Nvidia gpu to win 11 vm. Inside that windows 11, you have vmware workstation installed. Any nested vms inside can share your gpu.
Your host will more likely to crash with passthrough than the ones without.
The Proxmox community has been around for many years and offers help and support for
Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!
The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.
We use essential
cookies
to make this site work, and optional cookies to enhance your experience.