Configure GPU passthrough

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select iRS.

  1. Click Add iRS Service, enter a service name, select GPU from the Resource Type list, and then click Next.

 

  1. Select a GPU, and then click Next.

 

  1. Click Add to add a VM to the VM group. Select a VM, a service template, and the VFIO driver type, set exclusive mode and resource quantity, and then click OK.

Parameter

Description

VMs

Select one or multiple VMs in shutdown state. If you select multiple VMs, the VMs are assigned to a VM group that provides the same service.

Service Template

Select a service template.

A service template defines the priority of VMs that use the service template to use physical resources and the total ratio of resources that all VMs using the service template can use. You must specify a service template for each VM.

To assign a high priority to a VM in using GPU resources, select a service template with a high priority for the VM.

UIS Manager allocates GPU resources according to the following rules:

  • Allocates GPU resources in the VM boot sequence if VMs use service templates with the same priority.

  • Allocates GPU resources in priority order if idle GPUs are fewer than the VMs to boot.

  • Reclaims GPU resources from some low-priority VMs and assigns the GPU resources to high-priority VMs when the following conditions are met:

  • Idle GPUs are fewer than the high-priority VMs to boot.

  • The VMs that use the same low-priority service template occupy more resources than the resource ratio specified in the service template.

Driver Type

Type of the driver used by the VM. Only VFIO is available.

Exclusive Mode

Select whether the VM can exclusively use the specified GPU/vGPU resources.

  • If you select No, the VM will be detached from all GPU/vGPU resources after the VM is shut down.

  • If you select Yes, the GPU/vGPU resources cannot be used by any other VMs. This feature is available only when the host has available GPU/vGPU resources that have been added to the selected GPU resource pool. To migrate a VM when this feature is enabled, make sure sufficient GPU/vGPU resources are available on the target host. A VM supports online migration if it uses vGPU resources. A VM that uses GPU resources can be migrated only when it is shutdown.

Resource Count

Set the maximum number of GPU/vGPU resources that can be used by the VM. The value depends on the resource pool type and state of the exclusive mode feature:

  • If you select a vGPU resource pool, only 1 is available.

  • If you select a GPU resource pool and exclusive mode is disabled, the value is the maximum number of GPUs on a single host in the resource pool. For example, if the resource pool has three hosts, and the hosts have three, two, and two GPUs, respectively, the value is 3.

If you select a GPU resource pool and exclusive mode is enabled, the value is the number of available GPUs on the host attached to the VM.

 

  1. Click OK.

  1. Select GPU from the navigation pane. Right-click the created VM, and then select Start.

  1. Access the console of the VM. Open Device Manager and verify that 3D Video Controller is listed under Other devices. The 3D video controller is the GPU passed through to the VM.