Recover GPU from VM after it shuts down

Sorry for the long delay. I had to focus on work instead of proxmox. Anyway this worked

Code:
cd /sys/bus/pci/drivers/vfio-pci
echo "0000:0X:00.0" > unbind
echo "0000:0X:00.1" > unbind

cd /sys/bus/pci/drivers/nouveau
echo "0000:0X:00.0" > bind

My question now would be, is there a place where I can place this once and it works for all VMs that tries to passthrough the GPU?
 
  • Like
Reactions: _gabriel

About

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!

Get your subscription!

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.

Buy now!