Configure a vGPU resource pool

  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 and description, select vGPU from the Resource Type list, and then click Next.

 

  1. Select the target vGPU pool name, select the vGPUs to be assigned to the vGPU pool, and then click Next.

You can add only vGPUs of the same model to one GPU resource pool.

 

  1. Click Add to add service VMs.

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.

  • The sum of the preemption thresholds configured for all the service templates in the system cannot exceed 100%.

  • By default, a predefined non-linear editing service template and a transcoding service template exist in the system, and the sum of the two templates' preemption thresholds is 100%. Therefore, you must decrease the preemption thresholds of the predefined service templates before creating service templates.

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 vGPU resources, select a service template with a high priority for the VM.

UIS Manager allocates vGPU resources according to the following rules:

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

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

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

  • Idle vGPUs 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.

Drive

Drive type of the VM's GPU. Only VFIO is supported.

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 attached to the VM will not be detached and cannot be used by other VMs no matter what state the VM is in. 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 destination 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, the VM can use only one GPU/vGPU.

  • If you select a GPU resource pool and exclusive mode is disabled, the maximum number of GPUs/vGPUs that can be used by the VM is equivalent to the largest number of GPUs on a 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 maximum number of GPUs/vGPUs that can be used by the VM is three.

  • If you select a GPU resource pool and exclusive mode is enabled, the maximum number of GPUs/vGPUs that can be used by the VM is equivalent to the number of available GPUs on the host where the VM resides.

 

  1. Click OK.

  1. From the left navigation pane, select the added vGPU pool.

  1. On the VMs tab, select the VMs to boot, right-click on the VM list, select Start, and then click OK in the dialog box that opens.

  1. Right-click a VM and select Console from the shortcut menu, and then wait for the VM to start up.

  1. On the VM, open Device Manager, and then select vGPU-PC > Display adapters > Standard VGA Graphics Adapter. If the icon of the GPU is displayed with a warning mark, the GPU has been attached to the VM.