Open mfoti opened 3 months ago
I've fixed running this:
docker exec -ti kasm nvidia-ctk runtime configure --runtime=docker
docker restart kasm
and updating the Chrome Workspace in "Docker Run Config Override (JSON)"
with this configuration:
{
"device_requests": [
{
"capabilities": [
[
"gpu"
]
],
"count": -1,
"device_ids": null,
"driver": "",
"options": {}
}
],
"devices": [
"/dev/dri/card1:/dev/dri/card1:rwm",
"/dev/dri/renderD128:/dev/dri/renderD128:rwm"
],
"environment": {
"KASM_EGL_CARD": "/dev/dri/card1",
"KASM_RENDERD": "/dev/dri/renderD128"
},
"hostname": "kasm"
}
But I have a black screen and at least chrome doesn't starts
But I have a black screen and at least chrome doesn't starts
Remove your Docker run config with:
{ "environment": { "NVIDIA_DRIVER_CAPABILITIES": "all" } }
I think you had it - had to scrounge around to figure out what the issues were but step 1 is:
Add the variables to the container:
Variables:
NVIDIA_DRIVER_CAPABILITIES=all NVIDIA_VISIBLE_DEVICES=all (or GPUID on visible devices)
Argument: --runtime=nvidia
Command: docker exec -ti kasm nvidia-ctk runtime configure --runtime=docker (as long as container name is kasm - run it from the CLI of the host, or alternatively run nvidia-ctk runtime configure --runtime=docker within the container.
Set the docker json to:
{ "environment": { "NVIDIA_DRIVER_CAPABILITIES": "all" } }
Existing Resources
Describe the bug On UnRaid installation Wizard the GPU is not recognized.
I've updated the installation template including: in extra parameters:
--runtime=nvidia
asvariable
:NVIDIA_VISIBLE_DEVICES
=all
asvariable
:NVIDIA_DRIVER_CAPABILITIES
=all
and nvidia-smi works.but
drm_info
don't include/dev/dri/card1
my GPU DevI've tried to force this card during the installation process (with an hardcoded mod of this script that output:
{"/dev/dri/card1":"NVIDIA P400"}
and{"/dev/dri/card1":"Quadro P400"}
), but after installation was done I'm unable to start any workspace, I have the error:error gathering device information while adding custom device "/dev/dri/renderD129": no such file or directory
Full log:
The device is not present in
kasm_agent
container as device:But I can find it in proc:
To Reproduce Steps to reproduce the behavior:
Expected behavior Be able to use nvidia card on kasm/UnRaid
Workspaces Version Version 1.15
Workspaces Installation Method UnRaid
Workspace Server Information (please provide the output of the following commands):
uname -a
cat /etc/os-release
sudo docker info
Server: Containers: 9 Running: 8 Paused: 0 Stopped: 1 Images: 9 Server Version: 25.0.4 Storage Driver: fuse-overlayfs Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 runc Default Runtime: runc Init Binary: docker-init containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc version: v1.1.12-0-g51d5e94 init version: de40ad0 Security Options: seccomp Profile: builtin cgroupns Kernel Version: 6.1.74-Unraid Operating System: Ubuntu 22.04.2 LTS (containerized) OSType: linux Architecture: x86_64 CPUs: 88 Total Memory: 251.5GiB Name: fe5d658a8112 ID: d62537f3-97b0-482e-a489-4e00a573cd4c Docker Root Dir: /opt/docker Debug Mode: false Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
4feeb4b6b2cf kasmweb/nginx:1.25.3 "/docker-entrypoint.…" 15 hours ago Up 14 hours 80/tcp, 0.0.0.0:6333->6333/tcp kasm_proxy 261d67c5ccc3 kasmweb/agent:1.15.0 "/bin/sh -c '/usr/bi…" 15 hours ago Up 14 hours (healthy) 4444/tcp kasm_agent ad3e62cd7871 kasmweb/share:1.15.0 "/bin/sh -c '/usr/bi…" 15 hours ago Up 14 hours (healthy) 8182/tcp kasm_share b1f718129357 kasmweb/kasm-guac:1.15.0 "/dockerentrypoint.sh" 15 hours ago Up 16 seconds (health: starting) kasm_guac 6150582c13bb kasmweb/api:1.15.0 "/bin/sh -c '/usr/bi…" 15 hours ago Up 14 hours (healthy) 8080/tcp kasm_api a95638e0e39a kasmweb/manager:1.15.0 "/bin/sh -c '/usr/bi…" 15 hours ago Up 14 hours (healthy) 8181/tcp kasm_manager bdfc0ef3df36 redis:5-alpine "docker-entrypoint.s…" 15 hours ago Up 14 hours 6379/tcp kasm_redis 8436c39024bc postgres:12-alpine "docker-entrypoint.s…" 15 hours ago Up 14 hours (healthy) 5432/tcp kasm_db
cat /boot/config/modprobe.d/nvidia.conf options nvidia-drm modeset=1 options nvidia-drm fbdev=1