Grid Vgpu User Guide
Grid Vgpu User Guide
User Guide
Figure 16. Verifying NVIDIA driver operation using NVIDIA Control Panel.................................. 100
Figure 20. Breadth-first allocation scheme setting for vGPU-enabled VMs............................. 118
Figure 22. Depth-first allocation scheme setting for vGPU-enabled VMs................................. 120
Figure 24. Using nvidia-smi from a Windows guest VM to get total resource usage by
all applications........................................................................................................................................................149
Figure 33. Editing a GPU’s enabled vGPU types using XenCenter................................................. 294
NVIDIA vGPU software is a graphics virtualization platform that provides virtual machines
(VMs) access to NVIDIA GPU technology.
Note:
XenServer provides a specific setting to allow the primary display adapter to be used for
GPU pass through deployments.
Only the following GPUs are supported as the primary display adapter:
‣ Tesla M6
‣ Quadro RTX 6000
‣ Quadro RTX 8000
All other GPUs that support NVIDIA vGPU software cannot function as the primary display
adapter because they are 3D controllers, not VGA devices.
If the hypervisor host does not have an extra graphics adapter, consider installing a low-
end display adapter to be used as the primary display adapter. If necessary, ensure that
the primary display adapter is set correctly in the BIOS options of the hypervisor host.
‣ OpenGL 4.6
®
‣ Vulkan 1.3
®
‣ DirectX 11
‣ DirectX 12 (Windows 10)
‣ Direct2D
‣ DirectX Video Acceleration (DXVA)
‣ NVIDIA® CUDA® 12.4
‣ NVIDIA vGPU software SDK (remote graphics acceleration)
‣ NVIDIA RTX (on GPUs based on the NVIDIA Volta graphic architecture and later
architectures)
Note: These APIs are backwards compatible. Older versions of the API are also supported.
Note:
If you are using NVIDIA vGPU software with CUDA on Linux, avoid conflicting installation
methods by installing CUDA from a distribution-independent runfile package. Do not
install CUDA from a distribution-specific RPM or Deb package.
To ensure that the NVIDIA vGPU software graphics driver is not overwritten when CUDA is
installed, deselect the CUDA driver when selecting the CUDA components to install.
For more information, see NVIDIA CUDA Installation Guide for Linux.
‣ NVIDIA A10
‣ NVIDIA A16
‣ NVIDIA A40
‣ NVIDIA RTX A5000
‣ NVIDIA RTX A5500
‣ NVIDIA RTX A6000
‣ Tesla V100 SXM2
‣ Tesla V100 SXM2 32GB
‣ Tesla V100 PCIe
‣ Tesla V100 PCIe 32GB
‣ Tesla V100S PCIe 32GB
‣ Tesla V100 FHHL
‣ Tesla T4
‣ Quadro RTX 6000
‣ Quadro RTX 6000 passive
‣ Quadro RTX 8000
‣ Quadro RTX 8000 passive
‣ Debuggers:
‣ CUDA-GDB
‣ Compute Sanitizer
‣ Profilers:
‣ The Activity, Callback, and Profiling APIs of the CUDA Profiling Tools Interface
(CUPTI)
Other CUPTI APIs, such as the Event and Metric APIs, are not supported.
‣ ™
NVIDIA Nsight Compute
‣ NVIDIA Nsight Systems
‣ NVIDIA Nsight plugin
‣ NVIDIA Nsight Visual Studio plugin
Other CUDA profilers, such as nvprof and NVIDIA Visual Profiler, are not supported.
These tools are supported only in Linux guest VMs.
NVIDIA CUDA Toolkit profilers are supported and can be enabled on a VM for which
unified memory is enabled.
Note: By default, NVIDIA CUDA Toolkit development tools are disabled on NVIDIA vGPU.
If used, you must enable NVIDIA CUDA Toolkit development tools individually for each
VM that requires them by setting vGPU plugin parameters. For instructions, see Enabling
NVIDIA CUDA Toolkit Development Tools for NVIDIA vGPU.
The following table lists the GPUs on which NVIDIA vGPU supports these debuggers and
profilers.
✓ Feature is supported
- Feature is not supported
Note: To determine the NVLink topology between physical GPUs in a host or vGPUs
assigned to a VM, run the following command from the host or VM:
$ nvidia-smi topo -m
‣ Unified Memory
Note: Unified memory is disabled by default. If used, you must enable unified memory
individually for each vGPU that requires it by setting a vGPU plugin parameter. For
instructions, see Enabling Unified Memory for a vGPU.
Note: The NVIDIA Nsight Graphics feature is supported in GPU pass-through mode and in
bare-metal deployments.
‣ This chapter introduces the capabilities and features of NVIDIA vGPU software.
‣ Installing and Configuring NVIDIA Virtual GPU Manager provides a step-by-step guide
to installing and configuring vGPU on supported hypervisors.
‣ Using GPU Pass-Through explains how to configure a GPU for pass-through on
supported hypervisors.
‣ Installing the NVIDIA vGPU Software Graphics Driver explains how to install NVIDIA
vGPU software graphics driver on Windows and Linux operating systems.
‣ Licensing an NVIDIA vGPU explains how to license NVIDIA vGPU licensed products on
Windows and Linux operating systems.
‣ Modifying a VM's NVIDIA vGPU Configuration explains how to remove a VM’s vGPU
configuration and modify GPU assignments for vGPU-enabled VMs.
‣ Monitoring GPU Performance covers performance monitoring of physical GPUs and
virtual GPUs from the hypervisor and from within individual guest VMs.
‣ Changing Scheduling Behavior for Time-Sliced vGPUs describes the scheduling
behavior of NVIDIA vGPUs and how to change it.
‣ Troubleshooting provides guidance on troubleshooting.
‣ Virtual GPU Types Reference provides details of each vGPU available from each
supported GPU and provides examples of mixed virtual display configurations for B-
series and Q-series vGPUs.
‣ Configuring x11vnc for Checking the GPU in a Linux Server explains how to use
x11vnc to confirm that the NVIDIA GPU in a Linux server to which no display devices
are directly connected is working as expected.
‣ Disabling NVIDIA Notification Icon for Citrix Published Application User Sessions
explains how to ensure that the NVIDIA Notification Icon application does not prevent
the Citrix Published Application user session from being logged off even after the
user has quit all ot
‣ XenServer Basics explains how to perform basic operations on XenServer to install
and configure NVIDIA vGPU software and optimize XenServer operation with vGPU.
‣ XenServer vGPU Management covers vGPU management on XenServer.
‣ XenServer Performance Tuning covers vGPU performance optimization on XenServer.
The process for installing and configuring NVIDIA Virtual GPU Manager depends on the
hypervisor that you are using. After you complete this process, you can install the display
drivers for your guest OS and license any NVIDIA vGPU software licensed products that
you are using.
Each NVIDIA vGPU is analogous to a conventional GPU, having a fixed amount of GPU
framebuffer, and one or more virtual display outputs or “heads”. The vGPU’s framebuffer
is allocated out of the physical GPU’s framebuffer at the time the vGPU is created, and
the vGPU retains exclusive use of that framebuffer until it is destroyed.
Depending on the physical GPU and the GPU virtualization software, NVIDIA Virtual GPU
Manager supports different types of vGPU on a physical GPU:
‣ On all GPUs that support NVIDIA vGPU software, time-sliced vGPUs can be created.
‣ Additionally, on GPUs that support the Multi-Instance GPU (MIG) feature and NVIDIA
AI Enterprise, MIG-backed vGPUs are supported. The MIG feature is introduced on
GPUs that are based on the NVIDIA Ampere GPU architecture.
Note: Although earlier releases of NVIDIA vGPU software supported GPUs that
support the MIG feature, such GPUs are not supported on this release of NVIDIA
vGPU software. GPUs that support the MIG feature are supported only on NVIDIA AI
Enterprise.
1
NVIDIA vGPUs with less than 1 Gbyte of frame buffer support only 1 virtual display head on a Windows 10 guest OS.
2
The -1B4 and -2B4 vGPU types are deprecated in this release, and may be removed in a future release. In preparation for
the possible removal of these vGPU types, use the following vGPU types, which provide equivalent functionality:
The number after the board type in the vGPU type name denotes the amount of frame
buffer that is allocated to a vGPU of that type. For example, a vGPU of type A16-4Q is
allocated 4096 Mbytes of frame buffer on an NVIDIA A16 board.
Due to their differing resource requirements, the maximum number of vGPUs that can be
created simultaneously on a physical GPU varies according to the vGPU type. For example,
an NVDIA A16 board can support up to 4 A16-4Q vGPUs on each of its two physical GPUs,
for a total of 16 vGPUs, but only 2 A16-8Q vGPUs, for a total of 8 vGPUs.
When enabled, the frame-rate limiter (FRL) limits the maximum frame rate in frames per
second (FPS) for a vGPU as follows:
Note:
NVIDIA vGPU is a licensed product on all supported GPU boards. A software license is
required to enable all vGPU features within the guest VM. The type of license required
depends on the vGPU type.
For details of the virtual GPU types available from each supported GPU, see Virtual GPU
Types for Supported GPUs.
3
With many workloads, -1B and -1B4 vGPUs perform adequately with only 2 2560×1600 virtual displays per vGPU. If you
want to use more than 2 2560×1600 virtual displays per vGPU, use a vGPU with more frame buffer, such as a -2B or -2B4
vGPU. For more information, see NVIDIA GRID vPC Sizing Guide (PDF).
4
A-series NVIDIA vGPUs support a single display at low resolution to be used as the console display in remote application
environments such as RDSH and Citrix Virtual Apps and Desktops. The maximum resolution and number of virtual
display heads for the A-series NVIDIA vGPUs applies only to the console display. The maximum resolution of each
RDSH or Citrix Virtual Apps and Desktops session is determined by the remoting solution and is not restricted by the
maximum resolution of the vGPU. Similarly, the number of virtual display heads supported by each session is determined
by the remoting solution and is not restricted by the vGPU.
Note: You cannot use more than the maximum number of displays that a vGPU supports
even if the combined resolution of the displays is less than the number of available pixels
from the vGPU. For example, because -0Q and -0B vGPUs support a maximum of only
two displays, you cannot use four 1280×1024 displays with these vGPUs even though the
combined resolution of the displays (6220800) is less than the number of available pixels
from these vGPUs (8192000).
Various factors affect the consumption of the GPU frame buffer, which can impact the
user experience. These factors include and are not limited to the number of displays,
display resolution, workload and applications deployed, remoting solution, and guest OS.
The ability of a vGPU to drive a certain combination of displays does not guarantee that
enough frame buffer remains free for all applications to run. If applications run out of
frame buffer, consider changing your setup in one of the following ways:
amount of frame buffer allocated to the vGPUs on a physical GPU must not exceed the
amount of frame buffer that the physical GPU has.
For example, the following combinations of vGPUs can reside on the same physical GPU
simultaneously:
‣ You have a server platform that is capable of hosting your chosen hypervisor and
NVIDIA GPUs that support NVIDIA vGPU software.
‣ One or more NVIDIA GPUs that support NVIDIA vGPU software is installed in your
server platform.
‣ If you are using GPUs based on the NVIDIA Ampere architecture or later architectures,
the following BIOS settings are enabled on your server platform:
‣ VT-D/IOMMU
‣ SR-IOV
‣ Alternative Routing ID Interpretation (ARI)
‣ You have downloaded the NVIDIA vGPU software package for your chosen hypervisor,
which consists of the following software:
‣ Your chosen hypervisor, for example, XenServer, Red Hat Enterprise Linux KVM, or
VMware vSphere Hypervisor (ESXi)
‣ The software for managing your chosen hypervisor, for example, Citrix XenCenter
management GUI, or VMware vCenter Server
‣ The virtual desktop software that you will use with virtual machines (VMs) running
NVIDIA Virtual GPU, for example, Citrix Virtual Apps and Desktops, or Omnissa
Horizon
Note: If you are using VMware vSphere Hypervisor (ESXi), ensure that the ESXi host on
which you will configure a VM with NVIDIA vGPU is not a member of a fully automated
VMware Distributed Resource Scheduler (DRS) cluster. For more information, see
Installing and Configuring the NVIDIA Virtual GPU Manager for VMware vSphere.
Note: If the VM uses UEFI boot and you plan to install a Linux guest OS in the VM,
ensure that secure boot is disabled.
A GPU that is supplied from the factory in display-off mode, such as the NVIDIA A40 GPU,
might be in a display-enabled mode if its mode has previously been changed.
To change the mode of a GPU that supports multiple display modes, use the
displaymodeselector tool, which you can request from the NVIDIA Display Mode
Selector Tool page on the NVIDIA Developer website.
Note: Only the GPUs listed in the table support the displaymodeselector tool. Other
GPUs that support NVIDIA vGPU software do not support the displaymodeselector tool
and, unless otherwise stated, do not require display mode switching.
These setup steps assume familiarity with the XenServer skills covered in XenServer
Basics.
CAUTION: NVIDIA Virtual GPU Manager and guest VM drivers must be compatible. If you
update vGPU Manager to a release that is incompatible with the guest VM drivers, guest
VMs will boot with vGPU disabled until their guest vGPU driver is updated to a compatible
version. Consult Virtual GPU Software for XenServer Release Notes for further details.
Note:
You can query the version of the current NVIDIA Virtual GPU Manager package using
the rpm –q command:
1. Verify that the NVIDIA vGPU software package is installed and loaded correctly by
checking for the NVIDIA kernel driver in the list of kernel loaded modules.
[root@xenserver ~]# lsmod | grep nvidia
nvidia 9522927 0
i2c_core 20294 2 nvidia,i2c_i801
[root@xenserver ~]#
2. Verify that the NVIDIA kernel driver can successfully communicate with the NVIDIA
physical GPUs in your system by running the nvidia-smi command.
The nvidia-smi command is described in more detail in NVIDIA System Management
Interface nvidia-smi.
Running the nvidia-smi command should produce a listing of the GPUs in your platform.
[root@xenserver ~]# nvidia-smi
Fri Oct 25 18:46:50 2024
+------------------------------------------------------+
| NVIDIA-SMI 550.127.06 Driver Version: 550.127.06 |
|-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
[root@xenserver ~]#
If nvidia-smi fails to run or doesn’t produce the expected output for all the NVIDIA GPUs
in your system, see Troubleshooting for troubleshooting steps.
Note: If you are using Citrix Hypervisor 8.1 or later and need to assign plugin configuration
parameters, create vGPUs using the xe command as explained in Creating a vGPU Using
xe.
After you have configured a XenServer VM with a vGPU, start the VM, either from
XenCenter or by using xe vm-start in a dom0 shell. You can view the VM’s console in
XenCenter.
After the VM has booted, install the NVIDIA vGPU software graphics driver as explained in
Installing the NVIDIA vGPU Software Graphics Driver.
1. Get the UUIDs of all VMs on the hypervisor host and use the output from the
command to identify the VM to which the vGPU is assigned.
[root@xenserver ~] xe vm-list
...
uuid ( RO) : 7f6c855d-5635-2d57-9fbc-b1200172162f
name-label ( RW): RHEL8.3
power-state ( RO): running
...
2. Get the UUIDs of all vGPUs on the hypervisor host and from the UUID of the VM to
which the vGPU is assigned, determine the UUID of the vGPU.
[root@xenserver ~] xe vgpu-list
...
uuid ( RO) : d15083f8-5c59-7474-d0cb-fbc3f7284f1b
vm-uuid ( RO): 7f6c855d-5635-2d57-9fbc-b1200172162f
device ( RO): 0
gpu-group-uuid ( RO): 3a2fbc36-827d-a078-0b2f-9e869ae6fd93
...
3. Use the xe command to set each vGPU plugin parameter that you want to set.
[root@xenserver ~] xe vgpu-param-set uuid=vgpu-uuid extra_args='parameter=value'
vgpu-uuid
The UUID of the vGPU, which you obtained in the previous step.
parameter
The name of the vGPU plugin parameter that you want to set.
value
The value to which you want to set the vGPU plugin parameter.
This example sets the enable_uvm vGPU plugin parameter to 1 for the vGPU that has
the UUID d15083f8-5c59-7474-d0cb-fbc3f7284f1b. This parameter setting enables
unified memory for the vGPU.
[root@xenserver ~] xe vgpu-param-set uuid=d15083f8-5c59-7474-d0cb-fbc3f7284f1b
extra_args='enable_uvm=1'
Note: If you are using Red Hat Enterprise Linux KVM, follow the instructions in Installing
and Configuring the NVIDIA Virtual GPU Manager for Red Hat Enterprise Linux KVM.
Before installing the Virtual GPU Manager package for Linux KVM, ensure that the
following prerequisites are met:
1. Change to the directory on the Linux KVM server that contains the package file.
# cd package-file-directory
package-file-directory
The path to the directory that contains the package file.
2. Make the package file executable.
# chmod +x package-file-name
package-file-name
The name of the file that contains the Virtual GPU Manager package for Linux
KVM, for example NVIDIA-Linux-x86_64-390.42-vgpu-kvm.run.
3. Run the package file as the root user.
# sudo sh./package-file-name
The package file should launch and display the license agreement.
4. Accept the license agreement to continue with the installation.
5. When installation has completed, select OK to exit the installer.
6. Reboot the Linux KVM server.
# systemctl reboot
‣ The Microsoft Azure Stack HCI OS is installed as explained in Deploy the Azure Stack
HCI operating system on the Microsoft documentation site.
‣ The following BIOS settings are enabled:
‣ Virtualization support, for example, Intel Virtualization Technology (VT-D) or AMD
Virtualization (AMD-V)
‣ SR-IOV
‣ Above 4G Decoding
‣ For Supermicro servers: ASPM Support
‣ For servers that have an AMD CPU:
‣ Alternative Routing ID Interpretation (ARI)
‣ Access Control Service (ACS)
‣ Advanced Error Reporting (AER)
Follow this sequence of instructions to set up a single Microsoft Azure Stack HCI VM to
use NVIDIA vGPU.
1. Installing the NVIDIA Virtual GPU Manager for Microsoft Azure Stack HCI
2. Setting the vGPU Series Allowed on a GPU
1. Download the archive file in which the driver package for the Virtual GPU Manager is
distributed.
2. Extract the contents of the archive file to a directory that is accessible from the
Microsoft Azure Stack HCI host.
3. Change to the GridSW-Azure-Stack-HCI directory that you extracted from the
archive file.
4. Use the PnPUtil tool to add the driver package for the Virtual GPU Manager to the
driver store from the nvgridswhci.inf setup information file.
In the command for adding the driver package, also set the options to traverse
subdirectories for driver packages and reboot the Microsoft Azure Stack HCI host if
necessary to complete the operation.
PS C:> pnputil /add-driver nvgridswhci.inf /subdirs /install /reboot
5. After the host has rebooted, verify that the NVIDIA Virtual GPU Manager can
successfully communicate with the NVIDIA physical GPUs in your system.
Run the nvidia-smi command with no arguments for this purpose.
Running the nvidia-smi command should produce a listing of the GPUs in your
platform.
6. Confirm that the Microsoft Azure Stack HCI host has GPU adapters that can be
partitioned by listing the GPUs that support GPU-P.
PS C:> Get-VMHostPartitionableGpu
If the NVIDIA Virtual GPU Manager is correctly installed, each GPU in the host GPU is
listed. The numbers of partitions that each GPU supports and the unique name for
referencing each GPU are also listed.
7. For each GPU, set the number of partitions that the GPU should support to the
maximum number of vGPUs that can be added to the GPU.
PS C:> Set-VMHostPartitionableGpu -Name "gpu-name" -PartitionCount partitions
gpu-name
The unique name for referencing the GPU that you obtained in the previous step.
partitions
The maximum number of vGPUs that can be added to the GPU. This number
depends on the virtual GPU type. For example, the maximum number of each type
of vGPU that can be added to the NVIDIA A16 GPU is as follows:
Virtual GPU Type Maximum vGPUs per GPU
A16-16Q 1
A16-16A
A16-8Q 2
A16-8A
A16-4Q 4
A16-4A
A16-2Q 8
A16-2B
A16-2A
A16-1Q 16
A16-1B
A16-1A
1. Use Windows PowerShell to get the driver key of the GPU on which you want to set
the allowed vGPU series.
You will need this information in the next step to identify the Windows registry key in
which information about the GPU is stored.
a). Get the InstanceID property of the GPU on which you want to set the allowed
vGPU series.
PS C:\> Get-PnpDevice -PresentOnly |
>> Where-Object {$_.InstanceId -like "PCI\VEN_10DE*" } |
>> Select-Object -Property FriendlyName,InstanceId |
>> Format-List
Data
----
{4d36e968-e325-11ce-bfc1-08002be10318}\0001
instance-id
The InstanceID property of the GPU that
you got in the previous step, for example, PCI
\VEN_10DE&DEV_2236&SUBSYS_148210DE&REV_A1\6&17F903&0&00400000.
2. Set the GridGpupProfileType DWord (REG_DWORD) registry value in the Windows
registry key HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\driver-
key.
driver-key
The driver key for the GPU that you got in the previous step, for example,
{4d36e968-e325-11ce-bfc1-08002be10318}\0001.
The value to set depends on the vGPU series that you want to be allowed on the GPU.
vGPU Series Value
Q-series 1
A-series 2
B-series 3
1. Set the variable $vm to the name of the virtual machine to which you are adding a
vGPU.
PS C:> $vm = "vm-name"
vm-name
The name of the virtual machine to which you are adding a vGPU.
2. Allow the VM to control cache types for MMIO access.
PS C:> Set-VM -GuestControlledCacheTypes $true -VMName $vm
3. Set the lower MMIO space to 1 GB to allow sufficient MMIO space to be mapped.
PS C:> Set-VM -LowMemoryMappedIoSpace 1Gb -VMName $vm
This amount is twice the amount that the device must allow for alignment. Lower
MMIO space is the address space below 4 GB and is required for any device that has
32-bit BAR memory.
4. Set the upper MMIO space to 32 GB to allow sufficient MMIO space to be mapped.
PS C:> Set-VM –HighMemoryMappedIoSpace 32GB –VMName $vm
This amount is twice the amount that the device must allow for alignment. Upper
MMIO space is the address space above approximately 64 GB.
5. Confirm that the Microsoft Azure Stack HCI host has a GPU that supports the GPU-P
adapter that you want to create.
PS C:> get-VMHostPartitionableGpu
The maximum and minimum values that you can specify for the properties of the GPU
that you want to create are also listed.
6. Add a GPU-P adapter to the VM.
PS C:> Add-VMGpuPartitionAdapter –VMName $vm `
–MinPartitionVRAM min-ram `
-MaxPartitionVRAM max-ram `
-OptimalPartitionVRAM opt-ram `
-MinPartitionEncode min-enc `
-MaxPartitionEncode max-enc `
-OptimalPartitionEncode opt-enc `
-MinPartitionDecode min-dec `
-MaxPartitionDecode max-dec `
-OptimalPartitionDecode opt-dec `
-MinPartitionCompute min-compute `
-MaxPartitionCompute max-compute `
-OptimalPartitionCompute opt-compute
Note: Because partitions are resolved only when the VM is started, this command
cannot validate that the Microsoft Azure Stack HCI host has a GPU that supports the
GPU-P adapter that you want to create. The values that you specify must be within the
maximum and minimum values that were listed in the previous step.
7. List the adapters assigned to the VM to confirm that the GPU-P adapter has been
added to the VM.
PS C:> Get-VMGpuPartitionAdapter –VMName $vm
This command also returns the adapter ID to use for reconfiguring or deleting a GPU
partition.
8. Connect to and start the VM.
1. Determine the published name of the driver package for the Virtual GPU Manager by
enumerating all third-party driver packages in the driver store.
PS C:> pnputil /enum-drivers
Information similar to the following example is displayed. In this example, the
published name of the driver package for the Virtual GPU Manager is oem5.inf.
Microsoft PnP Utility
...
...
2. Delete and uninstall the driver package for the Virtual GPU Manager.
PS C:> pnputil /delete-driver vgpu-manager-package-published-name /uninstall /reboot
vgpu-manager-package-published-name
The published name of the driver package for the Virtual GPU Manager that you
obtained in the previous step, for example, oem5.inf.
This example deletes and uninstalls the driver package for which the published name
is oem5.inf.
PS C:> pnputil.exe /delete-driver oem5.inf /uninstall /reboot
Microsoft PnP Utility
CAUTION: Output from the VM console is not available for VMs that are running vGPU.
Make sure that you have installed an alternate means of accessing the VM (such as a VNC
server) before you configure vGPU.
After the process is complete, you can install the graphics driver for your guest OS and
license any NVIDIA vGPU software licensed products that you are using.
Note: If you are using a generic Linux KVM hypervisor, follow the instructions in Installing
the Virtual GPU Manager Package for Linux KVM.
CAUTION: NVIDIA Virtual GPU Manager and guest VM drivers must be compatible. If you
update vGPU Manager to a release that is incompatible with the guest VM drivers, guest
VMs will boot with vGPU disabled until their guest vGPU driver is updated to a compatible
version. Consult Virtual GPU Software for Red Hat Enterprise Linux with KVM Release Notes
for further details.
Before installing the RPM package for Red Hat Enterprise Linux KVM, ensure that
the sshd service on the Red Hat Enterprise Linux KVM server is configured to permit
root login. If the Nouveau driver for NVIDIA graphics cards is present, disable it before
installing the package. For instructions, see How to disable the Nouveau driver and install
the Nvidia driver in RHEL 7 (Red Hat subscription required).
Some versions of Red Hat Enterprise Linux KVM have z-stream updates that break Kernel
Application Binary Interface (kABI) compatibility with the previous kernel or the GA kernel.
For these versions of Red Hat Enterprise Linux KVM, the following Virtual GPU Manager
RPM packages are supplied:
1. Securely copy the RPM file from the system where you downloaded the file to the Red
Hat Enterprise Linux KVM server.
3. Change to the directory on the Red Hat Enterprise Linux KVM server to which you
copied the RPM file.
# cd rpm-file-directory
rpm-file-directory
The path to the directory to which you copied the RPM file.
4. Use the rpm command to install the package.
# rpm -iv NVIDIA-vGPU-rhel-8.9-550.127.06.x86_64.rpm
Preparing packages for installation...
NVIDIA-vGPU-rhel-8.9-550.127.06
#
5. Reboot the Red Hat Enterprise Linux KVM server.
# systemctl reboot
1. Verify that the NVIDIA vGPU software package is installed and loaded correctly by
checking for the VFIO drivers in the list of kernel loaded modules.
# lsmod | grep vfio
nvidia_vgpu_vfio 27099 0
nvidia 12316924 1 nvidia_vgpu_vfio
vfio_mdev 12841 0
mdev 20414 2 vfio_mdev,nvidia_vgpu_vfio
vfio_iommu_type1 22342 0
vfio 32331 3 vfio_mdev,nvidia_vgpu_vfio,vfio_iommu_type1
#
2. Verify that the libvirtd service is active and running.
# service libvirtd status
3. Verify that the NVIDIA kernel driver can successfully communicate with the NVIDIA
physical GPUs in your system by running the nvidia-smi command.
The nvidia-smi command is described in more detail in NVIDIA System Management
Interface nvidia-smi.
Running the nvidia-smi command should produce a listing of the GPUs in your platform.
# nvidia-smi
Fri Oct 25 18:46:50 2024
+------------------------------------------------------+
| NVIDIA-SMI 550.127.06 Driver Version: 550.127.06 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla M60 On | 0000:85:00.0 Off | Off |
| N/A 23C P8 23W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 Tesla M60 On | 0000:86:00.0 Off | Off |
| N/A 29C P8 23W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 Tesla P40 On | 0000:87:00.0 Off | Off |
| N/A 21C P8 18W / 250W | 53MiB / 24575MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
#
If nvidia-smi fails to run or doesn’t produce the expected output for all the NVIDIA GPUs
in your system, see Troubleshooting for troubleshooting steps.
CAUTION: Output from the VM console is not available for VMs that are running vGPU.
Make sure that you have installed an alternate means of accessing the VM (such as a VNC
server) before you configure vGPU.
After the process is complete, you can install the graphics driver for your guest OS and
license any NVIDIA vGPU software licensed products that you are using.
CAUTION: NVIDIA Virtual GPU Manager and guest VM drivers must be compatible. If you
update vGPU Manager to a release that is incompatible with the guest VM drivers, guest
VMs will boot with vGPU disabled until their guest vGPU driver is updated to a compatible
version. Consult Virtual GPU Software for Ubuntu Release Notes for further details.
1. Securely copy the Debian package file from the system where you downloaded the file
to the Ubuntu server.
1. Verify that the NVIDIA vGPU software package is installed and loaded correctly by
checking for the VFIO drivers in the list of kernel loaded modules.
# lsmod | grep vfio
nvidia_vgpu_vfio 27099 0
nvidia 12316924 1 nvidia_vgpu_vfio
vfio_mdev 12841 0
mdev 20414 2 vfio_mdev,nvidia_vgpu_vfio
vfio_iommu_type1 22342 0
vfio 32331 3 vfio_mdev,nvidia_vgpu_vfio,vfio_iommu_type1
#
2. Verify that the libvirtd service is active and running.
# service libvirtd status
3. Verify that the NVIDIA kernel driver can successfully communicate with the NVIDIA
physical GPUs in your system by running the nvidia-smi command.
The nvidia-smi command is described in more detail in NVIDIA System Management
Interface nvidia-smi.
Running the nvidia-smi command should produce a listing of the GPUs in your platform.
# nvidia-smi
Fri Oct 25 18:46:50 2024
+------------------------------------------------------+
| NVIDIA-SMI 550.127.06 Driver Version: 550.127.06 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla M60 On | 0000:85:00.0 Off | Off |
| N/A 23C P8 23W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 Tesla M60 On | 0000:86:00.0 Off | Off |
| N/A 29C P8 23W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 Tesla P40 On | 0000:87:00.0 Off | Off |
| N/A 21C P8 18W / 250W | 53MiB / 24575MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
#
If nvidia-smi fails to run or doesn’t produce the expected output for all the NVIDIA GPUs
in your system, see Troubleshooting for troubleshooting steps.
Note:
Some servers, for example, the Dell R740, do not configure SR-IOV capability if the SR-IOV
SBIOS setting is disabled on the server. If you are using the Tesla T4 GPU with VMware
vSphere on such a server, you must ensure that the SR-IOV SBIOS setting is enabled on
the server.
However, with any server hardware, do not enable SR-IOV in VMware vCenter Server
for the Tesla T4 GPU. If SR-IOV is enabled in VMware vCenter Server for T4, VMware
vCenter Server lists the status of the GPU as needing a reboot. You can ignore this status
message.
Note: The Xorg service is not required for graphics devices in NVIDIA vGPU mode. For more
information, see Installing and Updating the NVIDIA Virtual GPU Manager for VMware
vSphere.
To set up a VMware vSphere VM to use NVIDIA vGPU, follow this sequence of instructions:
1. Installing and Updating the NVIDIA Virtual GPU Manager for VMware vSphere
2. Configuring VMware vMotion with vGPU for VMware vSphere
3. Changing the Default Graphics Type in VMware vSphere
4. Configuring a vSphere VM with NVIDIA vGPU
5. Optional: Setting vGPU Plugin Parameters on VMware vSphere
After configuring a vSphere VM to use NVIDIA vGPU, you can install the NVIDIA vGPU
software graphics driver for your guest OS and license any NVIDIA vGPU software
licensed products that you are using.
‣ By copying the software components to the ESXi host and then installing them as
explained in Installing the NVIDIA Virtual GPU Manager on VMware vSphere
CAUTION: NVIDIA Virtual GPU Manager and guest VM drivers must be compatible. If
you update vGPU Manager to a release that is incompatible with the guest VM drivers,
guest VMs will boot with vGPU disabled until their guest vGPU driver is updated to a
compatible version. Consult Virtual GPU Software for VMware vSphere Release Notes for
further details.
‣ The ZIP archive that contains NVIDIA vGPU software has been downloaded from the
NVIDIA Licensing Portal.
‣ The software components for the NVIDIA Virtual GPU Manager have been extracted
from the downloaded ZIP archive.
1. Copy the NVIDIA Virtual GPU Manager component files to the ESXi host.
2. Put the ESXi host into maintenance mode.
$ esxcli system maintenanceMode set –-enable true
3. Install the NVIDIA vGPU hypervisor host driver and the NVIDIA GPU Management
daemon from their software component files.
a). Run the esxcli command to install the NVIDIA vGPU hypervisor host driver from
its software component file.
$ esxcli software vib install -d /vmfs/volumes/datastore/host-driver-component.zip
b). Run the esxcli command to install the NVIDIA GPU Management daemon from
its software component file.
$ esxcli software vib install -d /vmfs/volumes/datastore/gpu-management-daemon-
component.zip
datastore
The name of the VMFS datastore to which you copied the software components.
host-driver-component
The name of the file that contains the NVIDIA vGPU hypervisor host driver in the
form of a software component. Ensure that you specify the file that was extracted
from the downloaded ZIP archive. For example, for VMware vSphere 7.0.2, host-
driver-component is NVD-VMware-x86_64-550.127.06-1OEM.702.0.0.17630552-
bundle-build-number.
gpu-management-daemon-component
The name of the file that contains the NVIDIA GPU Management daemon in
the form of a software component. Ensure that you specify the file that was
extracted from the downloaded ZIP archive. For example, for VMware vSphere
Note: Before proceeding with the vGPU Manager update, make sure that all VMs are
powered off and the ESXi host is placed in maintenance mode. Refer to VMware’s
documentation on how to place an ESXi host in maintenance mode
1. Verify that the NVIDIA vGPU software package installed and loaded correctly by
checking for the NVIDIA kernel driver in the list of kernel loaded modules.
[root@esxi:~] vmkload_mod -l | grep nvidia
nvidia 5 8420
2. If the NVIDIA driver is not listed in the output, check dmesg for any load-time errors
reported by the driver.
3. Verify that the NVIDIA GPU Management daemon has started.
$ /etc/init.d/nvdGpuMgmtDaemon status
4. Verify that the NVIDIA kernel driver can successfully communicate with the NVIDIA
physical GPUs in your system by running the nvidia-smi command.
The nvidia-smi command is described in more detail in NVIDIA System Management
Interface nvidia-smi.
Running the nvidia-smi command should produce a listing of the GPUs in your platform.
[root@esxi:~] nvidia-smi
Fri Oct 25 17:56:22 2024
+------------------------------------------------------+
| NVIDIA-SMI 550.127.06 Driver Version: 550.127.06 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla M60 On | 00000000:05:00.0 Off | Off |
| N/A 25C P8 24W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 Tesla M60 On | 00000000:06:00.0 Off | Off |
| N/A 24C P8 24W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 Tesla M60 On | 00000000:86:00.0 Off | Off |
| N/A 25C P8 25W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 3 Tesla M60 On | 00000000:87:00.0 Off | Off |
| N/A 28C P8 24W / 150W | 13MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
If nvidia-smi fails to report the expected output for all the NVIDIA GPUs in your system,
see Troubleshooting for troubleshooting steps.
✓ To start the NVIDIA GPU Management Daemon, enter the following command:
$ /etc/init.d/nvdGpuMgmtDaemon start
✓ To stop the NVIDIA GPU Management Daemon, enter the following command:
$ /etc/init.d/nvdGpuMgmtDaemon stop
✓ To get the status of the NVIDIA GPU Management Daemon, enter the following
command:
$ /etc/init.d/nvdGpuMgmtDaemon status
Note: Ensure that you select the vCenter Server instance, not the vCenter Server VM.
Note: Change the default graphics type before configuring vGPU. Output from the VM
console in the VMware vSphere Web Client is not available for VMs that are running vGPU.
Before changing the default graphics type, ensure that the ESXi host is running and that
all VMs on the host are powered off.
3. From the menu, choose Graphics and then click the Host Graphics tab.
4. On the Host Graphics tab, click Edit.
5. In the Edit Host Graphics Settings dialog box that opens, select Shared Direct and
click OK.
Note: In this dialog box, you can also change the allocation scheme for vGPU-enabled
VMs. For more information, see Modifying GPU Allocation Policy on VMware vSphere.
After you click OK, the default graphics type changes to Shared Direct.
6. Click the Graphics Devices tab to verify the configured type of each physical GPU on
which you want to configure vGPU.
The configured type of each physical GPU must be Shared Direct. For any physical
GPU for which the configured type is Shared, change the configured type as follows:
a). On the Graphics Devices tab, select the physical GPU and click the Edit icon.
b). In the Edit Graphics Device Settings dialog box that opens, select Shared Direct
and click OK.
7. Restart the ESXi host or stop and restart the Xorg service if necessary and nv-
hostengine on the ESXi host.
To stop and restart the Xorg service and nv-hostengine, perform these steps:
a). VMware vSphere releases before 7.0 Update 1 only: Stop the Xorg service.
The Xorg service is not required for graphics devices in NVIDIA vGPU mode.
b). Stop nv-hostengine.
[root@esxi:~] nv-hostengine -t
c). Wait for 1 second to allow nv-hostengine to stop.
d). Start nv-hostengine.
[root@esxi:~] nv-hostengine -d
e). VMware vSphere releases before 7.0 Update 1 only: Start the Xorg service.
The Xorg service is not required for graphics devices in NVIDIA vGPU mode.
[root@esxi:~] /etc/init.d/xorg start
8. In the Graphics Devices tab of the VMware vCenter Web UI, confirm that the active
type and the configured type of each physical GPU are Shared Direct.
After changing the default graphics type, configure vGPU as explained in Configuring a
vSphere VM with NVIDIA vGPU.
See also the following topics in the VMware vSphere documentation:
CAUTION: Output from the VM console in the VMware vSphere Web Client is not available
for VMs that are running vGPU. Make sure that you have installed an alternate means of
accessing the VM (such as Omnissa Horizon or a VNC server) before you configure vGPU.
VM console in vSphere Web Client will become active again once the vGPU parameters
are removed from the VM’s configuration.
How to configure a vSphere VM with a vGPU depends on your VMware vSphere version as
explained in the following topics:
After you have configured a vSphere VM with a vGPU, start the VM. VM console in
vSphere Web Client is not supported in this vGPU release. Therefore, use Omnissa Horizon
or VNC to access the VM’s desktop.
After the VM has booted, install the NVIDIA vGPU software graphics driver as explained in
Installing the NVIDIA vGPU Software Graphics Driver.
b). In the Device Selection window that opens, select the type of vGPU you want to
configure and click SELECT.
Note: NVIDIA vGPU software does not support vCS on VMware vSphere. Therefore,
C-series vGPU types are not available for selection in the Device Selection window.
5. From the GPU Profile drop-down menu, choose the type of vGPU you want to
configure and click OK.
Note: NVIDIA vGPU software does not support vCS on VMware vSphere. Therefore,
C-series vGPU types are not available for selection from the GPU Profile drop-down
menu.
6. Ensure that VMs running vGPU have all their memory reserved:
a). Select Edit virtual machine settings from the vCenter Web UI.
b). Expand the Memory section and click Reserve all guest memory (All locked).
‣ pciPassthru0.cfg.parameter
‣ pciPassthru1.cfg.parameter
parameter
The name of the vGPU plugin parameter that you want to set. For example, the
name of the vGPU plugin parameter for enabling unified memory is enable_uvm.
To enable unified memory for two vGPUs that are assigned to a VM, set
pciPassthru0.cfg.enable_uvm and pciPassthru1.cfg.enable_uvm to 1.
The NVIDIA GPUs listed in this example have the PCI device BDFs 06:00.0 and
07:00.0.
# lspci | grep NVIDIA
06:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M10] (rev
a1)
07:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M10] (rev
a1)
2. Obtain the full identifier of the GPU from its PCI device BDF.
# virsh nodedev-list --cap pci| grep transformed-bdf
transformed-bdf
The PCI device BDF of the GPU with the colon and the period replaced with
underscores, for example, 06_00_0.
This example obtains the full identifier of the GPU with the PCI device BDF 06:00.0.
# virsh nodedev-list --cap pci| grep 06_00_0
pci_0000_06_00_0
3. Obtain the domain, bus, slot, and function of the GPU from the full identifier of the
GPU.
virsh nodedev-dumpxml full-identifier| egrep 'domain|bus|slot|function'
full-identifier
The full identifier of the GPU that you obtained in the previous step, for example,
pci_0000_06_00_0.
This example obtains the domain, bus, slot, and function of the GPU with the PCI
device BDF 06:00.0.
# virsh nodedev-dumpxml pci_0000_06_00_0| egrep 'domain|bus|slot|function'
<domain>0x0000</domain>
<bus>0x06</bus>
<slot>0x00</slot>
<function>0x0</function>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
1. Enable the virtual functions for the physical GPU in the sysfs file system.
Note: The virtual functions for the physical GPU in the sysfs file system are disabled
after the hypervisor host is rebooted or if the driver is reloaded or upgraded.
Use only the custom script sriov-manage provided by NVIDIA vGPU software for this
purpose. Do not try to enable the virtual function for the GPU by any other means.
# /usr/lib/nvidia/sriov-manage -e domain:bus:slot.function
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without the 0x prefix.
Note: Only one mdev device file can be created on a virtual function.
This example enables the virtual functions for the GPU with the domain 00, bus 41,
slot 0000, and function 0.
# /usr/lib/nvidia/sriov-manage -e 00:41:0000.0
2. Obtain the domain, bus, slot, and function of the available virtual functions on the
GPU.
# ls -l /sys/bus/pci/devices/domain\:bus\:slot.function/ | grep virtfn
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without the 0x prefix.
This example shows the output of this command for a physical GPU with slot 00, bus
41, domain 0000, and function 0.
# ls -l /sys/bus/pci/devices/0000:41:00.0/ | grep virtfn
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn0 -> ../0000:41:00.4
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn1 -> ../0000:41:00.5
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn10 -> ../0000:41:01.6
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn11 -> ../0000:41:01.7
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn12 -> ../0000:41:02.0
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn13 -> ../0000:41:02.1
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn14 -> ../0000:41:02.2
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn15 -> ../0000:41:02.3
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn16 -> ../0000:41:02.4
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn17 -> ../0000:41:02.5
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn18 -> ../0000:41:02.6
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn19 -> ../0000:41:02.7
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn2 -> ../0000:41:00.6
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn20 -> ../0000:41:03.0
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn21 -> ../0000:41:03.1
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn22 -> ../0000:41:03.2
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn23 -> ../0000:41:03.3
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn24 -> ../0000:41:03.4
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn25 -> ../0000:41:03.5
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn26 -> ../0000:41:03.6
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn27 -> ../0000:41:03.7
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn28 -> ../0000:41:04.0
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn29 -> ../0000:41:04.1
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn3 -> ../0000:41:00.7
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn30 -> ../0000:41:04.2
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn31 -> ../0000:41:04.3
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn4 -> ../0000:41:01.0
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn5 -> ../0000:41:01.1
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn6 -> ../0000:41:01.2
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn7 -> ../0000:41:01.3
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn8 -> ../0000:41:01.4
lrwxrwxrwx. 1 root root 0 Jul 16 04:42 virtfn9 -> ../0000:41:01.5
3. Choose the available virtual function on which you want to create the vGPU and note
its domain, bus, slot, and function.
Since 17.4: On systems configured with NVLink, the sriov-manage script might not be
able to enable the virtual functions for the physical GPU because the initialization of the
Virtual GPU Manager has not completed. In this situation, the sriov-manage script writes
the following error message to the log file on the hypervisor host:
NVRM: Timeout occurred in event processing by vgpu_mgr daemon
If this error message appears in the log file, try again later to run the sriov-manage script
to enable the virtual functions for the physical GPU.
‣ Whether the NVIDIA vGPU supports single root I/O virtualization (SR-IOV)
‣ Whether the hypervisor uses a vendor-specific Virtual Function I/O (VFIO) framework
for an NVIDIA vGPU that supports SR-IOV
Note: A hypervisor that uses a vendor-specific VFIO framework uses it only for an
NVIDIA vGPU that supports SR-IOV. The hypervisor still uses the mediated VFIO mdev
driver framework for a legacy NVIDIA vGPU.
A vendor-specific VFIO framework does not support the mediated VFIO mdev driver
framework.
For GPUs that support SR-IOV, use of a vendor-specific VFIO framework is introduced in
Ubuntu release 24.04.
To determine which instructions to follow for the NVIDIA vGPU that you are creating, refer
to the following table.
VFIO
NVIDIA vGPU Type Framework Instructions
Legacy: SR-IOV not mdev Creating a Legacy NVIDIA vGPU on a Linux with
supported KVM Hypervisor
SR-IOV supported mdev Creating an NVIDIA vGPU that Supports SR-IOV
on a Linux with KVM Hypervisor
SR-IOV supported Vendor specific Creating an NVIDIA vGPU on a Linux with KVM
Hypervisor that Uses a Vendor-Specific VFIO
Framework
Since 17.4: On systems configured with NVLink, the vGPU might not be created because
the initialization of the Virtual GPU Manager has not completed. In this situation, the
following error message is written to the log file on the hypervisor host:
NVRM: kvgpumgrCreateRequestVgpu: GPU is not initialized yet
If this error message appears in the log file, try again later to create the vGPU.
subdirectory
The registration information directory for the vGPU type that you want to create,
for example, nvidia-41.
This example creates an instance of the M10-2Q vGPU type with the UUID
aa618089-8b16-4d01-a136-25a0f3c73123.
# echo "aa618089-8b16-4d01-a136-25a0f3c73123" > nvidia-41/create
An mdev device file for the vGPU is added to the parent physical device directory of
the vGPU. The vGPU is identified by its UUID.
The /sys/bus/mdev/devices/ directory contains a symbolic link to the mdev device
file.
6. Make the mdev device file that you created to represent the vGPU persistent.
# mdevctl define --auto --uuid uuid
uuid
The UUID that you specified in the previous step for the vGPU that you are
creating.
Note: Not all Linux with KVM hypervisor releases include the mdevctl command. If
your release does not include the mdevctl command, you can use standard features of
the operating system to automate the re-creation of this device file when the host is
booted. For example, you can write a custom script that is executed when the host is
rebooted.
1. Change to the mdev_supported_types directory for the virtual function on which you
want to create the vGPU.
# cd /sys/class/mdev_bus/domain\:bus\:vf-slot.v-function/mdev_supported_types/
domain
bus
The domain and bus of the GPU, without the 0x prefix.
vf-slot
v-function
The slot and function of the virtual function that you noted in Preparing the
Virtual Function for an NVIDIA vGPU that Supports SR-IOV on a Linux with KVM
Hypervisor.
This example changes to the mdev_supported_types directory for the first virtual
function (virtfn0) for the GPU with the domain 0000 and bus 41. The first virtual
function (virtfn0) has slot 00 and function 4.
# cd /sys/class/mdev_bus/0000\:41\:00.4/mdev_supported_types
2. Find out which subdirectory of mdev_supported_types contains registration
information for the vGPU type that you want to create.
# grep -l "vgpu-type" nvidia-*/name
vgpu-type
The vGPU type, for example, A40-2Q.
This example shows that the registration information for the A40-2Q vGPU type is
contained in the nvidia-558 subdirectory of mdev_supported_types.
# grep -l "A40-2Q" nvidia-*/name
nvidia-558/name
3. Confirm that you can create an instance of the vGPU type on the virtual function.
# cat subdirectory/available_instances
subdirectory
The subdirectory that you found in the previous step, for example, nvidia-558.
The number of available instances must be 1. If the number is 0, a vGPU has already
been created on the virtual function. Only one instance of any vGPU type can be
created on a virtual function.
This example shows that an instance of the A40-2Q vGPU type can be created on the
virtual function.
# cat nvidia-558/available_instances
1
4. Generate a correctly formatted universally unique identifier (UUID) for the vGPU.
# uuidgen
aa618089-8b16-4d01-a136-25a0f3c73123
5. Write the UUID that you obtained in the previous step to the create file in the
registration information directory for the vGPU type that you want to create.
# echo "uuid"> subdirectory/create
uuid
The UUID that you generated in the previous step, which will become the UUID of
the vGPU that you want to create.
subdirectory
The registration information directory for the vGPU type that you want to create,
for example, nvidia-558.
This example creates an instance of the A40-2Q vGPU type with the UUID
aa618089-8b16-4d01-a136-25a0f3c73123.
# echo "aa618089-8b16-4d01-a136-25a0f3c73123" > nvidia-558/create
An mdev device file for the vGPU is added to the parent virtual function directory of
the vGPU. The vGPU is identified by its UUID.
6. Time-sliced vGPUs only: Make the mdev device file that you created to represent the
vGPU persistent.
# mdevctl define --auto --uuid uuid
uuid
The UUID that you specified in the previous step for the vGPU that you are
creating.
Note:
‣ If you are using a GPU that supports SR-IOV, the mdev device file persists after
a host reboot only if you enable the virtual functions for the GPU as explained
in Preparing the Virtual Function for an NVIDIA vGPU that Supports SR-IOV on
a Linux with KVM Hypervisor before rebooting any VM that is configured with a
vGPU on the GPU.
‣ You cannot use the mdevctl command to make the mdev device file for a MIG-
backed vGPU persistent. The mdev device file for a MIG-backed vGPU is not
retained after the host is rebooted because MIG instances are no longer available.
‣ Not all Linux with KVM hypervisor releases include the mdevctl command. If your
release does not include the mdevctl command, you can use standard features of
the operating system to automate the re-creation of this device file when the host
is booted. For example, you can write a custom script that is executed when the
host is rebooted.
framework. A vendor-specific VFIO framework does not support the mediated VFIO mdev
driver framework.
For GPUs that support SR-IOV, use of a vendor-specific VFIO framework is introduced in
Ubuntu release 24.04.
Before performing this task, ensure that the virtual function on which you want to create
the vGPU has been prepared as explained in Preparing the Virtual Function for an NVIDIA
vGPU that Supports SR-IOV on a Linux with KVM Hypervisor.
If you want to support vGPUs with different amounts of frame buffer, also ensure that
the GPU has been put into mixed-size mode as explained in Preparing the Virtual Function
for an NVIDIA vGPU that Supports SR-IOV on a Linux with KVM Hypervisor.
1. Change to the directory in the sysfs file system that contains the files for vGPU
management on the virtual function on which you want to create the vGPU.
# cd /sys/bus/pci/devices/domain\:bus\:vf-slot.v-function/nvidia
domain
bus
The domain and bus of the GPU, without the 0x prefix.
vf-slot
v-function
The slot and function of the virtual function that you noted in Preparing the
Virtual Function for an NVIDIA vGPU that Supports SR-IOV on a Linux with KVM
Hypervisor.
This example changes to the nvidia directory for the first virtual function (virtfn0)
for the GPU with the domain 0000 and bus 3d. The first virtual function (virtfn0) has
slot 00 and function 4.
# cd /sys/bus/pci/devices/0000\:3d\:00.4/nvidia
2. Confirm that the directory contains the files for vGPU management on the virtual
function, namely creatable_vgpu_types and current_vgpu_type.
# ll
-r--r--r-- 1 root root 4096 Aug 3 00:39 creatable_vgpu_types
-rw-r--r-- 1 root root 4096 Aug 3 00:39 current_vgpu_type
...
3. Confirm that a vGPU has not already been created on the virtual function.
# cat current_vgpu_type
0
If the current vGPU type is 0, a vGPU has not already been created on the virtual
function.
Note: If the current vGPU type is not 0, a vGPU cannot be created on the virtual
function because a vGPU has already been created on it and only one vGPU can be
created on a virtual function.
4. Determine the NVIDIA vGPU types that can be created on the virtual function and the
integer ID that represents each vGPU type in the sysfs file system.
# cat creatable_vgpu_types
NVIDIA A40-1Q 557
NVIDIA A40-2Q 558
NVIDIA A40-3Q 559
Note: You must specify an valid ID. If you specify an invalid ID, the write operation fails
and current vGPU type is set to 0.
To reconfigure the vGPU on a virtual function, the existing vGPU must first be deleted as
explained in Deleting a vGPU on a Linux with KVM Hypervisor that Uses a Vendor-Specific
VFIO Framework.
vm-name
The name of the VM that you added the vGPUs to.
After the VM has booted, install the NVIDIA vGPU software graphics driver as explained in
Installing the NVIDIA vGPU Software Graphics Driver.
‣ For a hypervisor that uses the mdev VFIO framework, add a device entry that
identifies the vGPU through its UUID as follows:
<device>
...
<hostdev mode='subsystem' type='mdev' model='vfio-pci'>
<source>
<address uuid='uuid'/>
</source>
</hostdev>
</device>
uuid
The UUID that was assigned to the vGPU when the vGPU was created.
This example adds a device entry for the vGPU with the UUID a618089-8b16-4d01-
a136-25a0f3c73123.
<device>
...
<hostdev mode='subsystem' type='mdev' model='vfio-pci'>
<source>
<address uuid='a618089-8b16-4d01-a136-25a0f3c73123'/>
</source>
</hostdev>
</device>
This example adds device entries for two vGPUs with the following UUIDs:
‣ c73f1fa6-489e-4834-9476-d70dabd98c40
‣ 3b356d38-854e-48be-b376-00c72c7d119c
<device>
...
<hostdev mode='subsystem' type='mdev' model='vfio-pci'>
<source>
<address uuid='c73f1fa6-489e-4834-9476-d70dabd98c40'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='mdev' model='vfio-pci'>
<source>
<address uuid='3b356d38-854e-48be-b376-00c72c7d119c'/>
</source>
</hostdev>
</device>
‣ For a hypervisor that uses a vendor-specific VFIO framework, add a device entry
that identifies the vGPU through the virtual function on which the vGPU is created
as follows:
<hostdev mode='subsystem' type='pci' managed='no'>
<source>
<address domain='domain' bus='bus' slot='vf-slot' function='v-function'/>
</source>
</hostdev>
domain
bus
The domain and bus of the GPU, including the 0x prefix.
vf-slot
v-function
The slot and function of the virtual function that you noted in Preparing the
Virtual Function for an NVIDIA vGPU that Supports SR-IOV on a Linux with KVM
Hypervisor.
This example adds a device entry for the vGPU that is created on the virtual
function 0000:3d:00.4.
<device>
...
<hostdev mode='subsystem' type='pci' managed='no'>
<source>
<address domain='0x0000' bus='0x3d' slot='0x00' function='0x4'/>
</source>
</hostdev>
</device>
This example adds device entries for two vGPUs that are created on the following
virtual functions:
‣ 0000:3d:00.4
‣ 0000:3d:00.5
<device>
...
<hostdev mode='subsystem' type='pci' managed='no'>
<source>
<address domain='0x0000' bus='0x3d' slot='0x00' function='0x4'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='no'>
<source>
<address domain='0x0000' bus='0x3d' slot='0x00' function='0x5'/>
</source>
</hostdev>
</device>
3. Optional: Add a video element that contains a model element in which the type
attribute is set to none.
<video>
<model type='none'/>
</video>
Adding this video element prevents the default video device that libvirt adds from
being loaded into the VM. If you don't add this video element, you must configure the
Xorg server or your remoting solution to load only the vGPU devices you added and
not the default video device.
1. For each vGPU that you want to add to the VM, add one -device option that identifies
the vGPU.
The format of each -device option depends on whether the hypervisor uses a vendor-
specific VFIO framework for an NVIDIA vGPU that supports SR-IOV.
For GPUs that support SR-IOV, use of a vendor-specific VFIO framework is introduced
in Ubuntu release 24.04.
‣ For each vGPU on a hypervisor that uses the mdev VFIO framework, add a -device
option that identifies the vGPU through its UUID.
-device vfio-pci,sysfsdev=/sys/bus/mdev/devices/vgpu-uuid
vgpu-uuid
The UUID that was assigned to the vGPU when the vGPU was created.
‣ For each vGPU on a hypervisor that uses a vendor-specific VFIO framework, add a
-device option that identifies the vGPU through the virtual function on which the
vGPU is created.
-device vfio-pci,sysfsdev=/sys/bus/pci/devices/domain\:bus\:vf-slot.v-
function/
domain
bus
The domain and bus of the GPU, without the 0x prefix.
vf-slot
v-function
The slot and function of the virtual function that you noted in Preparing the
Virtual Function for an NVIDIA vGPU that Supports SR-IOV on a Linux with KVM
Hypervisor.
2. Add a -uuid option to specify the VM to which you want to add the vGPUs.
-uuid vm-uuid
vm-uuid
The UUID that was assigned to the VM when the VM was created.
‣ 676428a0-2445-499f-9bfd-65cd4a9bd18f
‣ 6c5954b8-5bc1-4769-b820-8099fe50aaba
‣ 0000:3d:00.4
‣ 0000:3d:00.5
1. Change to the directory in the sysfs file system that contains the vgpu_params file
for the vGPU for which you want to set vGPU plugin parameters.
The directory depends on whether the hypervisor uses a vendor-specific VFIO
framework for an NVIDIA vGPU that supports SR-IOV.
For GPUs that support SR-IOV, use of a vendor-specific VFIO framework is introduced
in Ubuntu release 24.04.
‣ For a hypervisor that uses the mdev VFIO framework, change to the nvidia
subdirectory of the mdev device directory that represents the vGPU.
# cd /sys/bus/mdev/devices/uuid/nvidia
uuid
The UUID of the vGPU, for example, aa618089-8b16-4d01-a136-25a0f3c73123.
‣ For a hypervisor that uses a vendor-specific VFIO framework, change to the
directory in the sysfs file system that contains the files for vGPU management on
the virtual function on which the vGPU was created.
# cd /sys/bus/pci/devices/domain\:bus\:vf-slot.v-function/nvidia
domain
bus
The domain and bus of the GPU, without the 0x prefix.
vf-slot
v-function
The slot and function of the virtual function that you noted in Preparing the
Virtual Function for an NVIDIA vGPU that Supports SR-IOV on a Linux with KVM
Hypervisor.
This example changes to the nvidia directory for the first virtual function
(virtfn0) for the GPU with the domain 0000 and bus 3d. The first virtual function
(virtfn0) has slot 00 and function 4.
# cd /sys/bus/pci/devices/0000\:3d\:00.4/nvidia
2. Write the plugin parameters that you want to set to the vgpu_params file in the
directory that you changed to in the previous step.
# echo "plugin-config-params" > vgpu_params
plugin-config-params
A comma-separated list of parameter-value pairs, where each pair is of the form
parameter-name=value.
This example disables frame rate limiting and console VNC for a vGPU.
To clear any vGPU plugin parameters that were set previously, write a space to the
vgpu_params file for the vGPU.
# echo " " > vgpu_params
Note: A hypervisor that uses a vendor-specific VFIO framework uses it only for an NVIDIA
vGPU that supports SR-IOV. The hypervisor still uses the mediated VFIO mdev driver
framework for a legacy NVIDIA vGPU.
For GPUs that support SR-IOV, use of a vendor-specific VFIO framework is introduced in
Ubuntu release 24.04.
To determine which instructions to follow for the NVIDIA vGPU that you are deleting, refer
to the following table.
VFIO
NVIDIA vGPU Type Framework Instructions
Legacy: SR-IOV not mdev Deleting a vGPU on a Linux with KVM
supported Hypervisor that Uses the mdev VFIO
SR-IOV supported mdev Framework
‣ You have the domain, bus, slot, and function of the GPU where the vGPU that you
want to delete resides. For instructions, see Getting the BDF and Domain of a GPU on
a Linux with KVM Hypervisor.
‣ The VM to which the vGPU is assigned is shut down.
1. Change to the mdev_supported_types directory for the physical GPU.
# cd /sys/class/mdev_bus/domain\:bus\:slot.function/mdev_supported_types/
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without the 0x prefix.
This example changes to the mdev_supported_types directory for the GPU with the
PCI device BDF 06:00.0.
# cd /sys/bus/pci/devices/0000\:06\:00.0/mdev_supported_types/
2. Change to the subdirectory of mdev_supported_types that contains registration
information for the vGPU.
# cd `find . -type d -name uuid`
uuid
The UUID of the vGPU, for example, aa618089-8b16-4d01-a136-25a0f3c73123.
3. Write the value 1 to the remove file in the registration information directory for the
vGPU that you want to delete.
# echo "1" > remove
# cd /sys/bus/pci/devices/domain\:bus\:vf-slot.v-function/nvidia
domain
bus
The domain and bus of the GPU, without the 0x prefix.
vf-slot
v-function
The slot and function of the virtual function that you noted in Preparing the
Virtual Function for an NVIDIA vGPU that Supports SR-IOV on a Linux with KVM
Hypervisor.
This example changes to the nvidia directory for the first virtual function (virtfn0)
for the GPU with the domain 0000 and bus 3d. The first virtual function (virtfn0) has
slot 00 and function 4.
# cd /sys/bus/pci/devices/0000\:3d\:00.4/nvidia
2. Confirm that the directory contains the files for vGPU management on the virtual
function, namely creatable_vgpu_types and current_vgpu_type.
# ll
-r--r--r-- 1 root root 4096 Aug 3 00:39 creatable_vgpu_types
-rw-r--r-- 1 root root 4096 Aug 3 00:39 current_vgpu_type
...
3. Confirm that the current vGPU type on the virtual function is the ID that represents
the type of the vGPU that you want to delete.
# cat current_vgpu_type
560
4. Write 0 to the current_vgpu_type file.
# echo 0 > current_vgpu_type
5. Confirm that current vGPU type on the virtual function is 0, signifying that the vGPU
has been deleted.
# cat current_vgpu_type
0
6. Confirm that the creatable_vgpu_types file is no longer empty, signifying that the
vGPU has been deleted and that a vGPU can again be created on the virtual function.
# cat creatable_vgpu_types
NVIDIA A40-1Q 557
NVIDIA A40-2Q 558
NVIDIA A40-3Q 559
NVIDIA A40-4Q 560
NVIDIA A40-6Q 561
through. To enable the GPU to be used for vGPU, the GPU must be unbound from vfio-
pci kernel module and bound to the nvidia kernel module.
Before you begin, ensure that you have the domain, bus, slot, and function of the GPU
that you are preparing for use with vGPU. For instructions, see Getting the BDF and
Domain of a GPU on a Linux with KVM Hypervisor.
1. Determine the kernel module to which the GPU is bound by running the lspci
command with the -k option on the NVIDIA GPUs on your host.
# lspci -d 10de: -k
The Kernel driver in use: field indicates the kernel module to which the GPU is
bound.
The following example shows that the NVIDIA Tesla M60 GPU with BDF 06:00.0 is
bound to the vfio-pci kernel module and is being used for GPU pass through.
06:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M60] (rev
a1)
Subsystem: NVIDIA Corporation Device 115e
Kernel driver in use: vfio-pci
2. Unbind the GPU from vfio-pci kernel module.
a). Change to the sysfs directory that represents the vfio-pci kernel module.
# cd /sys/bus/pci/drivers/vfio-pci
b). Write the domain, bus, slot, and function of the GPU to the unbind file in this
directory.
# echo domain:bus:slot.function > unbind
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without a 0x prefix.
This example writes the domain, bus, slot, and function of the GPU with the
domain 0000 and PCI device BDF 06:00.0.
# echo 0000:06:00.0 > unbind
3. Bind the GPU to the nvidia kernel module.
a). Change to the sysfs directory that contains the PCI device information for the
physical GPU.
# cd /sys/bus/pci/devices/domain\:bus\:slot.function
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without a 0x prefix.
This example changes to the sysfs directory that contains the PCI device
information for the GPU with the domain 0000 and PCI device BDF 06:00.0.
# cd /sys/bus/pci/devices/0000\:06\:00.0
b). Write the kernel module name nvidia to the driver_override file in this
directory.
You can now configure the GPU with vGPU as explained in Installing and Configuring the
NVIDIA Virtual GPU Manager for Red Hat Enterprise Linux KVM.
Note: A hypervisor that uses a vendor-specific VFIO framework for an NVIDIA vGPU that
supports SR-IOV uses the mdev VFIO framework for a legacy NVIDIA vGPU.
For GPUs that support SR-IOV, use of a vendor-specific VFIO framework is introduced in
Ubuntu release 24.04.
For more detailed information about how NVIDIA vGPU information is stored in the sysfs
file system, refer to the following topics:
‣ NVIDIA vGPU Information in the sysfs File System for Hypervisors that Use the mdev
VFIO Framework
‣ NVIDIA vGPU Information in the sysfs File System for Hypervisors that Use a Vendor-
Specific VFIO Framework
‣ /sys/bus/pci/devices/
‣ /sys/class/mdev_bus/
Both directories are a symbolic link to the real directory for PCI devices in the sysfs file
system.
The organization of the sysfs directory for each physical GPU is as follows:
/sys/class/mdev_bus/
|-parent-physical-device
|-mdev_supported_types
|-nvidia-vgputype-id
|-available_instances
|-create
|-description
|-device_api
|-devices
|-name
parent-physical-device
Each physical GPU on the host is represented by a subdirectory of the /sys/class/
mdev_bus/ directory.
The name of each subdirectory is as follows:
domain\:bus\:slot.function
domain, bus, slot, function are the domain, bus, slot, and function of the GPU, for
example, 0000\:06\:00.0.
Each directory is a symbolic link to the real directory for PCI devices in the sysfs file
system. For example:
# ll /sys/class/mdev_bus/
total 0
lrwxrwxrwx. 1 root root 0 Dec 12 03:20 0000:05:00.0 -> ../../devices/
pci0000:00/0000:00:03.0/0000:03:00.0/0000:04:08.0/0000:05:00.0
lrwxrwxrwx. 1 root root 0 Dec 12 03:20 0000:06:00.0 -> ../../devices/
pci0000:00/0000:00:03.0/0000:03:00.0/0000:04:09.0/0000:06:00.0
lrwxrwxrwx. 1 root root 0 Dec 12 03:20 0000:07:00.0 -> ../../devices/
pci0000:00/0000:00:03.0/0000:03:00.0/0000:04:10.0/0000:07:00.0
lrwxrwxrwx. 1 root root 0 Dec 12 03:20 0000:08:00.0 -> ../../devices/
pci0000:00/0000:00:03.0/0000:03:00.0/0000:04:11.0/0000:08:00.0
mdev_supported_types
A directory named mdev_supported_types is required under the sysfs directory for
each physical GPU that will be configured with NVIDIA vGPU. How this directory is
created for a GPU depends on whether the GPU supports SR-IOV.
‣ For a GPU that does not support SR-IOV, this directory is created automatically
after the Virtual GPU Manager is installed on the host and the host has been
rebooted.
‣ For a GPU that supports SR-IOV, such as a GPU based on the NVIDIA Ampere
architecture, you must create this directory by enabling the virtual function for the
GPU as explained in Creating an NVIDIA vGPU on a Linux with KVM Hypervisor. The
mdev_supported_types directory itself is never visible on the physical function.
The mdev_supported_types directory contains a subdirectory for each vGPU type that
the physical GPU supports. The name of each subdirectory is nvidia-vgputype-id,
where vgputype-id is an unsigned integer serial number. For example:
# ll mdev_supported_types/
total 0
drwxr-xr-x 3 root root 0 Dec 6 01:37 nvidia-35
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-36
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-37
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-38
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-39
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-40
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-41
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-42
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-43
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-44
drwxr-xr-x 3 root root 0 Dec 5 10:43 nvidia-45
nvidia-vgputype-id
Each directory represents an individual vGPU type and contains the following files and
directories:
available_instances
This file contains the number of instances of this vGPU type that can still be
created. This file is updated any time a vGPU of this type is created on or removed
from the physical GPU.
create
This file is used for creating a vGPU instance. A vGPU instance is created by writing
the UUID of the vGPU to this file. The file is write only.
description
This file contains the following details of the vGPU type:
‣ The maximum number of virtual display heads that the vGPU type supports
‣ The frame rate limiter (FRL) configuration in frames per second
‣ The frame buffer size in Mbytes
‣ The maximum resolution per display head
‣ The maximum number of vGPU instances per physical GPU
For example:
# cat description
num_heads=4, frl_config=60, framebuffer=2048M, max_resolution=4096x2160,
max_instance=4
device_api
This file contains the string vfio_pci to indicate that a vGPU is a PCI device.
devices
This directory contains all the mdev devices that are created for the vGPU type. For
example:
# ll devices
total 0
lrwxrwxrwx 1 root root 0 Dec 6 01:52 aa618089-8b16-4d01-a136-25a0f3c73123 -
> ../../../aa618089-8b16-4d01-a136-25a0f3c73123
name
This file contains the name of the vGPU type. For example:
# cat name
GRID M10-2Q
virtual-function
Each virtual function on each physical GPU on the host is represented by a
subdirectory of the /sys/bus/pci/devices/ directory.
The name of each subdirectory is as follows:
domain\:bus\:vf-slot.v-function
domain and bus are the domain and bus of the GPU. vf-slot and v-function are the slot
and function of the virtual function. For example: 0000\:3d\:00.4.
You must create this directory by enabling the virtual function for the GPU as
explained in Creating an NVIDIA vGPU on a Linux with KVM Hypervisor. This directory is
not created automatically.
nvidia
The nvidia directory contains the files for vGPU management on the virtual function.
These files are as follows:
creatable_vgpu_types
This file contains the NVIDIA vGPU types that can be created on the virtual function
and the integer ID that represents each vGPU type in the sysfs file system. For
example:
# cat creatable_vgpu_types
NVIDIA A40-1Q 557
NVIDIA A40-2Q 558
NVIDIA A40-3Q 559
NVIDIA A40-4Q 560
NVIDIA A40-6Q 561
This file is not a static list of all the NVIDIA vGPU types that the GPU supports. It is
updated dynamically in response to changes to the current_vgpu_type file for this
virtual function and for other virtual functions on the same GPU.
‣ If a vGPU has been created on this virtual function, this file is empty.
‣ If a vGPU has been created on another virtual function on the same GPU, this file
contains only the vGPU types that can reside on the same GPU as the existing
vGPU.
‣ If the maximum number of vGPUs that the GPU supports has been created on
other virtual functions for the GPU, this file is empty.
Note: When a time-sliced vGPU is created on a GPU in equal-size mode, the content
of the creatable_vgpu_types for all virtual functions on the physical GPU is set
to only the vGPU types with the same amount of frame buffer as the vGPU that
was created. This behavior enforces the requirement that all time-sliced vGPUs
on the physical GPU must have the same amount of frame buffer. However, this
requirement does not apply to time-sliced vGPUs created on a GPU in mixed-size
mode or to MIG-backed vGPUs.
current_vgpu_type
This file contains the integer ID that represents the vGPU type in the sysfs file
system of the vGPU that is created on this virtual function. For example, if an
NVIDIA A40-4Q vGPU has been created on this virtual function, this file contains the
integer 560:
# cat current_vgpu_type
560
If no vGPU is created on the virtual function, this file contains the integer 0. When
this file is created, its contents are set to the default value of 0.
This file is used for creating and deleting a vGPU on the virtual function.
‣ A vGPU is created by writing the integer ID that represents the vGPU type in the
sysfs file system to this file.
‣ A vGPU is deleted by writing 0 to this file.
vgpu_params
This file is used for setting plugin parameters for the vGPU on the virtual function
to control its behavior. Plugin parameters are set by writing a list of parameter-value
pairs to this file. For more information, refer to Setting vGPU Plugin Parameters on a
Linux with KVM Hypervisor.
Note:
‣ How a GPU in mixed-size mode behaves if the hypervisor host is rebooted, the NVIDIA
Virtual GPU Manager is reloaded, or the GPU is reset depends on the hypervisor:
‣ On a Linux with KVM hypervisor, a GPU in mixed-size mode reverts to its default
mode.
‣ On VMware vSphere, a GPU in mixed-size mode remains in mixed-size mode. The
GPU doesn't revert to its default mode
‣ When a GPU is in mixed-size mode, only the best effort and equal share schedulers are
supported. The fixed share scheduler is not supported.
Before performing this task, ensure that no vGPUs are running on the GPU and that the
GPU is not being used by any other processes, such as CUDA applications, monitoring
applications, or the nvidia-smi command.
How to put a GPU into mixed-size mode depends on the hypervisor that you are using as
explained in the following topics:
1. Use nvidia-smi to list the status of all physical GPUs, and check that heterogeneous
time-sliced vGPU sizes are noted as supported.
# nvidia-smi -q
...
Attached GPUs : 1
GPU 00000000:41:00.0
...
‣ Putting a GPU Into Mixed-Size Mode on VMware vSphere by Using vCenter Server
‣ Putting a GPU Into Mixed-Size Mode on VMware vSphere by Using the esxcli
Command
Note: Do not set the option to restart the Xorg server. This option is required only
when the device type is changed, not when the vGPU mode of a GPU is changed.
1. Run the esxcli command to change the vGPU mode of the GPU to mixed size.
Note: To put a GPU into equal size mode, run this command with the --vgpu-
mode=SameSize option.
Note:
‣ On a Linux with KVM hypervisor, this task is optional. If you want the Virtual GPU
Manager to determine where a vGPU is placed on a GPU, omit this task.
‣ On VMware vSphere, you cannot control the placement of vGPUs on a GPU in mixed-
size mode. The VMware vSphere software determines where a vGPU is placed on a
GPU.
Before performing this task, ensure that following prerequisites are met:
‣ The GPU has been put into mixed-size mode as explained in Putting a GPU Into Mixed-
Size Mode.
‣ The vGPU that you want to place on the physical GPU has been created as explained
in Creating an NVIDIA vGPU on a Linux with KVM Hypervisor.
Perform this task in a command shell on the hypervisor host.
1. Use nvidia-smi to list the placement size and available placement IDs for the type of
the vGPU.
# nvidia-smi vgpu -c -v
...
vGPU Type ID : 0x392
Name : NVIDIA L4-6Q
...
Placement Size : 6
Creatable Placement IDs : 6 18
...
Note:
Some supported placement IDs for the vGPU type might be unavailable because
they are already in use by another vGPU. To list the placement size and all supported
placement IDs for the type of the vGPU, run the following command:
# nvidia-smi vgpu -s -v
...
vGPU Type ID : 0x392
Name : NVIDIA L4-6Q
...
Placement Size : 6
Supported Placement IDs : 0 6 12 18
...
The number of supported placement IDs is the maximum number of vGPUs of the
type that are allowed on the GPU in mixed-size mode.
2. Set the vgpu-placement-id vGPU plugin parameter for the vGPU to the placement ID
that you want.
For a Linux with KVM hypervisor, write the parameter to the vgpu_params file in the
nvidia subdirectory of the mdev device directory that represents the vGPU.
# echo "vgpu-placement-id=placement-id" > /sys/bus/mdev/devices/uuid/nvidia/vgpu_params
placement-id
The placement ID that you want to set for the vGPU.
uuid
The UUID of the vGPU, for example, aa618089-8b16-4d01-a136-25a0f3c73123.
This example sets the placement ID for the vGPU that has the UUID
aa618089-8b16-4d01-a136-25a0f3c73123 to 6.
# echo "vgpu-placement-id=6" > \
/sys/bus/mdev/devices/aa618089-8b16-4d01-a136-25a0f3c73123/nvidia/vgpu_params
When the VM to which the vGPU is assigned is rebooted, the Virtual GPU Manager
validates the placement ID that you assigned to the vGPU. If the placement ID is invalid or
unavailable, the VM fails to boot.
After the VM to which the vGPU is assigned has been rebooted, you can confirm that the
vGPU has been assigned the correct placement ID.
# nvidia-smi vgpu -q
GPU 00000000:41:00.0
Active vGPUs : 1
vGPU ID : 3251719533
VM ID : 2150987
...
Placement ID : 6
...
‣ ECC memory is exposed as a feature on all supported vGPUs on the physical GPU.
‣ In VMs that support ECC memory, ECC memory is enabled, with the option to disable
ECC in the VM.
‣ ECC memory can be enabled or disabled for individual VMs. Enabling or disabling ECC
memory in a VM does not affect the amount of frame buffer that is usable by vGPUs.
GPUs based on the Pascal GPU architecture and later GPU architectures support ECC
memory with NVIDIA vGPU. To determine whether ECC memory is enabled for a GPU, run
nvidia-smi -q for the GPU.
Tesla M60 and M6 GPUs support ECC memory when used without GPU virtualization, but
NVIDIA vGPU does not support ECC memory with these GPUs. In graphics mode, these
GPUs are supplied with ECC memory disabled by default.
Some hypervisor software versions do not support ECC memory with NVIDIA vGPU.
If you are using a hypervisor software version or GPU that does not support ECC memory
with NVIDIA vGPU and ECC memory is enabled, NVIDIA vGPU fails to start. In this
situation, you must ensure that ECC memory is disabled on all GPUs if you are using
NVIDIA vGPU.
‣ For a physical GPU, perform this task from the hypervisor host.
‣ For a vGPU, perform this task from the VM to which the vGPU is assigned.
Note: ECC memory must be enabled on the physical GPU on which the vGPUs reside.
Before you begin, ensure that NVIDIA Virtual GPU Manager is installed on your hypervisor.
If you are changing ECC memory settings for a vGPU, also ensure that the NVIDIA vGPU
software graphics driver is installed in the VM to which the vGPU is assigned.
1. Use nvidia-smi to list the status of all physical GPUs or vGPUs, and check for ECC
noted as enabled.
# nvidia-smi -q
==============NVSMI LOG==============
Attached GPUs : 1
GPU 0000:02:00.0
[...]
Ecc Mode
Current : Enabled
Pending : Enabled
[...]
2. Change the ECC status to off for each GPU for which ECC is enabled.
‣ If you want to change the ECC status to off for all GPUs on your host machine or
vGPUs assigned to the VM, run this command:
# nvidia-smi -e 0
‣ If you want to change the ECC status to off for a specific GPU or vGPU, run this
command:
# nvidia-smi -i id -e 0
==============NVSMI LOG==============
Attached GPUs : 1
GPU 0000:02:00.0
[...]
Ecc Mode
Current : Disabled
Pending : Disabled
[...]
If you later need to enable ECC on your GPUs or vGPUs, follow the instructions in Enabling
ECC Memory.
‣ For a physical GPU, perform this task from the hypervisor host.
‣ For a vGPU, perform this task from the VM to which the vGPU is assigned.
Note: ECC memory must be enabled on the physical GPU on which the vGPUs reside.
Before you begin, ensure that NVIDIA Virtual GPU Manager is installed on your hypervisor.
If you are changing ECC memory settings for a vGPU, also ensure that the NVIDIA vGPU
software graphics driver is installed in the VM to which the vGPU is assigned.
1. Use nvidia-smi to list the status of all physical GPUs or vGPUs, and check for ECC
noted as disabled.
# nvidia-smi -q
==============NVSMI LOG==============
Attached GPUs : 1
GPU 0000:02:00.0
[...]
Ecc Mode
Current : Disabled
Pending : Disabled
[...]
2. Change the ECC status to on for each GPU or vGPU for which ECC is enabled.
‣ If you want to change the ECC status to on for all GPUs on your host machine or
vGPUs assigned to the VM, run this command:
# nvidia-smi -e 1
‣ If you want to change the ECC status to on for a specific GPU or vGPU, run this
command:
# nvidia-smi -i id -e 1
==============NVSMI LOG==============
Attached GPUs : 1
GPU 0000:02:00.0
[...]
Ecc Mode
Current : Enabled
Pending : Enabled
[...]
If you later need to disable ECC on your GPUs or vGPUs, follow the instructions in
Disabling ECC Memory.
1. Install and configure the NVIDIA Virtual GPU Manager as explained in Installing and
Configuring the NVIDIA Virtual GPU Manager for Red Hat Enterprise Linux KVM.
2. As root, log in to the VM that you configured with NVIDIA vGPU in the previous step.
3. Install the Mellanox OpenFabrics Enterprise Distribution for Linux (MLNX_OFED) in the
VM as explained in Installation Procedure in Installing Mellanox OFED.
In the command to run the installation script, specify the following options:
‣ --with-nvmf
‣ --with-nfsrdma
‣ --enable-gds
‣ --add-kernel-support
4. Install the NVIDIA vGPU software graphics driver for Linux in the VM from a
distribution-specific package.
Note: GPUDirect Storage technology does not support installation of the NVIDIA vGPU
software graphics driver for Linux from a .run file.
Follow the instructions for the Linux distribution that is installed in the VM:
‣ Installing the NVIDIA vGPU Software Graphics Driver on Ubuntu from a Debian
Package
‣ Installing the NVIDIA vGPU Software Graphics Driver on Red Hat Distributions
from an RPM Package
5. Install NVIDIA CUDA Toolkit from a .run file, deselecting the CUDA driver when
selecting the CUDA components to install.
Note: To avoid overwriting the NVIDIA vGPU software graphics driver that you installed
in the previous step, do not install NVIDIA CUDA Toolkit from a distribution-specific
package.
For instructions, refer to Runfile Installation in NVIDIA CUDA Installation Guide for Linux.
6. Use the package manager of the Linux distribution that is installed in the VM to install
the GPUDirect Storage technology packages, omitting the installation of the NVIDIA
CUDA Toolkit packages.
Follow the instructions in NVIDIA CUDA Installation Guide for Linux for the Linux
distribution that is installed in the VM:
‣ RHEL8/Rocky 8
In the step to install CUDA, execute only the command to include all GPUDirect
Storage technology packages:
sudo dnf install nvidia-gds
‣ Ubuntu
In the step to install CUDA, execute only the command to include all GPUDirect
Storage technology packages:
sudo apt-get install nvidia-gds
After you configure a vGPU VM for use with NVIDIA GPUDirect Storage technology,
you can license the NVIDIA vGPU software licensed products that you are using. For
instructions, refer to Virtual GPU Client Licensing User Guide.
GPU pass-through is used to directly assign an entire physical GPU to one VM, bypassing
the NVIDIA Virtual GPU Manager. In this mode of operation, the GPU is accessed
exclusively by the NVIDIA driver running in the VM to which it is assigned; the GPU is not
shared among VMs.
In pass-through mode, GPUs based on NVIDIA GPU architectures after the Maxwell
architecture support error-correcting code (ECC).
GPU pass-through can be used in a server platform alongside NVIDIA vGPU, with some
restrictions:
‣ A physical GPU can host NVIDIA vGPUs, or can be used for pass-through, but cannot
do both at the same time. Some hypervisors, for example VMware vSphere ESXi,
require a host reboot to change a GPU from pass-through mode to vGPU mode.
‣ A single VM cannot be configured for both vGPU and GPU pass-through at the same
time.
‣ The performance of a physical GPU passed through to a VM can be monitored only
from within the VM itself. Such a GPU cannot be monitored by tools that operate
through the hypervisor, such as XenCenter or nvidia-smi (see Monitoring GPU
Performance).
‣ The following BIOS settings must be enabled on your server platform:
‣ VT-D/IOMMU
‣ SR-IOV in Advanced Options
‣ All GPUs directly connected to each other through NVLink must be assigned to the
same VM.
You can assign multiple physical GPUs to one VM. The maximum number of physical
GPUs that you can assign to a VM depends on the maximum number of PCIe pass-
through devices per VM that your chosen hypervisor can support. For more information,
refer to the documentation for your hypervisor, for example:
‣ Red Hat Enterprise Linux 8 releases: Assigning a GPU to a virtual machine, Known
Issues
‣ Red Hat Enterprise Linux 7 releases: GPU PCI Device Assignment
‣ VMware vSphere: vSphere 7.0 Configuration Limits
Note: If you intend to configure all GPUs in your server platform for pass-through, you do
not need to install the NVIDIA Virtual GPU Manager.
Note: You cannot use more than four displays even if the combined resolution of the
displays is less than the number of available pixels from the GPU. For example, you cannot
use five 4096×2160 displays with a GPU based on the NVIDIA Pascal architecture even
though the combined resolution of the displays (44236800) is less than the number of
available pixels from the GPU (66355200).
After configuring a XenServer VM for GPU pass through, install the NVIDIA graphics
driver in the guest OS on the VM as explained in Installing the NVIDIA vGPU Software
Graphics Driver.
[root@xenserver ~]#
After configuring a XenServer VM for GPU pass through, install the NVIDIA graphics
driver in the guest OS on the VM as explained in Installing the NVIDIA vGPU Software
Graphics Driver.
If you want to remove a GPU from the VM to which it is assigned, in the virtual machine
hardware information window, select the GPU and click Remove.
After configuring the VM for GPU pass through, install the NVIDIA graphics driver in the
guest OS on the VM as explained in Installing the NVIDIA vGPU Software Graphics Driver.
The NVIDIA GPUs listed in this example have the PCI device BDFs 85:00.0 and
86:00.0.
# lspci | grep NVIDIA
85:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M60] (rev
a1)
86:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M60] (rev
a1)
3. Obtain the full identifier of the GPU from its PCI device BDF.
# virsh nodedev-list --cap pci| grep transformed-bdf
transformed-bdf
The PCI device BDF of the GPU with the colon and the period replaced with
underscores, for example, 85_00_0.
This example obtains the full identifier of the GPU with the PCI device BDF 85:00.0.
# virsh nodedev-list --cap pci| grep 85_00_0
pci_0000_85_00_0
4. Obtain the domain, bus, slot, and function of the GPU.
virsh nodedev-dumpxml full-identifier| egrep 'domain|bus|slot|function'
full-identifier
The full identifier of the GPU that you obtained in the previous step, for example,
pci_0000_85_00_0.
This example obtains the domain, bus, slot, and function of the GPU with the PCI
device BDF 85:00.0.
# virsh nodedev-dumpxml pci_0000_85_00_0| egrep 'domain|bus|slot|function'
<domain>0x0000</domain>
<bus>0x85</bus>
<slot>0x00</slot>
<function>0x0</function>
<address domain='0x0000' bus='0x85' slot='0x00' function='0x0'/>
5. In virsh, open for editing the XML file of the VM that you want to assign the GPU to.
# virsh edit vm-name
vm-name
The name of the VM to that you want to assign the GPU to.
6. Add a device entry in the form of an address element inside the source element to
assign the GPU to the guest VM.
You can optionally add a second address element after the source element to set a
fixed PCI device BDF for the GPU in the guest operating system.
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='domain' bus='bus' slot='slot' function='function'/>
</source>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</hostdev>
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, which you obtained in the previous
step.
This example adds a device entry for the GPU with the PCI device BDF 85:00.0 and
fixes the BDF for the GPU in the guest operating system.
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x85' slot='0x00' function='0x0'/>
</source>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</hostdev>
7. Start the VM that you assigned the GPU to.
# virsh start vm-name
vm-name
The name of the VM that you assigned the GPU to.
After configuring the VM for GPU pass through, install the NVIDIA graphics driver in the
guest OS on the VM as explained in Installing the NVIDIA vGPU Software Graphics Driver.
The NVIDIA GPUs listed in this example have the PCI device BDFs 85:00.0 and
86:00.0.
# lspci | grep NVIDIA
85:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M60] (rev
a1)
86:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M60] (rev
a1)
2. Add the following option to the QEMU command line:
-device vfio-pci,host=bdf
bdf
The PCI device BDF of the GPU that you want to assign in pass-through mode to a
VM, for example, 85:00.0.
This example assigns the GPU with the PCI device BDF 85:00.0 in pass-through mode
to a VM.
-device vfio-pci,host=85:00.0
After configuring the VM for GPU pass through, install the NVIDIA graphics driver in the
guest OS on the VM as explained in Installing the NVIDIA vGPU Software Graphics Driver.
the GPU to be passed through to a VM, the GPU must be unbound from nvidia kernel
module and bound to the vfio-pci kernel module.
Before you begin, ensure that you have the domain, bus, slot, and function of the GPU
that you are preparing for use in pass-through mode. For instructions, see Getting the
BDF and Domain of a GPU on a Linux with KVM Hypervisor.
1. If you are using a GPU that supports SR-IOV, such as a GPU based on the NVIDIA
Ampere architecture, disable the virtual function for the GPU in the sysfs file system.
If your GPU does not support SR-IOV, omit this step.
Note: Before performing this step, ensure that the GPU is not being used by any other
processes, such as CUDA applications, monitoring applications, or the nvidia-smi
command.
Use the custom script sriov-manage provided by NVIDIA vGPU software for this
purpose.
# /usr/lib/nvidia/sriov-manage -d domain:bus:slot.function
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without the 0x prefix.
This example disables the virtual function for the GPU with the domain 00, bus 06, slot
0000, and function 0.
# /usr/lib/nvidia/sriov-manage -d 00:06:0000.0
2. Determine the kernel module to which the GPU is bound by running the lspci
command with the -k option on the NVIDIA GPUs on your host.
# lspci -d 10de: -k
The Kernel driver in use: field indicates the kernel module to which the GPU is
bound.
The following example shows that the NVIDIA Tesla M60 GPU with BDF 06:00.0 is
bound to the nvidia kernel module and is being used for vGPU.
06:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Tesla M60] (rev
a1)
Subsystem: NVIDIA Corporation Device 115e
Kernel driver in use: nvidia
3. To ensure that no clients are using the GPU, acquire the unbind lock of the GPU.
a). Ensure that no VM is running to which a vGPU on the physical GPU is assigned and
that no process running on the host is using that GPU.
Processes on the host that use the GPU include the nvidia-smi command and all
processes based on the NVIDIA Management Library (NVML).
b). Change to the directory in the proc file system that represents the GPU.
# cd /proc/driver/nvidia/gpus/domain\:bus\:slot.function
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without a 0x prefix.
This example changes to the directory in the proc file system that represents the
GPU with the domain 0000 and PCI device BDF 06:00.0.
# cd /proc/driver/nvidia/gpus/0000\:06\:00.0
c). Write the value 1 to the unbindLock file in this directory.
# echo 1 > unbindLock
d). Confirm that the unbindLock file now contains the value 1.
# cat unbindLock
1
If the unbindLock file contains the value 0, the unbind lock could not be acquired
because a process or client is using the GPU.
4. Unbind the GPU from nvidia kernel module.
a). Change to the sysfs directory that represents the nvidia kernel module.
# cd /sys/bus/pci/drivers/nvidia
b). Write the domain, bus, slot, and function of the GPU to the unbind file in this
directory.
# echo domain:bus:slot.function > unbind
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without a 0x prefix.
This example writes the domain, bus, slot, and function of the GPU with the
domain 0000 and PCI device BDF 06:00.0.
# echo 0000:06:00.0 > unbind
5. Bind the GPU to the vfio-pci kernel module.
a). Change to the sysfs directory that contains the PCI device information for the
physical GPU.
# cd /sys/bus/pci/devices/domain\:bus\:slot.function
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without a 0x prefix.
This example changes to the sysfs directory that contains the PCI device
information for the GPU with the domain 0000 and PCI device BDF 06:00.0.
# cd /sys/bus/pci/devices/0000\:06\:00.0
b). Write the kernel module name vfio-pci to the driver_override file in this
directory.
# echo vfio-pci > driver_override
c). Change to the sysfs directory that represents the nvidia kernel module.
# cd /sys/bus/pci/drivers/vfio-pci
d). Write the domain, bus, slot, and function of the GPU to the bind file in this
directory.
# echo domain:bus:slot.function > bind
domain
bus
slot
function
The domain, bus, slot, and function of the GPU, without a 0x prefix.
This example writes the domain, bus, slot, and function of the GPU with the
domain 0000 and PCI device BDF 06:00.0.
# echo 0000:06:00.0 > bind
e). Change back to the sysfs directory that contains the PCI device information for
the physical GPU.
# cd /sys/bus/pci/devices/domain\:bus\:slot.function
f). Clear the content of the driver_override file in this directory.
# echo > driver_override
You can now configure the GPU for use in pass-through mode as explained in Using GPU
Pass-Through on a Linux with KVM Hypervisor.
‣ Windows Server with Desktop Experience and the Hyper-V role are installed and
configured on your server platform, and a VM is created.
For instructions, refer to the following articles on the Microsoft technical
documentation site:
vm-name
The name of the VM to which you are attaching the GPU or the audio device.
Note: You can assign a pass-through GPU and, if present, its audio device to only one
virtual machine at a time.
After assigning a GPU to a VM, install the NVIDIA graphics driver in the guest OS on the
VM as explained in Installing the NVIDIA vGPU Software Graphics Driver.
1. List the GPUs and, if present, the audio devices that are currently assigned to the
virtual machine (VM).
Get-VMAssignableDevice -VMName vm-name
vm-name
The name of the VM whose assigned GPUs and audio devices you want to list.
2. Shut down the VM to which the GPU and any audio devices are assigned.
3. Remove the GPU and, if present, the audio device from the VM to which they are
assigned.
For each device that you are removing, type the following command:
Remove-VMAssignableDevice –LocationPath gpu-device-location -VMName vm-name
gpu-device-location
The location path of the GPU or the audio device that you are removing, which you
obtained previously.
vm-name
The name of the VM from which you are removing the GPU or the audio device.
This example removes the GPU at the location path
PCIROOT(80)#PCI(0200)#PCI(0000)#PCI(1000)#PCI(0000) from the VM VM1.
Remove-VMAssignableDevice –LocationPath
"PCIROOT(80)#PCI(0200)#PCI(0000)#PCI(1000)#PCI(0000)" -VMName VM1
After the GPU and, if present, its audio device are removed from the VM, they are
unavailable to the host operating system (OS) until you remount them on the host OS.
4. Remount the GPU and, if present, its audio device on the host OS.
For each device that you are remounting, type the following command:
‣ The VM and the ESXi host are configured as explained in Preparing for vDGA
Capabilities in the VMware Horizon documentation.
‣ The VM is powered off.
1. Open the vCenter Web UI.
2. In the vCenter Web UI, right-click the ESXi host and choose Configure.
3. From the Hardware menu, choose PCI Devices.
4. On the PCI Devices page that opens, click ALL PCI DEVICES and in the table of
devices, select the GPU.
Note: When selecting the GPU to pass through, you must select only the physical
device. To list only NVIDIA physical devices, set the filter on the Vendor Name field to
NVIDIA and filter out any virtual function devices of the GPU by setting the filter on
the ID field to 00.0.
For more information about vDGA, see the following topics in the VMware Horizon
documentation:
The process for installing the NVIDIA vGPU software graphics driver depends on the OS
that you are using. However, for any OS, the process for installing the driver is the same
in a VM configured with vGPU, in a VM that is running pass-through GPU, or on a physical
host in a bare-metal deployment.
After you install the NVIDIA vGPU software graphics driver, you can license any NVIDIA
vGPU software licensed products that you are using.
The procedure for installing the driver is the same in a VM and on bare metal.
1. Copy the NVIDIA Windows driver package to the guest VM or physical host where you
are installing the driver.
2. Execute the package to unpack and run the driver installer.
NVIDIA Control Panel reports the vGPU or physical GPU that is being used, its
capabilities, and the NVIDIA driver version that is loaded.
Installation in a VM: After you install the NVIDIA vGPU software graphics driver, you can
license any NVIDIA vGPU software licensed products that you are using. For instructions,
refer to Virtual GPU Client Licensing User Guide.
Note: The graphics driver for Windows in this release of NVIDIA vGPU software is
distributed in a DCH-compliant package. A DCH-compliant package differs from a driver
package that is not DCH compliant in the following ways:
‣ The Windows registry key for license settings for a DCH-compliant package is
different than the key for a driver package that is not DCH compliant. If you are
upgrading from a driver package that is not DCH compliant in a VM that was
previously licensed, you must reconfigure the license settings for the VM. Existing
license settings are not propagated to the new Windows registry key for a DCH-
compliant package.
‣ NVIDIA System Management Interface, nvidia-smi, is installed in a folder that is in
the default executable path.
‣ The NVWMI binary files are installed in the Windows Driver Store under
%SystemDrive%:\Windows\System32\DriverStore\FileRepository\.
‣ NVWMI help information in Windows Help format is not installed with graphics driver
for Windows guest OSes.
Installation on bare metal: After you install the NVIDIA vGPU software graphics driver,
complete the bare-metal deployment as explained in Bare-Metal Deployment.
1. Download and extract the standalone NVIDIA Control Panel installer from NVIDIA
Licensing Portal.
2. Copy the extracted standalone NVIDIA Control Panel installer to the guest VM or
physical host where you are installing the NVIDIA Control Panel app.
3. Double-click the installer executable file to start the installer.
4. When asked if you want to allow the installer app to make changes to your device,
click Yes.
5. Accept the NVIDA software license agreement.
6. Select the Express installation option and click NEXT.
7. When the installation is complete, click CLOSE to close the installer.
The NVIDIA Control Panel app opens.
Installation on bare metal: When the physical host is booted before the NVIDIA vGPU
software graphics driver is installed, the vesa Xorg driver starts the X server. If a primary
display device is connected to the host, use the device to access the desktop. Otherwise,
use secure shell (SSH) to log in to the host from a remote host.
In addition to the proprietary release of the NVIDIA vGPU software graphics driver for
Linux, a release that is based on NVIDIA Linux open GPU kernel modules is also available.
The release that is based on NVIDIA Linux open GPU kernel modules is compatible with
the following NVIDIA vGPU software deployments:
‣ NVIDIA vGPU deployments on GPUs that are based on the NVIDIA Ada Lovelace GPU
architecture or later architectures
‣ Bare-metal deployments on GPUs that are based on the NVIDIA Turing GPU
architecture or later architectures
The release that is based on NVIDIA Linux open GPU kernel modules can be installed only
from the .run file, not from a Debian package or RPM package.
The procedure for installing the driver is the same in a VM and on bare metal.
Before installing the NVIDIA vGPU software graphics driver, ensure that the following
prerequisites are met:
‣ OpenSSL is installed in the VM. If OpenSSL is not installed, the VM will not be able to
obtain NVIDIA vGPU software licenses.
‣ NVIDIA Direct Rendering Manager Kernel Modesetting (DRM KMS) is disabled. By
default, DRM KMS is disabled. However, if it has been enabled, remove nvidia-
drm.modeset=1 from the kernel command-line options.
‣ If the VM uses UEFI boot, ensure that secure boot is disabled.
‣ If the Nouveau driver for NVIDIA graphics cards is present, disable it. For instructions,
refer to as explained in Disabling the Nouveau Driver for NVIDIA Graphics Cards.
‣ If you are using a Linux OS for which the Wayland display server protocol is enabled
by default, disable it as explained in Disabling the Wayland Display Server Protocol for
Red Hat Enterprise Linux.
How to install the NVIDIA vGPU softwaregraphics driver on Linux depends on the
distribution format from which you are installing the driver. For detailed instructions, refer
to:
‣ Installing the NVIDIA vGPU Software Graphics Driver on Linux from a .run File
‣ Installing the NVIDIA vGPU Software Graphics Driver on Ubuntu from a Debian
Package
‣ Installing the NVIDIA vGPU Software Graphics Driver on Red Hat Distributions from an
RPM Package
Installation in a VM: After you install the NVIDIA vGPU software graphics driver, you can
license any NVIDIA vGPU software licensed products that you are using. For instructions,
refer to Virtual GPU Client Licensing User Guide.
Installation on bare metal: After you install the NVIDIA vGPU software graphics driver,
complete the bare-metal deployment as explained in Bare-Metal Deployment.
‣ Compiler toolchain
‣ Kernel headers
If a driver has previously been installed on the guest VM or physical host from a Debian
package or RPM package, uninstall that driver before installing the driver from a .run file.
If Dynamic Kernel Module Support (DKMS) is enabled, ensure that the dkms package is
installed.
1. Copy the NVIDIA vGPU software Linux driver package, for example NVIDIA-
Linux_x86_64-550.127.05-grid.run, to the guest VM or physical host where you are
installing the driver.
2. Before attempting to run the driver installer, exit the X server and terminate all
OpenGL applications.
‣ On Red Hat Enterprise Linux and CentOS systems, exit the X server by
transitioning to runlevel 3:
[nvidia@localhost ~]$ sudo init 3
‣ On Ubuntu platforms, do the following:
a). Switch to a console login prompt.
‣ To install the proprietary release of the driver, run the driver installer without any
additional options.
sudo sh ./NVIDIA-Linux_x86_64-550.127.05-grid.run
‣ To install the release that is based on NVIDIA Linux open GPU kernel modules, run
the driver installer with the -m=kernel-open option.
sudo sh ./NVIDIA-Linux_x86_64-550.127.05-grid.run -m=kernel-open
If DKMS is enabled, set the -dkms option. This option requires the dkms package to be
installed.
sudo sh ./NVIDIA-Linux_x86_64-550.127.05-grid.run -dkms
In some instances, the installer may fail to detect the installed kernel headers and
sources. In this situation, rerun the installer, specifying the kernel source path with
the --kernel-source-path option.
sudo sh ./NVIDIA-Linux_x86_64-550.127.05-grid.run \
–kernel-source-path=/usr/src/kernels/3.10.0-229.11.1.el7.x86_64
4. When prompted, accept the option to update the X configuration file (xorg.conf).
1. Copy the NVIDIA vGPU software Linux driver package, for example nvidia-linux-
grid-550_550.127.05_amd64.deb, to the guest VM where you are installing the driver.
2. Log in to the guest VM as a user with sudo privileges.
3. Open a command shell and change to the directory that contains the NVIDIA vGPU
software Linux driver package.
4. From the command shell, run the command to install the package.
$ sudo apt-get install ./nvidia-linux-grid-550_550.127.05_amd64.deb
5. Verify that the NVIDIA driver is operational.
a). Reboot the system and log in.
b). After the system has rebooted, confirm that you can see your NVIDIA vGPU device
in the output from the nvidia-smi command.
$ nvidia-smi
1. Copy the NVIDIA vGPU software Linux driver package, for example nvidia-linux-
grid-550_550.127.05_amd64.rpm, to the guest VM where you are installing the driver.
2. Log in to the guest VM as a user with root user privileges.
3. Open a command shell and change to the directory that contains the NVIDIA vGPU
software Linux driver package.
4. From the command shell, run the command to install the package.
$ rpm -iv ./nvidia-linux-grid-550_550.127.05_amd64.rpm
5. Verify that the NVIDIA driver is operational.
a). Reboot the system and log in.
b). After the system has rebooted, confirm that you can see your NVIDIA vGPU device
in the output from the nvidia-smi command.
$ nvidia-smi
Note: If you are using SUSE Linux Enterprise Server, you can skip this task because the
Nouveau driver is not present in SUSE Linux Enterprise Server.
Run the following command and if the command prints any output, the Nouveau driver is
present and must be disabled.
$ lsmod | grep nouveau
1. In a plain text editor, edit the file /etc/gdm/custom.conf and remove the comment
from the option WaylandEnable=false.
2. Save your changes to /etc/gdm/custom.conf.
3. Reboot the host or guest VM.
Note:
For NVIDIA vGPU deployments on Linux and all NVIDIA vGPU software deployments on
Windows, omit this task.
GSP firmware is supported with NVIDIA vGPU deployments on GPUs that are based
on the NVIDIA Ada Lovelace GPU architecture. For NVIDIA vGPU deployments on Linux
and all NVIDIA vGPU software deployments on Windows on GPUs based on earlier GPU
architectures, GSP is also not supported but GSP firmware is already disabled.
For each NVIDIA vGPU software product, the following table lists whether GSP is
supported in deployments in which GSP firmware can be enabled. The table also
summarizes the behavior of NVIDIA vGPU software if a VM or host requests a license
when GSP firmware is enabled. The deployments in which GSP firmware can be enabled
are GPU pass through and bare-metal deployments on Linux.
When a license request is blocked, the following error message is written to the licensing
event log file at the location given in Virtual GPU Client Licensing User Guide:
Invalid feature requested for the underlying GSP firmware configuration.
Disable GSP firmware to use this feature.
Perform this task on the VM to which the GPU is passed through or on the bare-metal
host.
Ensure that the NVIDIA vGPU software graphics driver for Linux is installed on the VM or
bare-metal host.
‣ If GSP firmware is enabled, the command displays the GSP firmware version, for
example:
GSP Firmware Version : 550.127.05
‣ Otherwise, the command displays N/A as the GSP firmware version.
3. If GSP firmware is enabled, disable it by setting the NVIDIA module parameter
NVreg_EnableGpuFirmware to 0.
If you later need to enable GSP firmware, set the NVIDIA module parameter
NVreg_EnableGpuFirmware to 1.
NVIDIA vGPU is a licensed product. When booted on a supported GPU, a vGPU initially
operates at full capability but its performance is degraded over time if the VM fails to
obtain a license. If the performance of a vGPU has been degraded, the full capability
of the vGPU is restored when a license is acquired. For information about how the
performance of an unlicensed vGPU is degraded, see Virtual GPU Client Licensing User
Guide.
After you license NVIDIA vGPU, the VM that is set up to use NVIDIA vGPU is capable of
running the full range of DirectX and OpenGL graphics applications.
If licensing is configured, the virtual machine (VM) obtains a license from the license
server when a vGPU is booted on these GPUs. The VM retains the license until it is shut
down. It then releases the license back to the license server. Licensing settings persist
across reboots and need only be modified if the license server address changes, or the
VM is switched to running GPU pass through.
Note: For complete information about configuring and using NVIDIA vGPU software
licensed features, including vGPU, refer to Virtual GPU Client Licensing User Guide.
‣ Ports 443 and 80 in your firewall or proxy must be open to allow HTTPS traffic
between a service instance and its the licensed clients. These ports must be open for
both CLS instances and DLS instances.
Note: For DLS releases before DLS 1.1, ports 8081 and 8082 were also required to be
open to allow HTTPS traffic between a DLS instance and its licensed clients. Although
these ports are no longer required, they remain supported for backward compatibility.
The graphics driver creates a default location in which to store the client configuration
token on the client.
The process for configuring a licensed client is the same for CLS and DLS instances but
depends on the OS that is running on the client.
The NVIDIA service on the client should now automatically obtain a license from the CLS
or DLS instance.
Note: You can create the /etc/nvidia/gridd.conf file by copying the supplied
template file /etc/nvidia/gridd.conf.template.
Note: You can also perform this step from NVIDIA X Server Settings. Before using
NVIDIA X Server Settings to perform this step, ensure that this option has been
enabled as explained in Virtual GPU Client Licensing User Guide.
This example shows how to configure a licensed Linux client for NVIDIA RTX Virtual
Workstation.
# /etc/nvidia/gridd.conf.template - Configuration file for NVIDIA Grid Daemon
…
# Description: Set Feature to be enabled
# Data type: integer
# Possible values:
# 0 => for unlicensed state
# 1 => for NVIDIA vGPU
# 2 => for NVIDIA RTX Virtual Workstation
# 4 => for NVIDIA Virtual Compute Server
FeatureType=2
...
3. Copy the client configuration token to the /etc/nvidia/ClientConfigToken
directory.
4. Ensure that the file access modes of the client configuration token allow the owner to
read, write, and execute the token, and the group and others only to read the token.
a). Determine the current file access modes of the client configuration token.
# ls -l client-configuration-token-directory
b). If necessary, change the mode of the client configuration token to 744.
# chmod 744 client-configuration-token-directory/client_configuration_token_*.tok
client-configuration-token-directory
The directory to which you copied the client configuration token in the previous
step.
5. Save your changes to the /etc/nvidia/gridd.conf file and close the file.
6. Restart the nvidia-gridd service.
The NVIDIA service on the client should now automatically obtain a license from the CLS
or DLS instance.
Attached GPUs : 2
GPU 00000000:02:03.0
Product Name : NVIDIA A2-8Q
Product Brand : NVIDIA RTX Virtual Workstation
Product Architecture : Ampere
Display Mode : Enabled
Display Active : Disabled
Persistence Mode : Enabled
MIG Mode
Current : Disabled
Pending : Disabled
Accounting Mode : Disabled
Accounting Mode Buffer Size : 4000
Driver Model
Current : N/A
Pending : N/A
Serial Number : N/A
GPU UUID : GPU-ba5b1e9b-1dd3-11b2-be4f-98ef552f4216
Minor Number : 0
VBIOS Version : 00.00.00.00.00
MultiGPU Board : No
Board ID : 0x203
Board Part Number : N/A
GPU Part Number : 25B6-890-A1
Module ID : N/A
Inforom Version
Image Version : N/A
OEM Object : N/A
ECC Object : N/A
Power Management Object : N/A
GPU Operation Mode
Current : N/A
Pending : N/A
GSP Firmware Version : N/A
GPU Virtualization Mode
Virtualization Mode : VGPU
Host VGPU Mode : N/A
vGPU Software Licensed Product
Product Name : NVIDIA RTX Virtual Workstation
License Status : Licensed (Expiry: 2022-11-23 10:41:16
GMT)
…
…
You can modify a VM's NVIDIA vGPU configuration by removing the NVIDIA vGPU
configuration from a VM or by modifying GPU allocation policy.
Note: The VM must be in the powered-off state in order for its vGPU configuration to be
modified or removed.
2. Click OK.
1. Select Edit settings after right-clicking on the VM in the vCenter Web UI.
2. Select the Virtual Hardware tab.
3. Mouse over the PCI Device entry showing NVIDIA GRID vGPU and click on the (X) icon
to mark the device for removal.
4. Click OK to remove the device and update the VM settings.
[root@xenserver ~]#
5. In the Edit Host Graphics Settings dialog box that opens, select these options and
click OK.
a). If not already selected, select Shared Direct.
b). Select Group VMs on GPU until full.
After you click OK, the default graphics type changes to Shared Direct and the
allocation scheme for vGPU-enabled VMs is breadth-first.
Note:
vGPU migration is disabled for a VM for which any of the following NVIDIA CUDA Toolkit
features is enabled:
‣ Unified memory
‣ Debuggers
‣ Profilers
How to migrate a VM configured with vGPU depends on the hypervisor that you are using.
After migration, the vGPU type of the vGPU remains unchanged.
The time required for migration depends on the amount of frame buffer that the vGPU
has. Migration for a vGPU with a large amount of frame buffer is slower than for a vGPU
with a small amount of frame buffer.
1. In Citrix XenCenter, context-click the VM and from the menu that opens, choose
Migrate.
2. From the list of available hosts, select the destination host to which you want to
migrate the VM.
The destination host must have a physical GPU of the same type as the GPU where
the vGPU currently resides. Furthermore, the physical GPU must be capable of hosting
the vGPU. If these requirements are not met, no available hosts are listed.
‣ Virtual GPU Software for Red Hat Enterprise Linux with KVM Release Notes
‣ Virtual GPU Software for Ubuntu Release Notes
Perform this task in a Linux command shell on the Linux with KVM hypervisor host on
which the VM to be migrated is running.
Before migrating a VM configured with vGPU on a Linux with KVM hypervisor, ensure that
the prerequisites listed for all supported hypervisors in Migrating a VM Configured with
vGPU are met.
1. Set the maximum downtime of the VM to a length of time that is greater than the
time required to complete the migration.
If the VM is heavily loaded, migration might not be completed within the default
maximum downtime. To ensure that migration of the VM is completed, ensure that
the maxim downtime exceeds the time required to complete the migration.
# virsh migrate-setmaxdowntime --domain vm-name --downtime length
vm-name
The name of the VM on the local host that you want to migrate.
length
The maximum downtime of the VM in milliseconds.
This example sets the maximum downtime of the VM named guestvm on the local
host to 10 s (10,000 ms).
# virsh migrate-setmaxdowntime --domain guestvm --downtime 10000
2. Run the following virsh migrate command:
For more information, refer to Migrating virtual machines in the product documentation
for Red Hat Enterprise Linux 9.
‣ Virtual GPU Software for Red Hat Enterprise Linux with KVM Release Notes
‣ Virtual GPU Software for Ubuntu Release Notes
Perform this task in a Linux command shell on the Linux with KVM hypervisor host on
which the VM to be suspended is running or on which the VM to be resumed will run.
‣ To suspend a VM, use the virsh save command to save the state of the VM to a file.
# virsh save vm-name vm-state-file
vm-name
The name of the VM on the local host that you want to suspend.
vm-state-file
The name of the file to which you want to save the state of the VM.
This example suspends the VM named guestvm on the local host to by saving its state
to the file guestvm-state.save.
# virsh save guestvm guestvm-state.save
‣ To resume a VM, use the virsh restore command to restore the VM from a file to
which the state of the VM has previously been saved.
# virsh restore vm-state-file
vm-state-file
The name of the file to which the state of the VM has previously been saved..
This example resumes the VM named guestvm on the local host to by restoring its
state from the file guestvm-state.save.
# virsh restore guestvm-state.save
‣ Your hosts are correctly configured for VMware vMotion. See Host Configuration for
vMotion in the VMware documentation.
‣ The prerequisites listed for all supported hypervisors in Migrating a VM Configured
with vGPU are met.
‣ NVIDIA vGPU migration is configured. See Configuring VMware vMotion with vGPU for
VMware vSphere.
1. Context-click the VM and from the menu that opens, choose Migrate.
2. For the type of migration, select Change compute resource only and click Next.
If you select Change both compute resource and storage, the time required for the
migration increases.
3. Select the destination host and click Next.
The destination host must have a physical GPU of the same type as the GPU where
the vGPU currently resides. Furthermore, the physical GPU must be capable of hosting
the vGPU. If these requirements are not met, no available hosts are listed.
4. Select the destination network and click Next.
5. Select the migration priority level and click Next.
6. Review your selections and click Finish.
For more information, see the following topics in the VMware documentation:
If NVIDIA vGPU migration is not configured, any attempt to migrate a VM with an NVIDIA
vGPU fails and a window containing the following error message is displayed:
Compatibility Issue/Host
Migration was temporarily disabled due to another
migration activity.
vGPU hot migration is not enabled.
If you see this error, configure NVIDIA vGPU migration as explained in Configuring
VMware vMotion with vGPU for VMware vSphere.
If your version of VMware vSpehere ESXi does not support vMotion for VMs configured
with NVIDIA vGPU, any attempt to migrate a VM with an NVIDIA vGPU fails and a window
containing the following error message is displayed:
Compatibility Issues
...
A required migration feature is not supported on the "Source" host 'host-name'.
For details about which VMware vSphere versions, NVIDIA GPUs, and guest OS releases
support suspend and resume, see Virtual GPU Software for VMware vSphere Release Notes.
‣ To suspend a VM, context-click the VM that you want to suspend, and from the
context menu that pops up, choose Power > Suspend .
‣ To resume a VM, context-click the VM that you want to resume, and from the context
menu that pops up, choose Power > Power On .
The setting of this parameter is preserved after a guest VM is restarted and after the
hypervisor host is restarted.
Enabling NVIDIA CUDA Toolkit Debuggers for NVIDIA vGPU on Red Hat
Enterprise Linux KVM
Set the enable_debugging vGPU plugin parameter for the mdev device file that
represents the vGPU that is assigned to the VM to 1 as explained in Setting vGPU Plugin
Parameters on a Linux with KVM Hypervisor.
The setting of this parameter is preserved after a guest VM is restarted. However, this
parameter is reset to its default value after the hypervisor host is restarted.
vgpu-id
A positive integer that identifies the vGPU assigned to the VM. For the first vGPU
assigned to a VM, vgpu-id is 0. For example, if two vGPUs are assigned to a VM and you
are enabling debuggers for both vGPUs, set pciPassthru0.cfg.enable_debugging
and pciPassthru1.cfg.enable_debugging to 1.
The setting of this parameter is preserved after a guest VM is restarted. However, this
parameter is reset to its default value after the hypervisor host is restarted.
Note: Enabling profiling for a VM gives the VM access to the GPU’s global performance
counters, which may include activity from other VMs executing on the same GPU. Enabling
profiling for a VM also allows the VM to lock clocks on the GPU, which impacts all other
VMs executing on the same GPU.
Because NVIDIA CUDA Toolkit profilers can be used on only one VM at a time, you should
enable them for only one VM assigned a vGPU on a GPU. However, NVIDIA vGPU software
cannot enforce this requirement. If NVIDIA CUDA Toolkit profilers are enabled on more
than one VM assigned a vGPU on a GPU, profiling data is collected only for the first VM to
start the profiler.
The setting of this parameter is preserved after a guest VM is restarted and after the
hypervisor host is restarted.
Enabling NVIDIA CUDA Toolkit Profilers for NVIDIA vGPU on Red Hat
Enterprise Linux KVM
Set the enable_profiling vGPU plugin parameter for the mdev device file that
represents the vGPU that is assigned to the VM to 1 as explained in Setting vGPU Plugin
Parameters on a Linux with KVM Hypervisor.
The setting of this parameter is preserved after a guest VM is restarted. However, this
parameter is reset to its default value after the hypervisor host is restarted.
NVIDIA vGPU software enables you to monitor the performance of physical GPUs and
virtual GPUs from the hypervisor and from within individual guest VMs.
You can use several tools for monitoring GPU performance:
‣ From any supported hypervisor, and from a guest VM that is running a 64-bit edition
of Windows or Linux, you can use NVIDIA System Management Interface, nvidia-smi.
‣ From XenServer, you can use Citrix XenCenter.
‣ From a Windows guest VM, you can use these tools:
‣ Windows Performance Monitor
‣ Windows Management Instrumentation (WMI)
‣ From a hypervisor command shell, such as the XenServer dom0 shell or VMware ESXi
host shell, nvidia-smi reports management information for NVIDIA physical GPUs
and virtual GPUs present in the system.
Note: When run from a hypervisor command shell, nvidia-smi will not list any GPU
that is currently allocated for GPU pass-through.
‣ From a guest VM, nvidia-smi retrieves usage statistics for vGPUs or pass-through
GPUs that are assigned to the VM.
In a Windows guest VM, nvidia-smi is installed in a folder that is in the default
executable path. Therefore, you can run nvidia-smi from a command prompt from
any folder by running the nvidia-smi.exe command.
Note: You cannot monitor from the hypervisor the performance of GPUs that are being
used for GPU pass-through. You can monitor the performance of pass-through GPUs only
from within the guest VM that is using them.
Each vGPU instance is reported in the Compute processes section, together with its
physical GPU index and the amount of frame-buffer memory assigned to it.
In the example that follows, three vGPUs are running in the system: One vGPU is running
on each of the physical GPUs 0, 1, and 2.
[root@vgpu ~]# nvidia-smi
Fri Oct 25 09:26:18 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 550.127.06 Driver Version: 550.127.06 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla M60 On | 0000:83:00.0 Off | Off |
| N/A 31C P8 23W / 150W | 1889MiB / 8191MiB | 7% Default |
+-------------------------------+----------------------+----------------------+
| 1 Tesla M60 On | 0000:84:00.0 Off | Off |
| N/A 26C P8 23W / 150W | 926MiB / 8191MiB | 9% Default |
+-------------------------------+----------------------+----------------------+
| 2 Tesla M10 On | 0000:8A:00.0 Off | N/A |
| N/A 23C P8 10W / 53W | 1882MiB / 8191MiB | 12% Default |
+-------------------------------+----------------------+----------------------+
| 3 Tesla M10 On | 0000:8B:00.0 Off | N/A |
| N/A 26C P8 10W / 53W | 10MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 4 Tesla M10 On | 0000:8C:00.0 Off | N/A |
| N/A 34C P8 10W / 53W | 10MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 5 Tesla M10 On | 0000:8D:00.0 Off | N/A |
| N/A 32C P8 10W / 53W | 10MiB / 8191MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 11924 C+G /usr/lib64/xen/bin/vgpu 1856MiB |
| 1 11903 C+G /usr/lib64/xen/bin/vgpu 896MiB |
| 2 11908 C+G /usr/lib64/xen/bin/vgpu 1856MiB |
+-----------------------------------------------------------------------------+
[root@vgpu ~]#
+-------------------------------+--------------------------------+------------+
| 4 Tesla M10 | 0000:8C:00.0 | 0% |
+-------------------------------+--------------------------------+------------+
| 5 Tesla M10 | 0000:8D:00.0 | 0% |
+-------------------------------+--------------------------------+------------+
[root@vgpu ~]#
Attached GPUs : 3
GPU 00000000:C1:00.0
Product Name : Tesla T4
Product Brand : NVIDIA
Product Architecture : Turing
Display Mode : Enabled
Display Active : Disabled
Persistence Mode : Enabled
vGPU Device Capability
Fractional Multi-vGPU : Supported
Heterogeneous Time-Slice Profiles : Supported
Heterogeneous Time-Slice Sizes : Not Supported
MIG Mode
Current : N/A
Pending : N/A
Accounting Mode : Enabled
Accounting Mode Buffer Size : 4000
Driver Model
Current : N/A
Pending : N/A
Serial Number : 1321120031291
GPU UUID : GPU-9084c1b2-624f-2267-4b66-345583fbd981
Minor Number : 1
VBIOS Version : 90.04.38.00.03
MultiGPU Board : No
Board ID : 0xc100
Board Part Number : 900-2G183-0000-001
GPU Part Number : 1EB8-895-A1
Module ID : 0
Inforom Version
Image Version : G183.0200.00.02
OEM Object : 1.1
ECC Object : 5.0
Power Management Object : N/A
GPU Operation Mode
Current : N/A
Pending : N/A
GSP Firmware Version : N/A
GPU Virtualization Mode
Virtualization Mode : Host VGPU
Host VGPU Mode : Non SR-IOV
IBMNPU
Relaxed Ordering Mode : N/A
PCI
Bus : 0xC1
Device : 0x00
Domain : 0x0000
Device Id : 0x1EB810DE
Bus Id : 00000000:C1:00.0
Sub System Id : 0x12A210DE
GPU Link Info
PCIe Generation
Max : 3
Current : 1
Device Current : 1
Device Max : 3
Host Max : N/A
Link Width
Max : 16x
Current : 16x
Bridge Chip
Type : N/A
Firmware : N/A
Replays Since Reset : 0
Replay Number Rollovers : 0
Tx Throughput : 0 KB/s
Rx Throughput : 0 KB/s
Atomic Caps Inbound : N/A
Atomic Caps Outbound : N/A
Fan Speed : N/A
Performance State : P8
Clocks Throttle Reasons
Idle : Active
Applications Clocks Setting : Not Active
SW Power Cap : Not Active
HW Slowdown : Not Active
HW Thermal Slowdown : Not Active
HW Power Brake Slowdown : Not Active
Sync Boost : Not Active
SW Thermal Slowdown : Not Active
Display Clock Setting : Not Active
FB Memory Usage
Total : 15360 MiB
Reserved : 0 MiB
Used : 3859 MiB
Free : 11500 MiB
BAR1 Memory Usage
Total : 256 MiB
Used : 17 MiB
Free : 239 MiB
Compute Mode : Default
Utilization
Gpu : 0 %
Memory : 0 %
Encoder : 0 %
Decoder : 0 %
Encoder Stats
Active Sessions : 0
Average FPS : 0
Average Latency : 0
FBC Stats
Active Sessions : 0
Average FPS : 0
Average Latency : 0
Ecc Mode
Current : Enabled
Pending : Enabled
ECC Errors
Volatile
SRAM Correctable : 0
SRAM Uncorrectable : 0
DRAM Correctable : 0
DRAM Uncorrectable : 0
Aggregate
SRAM Correctable : 0
SRAM Uncorrectable : 0
DRAM Correctable : 0
DRAM Uncorrectable : 0
Retired Pages
Single Bit ECC : 0
Double Bit ECC : 0
Pending Page Blacklist : No
Remapped Rows : N/A
Temperature
GPU Current Temp : 35 C
GPU Shutdown Temp : 96 C
GPU Slowdown Temp : 93 C
GPU Max Operating Temp : 85 C
GPU Target Temperature : N/A
Memory Current Temp : N/A
Memory Max Operating Temp : N/A
Power Readings
Power Management : Supported
Power Draw : 16.57 W
Power Limit : 70.00 W
Default Power Limit : 70.00 W
Enforced Power Limit : 70.00 W
Min Power Limit : 60.00 W
Max Power Limit : 70.00 W
Clocks
Graphics : 300 MHz
SM : 300 MHz
Memory : 405 MHz
Video : 540 MHz
Applications Clocks
Graphics : 585 MHz
Memory : 5001 MHz
Default Applications Clocks
Graphics : 585 MHz
Memory : 5001 MHz
Deferred Clocks
Memory : N/A
Max Clocks
Graphics : 1590 MHz
SM : 1590 MHz
Memory : 5001 MHz
Video : 1470 MHz
Max Customer Boost Clocks
Graphics : 1590 MHz
Clock Policy
Auto Boost : N/A
Auto Boost Default : N/A
Voltage
Graphics : N/A
Fabric
State : N/A
Status : N/A
Processes
GPU instance ID : N/A
Compute instance ID : N/A
Process ID : 2103065
Type : C+G
Name : Win11SV2_View87
Used GPU Memory : 3810 MiB
[root@vgpu ~]#
Statistic Column
3D/Compute sm
Statistic Column
Video encoder enc
Each reported percentage is the percentage of the physical GPU’s capacity that a vGPU
is using. For example, a vGPU that uses 20% of the GPU’s graphics engine’s capacity will
report 20%.
To modify the reporting frequency, use the –l or --loop option.
To limit monitoring to a subset of the GPUs on the platform, use the –i or --id option to
select one or more GPUs.
[root@vgpu ~]# nvidia-smi vgpu -u
# gpu vgpu sm mem enc dec
# Idx Id % % % %
0 11924 6 3 0 0
1 11903 8 3 0 0
2 11908 10 4 0 0
3 - - - - -
4 - - - - -
5 - - - - -
0 11924 6 3 0 0
1 11903 9 3 0 0
2 11908 10 4 0 0
3 - - - - -
4 - - - - -
5 - - - - -
0 11924 6 3 0 0
1 11903 8 3 0 0
2 11908 10 4 0 0
3 - - - - -
4 - - - - -
5 - - - - -
^C[root@vgpu ~]#
For each application on each vGPU, the usage statistics in the following table are reported
once every second. Each application is identified by its process ID and process name.
The table also shows the name of the column in the command output under which each
statistic is reported.
Statistic Column
3D/Compute sm
Each reported percentage is the percentage of the physical GPU’s capacity used by
an application running on a vGPU that resides on the physical GPU. For example, an
application that uses 20% of the GPU’s graphics engine’s capacity will report 20%.
To modify the reporting frequency, use the –l or --loop option.
To limit monitoring to a subset of the GPUs on the platform, use the –i or --id option to
select one or more GPUs.
[root@vgpu ~]# nvidia-smi vgpu -p
# GPU vGPU process process sm mem enc dec
# Idx Id Id name % % % %
0 38127 1528 dwm.exe 0 0 0 0
1 37408 4232 DolphinVS.exe 32 25 0 0
1 257869 4432 FurMark.exe 16 12 0 0
1 257969 4552 FurMark.exe 48 37 0 0
0 38127 1528 dwm.exe 0 0 0 0
1 37408 4232 DolphinVS.exe 16 12 0 0
1 257911 656 DolphinVS.exe 32 24 0 0
1 257969 4552 FurMark.exe 48 37 0 0
0 38127 1528 dwm.exe 0 0 0 0
1 257869 4432 FurMark.exe 38 30 0 0
1 257911 656 DolphinVS.exe 19 14 0 0
1 257969 4552 FurMark.exe 38 30 0 0
0 38127 1528 dwm.exe 0 0 0 0
1 257848 3220 Balls64.exe 16 12 0 0
1 257869 4432 FurMark.exe 16 12 0 0
1 257911 656 DolphinVS.exe 16 12 0 0
1 257969 4552 FurMark.exe 48 37 0 0
0 38127 1528 dwm.exe 0 0 0 0
1 257911 656 DolphinVS.exe 32 25 0 0
1 257969 4552 FurMark.exe 64 50 0 0
0 38127 1528 dwm.exe 0 0 0 0
1 37408 4232 DolphinVS.exe 16 12 0 0
1 257911 656 DolphinVS.exe 16 12 0 0
1 257969 4552 FurMark.exe 64 49 0 0
0 38127 1528 dwm.exe 0 0 0 0
1 37408 4232 DolphinVS.exe 16 12 0 0
1 257869 4432 FurMark.exe 16 12 0 0
1 257969 4552 FurMark.exe 64 49 0 0
[root@vgpu ~]#
To monitor the encoder sessions for processes running on multiple vGPUs, run nvidia-
smi vgpu with the –es or --encodersessions option.
For each encoder session, the following statistics are reported once every second:
‣ GPU ID
‣ vGPU ID
‣ Encoder session ID
‣ PID of the process in the VM that created the encoder session
‣ Codec type, for example, H.264 or H.265
For each FBC session, the following statistics are reported once every second:
‣ GPU ID
‣ vGPU ID
‣ FBC session ID
‣ PID of the process in the VM that created the FBC session
2 - - - - - - -
- - - - - - -
# GPU vGPU Session Process Display Session Diff. Map Class. Map
Capture Max H Max V H V Average Average
# Idx Id Id Id Ordinal Type State State
Mode Res Res Res Res FPS Latency(us)
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 1600 900 135 7400
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 1600 900 227 4403
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 1600 900 227 4403
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
# GPU vGPU Session Process Display Session Diff. Map Class. Map
Capture Max H Max V H V Average Average
# Idx Id Id Id Ordinal Type State State
Mode Res Res Res Res FPS Latency(us)
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
0 - - - - - - -
- - - - - - -
1 3251634178 1 3984 0 ToSys Disabled Disabled
Blocking 4096 2160 0 0 0 0
2 - - - - - - -
- - - - - - -
^C[root@vgpu ~]#
To view detailed information about the supported vGPU types, add the –v or --verbose
option:
[root@vgpu ~]# nvidia-smi vgpu -s -i 0 -v | less
GPU 00000000:40:00.0
vGPU Type ID : 0xc
Name : GRID M60-0Q
Class : Quadro
GPU Instance Profile ID : N/A
Max Instances : 16
Max Instances Per VM : 1
Multi vGPU Exclusive : False
vGPU Exclusive Type : False
vGPU Exclusive Size : False
Device ID : 0x13f210de
Sub System ID : 0x13f2114c
FB Memory : 512 MiB
Display Heads : 2
Maximum X Resolution : 2560
Maximum Y Resolution : 1600
Frame Rate Limit : 60 FPS
GRID License : Quadro-Virtual-DWS,5.0;GRID-Virtual-
WS,2.0;GRID-Virtual-WS-Ext,2.0
vGPU Type ID : 0xf
Name : GRID M60-1Q
Class : Quadro
GPU Instance Profile ID : N/A
Max Instances : 8
Max Instances Per VM : 1
Multi vGPU Exclusive : False
vGPU Exclusive Type : False
vGPU Exclusive Size : False
Device ID : 0x13f210de
Sub System ID : 0x13f2114d
FB Memory : 1024 MiB
Display Heads : 4
Maximum X Resolution : 5120
Maximum Y Resolution : 2880
Frame Rate Limit : 60 FPS
GRID License : Quadro-Virtual-DWS,5.0;GRID-Virtual-
WS,2.0;GRID-Virtual-WS-Ext,2.0
This property is a dynamic property that reflects the number and type of vGPUs that are
already running on the GPU.
‣ If no vGPUs are running on the GPU, all vGPU types that the GPU supports are listed.
‣ If one or more vGPUs are running on the GPU, but the GPU is not fully loaded, only the
type of the vGPUs that are already running is listed.
‣ If the GPU is fully loaded, no vGPU types are listed.
To limit the retrieved information to a subset of the GPUs on the platform, use the –i or
--id option to select one or more GPUs.
[root@vgpu ~]# nvidia-smi vgpu -c -i 0
GPU 0000:83:00.0
GRID M60-2Q
[root@vgpu ~]#
To view detailed information about the vGPU types that can currently be created, add the
–v or --verbose option.
Counters are listed for each physical GPU not currently being used for GPU pass-through.
‣ 3D/Compute
‣ Memory controller
‣ Video encoder
‣ Video decoder
‣ Frame buffer usage
Other metrics normally present in a GPU are not applicable to a vGPU and are reported as
zero or N/A, depending on the tool that you are using.
‣ GPU
‣ Video encoder
‣ Video decoder
‣ Frame buffer
To use nvidia-smi to retrieve statistics for the total resource usage by all applications
running in the VM, run the following command:
nvidia-smi dmon
The following example shows the result of running nvidia-smi dmon from within a
Windows guest VM.
On vGPUs, the following GPU performance counters read as 0 because they are not
applicable to vGPUs:
‣ % Bus Usage
‣ % Cooler rate
‣ Core Clock MHz
‣ Fan Speed
‣ Memory Clock MHz
‣ PCI-E current speed to GPU Mbps
‣ PCI-E current width to GPU
‣ PCI-E downstream width to GPU
‣ Power Consumption mW
‣ Temperature C
driver package. The NVWMI API Reference in Windows Help format is available for
download from the NVIDIA website.
Any WMI-enabled application can access these metrics. The following example shows
GPU metrics in the third-party application WMI Explorer, which is available for download
from the from the CodePlex WMI Explorer page.
On vGPUs, some instance properties of the following classes do not apply to vGPUs:
‣ Gpu
‣ PcieLink
NVIDIA GPUs based on the NVIDIA Maxwell™ graphic architecture implement a best
effort vGPU scheduler that aims to balance performance across vGPUs. The best effort
scheduler allows a vGPU to use GPU processing cycles that are not being used by other
vGPUs. Under some circumstances, a VM running a graphics-intensive application may
adversely affect the performance of graphics-light applications running in other VMs.
GPUs based on NVIDIA GPU architectures after the Maxwell architecture additionally
support equal share and fixed share vGPU schedulers. These schedulers impose a limit on
GPU processing cycles used by a vGPU, which prevents graphics-intensive applications
running in one VM from affecting the performance of graphics-light applications running
in other VMs. On GPUs that support multiple vGPU schedulers, you can select the vGPU
scheduler to use. You can also set the length of the time slice for the equal share and
fixed share vGPU schedulers.
Note: If you use the equal share or fixed share vGPU scheduler, the frame-rate limiter
(FRL) is disabled.
The best effort scheduler is the default scheduler for all supported GPU architectures.
If you are unsure of the NVIDIA GPU architecture of your GPU, consult the release notes
for your hypervisor at NVIDIA Virtual GPU Software Documentation.
may increase as other vGPUs on the same GPU are stopped, or decrease as other
vGPUs are started on the same GPU.
Fixed share scheduler
Each vGPU is given a fixed share of the physical GPU's processing cycles, the amount
of which depends on the vGPU type, which in turn determines the maximum number
of vGPUs per physical GPU. For example, the maximum number of T4-4Q vGPUs per
physical GPU is 4. When the scheduling policy is fixed share, each T4-4Q vGPU is given
one quarter, or 25%, the physical GPU's processing cycles. As vGPUs are added to or
removed from a GPU, the share of the GPU's processing cycles allocated to each vGPU
remains constant. As a result, the performance of a vGPU remains unchanged as other
vGPUs are stopped or started on the same GPU.
Note: For time-sliced vGPUs with different amounts of frame buffer on the same physical
GPU, only the best effort and equal share schedulers are supported. The fixed share
scheduler is not supported.
By default, these schedulers impose a strict round-robin scheduling policy. When this
policy is enforced, the schedulers maintain scheduling fairness by adjusting the time
slice for each VM that is configured with NVIDIA vGPU. The strict round-robin scheduling
policy ensures more consistent scheduling of the work for VMs that are configured with
NVIDIA vGPU and restricts the impact of GPU-intensive applications running in one VM on
applications running in other VMs.
Instead of a strict round-robin scheduling policy, you can ensure scheduling fairness
by scheduling the work for the vGPU that has spent the least amount of time in the
scheduled state. This behavior was the default scheduling behavior in NVIDIA vGPU
software releases before 15.0.
When a strict round-robin scheduling policy is enforced, the adjustment to the time slice
is based on the scheduling frequency and an averaging factor.
Scheduling frequency
The number of times per second that work for a specific vGPU is scheduled. The
default scheduling frequency depends on the number of vGPUs that reside on the
physical GPU:
‣ If fewer than eight vGPUs reside on the physical GPU, the default is 480 Hz.
‣ If eight or more vGPUs reside on the physical GPU, the default is 960 Hz.
Averaging factor
A number that determines the moving average of time-slice overshoots accrued for
each vGPU. This average controls the strictness with which the scheduling frequency is
enforced. A high value for the averaging factor enforces the scheduling frequency less
strictly than a low value.
Deviations from the specified scheduling frequency occur because the actual amount
of time that a scheduler allocates to a VM might exceed, or overshoot, the time slice
specified for the VM. A scheduler enforces the scheduling frequency by shortening the
next time slice for each vGPU VM to compensate for the accrued overshoot time of
the VM.
To calculate the amount by which to shorten the next time slice for a vGPU VM, the
scheduler maintains a running total of the accrued overshoot time for each vGPU
VM. This amount is equal to the running total divided by the averaging factor that you
specify. The calculated amount is also subtracted from the accrued overshoot time. A
high value for the averaging factor enforces the scheduling frequency less strictly by
spreading the compensation for the accrued overshoot time over a longer period.
‣ For workloads that require low latency, a shorter time slice is optimal. Typically, these
workloads are applications that must generate output at a fixed interval, such as
graphics applications that generate output at a frame rate of 60 FPS. These workloads
are sensitive to latency and should be allowed to run at least once per interval. A
shorter time slice reduces latency and improves responsiveness by causing the
scheduler to switch more frequently between VMs.
‣ For workloads that require maximum throughput, a longer time slice is optimal.
Typically, these workloads are applications that must complete their work as quickly as
possible and do not require responsiveness, such as CUDA applications. A longer time
slice increases throughput by preventing frequent switching between VMs.
support multiple scheduling policies, whether the vGPU supports and enforces a strict
round-robin scheduling policy.
‣ If the vGPU engine type is graphics, the vGPU scheduler capability values consist of
the supported scheduling policies and other values that affect how the work for each
VM that is configured with NVIDIA vGPU is allocated. The capability values that are
applicable depend on whether the vGPU supports and enforces a strict round-robin
scheduling policy.
‣ If the vGPU supports and enforces a strict round-robin scheduling policy, the
values for the scheduling frequency and averaging factor are applicable.
‣ Otherwise, the values for the supported time slice range applicable.
‣ If the vGPU engine type is any type other than graphics, the only vGPU scheduler
capability value indicates support for the best effort scheduling policy. All other
capability values are zero.
To get the scheduler capabilities of all time-sliced vGPUs on the platform, run nvidia-smi
vgpu with the –sc or --schedulercaps option.
To limit the information retrieved to a subset of the GPUs on the platform, use the –i or
--id option to select one or more GPUs.
[root@vgpu ~]# nvidia-smi vgpu -sc
vGPU scheduler capabilities
Supported Policies : Best Effort
Equal Share
Fixed Share
ARR Mode : Supported
Supported Timeslice Range
Maximum Timeslice : 30000000 ns
Minimum Timeslice : 1000000 ns
Supported Scheduling Frequency
Maximum Frequency : 960
Minimum Frequency : 63
Supported ARR Averaging Factor
Maximum Avg Factor : 60
Minimum Avg Factor : 1
To limit the information retrieved to a subset of the GPUs on the platform, use the –i or
--id option to select one or more GPUs.
The following examples show the scheduler state information that is retrieved for a
vGPU when the VM that is configured with the vGPU is not running and is running. In
these examples, the scheduling policy is equal share scheduler with a strict round-robin
scheduling policy and the default time slice length, scheduling frequency, and averaging
factor.
Note: For a VM that is not running, ARR Mode, Average Factor, and Time Slice are not
listed.
To limit the information retrieved to a subset of the GPUs on the platform, use the –i or
--id option to select one or more GPUs.
‣ BEST_EFFORT
‣ EQUAL_SHARE
‣ FIXED_SHARE
If the scheduling policy is equal share or fixed share, the scheduler time slice in ms is
also displayed.
This example gets the scheduling policy of the GPUs in a system in which the policy
of one GPU is set to best effort, one GPU is set to equal share, and one GPU is set to
fixed share.
$ dmesg | grep NVRM | grep scheduler
‣ If you require the changes to be applied immediately, use the nvidia-smi command.
If you use the nvidia-smi command, you do not need to reload the driver or reboot
the hypervisor host to apply your changes. However, your changes are volatile and do
not persist in the following circumstances:
To change the scheduling behavior for time-sliced vGPUs, run nvidia-smi vgpu set-
scheduler-state with its associated options.
For more information about these options, refer to Scheduling Policies for Time-Sliced
vGPUs.
–i gpu-id
--id gpu-id
gpu-id is the identifier of the GPU on which you want to change the scheduling
behavior of time-sliced vGPUs in one of the following formats:
‣ The GPU's 0-based index in the natural enumeration returned by the driver
‣ The GPU's universally unique identifier (UUID)
‣ The GPU's PCI bus ID in the form domain:bus:device.function in hexadecimal.
This option is not mandatory. If it is omitted, the scheduling behavior of time-sliced
vGPUs for all GPUs on the platform is changed.
-p S
--policy S
S is a decimal integer in the range 1-3 that sets the scheduler to use:
If S is not a decimal integer in the range 1-3, the attempt to set the scheduler to use
fails and the nvidia-smi command displays the following error message:
Unable to set the vGPU scheduler state. Not supported
-a R
--arr-mode R
R is a Boolean parameter that enables or disables a strict round-robin scheduling policy
for the scheduler:
If a strict round-robin scheduling policy for the scheduler is enabled, the -asf and
-aavg options can also be used to set the scheduling frequency and averaging
factor.
For equal share and fixed share schedulers, this parameter is optional. If omitted, --
arr-mode is set to 1 to enable a strict round-robin scheduling policy for the scheduler.
For best effort schedulers, this parameter is not applicable.
If R is not 0 or 1, the attempt to enable or disable a strict round-robin scheduling policy
fails and the nvidia-smi command displays the following error message:
Option passed to set Adaptive Round Robin scheduler is invalid.
-asf frequency
--arr-sched-frequency frequency
frequency is a decimal integer in the range 63 to 960 that sets the scheduling
frequency in Hz for the equal share and fixed share schedulers with a strict round-
robin scheduling policy.
If frequency is outside the range 63 to 960, the scheduling frequency is set as follows:
‣ If frequency is not set, the scheduling frequency is set to the default scheduling
frequency for the vGPU type as listed in Table 1.
‣ If frequency is less than 63, the scheduling frequency is raised to 63.
‣ If frequency is greater than 960, the scheduling frequency is capped at 960.
-aavg averaging-factor
--arr-avg-factor averaging-factor
averaging-factor is a decimal integer in the range 1 to 60 that sets the averaging factor
to ensure scheduling fairness for the equal share and fixed share schedulers with a
strict round-robin scheduling policy.
The number of time slices over which the compensation for the accrued overshoot
time is applied depends on the value of averaging-factor:
‣ If averaging-factor is greater than 60, the number of time slices over which the
compensation is applied is capped at 60.
-ts time-slice-length
--time-slice time-slice-length
time-slice-length is a decimal integer in the range 1,000,000 to 30,000,000 that
sets the length of the time slice in nanoseconds (ns) for equal share and fixed share
schedulers without a strict round-robin scheduling policy. Set this parameter only
if --arr-mode is set to 0 to disable a strict round-robin scheduling policy for the
scheduler.
The minimum length is 1,000,000 ns (1 ms) and the maximum length is 30,000,000 ns
(30 ms). If time-slice-length is outside the range 1,000,000 to 30,000,000, the length is
set as follows:
‣ If time-slice-length is not set, the length is set to the default time slice length for
the vGPU type as listed in Table 1.
‣ If time-slice-length is less than 1,000,000, the length is raised to 1,000,000 ns (1
ms).
‣ If time-slice-length is greater than 30,000,000, the length is capped at 30,000,000
ns (30 ms).
Setting the Scheduling Policy and Time Slice for a Single GPU
This example sets the scheduling policy of the GPU at PCI domain 0000 and BDF 86:00.0
to fixed share scheduler without a strict round-robin scheduling policy and with a time
slice that is 24 ms (24,000,000 ns) long.
# nvidia-smi vgpu set-scheduler-state -i 0000:86:00.0 -p 3 -a 0 -ts 24,000,000
Setting the Scheduling Policy and Time Slice for All GPUs
This example sets the vGPU scheduler to equal share scheduler without a strict round-
robin scheduling policy and with a time slice that is 3 ms (3,000,000 ns) long for all GPUs
on the platform.
# nvidia-smi vgpu set-scheduler-state -p 2 -a 0 -ts 3,000,000
‣ On XenServer or Red Hat Enterprise Linux KVM, add the following entry to the /
etc/modprobe.d/nvidia.conf file.
options nvidia NVreg_RegistryDwords="RmPVMRL=value"
value
The value that sets the GPU scheduling policy and the length of the time slice that
you want, for example:
0x01
Sets the vGPU scheduling policy to equal share scheduler with the default time
slice length.
0x00030001
Sets the GPU scheduling policy to equal share scheduler with a time slice that is
3 ms long.
0x11
Sets the vGPU scheduling policy to fixed share scheduler with the default time
slice length.
0x00180011
Sets the GPU scheduling policy to fixed share scheduler with a time slice that is
24 (0x18) ms long.
For all supported values, see RmPVMRL Registry Key.
3. Reboot your hypervisor host machine.
Confirm that the scheduling behavior was changed as required as explained in Getting
the Current Time-Sliced vGPU Scheduling Policy for All GPUs.
‣ On XenServer or Red Hat Enterprise Linux KVM, add the -D option to display the
PCI domain and the -d 10de: option to display information only for NVIDIA GPUs.
# lspci -D -d 10de:
‣ On VMware vSphere, pipe the output of lspci to the grep command to display
information only for NVIDIA GPUs.
# lspci | grep NVIDIA
The NVIDIA GPU listed in this example has the PCI domain 0000 and BDF 86:00.0.
0000:86:00.0 3D controller: NVIDIA Corporation GP104GL [Tesla P4] (rev a1)
3. Use the module parameter NVreg_RegistryDwordsPerDevice to set the pci and
RmPVMRL registry keys for each GPU.
‣ On XenServer or Red Hat Enterprise Linux KVM, add the following entry to the /
etc/modprobe.d/nvidia.conf file.
options nvidia NVreg_RegistryDwordsPerDevice="pci=pci-domain:pci-
bdf;RmPVMRL=value
[;pci=pci-domain:pci-bdf;RmPVMRL=value...]"
at PCI domain 0000 and BDF 86:00.0 to fixed share scheduler with a time slice that is
24 (0x18) ms long.
options nvidia NVreg_RegistryDwordsPerDevice=
"pci=0000:86:00.0;RmPVMRL=0x00180011"
This example changes the scheduling behavior of a single GPU on a hypervisor host
that is running VMware vSphere. The command sets the scheduling policy of the GPU
at PCI domain 0000 and BDF 15:00.0 to fixed share scheduler with the default time
slice length.
# esxcli system module parameters set -m nvidia -p \
"NVreg_RegistryDwordsPerDevice=pci=0000:15:00.0;RmPVMRL=0x11[;pci=0000:15:00.0;RmPVMRL=0x11]"
This example changes the scheduling behavior of a single GPU on a hypervisor host
that is running VMware vSphere. The command sets the scheduling policy of the GPU
at PCI domain 0000 and BDF 15:00.0 to fixed share scheduler with a time slice that is
24 (0x18) ms long.
# esxcli system module parameters set -m nvidia -p \
"NVreg_RegistryDwordsPerDevice=pci=0000:15:00.0;RmPVMRL=0x11[;pci=0000:15:00.0;RmPVMRL=0x00180011]"
4. Reboot your hypervisor host machine.
Confirm that the scheduling behavior was changed as required as explained in Getting
the Current Time-Sliced vGPU Scheduling Policy for All GPUs.
‣ On XenServeror Red Hat Enterprise Linux KVM, comment out the entries in the /
etc/modprobe.d/nvidia.conf file that set RmPVMRL by prefixing each entry with
the # character.
‣ On VMware vSphere, set the module parameter to an empty string.
# esxcli system module parameters set -m nvidia -p "module-parameter="
module-parameter
The module parameter to set, which depends on whether the scheduling
behavior was changed for all GPUs or select GPUs:
For example, to restore default vGPU scheduler settings after they were changed
for all GPUs, enter this command:
# esxcli system module parameters set -m nvidia -p "NVreg_RegistryDwords="
3. Reboot your hypervisor host machine.
Note: You can change the vGPU scheduling behavior only on GPUs that support multiple
vGPU schedulers, that is, GPUs based on NVIDIA GPU architectures after the Maxwell
architecture.
Type
Dword
Contents
Value Meaning
0x00 (default) Best effort scheduler
0x01 Equal share scheduler with a strict round-robin scheduling policy and the
default time slice length, scheduling frequency, and averaging factor
0x03 Equal share scheduler without a strict round-robin scheduling policy and the
default time slice length
0xAAFFF001 Equal share scheduler with a strict round-robin scheduling policy and a user-
defined averaging factor AA and a user-defined scheduling frequency FFF
0x00TT0003 Equal share scheduler without a strict round-robin scheduling policy and
with a user-defined time slice length TT
0x11 Fixed share scheduler with a strict round-robin scheduling policy and the
default time slice length, scheduling frequency, and averaging factor
Value Meaning
0x13 Fixed share scheduler without a strict round-robin scheduling policy and with
the default time slice length
0xAAFFF011 Fixed share scheduler with a strict round-robin scheduling policy and a user-
defined averaging factor AA and a user-defined scheduling frequency FFF
0x00TT0013 Fixed share scheduler without a strict round-robin scheduling policy and with
a user-defined time slice length TT
The default time slice length and scheduling frequency depend on the maximum number
of vGPUs per physical GPU allowed for the vGPU type.
AA
Two hexadecimal digits in the range 0x01 to 0x3C (decimal 1-60) that set the
averaging factor for the equal share and fixed share schedulers with a strict round-
robin scheduling policy.
The number of time slices over which the compensation for the accrued overshoot
time is applied depends on the value of AA:
‣ If FFF is 000, the scheduling frequency is set to the default scheduling frequency
for the vGPU type as listed in Table 1.
‣ If FFF is greater than 000 but less than 0x3F, the scheduling frequency is raised to
0x3F (decimal 63).
‣ If FFF is greater than 0x3C0, the scheduling frequency is capped at 0x3C0 (decimal
960).
TT
Two hexadecimal digits in the range 0x01 to 0x1E (decimal 1-30) that set the length of
the time slice in milliseconds (ms) for the equal share and fixed share schedulers. The
minimum length is 1 ms and the maximum length is 30 ms.
If TT is outside the range 01 to 1E, the length is set as follows:
‣ If TT is 00, the length is set to the default time slice length for the vGPU type as
listed in Table 1.
‣ If TT is greater than 0x1E (decimal 30), the length is capped at 30 ms.
Examples
This example sets the vGPU scheduler to equal share scheduler with a strict round-robin
scheduling policy and the default time slice length, scheduling frequency, and averaging
factor.
RmPVMRL=0x01
This example sets the vGPU scheduler to equal share scheduler without a strict round-
robin scheduling policy and with a time slice that is 3 ms long.
RmPVMRL=0x00030003
This example sets the vGPU scheduler to fixed share scheduler with a strict round-robin
scheduling policy and the default time slice length, scheduling frequency, and averaging
factor.
RmPVMRL=0x11
This example sets the vGPU scheduler to fixed share scheduler without a strict round-
robin scheduling policy and with a time slice that is 24 (0x18) ms long.
RmPVMRL=0x00180011
This example sets the vGPU scheduler to equal share scheduler with a strict round-robin
scheduling policy, an averaging factor of 60 (0x3C), and a scheduling frequency of 960
(0x3C0) Hz.
RmPVMRL=0x3c3c0001
This example sets the vGPU scheduler to fixed share scheduler with a strict round-robin
scheduling policy, an averaging factor of 60 (0x3C), and a scheduling frequency of 960
(0x3C0) Hz.
RmPVMRL=0x3c3c0011
This chapter describes basic troubleshooting steps for NVIDIA vGPU on Linux-style
hypervisors and how to collect debug information when filing a bug report.
vgpu-manager-rpm-package-name
The RPM package name of the NVIDIA GPU Manager package, for example NVIDIA-
vGPU-NVIDIA-vGPU-CitrixHypervisor-8.2-550.127.06 for XenServer.
This example verifies that the NVIDIA GPU Manager package for XenServer is
correctly installed.
[root@xenserver ~]# rpm –q NVIDIA-vGPU-NVIDIA-vGPU-CitrixHypervisor-8.2-550.127.06
[root@xenserver ~]#
If an existing NVIDIA GRID package is already installed and you don’t select the
upgrade (-U) option when installing a newer GRID package, the rpm command will
return many conflict errors.
Preparing packages for installation...
file /usr/bin/nvidia-smi from install of NVIDIA-vGPU-NVIDIA-vGPU-
CitrixHypervisor-8.2-550.127.06.x86_64 conflicts with file from package NVIDIA-
vGPU-xenserver-8.2-550.54.16.x86_64
file /usr/lib/libnvidia-ml.so from install of NVIDIA-vGPU-NVIDIA-vGPU-
CitrixHypervisor-8.2-550.127.06.x86_64 conflicts with file from package NVIDIA-
vGPU-xenserver-8.2-550.54.16.x86_64
...
Run nvidia-bug-report.sh from the XenServer dom0 shell, the host shell of a
supported Linux with KVM hypervisor, or the VMware ESXi host shell.
This example runs nvidia-bug-report.sh on XenServer, but the procedure is the same
on any supported Linux with KVM hypervisoror or VMware vSphere ESXi.
[root@xenserver ~]# nvidia-bug-report.sh
For Xen open source/XCP users, if you are reporting a domain issue,
please run: nvidia-bug-report.sh --domain-name <"domain_name">
Running nvidia-bug-report.sh...
If the bug report script hangs after this point consider running with
--safe-mode command line argument.
complete
[root@xenserver ~]#
Note: XID 119 errors are caused by a GPU System Processor (GSP) RPC timeout.
Therefore, these errors occur only with NVIDIA vGPU deployments on GPUs based on the
NVIDIA Ada Lovelace and Hopper GPU architectures.
To gather the additional information about XID 119 errors that the NVIDIA vGPU software
graphics drivers provide, download and run the script from NVIDIA Enterprise Support for
this purpose. For more information about this script, refer to the article about capturing
XID 119 and XID 120 error information in the NVIDIA knowledge base.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
A40-48Q 49152 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
A40-24Q 24576 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
A40-16Q 16384 3 2 66355200 5120×2880 or
4
lower
7680×4320 2
A40-12Q 12288 4 4 66355200 5120×2880 or
4
lower
7680×4320 2
A40-8Q 8192 6 4 66355200 5120×2880 or
4
lower
7680×4320 1
A40-6Q 6144 8 8 58982400 5120×2880 or
4
lower
7680×4320 1
A40-4Q 4096 12 8 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
A40-3Q 3072 16 16 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
A40-2Q 2048 24 16 36864000
3840×2400 or
4
lower
5
The maximum vGPUs per GPU is limited to 32.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
3840×2400 2
3840×2160 2
2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
A40-2B 2048 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
A40-1B 1024 32 32 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
A40-48A 49152 1 1 4 4
1280×1024 1
A40-24A 24576 2 2 4 4
1280×1024 1
A40-16A 16384 3 2 4 4
1280×1024 1
A40-12A 12288 4 4 4 4
1280×1024 1
A40-8A 8192 6 4 4 4
1280×1024 1
A40-6A 6144 8 8 4 4
1280×1024 1
A40-4A 4096 12 8 4 4
1280×1024 1
A40-3A 3072 16 16 4 4
1280×1024 1
A40-2A 2048 24 16 4 4
1280×1024 1
A40-1A 1024 5 32 4 4
32 1280×1024 1
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
A16-16Q 16384 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
A16-8Q 8192 2 2 66355200 5120×2880 or
4
lower
7680×4320 1
A16-4Q 4096 4 4 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
A16-2Q 2048 8 8 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
A16-1Q 1024 16 16 18432000 3840×2160 2
2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
A16-2B 2048 8 8 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
A16-1B 1024 16 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
A16-16A 16384 1 1 4 4
1280×1024 1
A16-8A 8192 2 2 4 4
1280×1024 1
A16-4A 4096 4 4 4 4
1280×1024 1
A16-2A 2048 8 8 4 4
1280×1024 1
A16-1A 1024 16 16 4 4
1280×1024 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
A10-24Q 24576 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
A10-12Q 12288 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
A10-8Q 8192 3 2 66355200 5120×2880 or
4
lower
7680×4320 1
A10-6Q 6144 4 4 58982400 5120×2880 or
4
lower
7680×4320 1
A10-4Q 4096 6 4 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
A10-3Q 3072 8 8 36864000
3840×2400 or
4
lower
7680×4320 1
A10-2Q 2048 12 8 36864000
5120×2880 2
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
A10-1Q 1024 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
A10-2B 2048 12 8 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
A10-1B 1024 24 16 16384000 3840×2400 1
3840×2160 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
A10-24A 24576 1 1 4 4
1280×1024 1
A10-12A 12288 2 2 4 4
1280×1024 1
A10-8A 8192 3 2 4 4
1280×1024 1
A10-6A 6144 4 4 4 4
1280×1024 1
A10-4A 4096 6 4 4 4
1280×1024 1
A10-3A 3072 8 8 4 4
1280×1024 1
A10-2A 2048 12 8 4 4
1280×1024 1
A10-1A 1024 24 16 4 4
1280×1024 1
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
A2-16Q 16384 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
A2-8Q 8192 2 2 66355200 5120×2880 or
4
lower
7680×4320 1
A2-4Q 4096 4 4 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
A2-2Q 2048 8 8 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
A2-1Q 1024 16 16 18432000 3840×2160 2
2560×1600 or
4
lower
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
A2-2B 2048 8 8 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
A2-1B 1024 16 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
A2-16A 16384 1 1 4 4
1280×1024 1
A2-8A 8192 2 2 4 4
1280×1024 1
A2-4A 4096 4 4 4 4
1280×1024 1
A2-2A 2048 8 8 4 4
1280×1024 1
A2-1A 1024 16 16 4 4
1280×1024 1
The maximum number of vGPUs per board is the product of the maximum number of
vGPUs per GPU and the number of physical GPUs per board.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
L40-48Q 49152 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
L40-24Q 24576 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
L40-16Q 16384 3 2 66355200 5120×2880 or
4
lower
7680×4320 2
L40-12Q 12288 4 4 66355200 5120×2880 or
4
lower
7680×4320 2
L40-8Q 8192 6 4 66355200 5120×2880 or
4
lower
7680×4320 1
L40-6Q 6144 8 8 58982400 5120×2880 or
4
lower
L40-4Q 4096 12 8 58982400 7680×4320 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 or
4
lower
7680×4320 1
5120×2880 2
L40-3Q 3072 16 16 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
L40-2Q 2048 24 16 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
L40-1Q 1024 6 16 18432000
32 3840×2160 2
2560×1600 or
4
lower
6
The maximum vGPUs per GPU is limited to 32.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
L40-2B 2048 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
L40-1B 1024 32 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L40-48A 49152 1 1 4 4
1280×1024 1
L40-24A 24576 2 2 4 4
1280×1024 1
L40-16A 16384 3 2 4 4
1280×1024 1
L40-12A 12288 4 4 4 4
1280×1024 1
L40-8A 8192 6 4 4 4
1280×1024 1
L40-6A 6144 8 8 4 4
1280×1024 1
L40-4A 4096 12 8 4 4
1280×1024 1
L40-3A 3072 16 16 4 4
1280×1024 1
L40-2A 2048 24 16 4 4
1280×1024 1
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L40-1A 1024 6 16 4 4
32 1280×1024 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
L40S-48Q 49152 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
L40S-24Q 24576 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
L40S-16Q 16384 3 2 66355200 5120×2880 or
4
lower
L40S-12Q 12288 4 4 66355200 7680×4320 2
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 or
4
lower
7680×4320 2
L40S-8Q 8192 6 4 66355200 5120×2880 or
4
lower
7680×4320 1
L40S-6Q 6144 8 8 58982400 5120×2880 or
4
lower
7680×4320 1
L40S-4Q 4096 12 8 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
L40S-3Q 3072 16 16 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
L40S-2Q 2048 24 16 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
L40S-1Q 1024 7 16 18432000
32 3840×2160 2
2560×1600 or
4
lower
7
The maximum vGPUs per GPU is limited to 32.
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
L40S-2B 2048 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
L40S-1B 1024 32 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L40S-48A 49152 1 1 4 4
1280×1024 1
L40S-24A 24576 2 2 4 4
1280×1024 1
L40S-16A 16384 3 2 4 4
1280×1024 1
L40S-12A 12288 4 4 4 4
1280×1024 1
L40S-8A 8192 6 4 4 4
1280×1024 1
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L40S-6A 6144 8 8 4 4
1280×1024 1
L40S-4A 4096 12 8 4 4
1280×1024 1
L40S-3A 3072 16 16 4 4
1280×1024 1
L40S-2A 2048 24 16 4 4
1280×1024 1
L40S-1A 1024 7 16 4 4
32 1280×1024 1
Q-Series Virtual GPU Types for NVIDIA L20 and NVIDIA L20 Liquid Cooled
Intended use case: Virtual Workstations
Required license edition: vWS
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
L20-48Q 49152 1 1 66355200 5120×2880 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
L20-24Q 24576 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
L20-16Q 16384 3 2 66355200 5120×2880 or
4
lower
7680×4320 2
L20-12Q 12288 4 4 66355200 5120×2880 or
4
lower
7680×4320 2
L20-8Q 8192 6 4 66355200 5120×2880 or
4
lower
7680×4320 1
L20-6Q 6144 8 8 58982400 5120×2880 or
4
lower
7680×4320 1
L20-4Q 4096 12 8 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
L20-3Q 3072 16 16 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
L20-2Q 2048 24 16 36864000
3840×2400 or
4
lower
5120×2880 1
L20-1Q 1024 8 16 18432000 3840×2400 2
32
3840×2160 2
8
The maximum vGPUs per GPU is limited to 32.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
2560×1600 or
4
lower
B-Series Virtual GPU Types for NVIDIA L20 and NVIDIA L20 Liquid Cooled
Intended use case: Virtual Desktops
Required license edition: vPC or vWS
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
L20-2B 2048 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
L20-1B 1024 32 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
A-Series Virtual GPU Types for NVIDIA L20 and NVIDIA L20 Liquid Cooled
Intended use case: Virtual Applications
Required license edition: vApps
These vGPU types support a single display with a fixed maximum resolution.
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L20-48A 49152 1 1 4 4
1280×1024 1
L20-24A 24576 2 2 4 4
1280×1024 1
L20-16A 16384 3 2 4 4
1280×1024 1
L20-12A 12288 4 4 4 4
1280×1024 1
L20-8A 8192 6 4 4 4
1280×1024 1
L20-6A 6144 8 8 4 4
1280×1024 1
L20-4A 4096 12 8 4 4
1280×1024 1
L20-3A 3072 16 16 4 4
1280×1024 1
L20-2A 2048 24 16 4 4
1280×1024 1
L20-1A 1024 8 16 4 4
32 1280×1024 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
L4-24Q 24576 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
L4-12Q 12288 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
L4-8Q 8192 3 2 66355200 5120×2880 or
4
lower
7680×4320 1
L4-6Q 6144 4 4 58982400 5120×2880 or
4
lower
7680×4320 1
L4-4Q 4096 6 4 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
L4-3Q 3072 8 8 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
L4-2Q 2048 12 8 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
L4-1Q 1024 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
L4-2B 2048 12 8 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
L4-1B 1024 24 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L4-24A 24576 1 1 4 4
1280×1024 1
L4-12A 12288 2 2 4 4
1280×1024 1
L4-8A 8192 3 2 4 4
1280×1024 1
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L4-6A 6144 4 4 4 4
1280×1024 1
L4-4A 4096 6 4 4 4
1280×1024 1
L4-3A 3072 8 8 4 4
1280×1024 1
L4-2A 2048 12 8 4 4
1280×1024 1
L4-1A 1024 24 16 4 4
1280×1024 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
L2-24Q 24576 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
L2-12Q 12288 2 2 66355200 5120×2880 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
L2-8Q 8192 3 2 66355200 5120×2880 or
4
lower
7680×4320 1
L2-6Q 6144 4 4 58982400 5120×2880 or
4
lower
7680×4320 1
L2-4Q 4096 6 4 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
L2-3Q 3072 8 8 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
L2-2Q 2048 12 8 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
L2-1Q 1024 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
L2-2B 2048 12 8 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
L2-1B 1024 24 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L2-24A 24576 1 1 4 4
1280×1024 1
L2-12A 12288 2 2 4 4
1280×1024 1
L2-8A 8192 3 2 4 4
1280×1024 1
L2-6A 6144 4 4 4 4
1280×1024 1
L2-4A 4096 6 4 4 4
1280×1024 1
L2-3A 3072 8 8 4 4
1280×1024 1
L2-2A 2048 12 8 4 4
1280×1024 1
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
L2-1A 1024 24 16 4 4
1280×1024 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
RTX 6000
49152 1 1 66355200 5120×2880 or
Ada-48Q 4
lower
7680×4320 2
RTX 6000
24576 2 2 66355200 5120×2880 or
Ada-24Q 4
lower
7680×4320 2
RTX 6000
16384 3 2 66355200 5120×2880 or
Ada-16Q 4
lower
RTX 6000
12288 4 4 66355200 7680×4320 2
Ada-12Q
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 or
4
lower
7680×4320 2
RTX 6000
8192 6 4 66355200 5120×2880 or
Ada-8Q 4
lower
7680×4320 1
RTX 6000
6144 8 8 58982400 5120×2880 or
Ada-6Q 4
lower
7680×4320 1
RTX 6000
4096 12 8 58982400 5120×2880 or
Ada-4Q 4
lower
7680×4320 1
RTX 6000 5120×2880 2
3072 16 16 36864000
Ada-3Q 3840×2400 or
4
lower
7680×4320 1
RTX 6000 5120×2880 2
2048 24 16 36864000
Ada-2Q 3840×2400 or
4
lower
5120×2880 1
3840×2400 2
RTX 6000 9
1024 32 16 18432000 3840×2160 2
Ada-1Q
2560×1600 or
4
lower
9
The maximum vGPUs per GPU is limited to 32.
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
RTX 6000
2048 24 16 18432000 3840×2160 2
Ada-2B
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
RTX 6000
1024 32 16 16384000 3840×2160 1
Ada-1B
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTX 6000 4 4
49152 1 1 1280×1024 1
Ada-48A
RTX 6000 4 4
24576 2 2 1280×1024 1
Ada-24A
RTX 6000 4 4
16384 3 2 1280×1024 1
Ada-16A
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTX 6000 4 4
12288 4 4 1280×1024 1
Ada-12A
RTX 6000 4 4
8192 6 4 1280×1024 1
Ada-8A
RTX 6000 4 4
6144 8 8 1280×1024 1
Ada-6A
RTX 6000 4 4
4096 12 8 1280×1024 1
Ada-4A
RTX 6000 4 4
3072 16 16 1280×1024 1
Ada-3A
RTX 6000 4 4
2048 24 16 1280×1024 1
Ada-2A
RTX 6000 9 4 4
1024 32 16 1280×1024 1
Ada-1A
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
RTX 5880
49152 1 1 66355200 5120×2880 or
Ada-48Q 4
lower
7680×4320 2
RTX 5880
24576 2 2 66355200 5120×2880 or
Ada-24Q 4
lower
7680×4320 2
RTX 5880
16384 3 2 66355200 5120×2880 or
Ada-16Q 4
lower
7680×4320 2
RTX 5880
12288 4 4 66355200 5120×2880 or
Ada-12Q 4
lower
7680×4320 2
RTX 5880
8192 6 4 66355200 5120×2880 or
Ada-8Q 4
lower
7680×4320 1
RTX 5880
6144 8 8 58982400 5120×2880 or
Ada-6Q 4
lower
7680×4320 1
RTX 5880
4096 12 8 58982400 5120×2880 or
Ada-4Q 4
lower
7680×4320 1
RTX 5880 5120×2880 2
3072 16 16 36864000
Ada-3Q 3840×2400 or
4
lower
7680×4320 1
RTX 5880 5120×2880 2
2048 24 16 36864000
Ada-2Q 3840×2400 or
4
lower
10
The maximum vGPUs per GPU is limited to 32.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
3840×2400 2
RTX 5880 3840×2160 2
Ada-1Q 2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
RTX 5880
2048 24 16 18432000 3840×2160 2
Ada-2B
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
RTX 5880
1024 32 16 16384000 3840×2160 1
Ada-1B
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTX 5880 4 4
49152 1 1 1280×1024 1
Ada-48A
RTX 5880 4 4
24576 2 2 1280×1024 1
Ada-24A
RTX 5880 4 4
16384 3 2 1280×1024 1
Ada-16A
RTX 5880 4 4
12288 4 4 1280×1024 1
Ada-12A
RTX 5880 4 4
8192 6 4 1280×1024 1
Ada-8A
RTX 5880 4 4
6144 8 8 1280×1024 1
Ada-6A
RTX 5880 4 4
4096 12 8 1280×1024 1
Ada-4A
RTX 5880 4 4
3072 16 16 1280×1024 1
Ada-3A
RTX 5880 4 4
2048 24 16 1280×1024 1
Ada-2A
RTX 5880 10 4 4
1024 32 16 1280×1024 1
Ada-1A
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
RTX 5000
32768 1 1 66355200 5120×2880 or
Ada-32Q 4
lower
7680×4320 2
RTX 5000
16384 2 2 66355200 5120×2880 or
Ada-16Q 4
lower
7680×4320 2
RTX 5000
8192 4 4 66355200 5120×2880 or
Ada-8Q 4
lower
7680×4320 1
RTX 5000
4096 8 8 58982400 5120×2880 or
Ada-4Q 4
lower
7680×4320 1
RTX 5000 5120×2880 2
2048 16 16 36864000
Ada-2Q 3840×2400 or
4
lower
5120×2880 1
3840×2400 2
RTX 5000
1024 32 32 18432000 3840×2160 2
Ada-1Q
2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
RTX 5000
2048 16 16 18432000 3840×2160 2
Ada-2B
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
RTX 5000
1024 32 32 16384000 3840×2160 1
Ada-1B
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTX 5000 4 4
32768 1 1 1280×1024 1
Ada-32A
RTX 5000 4 4
16384 2 2 1280×1024 1
Ada-16A
RTX 5000 4 4
8192 4 4 1280×1024 1
Ada-8A
RTX 5000 4 4
4096 8 8 1280×1024 1
Ada-4A
RTX 5000 4 4
2048 16 16 1280×1024 1
Ada-2A
RTX 5000 4 4
1024 32 32 1280×1024 1
Ada-1A
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
RTXA6000-48Q 49152 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
RTXA6000-24Q 24576 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
RTXA6000-16Q 16384 3 2 66355200 5120×2880 or
4
lower
7680×4320 2
RTXA6000-12Q 12288 4 4 66355200 5120×2880 or
4
lower
7680×4320 2
RTXA6000-8Q 8192 6 4 66355200 5120×2880 or
4
lower
7680×4320 1
RTXA6000-6Q 6144 8 8 58982400 5120×2880 or
4
lower
7680×4320 1
RTXA6000-4Q 4096 12 8 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
RTXA6000-3Q 3072 16 16 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
RTXA6000-2Q 2048 24 16 36864000
3840×2400 or
4
lower
11
The maximum vGPUs per GPU is limited to 32.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
3840×2400 2
3840×2160 2
2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
RTXA6000-2B 2048 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
RTXA6000-1B 1024 32 30 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTXA6000-48A 49152 1 1 4 4
1280×1024 1
RTXA6000-24A 24576 2 2 4 4
1280×1024 1
RTXA6000-16A 16384 3 2 4 4
1280×1024 1
RTXA6000-12A 12288 4 4 4 4
1280×1024 1
RTXA6000-8A 8192 6 4 4 4
1280×1024 1
RTXA6000-6A 6144 8 8 4 4
1280×1024 1
RTXA6000-4A 4096 12 8 4 4
1280×1024 1
RTXA6000-3A 3072 16 16 4 4
1280×1024 1
RTXA6000-2A 2048 24 16 4 4
1280×1024 1
RTXA6000-1A 1024 11 30 4 4
32 1280×1024 1
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
7680×4320 2
RTXA5500-24Q 24576 1 1 66355200 5120×2880 or
4
lower
7680×4320 2
RTXA5500-12Q 12288 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
RTXA5500-8Q 8192 3 2 66355200 5120×2880 or
4
lower
7680×4320 1
RTXA5500-6Q 6144 4 4 58982400 5120×2880 or
4
lower
7680×4320 1
RTXA5500-4Q 4096 6 4 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
RTXA5500-3Q 3072 8 8 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
RTXA5500-2Q 2048 12 8 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
RTXA5500-1Q 1024 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
RTXA5500-2B 2048 12 8 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
RTXA5500-1B 1024 24 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTXA5500-24A 24576 1 1 4 4
1280×1024 1
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTXA5500-12A 12288 2 2 4 4
1280×1024 1
RTXA5500-8A 8192 3 2 4 4
1280×1024 1
RTXA5500-6A 6144 4 4 4 4
1280×1024 1
RTXA5500-4A 4096 6 4 4 4
1280×1024 1
RTXA5500-3A 3072 8 8 4 4
1280×1024 1
RTXA5500-2A 2048 12 8 4 4
1280×1024 1
RTXA5500-1A 1024 24 16 4 4
1280×1024 1
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
RTXA5000-24Q 24576 1 1 66355200 7680×4320 2
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 or
4
lower
7680×4320 2
RTXA5000-12Q 12288 2 2 66355200 5120×2880 or
4
lower
7680×4320 2
RTXA5000-8Q 8192 3 2 66355200 5120×2880 or
4
lower
7680×4320 1
RTXA5000-6Q 6144 4 4 58982400 5120×2880 or
4
lower
7680×4320 1
RTXA5000-4Q 4096 6 4 58982400 5120×2880 or
4
lower
7680×4320 1
5120×2880 2
RTXA5000-3Q 3072 8 8 36864000
3840×2400 or
4
lower
7680×4320 1
5120×2880 2
RTXA5000-2Q 2048 12 8 36864000
3840×2400 or
4
lower
5120×2880 1
3840×2400 2
RTXA5000-1Q 1024 24 16 18432000 3840×2160 2
2560×1600 or
4
lower
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Maximum Maximum
Virtual
Frame vGPUs vGPUs per
Virtual Available Display Displays
Buffer per GPU GPU in
GPU Type Pixels Resolution per
(MB) in Equal- Mixed-
vGPU
Size Mode Size Mode
5120×2880 1
3840×2400 2
RTXA5000-2B 2048 12 8 18432000 3840×2160 2
2560×1600 or
4
lower
5120×2880 1
3840×2400 1
RTXA5000-1B 1024 24 16 16384000 3840×2160 1
2560×1600 or 3
4
lower
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTXA5000-24A 24576 1 1 4 4
1280×1024 1
RTXA5000-12A 12288 2 2 4 4
1280×1024 1
RTXA5000-8A 8192 3 2 4 4
1280×1024 1
RTXA5000-6A 6144 4 4 4 4
1280×1024 1
Maximum
Maximum
Frame vGPUs Maximum Virtual
Virtual vGPUs per
Buffer per GPU Display Displays
GPU Type GPU in Mixed-
(MB) in Equal- Resolution per vGPU
Size Mode
Size Mode
RTXA5000-4A 4096 6 4 4 4
1280×1024 1
RTXA5000-3A 3072 8 8 4 4
1280×1024 1
RTXA5000-2A 2048 12 8 4 4
1280×1024 1
RTXA5000-1A 1024 24 16 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
M10-8A 8192 1 4 4
1280×1024 1
M10-4A 4096 2 4 4
1280×1024 1
M10-2A 2048 4 4 4
1280×1024 1
M10-1A 1024 8 4 4
1280×1024 1
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
T4-16A 16384 1 4 4
1280×1024 1
T4-8A 8192 2 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
T4-4A 4096 4 4 4
1280×1024 1
T4-2A 2048 8 4 4
1280×1024 1
T4-1A 1024 16 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
V100X-16A 16384 1 4 4
1280×1024 1
V100X-8A 8192 2 4 4
1280×1024 1
V100X-4A 4096 4 4 4
1280×1024 1
V100X-2A 2048 8 4 4
1280×1024 1
V100X-1A 1024 16 4 4
1280×1024 1
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
V100DX-32A 32768 1 4 4
1280×1024 1
V100DX-16A 16384 2 4 4
1280×1024 1
V100DX-8A 8192 4 4 4
1280×1024 1
V100DX-4A 4096 8 4 4
1280×1024 1
V100DX-2A 2048 16 4 4
1280×1024 1
V100DX-1A 1024 32 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
V100-16A 16384 1 4 4
1280×1024 1
V100-8A 8192 2 4 4
1280×1024 1
V100-4A 4096 4 4 4
1280×1024 1
V100-2A 2048 8 4 4
1280×1024 1
V100-1A 1024 16 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
V100D-32A 32768 1 4 4
1280×1024 1
V100D-16A 16384 2 4 4
1280×1024 1
V100D-8A 8192 4 4 4
1280×1024 1
V100D-4A 4096 8 4 4
1280×1024 1
V100D-2A 2048 16 4 4
1280×1024 1
V100D-1A 1024 32 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
V100S-32A 32768 1 4 4
1280×1024 1
V100S-16A 16384 2 4 4
1280×1024 1
V100S-8A 8192 4 4 4
1280×1024 1
V100S-4A 4096 8 4 4
1280×1024 1
V100S-2A 2048 16 4 4
1280×1024 1
V100S-1A 1024 32 4 4
1280×1024 1
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
V100L-16A 16384 1 4 4
1280×1024 1
V100L-8A 8192 2 4 4
1280×1024 1
V100L-4A 4096 4 4 4
1280×1024 1
V100L-2A 2048 8 4 4
1280×1024 1
V100L-1A 1024 16 4 4
1280×1024 1
12
The maximum vGPUs per GPU is limited to 32.
These vGPU types support a maximum combined resolution based on the number of
available pixels, which is determined by their frame buffer size. You can choose between
using a small number of high resolution displays or a larger number of lower resolution
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
RTX8000-48A 49152 1 4 4
1280×1024 1
RTX8000-24A 24576 2 4 4
1280×1024 1
RTX8000-16A 16384 3 4 4
1280×1024 1
RTX8000-12A 12288 4 4 4
1280×1024 1
RTX8000-8A 8192 6 4 4
1280×1024 1
RTX8000-6A 6144 8 4 4
1280×1024 1
RTX8000-4A 4096 12 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
RTX8000-3A 3072 16 4 4
1280×1024 1
RTX8000-2A 2048 24 4 4
1280×1024 1
RTX8000-1A 1024 12 4 4
32 1280×1024 1
13
The maximum vGPUs per GPU is limited to 32.
displays with these vGPU types. The maximum number of displays per vGPU is based
on a configuration in which all displays have the same resolution. For examples of
configurations with a mixture of display resolutions, see Mixed Display Configurations for
B-Series and Q-Series vGPUs.
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
RTX8000P-48A 49152 1 4 4
1280×1024 1
RTX8000P-24A 24576 2 4 4
1280×1024 1
RTX8000P-16A 16384 3 4 4
1280×1024 1
RTX8000P-12A 12288 4 4 4
1280×1024 1
RTX8000P-8A 8192 6 4 4
1280×1024 1
RTX8000P-6A 6144 8 4 4
1280×1024 1
RTX8000P-4A 4096 12 4 4
1280×1024 1
RTX8000P-3A 3072 16 4 4
1280×1024 1
RTX8000P-2A 2048 24 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
RTX8000P-1A 1024 13 4 4
32 1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
RTX6000-24A 24576 1 4 4
1280×1024 1
RTX6000-12A 12288 2 4 4
1280×1024 1
RTX6000-8A 8192 3 4 4
1280×1024 1
RTX6000-6A 6144 4 4 4
1280×1024 1
RTX6000-4A 4096 6 4 4
1280×1024 1
RTX6000-3A 3072 8 4 4
1280×1024 1
RTX6000-2A 2048 12 4 4
1280×1024 1
RTX6000-1A 1024 24 4 4
1280×1024 1
Virtual
Frame Maximum Maximum Display
Virtual GPU Type Displays
Buffer (MB) vGPUs per GPU Resolution
per vGPU
RTX6000P-24A 24576 1 4 4
1280×1024 1
RTX6000P-12A 12288 2 4 4
1280×1024 1
RTX6000P-8A 8192 3 4 4
1280×1024 1
RTX6000P-6A 6144 4 4 4
1280×1024 1
RTX6000P-4A 4096 6 4 4
1280×1024 1
RTX6000P-3A 3072 8 4 4
1280×1024 1
RTX6000P-2A 2048 12 4 4
1280×1024 1
RTX6000P-1A 1024 24 4 4
1280×1024 1
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
96246 94 1 1 0
48128 47 2 2 0, 47
23552 23 4 4 0, 24, 47, 71
15360 15 6 4 0, 32, 47, 79
0, 12, 23, 36, 47, 59, 70,
11264 11 8 8
83
0, 17, 23, 41, 47, 64, 70,
6,144 6 15 8
88
0, 7, 11, 19, 23, 31, 35,
4,096 4 23 16 43, 47, 54, 58, 66, 70, 78,
82, 90
The following diagram shows the supported placements for each size of vGPU on a GPU
with a total of 94 GB of frame buffer in mixed-size mode.
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
81920 80 1 1 0
40960 40 2 2 0, 40
20480 20 4 4 0, 20, 40, 60
16384 16 5 4 0, 24, 40, 64
10 0, 10, 20, 30, 40, 50, 60,
10240 8 8
70
8 0, 12, 20, 32, 40, 52, 60,
8192 10 8
72
0, 5, 10, 15, 20, 25, 30,
5120 5 16 16 35, 40, 45, 50, 55, 60, 65,
70, 75
4 0, 6, 10, 16, 20, 26, 30,
4096 20 16 36, 40, 46, 50, 56, 60, 66,
70, 76
The following diagram shows the supported placements for each size of vGPU on a GPU
with a total of 80 GB of frame buffer in mixed-size mode.
Note: When in mixed-size mode, the maximum number of vGPUs with 1024 MB of frame
buffer allowed on GPUs based on the Ada Lovelace GPU architecture is lower than for
other GPU architectures. As a result, the supported placement IDs for these vGPUs on
GPUs based on the Ada Lovelace GPU architecture are different than for other GPU
architectures.
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
49152 48 1 1 0
24576 24 2 2 0, 24
16384 16 3 2 0, 32
12288 12 4 4 0, 12, 24, 36
8192 8 6 4 0, 16, 24, 40
6 0, 6, 12, 18, 24, 30, 36,
6144 8 8
42
4 0, 8, 12, 20, 24, 32, 36,
4096 12 8
44
3 0, 3, 6, 9, 12, 15, 18, 21,
3072 16 16 24, 27, 30, 33, 36, 39, 42,
45
2 0, 4, 6, 10, 12, 16, 18, 22,
2048 24 16 24, 28, 30, 34, 36, 40, 42,
46
GPU architectures
except Ada Lovelace: 0,
GPU architectures
2, 3, 5, 6, 9, 11, 12, 14,
except Ada
15, 17, 18, 20, 21, 23, 24,
Lovelace: 30
26, 27, 29, 30, 33, 35, 36,
1024 1 32
38, 39, 41, 42, 44, 45, 47
Ada Lovelace GPU
Ada Lovelace GPU architecture: 0, 5, 6, 11,
architecture: 16 12, 17, 18, 23, 24, 29, 30,
35, 36, 41, 42, 47
The following diagram shows the supported placements for each size of vGPU on a GPU
based on a GPU architecture except Ada Lovelace with a total of 48 GB of frame buffer in
mixed-size mode.
The following diagram shows the supported placements for each size of vGPU on a GPU
based on the Ada Lovelace GPU architecture with a total of 48 GB of frame buffer in
mixed-size mode.
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
40960 40 1 1 0
20480 20 2 2 0, 20
10240 10 4 4 0, 10, 20, 30
8192 8 5 4 0, 12, 20, 32
5 0, 5, 10, 15, 20, 25, 30,
5120 8 8
35
4 0, 6, 10, 16, 20, 26, 30,
4096 10 8
36
The following diagram shows the supported placements for each size of vGPU on a GPU
with a total of 40 GB of frame buffer in mixed-size mode.
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
32768 32 1 1 0
16384 16 2 2 0, 16
8192 8 4 4 0, 8, 16, 24
4096 4 8 8 0, 4, 8, 12, 16, 20, 24, 28
2 0, 2, 4, 6, 8, 10, 12, 14,
2048 16 16 16, 18, 20, 22, 24, 26, 28,
30
1 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16,
1024 32 32 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30,
31
The following diagram shows the supported placements for each size of vGPU on a GPU
with a total of 32 GB of frame buffer in mixed-size mode.
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
24576 24 1 1 0
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
12288 12 2 2 0, 12
8192 8 3 2 0, 16
6144 6 4 4 0, 6, 12, 18
4096 4 6 4 0, 8, 12, 20
3072 3 8 8 0, 3, 6, 9, 12, 15, 18, 21
2048 2 12 8 0, 4, 6, 10, 12, 16, 18, 22
1 0, 2, 3, 5, 6, 8, 9, 11, 12,
1024 24 16
14, 15, 17, 18, 20, 21, 23
The following diagram shows the supported placements for each size of vGPU on a GPU
with a total of 24 GB of frame buffer in mixed-size mode.
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
20480 20 1 1 0
10240 10 2 2 0, 10
5120 5 4 4 0, 5, 10, 15
4096 4 5 4 0, 6, 10, 16
2048 2 10 8 0, 3, 5, 8, 10, 13, 15, 18
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
1 0, 1, 2, 4, 5, 6, 7, 9, 10,
1024 20 16
11, 12, 14, 15, 16, 17, 19
The following diagram shows the supported placements for each size of vGPU on a GPU
with a total of 20 GB of frame buffer in mixed-size mode.
vGPU Size
Maximum vGPUs Maximum vGPUs
(MB of Placement Supported
per GPU in per GPU in
Frame Size Placement IDs
Equal-Size Mode Mixed-Size Mode
Buffer)
16384 16 1 1 0
8192 8 2 2 0, 8
4096 4 4 4 0, 4, 8, 12
2048 2 8 8 0, 2, 4, 6, 8, 10, 12, 14
1 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
1024 16 16
10, 11, 12, 13, 14, 15
The following diagram shows the supported placements for each size of vGPU on a GPU
with a total of 16 GB of frame buffer in mixed-size mode.
Strategies for allocating physical hardware resources to VMs and vGPUs can improve
the performance of VMs running with NVIDIA vGPU. They include strategies for pinning
VM CPU cores to physical cores on Non-Uniform Memory Access (NUMA) platforms,
allocating VMs to CPUs, and allocating vGPUs to physical GPUs. These allocation
strategies are supported by XenServer and VMware vSphere.
the least-loaded CPU socket, and allocate the VM’s vGPU on an available, least-loaded,
physical GPU connected via that socket.
XenServer and VMware vSphere ESXi use a different GPU allocation policy by default.
Note: Due to vGPU’s requirement that only one type of vGPU can run on a physical GPU at
any given time, not all physical GPUs may be available to host the vGPU type required by
the new VM.
x11vnc is a virtual network computing (VNC) server that provides remote access to an
existing X session with any VNC viewer. You can use x11vnc to confirm that the NVIDIA
GPU in a Linux server to which no display devices are directly connected is working as
expected. Examples of servers to which no display devices are directly connected include
a VM that is configured with NVIDIA vGPU, a VM that is configured with a pass-through
GPU, and a headless physical host in a bare-metal deployment.
Before you begin, ensure that the following prerequisites are met:
‣ The NVIDIA vGPU software software graphics driver for Linux is installed on the server.
‣ A secure shell (SSH) client is installed on your local system:
‣ On Windows, you must use a third-party SSH client such as PuTTY.
‣ On Linux, you can run the SSH client that is included with the OS from a shell or
terminal window.
Configuring x11vnc involves following the sequence of instructions in these sections:
1. Configuring the Xorg Server on the Linux Server
2. Installing and Configuring x11vnc on the Linux Server
3. Using a VNC Client to Connect to the Linux Server
After connecting to the server, you can use NVIDIA X Server Settings to confirm that the
NVIDIA GPU is working as expected.
GPU #0:
Name : GRID T4-2Q
UUID : GPU-ea80de2d-1dd8-11b2-8305-c955f034e718
PCI BusID : PCI:2:2:0
Note: The three numbers in the PCI BusID obtained by nvidia-xconfig in the
previous step are hexadecimal numbers. They must be converted to decimal
numbers in the PCI bus identifier in the Device section. For example, if the PCI
bus identifier obtained in the previous step is PCI:A:10:0, it must be specified as
PCI:10:16:0 in the PCI bus identifier in the Device section.
# ps -ef | grep X
On Red Hat Enterprise Linux, this command displays output similar to the following
example.
root 5285 5181 0 16:29 pts/0 00:00:00 grep --color=auto X
root 5880 1 0 Jun13 ? 00:00:00 /usr/bin/abrt-watch-log -F
Backtrace /var/log/Xorg.0.log -- /usr/bin/abrt-dump-xorg -xD
root 7039 6289 0 Jun13 tty1 00:00:03 /usr/bin/X :0 -background none -
noreset -audit 4 -verbose -auth /run/gdm/auth-for-gdm-vr4MFC/database -seat seat0
vt1
‣ For distributions based on Red Hat, use the yum package manager to install the
x11vnc package.
# yum install x11vnc
‣ For distributions based on Debian, use the apt package manager to install the
x11vnc package.
# sudo apt install x11vnc
‣ For SuSE Linux distributions, install x11vnc from the x11vnc openSUSE Software
page.
2. Get the display numbers of the servers for the Xorg server.
# cat /proc/*/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=:' | uniq
DISPLAY=:0
DISPLAY=:100
3. Start the x11vnc server, specifying the display number to use.
The following example starts the x11vnc server on display 0 on a Linux server that is
running the Gnome desktop.
# x11vnc -display :0 -auth /run/user/121/gdm/Xauthority -forever \
-shared -ncache -bg
Note: If you are using a C-series vGPU, omit the -ncache option.
PORT=5900
Troubleshooting: If your VNC client cannot connect to the server, change permissions on
the Linux server as follows:
1. Allow the VNC client to connect to the server by making one of the following changes:
Administrators can disable the NVIDIA Notification Icon application for all users'
sessions as explained in Disabling NVIDIA Notification Icon for All Users' Citrix Published
Application Sessions.
Individual users can disable the NVIDIA Notification Icon application for their own
sessions as explained in Disabling NVIDIA Notification Icon for your Citrix Published
Application User Sessions.
Note: If an administrator has enabled the NVIDIA Notification Icon application for the
administrator's own session, the application is enabled for all users' sessions, even the
sessions of users who have previously disabled the application.
The data value 0 disables the NVIDIA Notification Icon, and the data value 1 enables
it.
2. Restart the VM.
You must restart the VM to ensure that the registry key is set before the NVIDIA
service in the user session starts.
The data value 0 disables the NVIDIA Notification Icon, and the data value 1 enables
it.
2. Log off and log on again or restart the VM.
You must log on and log off again or restart the VM to ensure that the registry key is
set before the NVIDIA service in the user session starts.
To install and configure NVIDIA vGPU software and optimize XenServer operation with
vGPU, some basic operations on XenServer are needed.
‣ If you are running the client from dom0, use the secure copy command scp.
The scp command is part of the SSH suite of applications. It is implemented in dom0
and can be used to copy from a remote SSH-enabled server:
[root@xenserver ~]# scp [email protected]:/tmp/somefile .
The authenticity of host '10.31.213.96 (10.31.213.96)' can't be established.
RSA key fingerprint is 26:2d:9b:b9:bf:6c:81:70:36:76:13:02:c1:82:3d:3c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.31.213.96' (RSA) to the list of known hosts.
[email protected]'s password:
somefile 100% 532 0.5KB/s 00:00
[root@xenserver ~]#
‣ If you are running the client from Windows, use the pscp program.
The pscp program is part of the PuTTY suite and can be used to copy files from a
remote Windows system to XenServer:
C:\Users\nvidia>pscp somefile [email protected]:/tmp
[email protected]'s password:
somefile | 80 kB | 80.1 kB/s | ETA: 00:00:00 | 100%
C:\Users\nvidia>
‣ To list all VMs and their associated UUIDs, use xe vm-list without any parameters:
[root@xenserver ~]# xe vm-list
uuid ( RO) : 6b5585f6-bd74-2e3e-0e11-03b9281c3ade
name-label ( RW): vgx-base-image-win7-64
power-state ( RO): halted
vm-uuid is the VM’s UUID, which you can obtain as explained in Determining a VM’s UUID.
vendor: GenuineIntel
speed: 2600.064
modelname: Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
family: 6
model: 45
stepping: 7
flags: fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat
clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf
pni pclmulqdq vmx est ssse3 sse4_1 sse4_2 x2apic popcnt aes hypervisor ida arat
tpr_shadow vnmi flexpriority ept vpid
features: 17bee3ff-bfebfbff-00000001-2c100800
features_after_reboot: 17bee3ff-bfebfbff-00000001-2c100800
physical_features: 17bee3ff-bfebfbff-00000001-2c100800
maskable: full
2. Set VCPUs-params:mask to pin a VM’s vCPUs to a specific socket or to specific cores
within a socket.
This setting persists over VM reboots and shutdowns. In a dual socket platform with
32 total cores, cores 0-15 are on socket 0, and cores 16-31 are on socket 1.
In the examples that follow, vm-uuid is the VM’s UUID, which you can obtain as
explained in Determining a VM’s UUID.
‣ To restrict a VM to only run on socket 0, set the mask to specify cores 0-15:
[root@xenserver ~]# xe vm-param-set uuid=vm-uuid VCPUs-
params:mask=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
‣ To restrict a VM to only run on socket 1, set the mask to specify cores 16-31:
[root@xenserver ~]# xe vm-param-set uuid=vm-uuid VCPUs-
params:mask=16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
‣ To pin vCPUs to specific cores within a socket, set the mask to specify the cores
directly:
You can perform XenServer advanced vGPU management techniques by using XenCenter
and by using xe command line operations.
[root@xenserver ~]#
Creating the vgpu object for a VM does not immediately cause a virtual GPU to be created
on a physical GPU. Instead, the vgpu object is created whenever its associated VM is
started. For more details on how vGPUs are created at VM startup, see Controlling vGPU
allocation.
Note:
The owning VM must be in the powered-off state in order for the vgpu-create command
to succeed.
A vgpu object’s owning VM, associated GPU group, and vGPU type are fixed at creation and
cannot be subsequently changed. To change the type of vGPU allocated to a VM, delete
the existing vgpu object and create another one.
‣ The GPU group that the vgpu object is associated with is checked for a physical GPU
that can host a vGPU of the required type (i.e. the vgpu object’s associated vgpu-
type). Because vGPU types cannot be mixed on a single physical GPU, the new vGPU
can only be created on a physical GPU that has no vGPUs resident on it, or only vGPUs
of the same type, and less than the limit of vGPUs of that type that the physical GPU
can support.
‣ If no such physical GPUs exist in the group, the vgpu creation fails and the VM startup
is aborted.
‣ Otherwise, if more than one such physical GPU exists in the group, a physical GPU is
selected according to the GPU group’s allocation policy, as described in Modifying GPU
Allocation Policy.
Note: If the vGPU is not currently running, the resident-on parameter is not instantiated
for the vGPU, and the vgpu-param-get operation returns:
<not in database>
Note: The pci-id parameter passed to the pgpu-list command must be in the exact
format shown, with the PCI domain fully specified (for example, 0000) and the PCI bus
and devices numbers each being two digits (for example, 87:00.0).
3. Ensure that no vGPUs are currently operating on the physical GPU by checking the
resident-VGPUs parameter:
[root@xenserver ~]# xe pgpu-param-get uuid=f76d1c90-e443-4bfc-8f26-7959a7c85c68 param-
name=resident-VGPUs
[root@xenserver ~]#
4. If any vGPUs are listed, shut down the VMs associated with them.
5. Change the gpu-group-uuid parameter of the physical GPU to the UUID of the newly-
created GPU group:
[root@xenserver ~]# xe pgpu-param-set uuid=7c1e3cff-1429-0544-df3d-bf8a086fb70a gpu-
group-uuid=585877ef-5a6c-66af-fc56-7bd525bdc2f6
[root@xenserver ~]#
Any vgpu object now created that specifies this GPU group UUID will always have its
vGPUs created on the GPU at PCI bus ID 0000:05:0.0.
Note: You can add more than one physical GPU to a manually-created GPU group – for
example, to represent all the GPUs attached to the same CPU socket in a multi-socket
server platform - but as for automatically-created GPU groups, all the physical GPUs in the
group must be of the same type.
In XenCenter, manually-created GPU groups appear in the GPU type listing in a VM’s
GPU Properties. Select a GPU type within the group from which you wish the vGPU to be
allocated:
This chapter provides recommendations on optimizing performance for VMs running with
NVIDIA vGPU on XenServer.
‣ Citrix Hypervisor 8.1 or later: Create the vGPU by using the xe command, and specify
plugin parameters for the group to which the vGPU belongs:
1. Create the vGPU.
[root@xenserver ~]# xe vgpu-create gpu-group-uuid=gpu-group-uuid vgpu-type-
uuid=vgpu-type-uuid vm-uuid=vm-uuid
This command returns vgpu-uuid as stored in XAPI.
2. Specify plugin parameters for the group to which the vGPU belongs.
[root@xenserver ~]# xe vgpu-param-set uuid=vgpu-uuid extra_args=disable_vnc=1
‣ Citrix Hypervisor earlier than 8.1: Specify disable_vnc=1 in the VM’s
platform:vgpu_extra_args parameter:
[root@xenserver ~]# xe vm-param-set uuid=vm-uuid
platform:vgpu_extra_args="disable_vnc=1"
The new console VGA setting takes effect the next time the VM is started or
rebooted. With console VGA disabled, the XenServer console will display the Windows
boot splash screen for the VM, but nothing beyond that.
CAUTION:
If you disable console VGA before you have installed or enabled an alternate mechanism to
access the VM (such as Citrix Virtual Apps and Desktops), you will not be able to interact
with the VM once it has booted.
You can recover console VGA access by making one of the following changes:
NVIDIA reserves the right to make corrections, modifications, enhancements, improvements, and any other changes to this document, at any time without
notice.
Customer should obtain the latest relevant information before placing orders and should verify that such information is current and complete.
NVIDIA products are sold subject to the NVIDIA standard terms and conditions of sale supplied at the time of order acknowledgement, unless otherwise
agreed in an individual sales agreement signed by authorized representatives of NVIDIA and customer (“Terms of Sale”). NVIDIA hereby expressly objects
to applying any customer general terms and conditions with regards to the purchase of the NVIDIA product referenced in this document. No contractual
obligations are formed either directly or indirectly by this document.
NVIDIA products are not designed, authorized, or warranted to be suitable for use in medical, military, aircraft, space, or life support equipment, nor in
applications where failure or malfunction of the NVIDIA product can reasonably be expected to result in personal injury, death, or property or environmental
damage. NVIDIA accepts no liability for inclusion and/or use of NVIDIA products in such equipment or applications and therefore such inclusion and/or use
is at customer’s own risk.
NVIDIA makes no representation or warranty that products based on this document will be suitable for any specified use. Testing of all parameters of each
product is not necessarily performed by NVIDIA. It is customer’s sole responsibility to evaluate and determine the applicability of any information contained
in this document, ensure the product is suitable and fit for the application planned by customer, and perform the necessary testing for the application in
order to avoid a default of the application or the product. Weaknesses in customer’s product designs may affect the quality and reliability of the NVIDIA
product and may result in additional or different conditions and/or requirements beyond those contained in this document. NVIDIA accepts no liability related
to any default, damage, costs, or problem which may be based on or attributable to: (i) the use of the NVIDIA product in any manner that is contrary to this
document or (ii) customer product designs.
No license, either expressed or implied, is granted under any NVIDIA patent right, copyright, or other NVIDIA intellectual property right under this document.
Information published by NVIDIA regarding third-party products or services does not constitute a license from NVIDIA to use such products or services or
a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property rights
of the third party, or a license from NVIDIA under the patents or other intellectual property rights of NVIDIA.
Reproduction of information in this document is permissible only if approved in advance by NVIDIA in writing, reproduced without alteration and in full
compliance with all applicable export laws and regulations, and accompanied by all associated conditions, limitations, and notices.
THIS DOCUMENT AND ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS
(TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR
OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND
FITNESS FOR A PARTICULAR PURPOSE. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL NVIDIA BE LIABLE FOR ANY DAMAGES, INCLUDING
WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND REGARDLESS OF
THE THEORY OF LIABILITY, ARISING OUT OF ANY USE OF THIS DOCUMENT, EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Notwithstanding any damages that customer might incur for any reason whatsoever, NVIDIA’s aggregate and cumulative liability towards customer for the
products described herein shall be limited in accordance with the Terms of Sale for the product.
VESA DisplayPort
DisplayPort and DisplayPort Compliance Logo, DisplayPort Compliance Logo for Dual-mode Sources, and DisplayPort Compliance Logo for Active Cables are
trademarks owned by the Video Electronics Standards Association in the United States and other countries.
HDMI
HDMI, the HDMI logo, and High-Definition Multimedia Interface are trademarks or registered trademarks of HDMI Licensing LLC.
OpenCL
OpenCL is a trademark of Apple Inc. used under license to the Khronos Group Inc.
Trademarks
NVIDIA, the NVIDIA logo, NVIDIA GRID, NVIDIA GRID vGPU, NVIDIA Maxwell, NVIDIA Pascal, NVIDIA Turing, NVIDIA Volta, GPUDirect, Quadro, and Tesla are
trademarks or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Other company and product names may be trademarks of the
respective companies with which they are associated.
Copyright
© 2013-2024 NVIDIA Corporation & affiliates. All rights reserved.