Skip to content

[BUG] GPU issues on Unraid #11

Open

Description

@BeattieBoy

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

GPUs cannot be enabled on Unraid. This was raised in a issue previously, but the thread seemed to be abandoned with no solution.

Expected Behavior

It should use the GPU...

Steps To Reproduce

Container boots but fails to get permission for the GPU and falls back to software rendering. The GPU(s) are detected (a 3080 on D128 and a Tesla P40 on D129), everything seems to go smoothly until

KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
[Wayland] GPU renderer failed to initialize (Failed to allocate GBM buffer); rendering in software (Pixman).

I have tried every combination of docker configs I can think of with no luck.

  • Passing /dev/dri
  • Defining DINODE and DRI_NODE
  • modeset is configured in the bootloader and a cat /sys/module/nvidia_drm/parameters/modeset returns Y
  • Adding NVIDIA_VISIBLE_DEVICES and NVIDIDA_DRIVER_CAPABILITIES (as many Unraid docker containers use)
  • Running nvidia-modprobe --modeset after reboot and before launching the container

Environment

- OS: Unraid 7.1.4
- How docker service was installed: Compose
- Nvidia Driver: 580.82.09
- GPU: RTX 3080 (Tesla P40 installed but not trying to use that)

CPU architecture

x86-64

Docker creation

services:
  webstation:
    image: lscr.io/linuxserver/webstation:latest
    container_name: webstation
    runtime: nvidia
    gpus: all
    environment:
      - PUID=99
      - PGID=100
      - TZ=America/Los_Angeles # Change to your timezone
      - DRINODE=/dev/dri/renderD128
      - DRI_NODE=/dev/dri/renderD128
    devices:
      - /dev/dri:/dev/dri
      - /dev/nvidia-modeset:/dev/nvidia-modeset
    volumes:
      - /mnt/user/appdata/webstation:/config # Replace with your local directory
      - /mnt/user/Media/ROMs/roms:/romm-roms
      - /mnt/user/Media/ROMs/BIOS:/bios
    ports:
      - 3000:3000
      - 3001:3001
    shm_size: "1gb"
    restart: unless-stopped

Container logs

User UID:    99
User GID:    100
───────────────────────────────────────
[ls.io-init] Generating labwc rc.xml from template
[ls.io-init] Disabling auto-maximization
/usr/bin/nvidia-smi
**** adding /dev/dri/renderD129 to video group root with id 0 ****
**** permissions for /dev/dri/renderD128 are good ****
**** permissions for /dev/dri/card2 are good ****
**** permissions for /dev/dri/card1 are good ****
**** creating video group video970t with id 18 ****
**** adding /dev/dri/card0 to video group video970t with id 18 ****
by-path
card0
card1
card2
renderD128
renderD129
**** NVIDIA GPU detected ****
**** Setting up OpenCL ICD for NVIDIA ****
**** Setting up EGL vendor file for NVIDIA ****
**** Routing GLX to the NVIDIA library ****
[custom-init] No custom files found, skipping...
[svc-de] Wayland mode: Waiting for socket at /config/.XDG/wayland-1...
[ls.io-init] done.
19
20
[pixelflux] Render node 0 encodes H264, H265 on nvenc.
[pixelflux] Thread priority -15 refused and rtkit does not grant it; capture threads run at normal priority.
[Wayland] Renderer: GL on /dev/dri/renderD128.
pci id for fd 43: 10de:2206, driver (null)
pci id for fd 44: 10de:2206, driver (null)
pci id for fd 45: 10de:2206, driver (null)
pci id for fd 44: 10de:2206, driver (null)
pci id for fd 45: 10de:2206, driver (null)
pci id for fd 42: 10de:2206, driver (null)
pci id for fd 46: 10de:2206, driver (null)
pci id for fd 47: 10de:2206, driver (null)
pci id for fd 46: 10de:2206, driver (null)
pci id for fd 47: 10de:2206, driver (null)
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
[Wayland] GPU renderer failed to initialize (Failed to allocate GBM buffer); rendering in software (Pixman).
[Wayland] View 1 created over output 0: 1024x768 @ (0, 0).
[Wayland] Socket listening on: "wayland-1"
INFO:server:Wayland compositor socket: wayland-1
INFO:main:Selkies 2.0.0 starting: websockets transport, Wayland capture, encoder h264enc at 8-240 fps, sized by the client, audio on, gamepads on, access op
en.
INFO:server:Starting service: websockets
INFO:gamepad:4 virtual gamepads ready ('Microsoft X-Box 360 pad', sockets under /tmp); kernel uinput off.
INFO:input:Wayland clipboard: native compositor callback active (no polling).

Activity

  1. thelamer commented on Sep 26, 2026

    @thelamer
    Member

    That is not how Nvidia works, given your compose start with the run command and work from there

    https://docs.linuxserver.io/selkies/user-guide/gpu/#nvidia-proprietary-drivers

  2. BeattieBoy commented on Sep 26, 2026

    @BeattieBoy
    Author

    Pardon my confusion... This is a learning experience for me. But doesn't that just run a web-based Ubuntu image? Also based on the formatting of the instructions, I assumed that was for drivers between 595.80 and newer, which I do not have.

  3. thelamer commented on Sep 26, 2026

    @thelamer
    Member

    You are running a 3080 on unraid the official runtime is on that version are you intentionally not upgrading ?

    I don't care either way my main point was that compose example you have shown is not how the nvidia runtime works in compose, refer to the docs and start with minimal run commands run from the CLI on the server to see if you can get nvidia working on your host. I also have a 3000 series card and most of this stack is developed against that, but I do not run unraid so I could not tell you anything about how to configure that outside of the documentation and methodologies that have been contributed by unraid users with working setups.

  4. BeattieBoy commented on Sep 27, 2026

    @BeattieBoy
    Author

    The latest drivers drop support for the second GPU in the machine, so I'm effectively stuck on 580 unfortunately.

    After much debugging... Turns out there's some issue with Selkies and GP assignment on the 580 drivers on Unraid and you need to make a symlink of some driver files.

    Adding this to my compose solved it:
    entrypoint: - /bin/bash - -c - | ln -sf /usr/lib/x86_64-linux-gnu/libnvidia-allocator.so.1 /usr/lib/x86_64-linux-gnu/gbm/nvidia-drm_gbm.so exec /init

  5. thelamer commented on Sep 27, 2026

    @thelamer
    Member

    cool also just so you know romm-broker exists for romm integration with this container on the romm branch https://romm-streaming.github.io/romm-broker/docs/deployment/unraid/

  6. BeattieBoy commented on Sep 28, 2026

    @BeattieBoy
    Author

    Yep, that was the end goal of the whole endeavor. It's up and running at last. Though possibly something still seems off, as my handheld seems to run better, but that's a problem for another time.

  7. LinuxServer-CI commented on Oct 28, 2026

    @LinuxServer-CI
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions