GPU Passthrough Custom OS Template

To get your custom template ready for GPU support, please follow the steps below.

As a heads up, GPU passthrough generally falls into two main scenarios:

The Machine Learning scenario is a bit simpler since the display doesn't need to leverage the GPU, but we'll walk through the complete setup to cover both situations.

Supported GPU

If you're running DaDesktop on your own hardware or requesting specific cards for your private server, here are some things to keep in mind.

Our primary testing for DaDesktop focuses on AMD Radeon RX 6000 series cards (especially the RX 6400) and Nvidia RTX cards. Typically, models released before 2018 won't be supported.

Integrated GPUs found in Ryzen 7/9 processors and Intel's iGPU should also work properly, though we don't run automated tests on them.

DD Node side

Inside dadesktop_npnode_deploy/modules/build-os-template, you'll find scripts that adjust the Linux guest to use the GPU as the primary display and toggle between GPU-accelerated machines and a CPU-rendered screen.

Guest Settings

Make sure that "support_qemu" inside /var/lib/kvm/templatename/sysinfo.json is set to false, so you can connect via VNC within the guest–because qemu vnc can't show 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 (most cases)

We rely on IddSampleDriver to set up a display adapter and virtual monitor within the Windows 10 template. Just install it if your GPU doesn't have a physical monitor connected.

Go to "Device Manager" -> "Display Adapters" -> "IddSampleDriver Device": right-click and enable the device. (You can disable it later if you're not using the virtual display.)

it may perform slowly, and you can "Disconnect this display" if the option is present.

(Choose Display x, under the "Multiple displays" section, use the drop-down menu and pick the Disconnect this display option.)

You can also "Disconnect this display" if that option is available.