# Kasm web: pass through Intel iGPU to workspaces

Follow this [article](https://hashnode.com/post/clkdwe9xj000j0amo9ng6cnbp) to pass through the iGPU to the LXC container first.

In the Kasm admin panel go to *Workspaces / &lt;workspace : edit&gt;*

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690026440497/941ac212-0d6c-4afc-8a45-35161a1e0823.png align="center")

By default the iGPU is used with **DRI3**

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

```json
{
  "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:

```json
{
  "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:

```json
{
  "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:

```bash
vglrun -d ${KASM_EGL_CARD} YOURCOMMANDHERE
```

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

```bash
glxinfo -B
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690026748046/8908947a-d872-4ea2-af21-08eccce88bb0.png align="center")

Resources:

* [https://kasmweb.com/docs/latest/how\_to/manual\_intel\_amd.html](https://kasmweb.com/docs/latest/how_to/manual_intel_amd.html)
    
* [https://kasmweb.com/docs/latest/how\_to/gpu.html](https://kasmweb.com/docs/latest/how_to/gpu.html)
    
* [https://kasmweb.com/kasmvnc/docs/master/gpu\_acceleration.html](https://kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html)
