Is it possible to hotplug a PCI device?

tycoonbob

Member
Aug 25, 2014
67
0
6
I'll try to keep this brief.
As an experiment, I installed PVE 5.1 on a desktop (i7-7700, 32GB RAM, Quadro P1000 GPU, 256GB NVMe M.2 drive) and created a OSX 10.13.4 QEMU instance. For that QEMU instance, I am passing through a USB controller and the GPU using:
Code:
hostpci0: 00:14
hostpci1: 01:00

And frankly, it's working great. If I reboot the hardware, I have display showing Proxmox console until the QEMU instance starts, and then the GPU switches over to the QEMU instance and I have solid graphics (1440p @ 60FPS video plays great, audio/keyboard/mouse/bluetooth/smart card adapter all working great over USB). Really cool.

What I would like to do is create a Windows 10 QEMU instance, and be able to hotswap those 2 pci devices between QEMU instances.

Is it possible to hot unplug pci devices from one QEMU instance and then hot-plug those same pci devices to another QEMU instance? I know I could do it if I had only 1 QEMU instance running (stop OSX, then start Windows) and that should work, but it would be great to keep both running at the same time and toggle between.

Any thoughts or advice on this?

Thanks!
 
not with our tools, if it works, you would have to manually send the commands to qemu via qmp/monitor
 

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!