Custom OS Template for GPU Passthrough
To configure your custom template for GPU support, please adhere to the following guidelines.
It is important to distinguish between the two primary scenarios for GPU passthrough:
- Machine Learning (where no visual output is required, such as OpenCL workloads)
- Image Processing (including applications like OBS Studio, Blender, video editing suites, and Multiverse presentations)
Although Machine Learning workloads involve less configuration since the display does not rely on the GPU, this guide outlines the complete process to accommodate both use cases.
Supported GPUs
If you are deploying DaDesktop on-premises or procuring specific hardware for a private server, consider the following details.
Our testing primarily focuses on the AMD Radeon RX 6000 series (particularly the RX 6400) and Nvidia RTX cards. Generally, hardware models released before 2018 are not supported.
Additionally, integrated GPUs for Ryzen 7/9 processors and Intel iGPUs are expected to function correctly, although they are not part of our automated testing suite.
DD Node Configuration
The dadesktop_npnode_deploy/modules/build-os-template directory includes scripts that modify the Linux guest environment to utilize the GPU as the primary display and allow 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 allows VNC connection within the guest, as the qemu vnc interface cannot render 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)
We utilize IddSampleDriver to create a display adapter and virtual monitor within the Windows 10 template. If no physical monitor is connected to the GPU, please install this driver.
-
Place the additional IddSampleDriver files into the c:\IddSampleDriver folder
-
Install the certificate
-
Install the driver
-
Navigate to "Display Settings" to view multiple displays. Check "Advanced display settings". Typically, the virtual display we create is labeled Display 2 or 3 with the name Linux FHD. Note this display number as N. Then, return to the "Select and rearrange displays" section, choose display N, and in the Multiple displays section, select "Show only on N" if available. Finally, set it as the main display and adjust its resolution.
-
If you do not see 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 wish to use the virtual display.)
-
If a display named AMD vDisplay is present, typically as Display 2:
Performance may be slow; you can select "Disconnect this display" if the option is available.
(Choose Display x, go to the Multiple displays section, use the drop-down menu, and select the Disconnect this display option.)
-
If a display named Qemu Monitor appears, typically as Display 1:
You may also choose to "Disconnect this display" if the option is present.