Assigning a GPU to a Windows VM using xe CLI
book
Article ID: CTX222537
calendar_today
Updated On:
Description
To assign a GPU to a Windows VM using xe CLI
Instructions
To assign a GPU to a Windows VM using xe CLI follow the below steps,
1. Shut down the VM that you wish to assign a GPU group by using the
xe vm-shutdown uuid=<VM UUID> command.
2. Find the UUID of the GPU group by entering the following:
xe gpu-group-list This command prints all GPU groups in the pool. Note the UUID of the appropriate GPU group.
3. Attach the VM to a GPU group by entering the following:
xe vpgu-create gpu-group-uuid=<UUID of gpu_group> vm-uuid=<UUID of VM> To ensure that the GPU group has been attached, run the
xe vgpu-list command.
4. Start the VM by using the
xe vm-start uuid=<VM UUID> command.
5. Once the VM starts, install the graphics card drivers on the VM.
Installing the drivers is essential, as the VM has direct access to the hardware on the host. Drivers are provided by your hardware vendor.
Note: If you try to start a VM with GPU Pass-Through on a XenServer host without an available GPU in the appropriate GPU group, XenServer prints an error message.
Issue/Introduction
How to assign a GPU to a Windows VM using xe CLI
Was this article helpful?
thumb_up
Yes
thumb_down
No