Can't start my LXC container with Jellyfin: TASK ERROR: Device /dev/dri/card0 does not…
- User
Can't start my LXC container with Jellyfin: TASK ERROR: Device /dev/dri/card0 does not exist
- 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
card0orrenderD128devices, your GPU drivers might not be loaded properly.Common solutions:
- If using Intel integrated graphics, ensure the i915 driver is loaded:
lsmod | grep i915 # If not loaded: sudo modprobe i915-
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. -
If using AMD GPU, check for the amdgpu driver:
lsmod | grep amdgpu- 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-
If the devices exist but with different names (like
card1instead ofcard0), update your container config to match the actual device names. -
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.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.