Skip to main content

Command Palette

Search for a command to run...

Kasm web: pass through Intel iGPU to workspaces

Updated
1 min read
Kasm web: pass through Intel iGPU to workspaces

Follow this article to pass through the iGPU to the LXC container first.

In the Kasm admin panel go to Workspaces / <workspace : edit>

By default the iGPU is used with DRI3

Under “Docker Run Config Overide (JSON)” set:

{
  "environment": {
    "HW3D": true,
    "DRINODE": "/dev/dri/renderD128"
  },
  "devices": [
    "/dev/dri/card0:/dev/dri/card0:rwm",
    "/dev/dri/renderD128:/dev/dri/renderD128:rwm"
  ]
}

Under “Docker Exec Config (JSON)” set:

{
  "first_launch": {
    "user": "root",
    "cmd": "bash -c 'chown -R kasm-user:kasm-user /dev/dri/*'"
  }
}

If the DRI3 method doe not work use VirtualGL method:

Under “Docker Run Config Overide (JSON)” set:

{
  "environment": {
    "KASM_EGL_CARD": "/dev/dri/card0",
    "KASM_RENDERD": "/dev/dri/renderD128"
  },
  "devices": [
    "/dev/dri/card0:/dev/dri/card0:rwm",
    "/dev/dri/renderD128:/dev/dri/renderD128:rwm"
  ]
}

and run the app with the following command:

vglrun -d ${KASM_EGL_CARD} YOURCOMMANDHERE

To test the gpu is enabled, run the Ubuntu desktop image and within the terminal run:

glxinfo -B

Resources: