Skip to content

vGPU

Roles with access

  • Access to the section: any user.

IsardVDI can work with the Nvidia vWS technology, which makes the resources of a graphics card available to a virtual desktop. This technology makes it possible to run software that needs dedicated GPU resources, such as 3D design, animation, video editing, CAD or industrial design programs.

Each graphics card can be divided into different profiles with a reserved amount of memory. Depending on the selected profile, more or fewer virtual cards are available. The following image shows a server with a series of installed GPU cards. Each card can be divided into vGPUs (virtual GPUs) that can be mapped to each virtual machine.

An example of how it works: there is an Nvidia A40 card and a program such as SolidWorks is to be used to design 3D parts. A profile with 2 GB of dedicated graphics memory is used. This graphics card has 48 GB of memory, which can be divided into "2Q" profiles: the first character "2" refers to the amount of reserved memory (2 GB) and the second character "Q" refers to the vWS license, the mode in which the virtual card is configured for creative and technical work that uses Nvidia Quadro technology.

The different profiles and operating modes available for this card are listed in the Nvidia manual with the profiles for the A40. For 2Q:

  • Dedicated and reserved memory: 2 GB
  • Maximum number of vGPUs per GPU: 24

Operating diagrams of the Nvidia vGPU technology:

In the following screenshot:

For more information on using GPU technology on desktops in IsardVDI, see the bookings and profiles section.

In the side menu, the Desktops section; this function is within that screen.

Profile Types

The number of physical GPUs on a board depends on the board. Each physical GPU can support various different types of virtual GPUs (vGPU). vGPU types have a fixed amount of frame buffer memory, a number of compatible display heads, and maximum resolutions. They are grouped into different profiles based on the different workload classes for which they are optimized. Each profile is identified by the last letter of the vGPU type name. For more information.

Profiles Optimal workload
Q For creative and technical professionals who require the performance and features of Quadro technology.
C Compute-intensive server workloads, such as artificial intelligence (AI), deep learning, or high-performance computing
B For business professionals and knowledge workers
A Application streaming or session-based solutions for virtual application users

A vGPU profile defines the portion of the physical graphics card (frame buffer memory, display heads and maximum resolutions) assigned to a desktop. The user does not create or modify profiles: they only choose, among those the administration has allowed them, the ones offered in the vGPU field of the desktop hardware. The final letter of the profile name indicates the workload type (Q, C, B, A; see the table in the old interface tab).

Conditions and messages
  • If the user has no allowed profile, the field shows: «No vGPU available for your user».
  • The available profiles and who can use them are defined by the administration in vGPU, and the slots in which they can be booked, in the Bookings plannings.

How to prepare a desktop/template

The preparation is described in the following sections: driver installation, token management and creating or editing the desktop or deployment.

A vGPU is a portion of the physical graphics card made available to a desktop. It is selected in the vGPU field of the desktop or template hardware (selector «Select a vgpu»).

Conditions and messages
  • A maximum of 4 vGPU profiles can be selected per desktop («Maximum of 4 vGPU profiles per desktop.»). If exceeded, it is rejected with «The maximum number of vGPU profiles allowed has been exceeded.» (code too_many_vgpu_profiles).
  • If multiple are selected, they must all be available on the same hypervisor; since each GPU model usually resides on its own hypervisors, they must practically be of the same model. The interface grays out (dims) profiles that cannot be combined with those already selected.
  • When multiple are selected, the interface informs (for informational purposes only, never blocking startup) about NUMA placement: «Same NUMA socket possible (node N): cards can share a socket, better memory bandwidth» or «Different NUMA sockets: the desktop still starts, but cross-socket memory access is slower».
  • The deployment videowall shows the screens over VNC: a desktop whose video is set to «Only GPU» (RDP viewers only) is not shown in it. The page recalls this with the «Videowall does not work with RDP viewers» warning.

Driver Installation

This guide explains, step by step, the process of installing NVIDIA drivers as a client (guest) for a virtual desktop on the IsardVDI platform connected to a server with NVIDIA GPU cards.

Requirements for this guide

  • IsardVDI server with NVIDIA host drivers previously installed (host)
  • Virtual desktop with Windows 10/11 operating system
  • NVIDIA driver installer executable file
  • USB drive

Preliminary steps

You must find out the NVIDIA host driver version on the server to install the same version on the virtual desktop to ensure compatibility between both machines.

The IsardVDI server administrator must provide the NVIDIA driver version information

The server runs a Linux distribution, so in the terminal, type the command nvidia-smi --query-gpu=driver_version --format=csv,noheader and collect the driver version:

root@server:/home/isard# nvidia-smi --query-gpu=driver_version --format=csv,noheader
535.183.04

The equivalent in the Windows operating system to driver version 535.183.04 is 538.78, as shown in this comparison table from NVIDIA's official website:

If the server to which the virtual desktop to be configured points has any of these graphics cards, the host drivers must be updated to at least these versions. Otherwise, compatibility issues and/or issues during the client driver installation process on the desktop may occur:

Desktop

Basic parameters

Have a Windows or Linux operating system, based on a base template with this system preinstalled and preconfigured, without any display or graphics card drivers installed. If drivers are installed, they must be uninstalled to prepare the system and perform the following steps; otherwise, it will not work.

Edit the desktop with the parameters shown in the following image, which will be modified later (the vCPUs and Memory (GB) parameters are not relevant):

Installation

As explained above, for this practice, you need the client driver installer file corresponding to the virtual desktop's operating system.

Download them to the local machine, using the software download list available on the NVIDIA Enterprise web panel, or via this alternative Google source where you can download only the .exe or .run file for Windows or Linux.

Then, copy it to the USB drive to connect it to the virtual desktop via the SPICE viewer.

Since it is a desktop with an assigned GPU profile but not reserved (this can be done but is not necessary), access the desktop via the Isard Administration panel:

And copy the file to the admin - installers folder in the desktop's Windows:

Then shut down the desktop and edit it again with the following configuration:

  • Without touching the desktop and without restarting it, edit it from IsardVDI to change the parameters so that it matches the following image. It is very important to disable the previous viewers and leave only RDP and RDP Browser; the Video parameter must have the Only GPU option selected:

Start the desktop again with either of the two RDP viewers.

Run the file and in the new installation window, mark the following steps:

Final test

Next, restart the desktop and access it via any RDP viewer.

Then, check that the NVIDIA Control Panel appears in the Windows taskbar in the bottom right corner, which will certify the correct installation of the drivers and compatibility with the equipment, this may take a few minutes until Windows starts all services:

Installation errors

NVIDIA Control Panel does not open / icon indicating NVIDIA is running is not displayed

If the panel is not displayed and/or cannot be opened, uninstall the 3 programs via Control Panel - Programs - Uninstall a program:

Shut down the machine manually, start it, and carry out the driver installation again (section «Driver Installation»).

Do not edit the desktop to set the initial parameters; after uninstalling the packages and shutting down the desktop, access it again via the RDP viewer with the Only GPU parameter for Video.

Repeat the uninstallation and installation of the packages until the NVIDIA Control Panel icon appears and can be opened.

NVIDIA driver not detected

Ensure that the server driver and the one installed on the desktop are compatible; they must match, otherwise, it will not work.

Ex: if the server has version 15.2, any version 15.X (preferably 15.2) must be installed on the desktop.

Driver installation is a task inside the guest operating system of the desktop; it is not done from the web interface. The steps are the ones in the old interface tab.

Version compatibility

The driver installed on the desktop must be compatible with the server's driver (same major version). If not, the vGPU will not work.

Token Management

To add the NVIDIA license token, first download it from the NVIDIA portal.

Once you have the token, it must be put inside the virtual desktop. This can be done by downloading the file from a cloud storage service, from the NVIDIA portal, or with a USB device (through the Spice viewer or RDP viewer)

  • Windows

The token must be placed in the folder at the following path:

C:\Program Files\NVIDIA Corporation\vGPU Licensing\ClientConfigToken

To verify that the token works correctly, open a cmd and type nvidia-smi -q

Scroll down until you find the following section. If License Status shows Licensed with an expiry date, this confirms that the Windows client license has been applied correctly.

If it has been licensed correctly, this is shown:

If it has not been licensed correctly, this is shown:

  • Linux

Move the token to the /etc/nvidia/ClientConfigToken directory and change its permissions:

sudo mv client_configuration_token_*.tok /etc/nvidia/ClientConfigToken
sudo chmod 744 /etc/nvidia/ClientConfigToken/client_configuration_token_*.tok

If the gridd.conf file does not exist, create it from the gridd.conf.template file (nothing in the file needs to be changed):

sudo cp gridd.conf.template gridd.conf

Start the desktop and type this command in the terminal

nvidia-smi -q

Scroll down until you find the following section. If License Status shows Licensed with an expiry date, this confirms that the Linux client license has been applied correctly.

Token errors

The license token is not read

Make sure that the date/time synchronization of the desktop is not failing. If the time is not properly synchronized, it fails. Restart the server, or restart once the time has changed.

The error has to be checked in the NVIDIA log. When Windows starts it takes UTC time, updates it and then picks it up correctly.

On Windows, licensing events are written in plain text to the file %SystemDrive%\Users\Public\Documents\NvidiaLogging\Log.NVDisplay.Container.exe.log (it is rotated when it reaches 16 MB).

This is the grid licensing user guide, which explains the logs.

The vGPU token (license) is managed by the system administrator; the new user interface offers no screen to manage it. If the desktop does not get a license, tell the administration.

Do not confuse

The «Migration token» (user migration token) in Profile has nothing to do with the vGPU license.

Create/edit desktop/deployment

To book and start a desktop with a GPU profile, the administrator must have planned it beforehand

Create/edit a desktop or create/edit a deployment with the previous steps done, scroll to the Viewers section and make sure the RDP viewer checkboxes are ticked.

It is important to know that it only works with the RDP viewers

IMPORTANT!: If there is a problem with the operating system and the desktop does not get an IP address, it cannot be accessed over RDP. This should always be avoided but, all the more so in this section, forcing the desktop to shut down from the IsardVDI interface can corrupt the disk (it is the equivalent of pulling the power cable out of a running computer) so that it cannot boot the operating system and get an IP address, and access to the desktop may be lost.

Some settings in the Hardware section also have to be changed.

It is important that the Videos setting has the Only GPU option selected. On Windows desktops with the NVIDIA drivers installed, having a QXL video card and a vGPU card at the same time is not supported.

In the Bookables section further down, the available GPU profile is assigned.

Windows desktops can only use the RDP viewers, but Linux desktops can use the Spice/RDP viewers and video set to Default.

When creating or editing a desktop, a deployment or a template, the vGPU is chosen in the hardware section (Reservables), in the vGPU field.

Conditions and messages
  • When a temporary desktop with a GPU is created, the booking is made on creation: an End time must be chosen («The GPU is booked from now on. Latest end: …»). Without an end time, the error is «The GPU needs an end time».
  • If the chosen time no longer fits: «This end time is no longer available. Pick an earlier one.» or «The GPU booking no longer fits».
  • If the time exceeds the maximum allowed: «The GPU booking is too long».
  • If the maximum number of bookings has been reached: «You have reached the maximum number of bookings. Delete a booking before creating a desktop with a GPU.»
  • Profiles with no free slots are shown as «Not available right now». If there is none: «No GPU is available right now»; you can remove the GPU to create the desktop without it, or create a persistent desktop and book it for later.
  • If the check fails: «Couldn't check GPU availability»; try again in a while.

Start now or reserve

There are two ways to start a desktop with a GPU: the first is the "start now" function, which starts the desktop immediately if GPU profiles are available. The second is a booking, which requires booking the desktop with an advance time defined by the IsardVDI administrator.

Start now

If the desktop has no booking, the card shows «The desktop with vGPU isn't booked!». To start it right away, click the Start button. A dialog with time options appears:

Available graphics card

If the graphics card is available, the desktop starts without problems and shows the end date and time of the booking. When that date/time is reached, the desktop shuts down and the booking is deleted automatically.

Graphics card not available

If the graphics card is not available, a window appears with two options: change the graphics card to one that is available, or book the desktop with the current graphics card for when it is available.

Booking

To book a desktop or deployment, see this section of the manual: Bookings

There are two ways to use a desktop with a GPU: start it now, if the profile has free slots, or book it for later (see Bookings).

If the desktop's GPU profile is not available at the moment, the notice «GPU '…' is not available for desktop '…' at the moment.» appears with two options:

  • Book desktop: opens the bookings page in a new tab to book it for later with its current GPU.
  • Change and start: changes to a card model available now and starts it immediately (this may affect the desktop's performance). It asks for the End time and the GPU profiles; the button is Change and start.
Conditions and messages
  • If there is no other profile: «No profiles available».
  • «Could not change the GPU» with the reason: the profiles are not all on the same host; they are not of the same GPU model; they are not available for the whole time (choose an earlier end time); or a generic error (try again).
  • If there is not enough advance time: «You need to book this desktop in advance to use it»; go to the bookings page. The advance time and the maximum duration are set by the administration in Bookables.
Development details

For those who develop or integrate IsardVDI: where each element of this section is in the code, since which version it has been present, which API operation it calls and which messages it can return.

Commit code fe99ad98.