Move GPU Passthrough to new VM
-
I have a GPU that is passthrough to a VM. I followed the steps here (https://xcp-ng.org/docs/compute.html#pci-passthrough) to do that, and it worked great.
I now would like to move that GPU over to a new VM.
How can I accomplish this? I tried the following command to move it to the new VM:
xe vm-param-set other-config:pci=0/0000:02:00.0 uuid=<vm uuid>
But now the GPU is assigned to both VMs and the first VM to start gets the GPU while the other VM fails to start.
Thanks in advance for your help!
-
You need to remove the param of the
other-config:pci
key for the other VMxe vm-param-remove param-name=other-config param-key=pci uuid=<VM TO REMOVE PCI PASSTROUGH>
-
Prefect! That was the command I was looking for.
Thanks for your quick response!
-
You are welcome
-
-