Custom OS Template for GPU Passthrough

To configure your custom template for GPU support, please adhere to the guidelines outlined below.

It is important to distinguish between the two primary applications for GPU passthrough:

  • Machine Learning workloads (which do not require a graphical output, e.g., OpenCL, etc...)
  • Image and media processing (e.g., OBS Studio, Blender, video editing, Multiverse presentations, etc...)

Although Machine Learning scenarios typically require less configuration since the display does not need to be handled by the GPU, the following documentation details the end-to-end process necessary to support both use cases.

Supported GPU Models

Whether you are deploying DaDesktop on-premises or requesting specific hardware for a private server, please consider the following compatibility notes.

Our DaDesktop system is primarily tested with AMD Radeon RX 6000 series cards (specifically the RX 6400) and Nvidia RTX graphics cards. Generally, models released before 2018 are not supported.

While integrated GPUs from Ryzen 7/9 processors and Intel iGPUs are expected to function correctly, we do not conduct automated testing on these configurations.

DD Node Configuration

The directory dadesktop_npnode_deploy/modules/build-os-template contains the necessary scripts to modify the Linux guest environment. This ensures the GPU is recognized as the primary display and allows for seamless switching between GPU-accelerated and CPU-rendered screens.

Guest Settings

Please verify that support_qemu is set to false in the /var/lib/kvm/templatename/sysinfo.json file. This configuration is essential to enable VNC access within the guest, as the standard QEMU VNC implementation cannot render passthrough GPU output.

Testing

Method 1: 
vblank_mode=0 glxgears

Method 2:

/apps/dd-guest/check-gpu

Windows Guest Settings When No Physical Monitor Is Attached (Most Cases)

We utilize IddSampleDriver to create a virtual display adapter and monitor within the Windows 10 template. Please install this driver if your GPU does not have a physical monitor connected.

  • Extract the IddSampleDriver files to the c:\IddSampleDriver folder.

  • Install the required certificate.

  • Install the driver.

  • Navigate to "Display Settings" where multiple displays will be listed. Check "Advanced display settings" to identify the virtual display we created, typically labeled as Display 2 or 3 with the name Linux FHD. Note this display number as N. Return to the "Select and rearrange displays" section, select display N, and under the Multiple displays section, choose "Show only on N" if available. Finally, designate this as the main display and adjust its resolution.

  • If you cannot locate a display named Linux FHD:

Go to "Device Manager" -> "Display Adapters" -> "IddSampleDriver Device": right-click and enable the device. (You may disable this device if you do not intend to use the virtual display.)

  • If a display named AMD vDisplay is present, it is typically Display 2:

Performance may be reduced; if the "Disconnect this display" option is available, please select it.

(Select Display x, and under the Multiple displays section, use the drop-down menu to choose the Disconnect this display option.

  • If a display named Qemu Monitor is present, it is typically Display 1:

You may also "Disconnect this display" if this option is available.