Skip to content
The Chat Archive
claude-opus-4-20250514· Anthropic LMArena Human Preference 140K

Can't start my LXC container with Jellyfin: TASK ERROR: Device /dev/dri/card0 does not…

  1. User

    Can't start my LXC container with Jellyfin: TASK ERROR: Device /dev/dri/card0 does not exist

  2. Assistant

    This error indicates that the container can't access the GPU device it's configured to use. Here's how to troubleshoot and fix it:

    First, check if the GPU device exists on your host:

    ls -la /dev/dri/
    

    If you don't see any card0 or renderD128 devices, your GPU drivers might not be loaded properly.

    Common solutions:

    1. If using Intel integrated graphics, ensure the i915 driver is loaded:
    lsmod | grep i915
    # If not loaded:
    sudo modprobe i915
    
    1. If using NVIDIA GPU, you'll need to ensure the nvidia drivers are installed and the device nodes exist. For hardware transcoding in Jellyfin, you typically want to pass through /dev/nvidia* devices instead.

    2. If using AMD GPU, check for the amdgpu driver:

    lsmod | grep amdgpu
    
    1. In your LXC container configuration (usually /etc/pve/lxc/[VMID].conf), make sure the device passthrough is correct:
    lxc.cgroup2.devices.allow: c 226:0 rwm
    lxc.cgroup2.devices.allow: c 226:128 rwm
    lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file
    lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
    
    1. If the devices exist but with different names (like card1 instead of card0), update your container config to match the actual device names.

    2. Permissions fix - ensure the container can access the devices:

    # On the host:
    chmod 666 /dev/dri/*
    

    After making changes, try starting the container again. If you're still having issues, share the output of ls -la /dev/dri/ from your host system.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.