How to passthrough multiple GPU in one Guest VM
-
Hi,
I have a host that has 8 NVIDIA Tesla K80 GPUs. Whenever I launch a VM, I can passthrough 1 GPU for each VM. I wanted to passthrough more than 1 GPU to a guest VM, is that possible?
Thanks.
-
This is called "vGPUs"

https://xcp-ng.org/docs/cli_reference.html#gpu-commands
I'm not entirely sure it works out of the box in XCP-ng due to some package license restriction with nvidia/citrix.
-
@olivierlambert thanks for the info. I tried the xe cli commands and tried adding another GPU in a VM that already has a GPU, but its not allowing me. I'm getting
Cannot create a virtual GPU that is incompatible with the existing types on the VM.. Seems if the only available vgpu-type is passthrough, you cannot add more than one gpu in that VM. -
That because maybe we don't have the "right" package. I'm curious: can you test with Citrix Hypervisor?
-
I think Citrix will require me a license to do GPU passthrough.
-
You might get a free trial to play with it

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login