workspaces-issues icon indicating copy to clipboard operation
workspaces-issues copied to clipboard

Chrome workspace has black screen after enabling GPU

Open vincentchik-nzpost opened this issue 2 years ago • 4 comments

I am running Kasm on a LXC in Proxmox. I am also passing through the GPU to the another LXC (Plex) with no issues and i have passed the GPU to Kasm in the same way.

I then followed the Kasm GPU passthrough guide and I can see the GPU in the kasm agent:

Screenshot 2023-05-19 at 11 53 27 PM

Screenshot 2023-05-19 at 11 53 07 PM

I have set the GPU override in the agent to 4.

However, when i try to add a GPU to the Kasm Chrome Workspace, i get a black screen.

Screenshot 2023-05-19 at 11 55 05 PM

I have tried adding { "security_opt": [ "seccomp=unconfined" ] } to the docker run override config settings but no luck there either. (as per https://www.reddit.com/r/kasmweb/comments/z61rge/kali_linux_black_screen/)

I don't know if this is a red herring but i did notice that CUDA Version: N/A when running nvidia-smi inside the docker container

Screenshot 2023-05-20 at 12 00 36 AM

Any help would be greatly appreciated!

vincentchik-nzpost avatar May 19 '23 12:05 vincentchik-nzpost

@vincentchik-nzpost - I am experiencing the same thing. I'm running on a GTX 1070 Mobile. The agent shows the GPU, nvidia-smi states CUDA Version: N/A - even tho CUDA is installed on the System in Version 12.2.
Were you able to figure out what happened? Maybe a misconfigured system or something?

Husky110 avatar Oct 22 '23 07:10 Husky110

I am experiencing the same issue with my RTX 3050. Drivers are updated to the latest version (545.29.02) and CUDA version is 12.3

jknyght9 avatar Nov 09 '23 20:11 jknyght9

@vincentchik-nzpost - I am experiencing the same thing. I'm running on a GTX 1070 Mobile. The agent shows the GPU, nvidia-smi states CUDA Version: N/A - even tho CUDA is installed on the System in Version 12.2. Were you able to figure out what happened? Maybe a misconfigured system or something?

I haven't had much luck unfortunately, i've parked this for now. I see the recommendation is to use a VM for Kasm https://www.reddit.com/r/kasmweb/comments/17strpb/comment/k8s8q6r/?utm_source=share&utm_medium=web2x&context=3

The only reason i wanted in an LXC is to share the GPU with my Plex LXC.

vincentchik-nzpost avatar Dec 05 '23 23:12 vincentchik-nzpost

Unfortunately virtualgl, which we rely on for Nvidia GPUs, does not work with the latest versions of Chrome. There is a known issue that requires funding to fix. We are working with the virtualgl maintainer to resolve the issue, but at the moment we need to find sponsors or clients that are willing to help fund the work. Otherwise Kasm will pick up the costs in due time.

KasmVNC now supports GPU acceleration on Intel and AMD GPUs directly, without virtualgl. Unfortunately, Nvidia cards do not support DRI3, they have made no indication that they ever will support DRI3, and their closed source drivers do not help us find alternative ways.

https://github.com/VirtualGL/virtualgl/issues/229

mmcclaskey avatar Dec 06 '23 11:12 mmcclaskey