GPU Passthrough: Custom OS Template
To configure a custom OS template for GPU support, please adhere to the guidelines outlined below.
It is important to recognize that GPU passthrough primarily serves two distinct scenarios:
- Machine Learning workloads (typically requiring no visual output, such as OpenCL tasks).
- Image and video processing (applications like OBS Studio, Blender, video editing software, or Multiverse presentations).
While Machine Learning tasks demand less configuration effort—since the display does not necessarily need to render via the GPU—we will outline the complete end-to-end process to ensure compatibility with both scenarios.
Supported GPU Hardware
If you are running DaDesktop in an on-premise environment or requesting specific hardware for your private server, please consider the following points.
Our DaDesktop system is primarily validated against AMD Radeon RX 6000 series cards (specifically the RX 6400) and Nvidia RTX series GPUs. Generally, models released prior to 2018 are not supported.
Additionally, integrated graphics on Ryzen 7/9 processors and Intel integrated GPUs should function correctly, although they are not subject to our automated testing routines.
DD Node Configuration
The directory dadesktop_npnode_deploy/modules/build-os-template contains scripts designed to modify the Linux guest OS to utilize the GPU as the primary display, allowing for seamless switching between GPU-accelerated rendering and CPU-based screen output.
Guest Settings
Ensure that the "support_qemu" setting in /var/lib/kvm/templatename/sysinfo.json is configured to false. This is necessary to enable VNC connectivity within the guest, as QEMU's built-in VNC cannot display the passthrough GPU screen.
Testing
Method 1: vblank_mode=0 glxgears
Method 2:
/apps/dd-guest/check-gpu
Windows Guest Settings (when no physical monitor is attached, a common scenario)
We utilize IddSampleDriver to establish a display adapter and a virtual monitor within the Windows 10 template. Please install this driver if your GPU lacks a connected physical monitor.
-
Extract the IddSampleDriver files into the c:\IddSampleDriver folder.
-
Install the required certificate.
-
Install the driver.
-
Navigate to "Display Settings" where you will observe multiple displays. Under "Advanced display settings," identify the virtual display we created, typically labeled as "Linux FHD" and assigned to Display 2 or 3. Note this display number as N. Return to the "Select and rearrange displays" section, select display N, and within the "Multiple displays" menu, choose "Show only on N" if available. Finally, set it as the main display and adjust its resolution.
-
In the event that no display named "Linux FHD" is found:
Proceed to "Device Manager" -> "Display Adapters" -> "IddSampleDriver Device". Right-click and enable the device. (Note: You may disable this device if you do not intend to use the virtual display.)
-
If a display labeled "AMD vDisplay" is present, it is usually identified as Display 2:
Performance may be sluggish, and you should "Disconnect this display" if the option is available.
(Select Display x, then under the "Multiple displays" section, use the drop-down menu to choose the Disconnect this display option.
-
If a display labeled "Qemu Monitor" is detected, it is typically Display 1:
You may also "Disconnect this display" if the option is provided.