[jellyfin] GID mismatch between LXC container and host causing inability to enable hardware acceleration #97

Closed
opened 2026-02-04 16:36:35 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @cospeedster on GitHub (Nov 24, 2024).

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

Same issue like https://github.com/tteck/Proxmox/issues/2523 but with ubuntu 24.04.

What settings are you currently utilizing?

  • Default Settings
  • Advanced Settings

Which Linux distribution are you employing?

Ubuntu 24.04

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

Ubuntu 24.04

       __     ____      _____     
      / /__  / / /_  __/ __(_)___ 
 __  / / _ \/ / / / / / /_/ / __ \
/ /_/ /  __/ / / /_/ / __/ / / / /
\____/\___/_/_/\__, /_/ /_/_/ /_/ 
              /____/              
 
Using Advanced Settings
Using Distribution: ubuntu
Using ubuntu Version: 24.04
Using Container Type: 0
Using Root Password: Automatic Login
Container ID: 201
Using Hostname: jellyfin
Using Disk Size: 16
Allocated Cores: 2
Allocated RAM: 2048
Using Bridge: vmbr0
Using IP Address: dhcp
Using Gateway IP Address: Default
Using APT-Cacher IP Address: Default
Disable IPv6: no
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using Vlan: Default
Enable Root SSH Access: no
Enable Verbose Mode: no
Creating a Jellyfin LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 201 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: <redacted> 
 ✓ IPv4 Internet Connected
 ✗ IPv6 Internet Not Connected
 ✓ DNS Resolved github.com to 140.82.121.3
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Set Up Hardware Acceleration
 ✓ Installed Jellyfin
 ✓ Customized Container
 ✓ Cleaned
 ✓ Completed Successfully!

Jellyfin should be reachable by going to the following URL.
             http://<redacted>:8096

root@pve:~# lxc-attach 201
root@jellyfin:~# ls -l /dev/dri
total 0
drw-rw---- 2 root root        80 Nov 23 22:37 by-path
crw-rw---- 1 root video 226,   0 Nov 23 22:37 card0
crw-rw---- 1 root _ssh  226, 128 Nov 23 22:37 renderD128

Ubuntu 22.04

       __     ____      _____     
      / /__  / / /_  __/ __(_)___ 
 __  / / _ \/ / / / / / /_/ / __ \
/ /_/ /  __/ / / /_/ / __/ / / / /
\____/\___/_/_/\__, /_/ /_/_/ /_/ 
              /____/              
 
Using Advanced Settings
Using Distribution: ubuntu
Using ubuntu Version: 22.04
Using Container Type: 0
Using Root Password: Automatic Login
Container ID: 201
Using Hostname: jellyfin
Using Disk Size: 16
Allocated Cores: 2
Allocated RAM: 2048
Using Bridge: vmbr0
Using IP Address: dhcp
Using Gateway IP Address: Default
Using APT-Cacher IP Address: Default
Disable IPv6: no
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using Vlan: Default
Enable Root SSH Access: no
Enable Verbose Mode: no
Creating a Jellyfin LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 201 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: <redacted>
 ✓ IPv4 Internet Connected
 ✗ IPv6 Internet Not Connected
 ✓ DNS Resolved github.com to 140.82.121.4
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Set Up Hardware Acceleration
 ✓ Installed Jellyfin
 ✓ Customized Container
 ✓ Cleaned
 ✓ Completed Successfully!

Jellyfin should be reachable by going to the following URL.
             http://<redacted>:8096

root@pve:~# lxc-attach 201
root@jellyfin:~# ls -l /dev/dri
total 0
drw-rw---- 2 root root         80 Nov 23 22:37 by-path
crw-rw---- 1 root video  226,   0 Nov 23 22:37 card0
crw-rw---- 1 root render 226, 128 Nov 23 22:37 renderD128

Ubuntu 22.04 (default)

       __     ____      _____     
      / /__  / / /_  __/ __(_)___ 
 __  / / _ \/ / / / / / /_/ / __ \
/ /_/ /  __/ / / /_/ / __/ / / / /
\____/\___/_/_/\__, /_/ /_/_/ /_/ 
              /____/              
 
Using Default Settings
Using Distribution: ubuntu
Using ubuntu Version: 22.04
Using Container Type: 1
Using Root Password: Automatic Login
Using Container ID: 103
Using Hostname: jellyfin
Using Disk Size: 8GB
Allocated Cores 2
Allocated Ram 2048
Using Bridge: vmbr0
Using Static IP Address: dhcp
Using Gateway IP Address: Default
Using Apt-Cacher IP Address: Default
Disable IPv6: No
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server Address: Host
Using MAC Address: Default
Using VLAN Tag: Default
Enable Root SSH Access: No
Enable Verbose Mode: No
Creating a Jellyfin LXC using the above default settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 ✓ LXC Container 103 was successfully created.
 ✓ Started LXC Container
 ✓ Set up Container OS
 ✓ Network Connected: <redacted>
 ✓ IPv4 Internet Connected
 ✗ IPv6 Internet Not Connected
 ✓ DNS Resolved github.com to 140.82.121.3
 ✓ Updated Container OS
 ✓ Installed Dependencies
 ✓ Set Up Hardware Acceleration
 ✓ Installed Jellyfin
 ✓ Customized Container
 ✓ Cleaned
 ✓ Completed Successfully!

Jellyfin should be reachable by going to the following URL.
             http://<redacted>:8096

root@pve:~# lxc-attach 103
root@jellyfin:~# ls -l /dev/dri
total 0
crw-rw---- 1 root video  226,   0 Nov 23 22:58 card0
crw-rw---- 1 root render 226, 128 Nov 23 22:58 renderD128

Please provide detailed steps to reproduce the issue.

  1. Use advanced setup
  2. Set os to ubuntu
  3. Set os version to 24.04
  4. list /dev/dri to view permissions
Originally created by @cospeedster on GitHub (Nov 24, 2024). ### Please verify that you have read and understood the guidelines. yes ### A clear and concise description of the issue. Same issue like https://github.com/tteck/Proxmox/issues/2523 but with ubuntu 24.04. ### What settings are you currently utilizing? - [ ] Default Settings - [X] Advanced Settings ### Which Linux distribution are you employing? Ubuntu 24.04 ### If relevant, including screenshots or a code block can be helpful in clarifying the issue. #### Ubuntu 24.04 ``` __ ____ _____ / /__ / / /_ __/ __(_)___ __ / / _ \/ / / / / / /_/ / __ \ / /_/ / __/ / / /_/ / __/ / / / / \____/\___/_/_/\__, /_/ /_/_/ /_/ /____/ Using Advanced Settings Using Distribution: ubuntu Using ubuntu Version: 24.04 Using Container Type: 0 Using Root Password: Automatic Login Container ID: 201 Using Hostname: jellyfin Using Disk Size: 16 Allocated Cores: 2 Allocated RAM: 2048 Using Bridge: vmbr0 Using IP Address: dhcp Using Gateway IP Address: Default Using APT-Cacher IP Address: Default Disable IPv6: no Using Interface MTU Size: Default Using DNS Search Domain: Host Using DNS Server IP Address: Host Using Vlan: Default Enable Root SSH Access: no Enable Verbose Mode: no Creating a Jellyfin LXC using the above advanced settings ✓ Using local for Template Storage. ✓ Using local-lvm for Container Storage. ✓ Updated LXC Template List ✓ LXC Container 201 was successfully created. ✓ Started LXC Container ✓ Set up Container OS ✓ Network Connected: <redacted> ✓ IPv4 Internet Connected ✗ IPv6 Internet Not Connected ✓ DNS Resolved github.com to 140.82.121.3 ✓ Updated Container OS ✓ Installed Dependencies ✓ Set Up Hardware Acceleration ✓ Installed Jellyfin ✓ Customized Container ✓ Cleaned ✓ Completed Successfully! Jellyfin should be reachable by going to the following URL. http://<redacted>:8096 root@pve:~# lxc-attach 201 root@jellyfin:~# ls -l /dev/dri total 0 drw-rw---- 2 root root 80 Nov 23 22:37 by-path crw-rw---- 1 root video 226, 0 Nov 23 22:37 card0 crw-rw---- 1 root _ssh 226, 128 Nov 23 22:37 renderD128 ``` #### Ubuntu 22.04 ``` __ ____ _____ / /__ / / /_ __/ __(_)___ __ / / _ \/ / / / / / /_/ / __ \ / /_/ / __/ / / /_/ / __/ / / / / \____/\___/_/_/\__, /_/ /_/_/ /_/ /____/ Using Advanced Settings Using Distribution: ubuntu Using ubuntu Version: 22.04 Using Container Type: 0 Using Root Password: Automatic Login Container ID: 201 Using Hostname: jellyfin Using Disk Size: 16 Allocated Cores: 2 Allocated RAM: 2048 Using Bridge: vmbr0 Using IP Address: dhcp Using Gateway IP Address: Default Using APT-Cacher IP Address: Default Disable IPv6: no Using Interface MTU Size: Default Using DNS Search Domain: Host Using DNS Server IP Address: Host Using Vlan: Default Enable Root SSH Access: no Enable Verbose Mode: no Creating a Jellyfin LXC using the above advanced settings ✓ Using local for Template Storage. ✓ Using local-lvm for Container Storage. ✓ Updated LXC Template List ✓ LXC Container 201 was successfully created. ✓ Started LXC Container ✓ Set up Container OS ✓ Network Connected: <redacted> ✓ IPv4 Internet Connected ✗ IPv6 Internet Not Connected ✓ DNS Resolved github.com to 140.82.121.4 ✓ Updated Container OS ✓ Installed Dependencies ✓ Set Up Hardware Acceleration ✓ Installed Jellyfin ✓ Customized Container ✓ Cleaned ✓ Completed Successfully! Jellyfin should be reachable by going to the following URL. http://<redacted>:8096 root@pve:~# lxc-attach 201 root@jellyfin:~# ls -l /dev/dri total 0 drw-rw---- 2 root root 80 Nov 23 22:37 by-path crw-rw---- 1 root video 226, 0 Nov 23 22:37 card0 crw-rw---- 1 root render 226, 128 Nov 23 22:37 renderD128 ``` #### Ubuntu 22.04 (default) ``` __ ____ _____ / /__ / / /_ __/ __(_)___ __ / / _ \/ / / / / / /_/ / __ \ / /_/ / __/ / / /_/ / __/ / / / / \____/\___/_/_/\__, /_/ /_/_/ /_/ /____/ Using Default Settings Using Distribution: ubuntu Using ubuntu Version: 22.04 Using Container Type: 1 Using Root Password: Automatic Login Using Container ID: 103 Using Hostname: jellyfin Using Disk Size: 8GB Allocated Cores 2 Allocated Ram 2048 Using Bridge: vmbr0 Using Static IP Address: dhcp Using Gateway IP Address: Default Using Apt-Cacher IP Address: Default Disable IPv6: No Using Interface MTU Size: Default Using DNS Search Domain: Host Using DNS Server Address: Host Using MAC Address: Default Using VLAN Tag: Default Enable Root SSH Access: No Enable Verbose Mode: No Creating a Jellyfin LXC using the above default settings ✓ Using local for Template Storage. ✓ Using local-lvm for Container Storage. ✓ Updated LXC Template List ✓ LXC Container 103 was successfully created. ✓ Started LXC Container ✓ Set up Container OS ✓ Network Connected: <redacted> ✓ IPv4 Internet Connected ✗ IPv6 Internet Not Connected ✓ DNS Resolved github.com to 140.82.121.3 ✓ Updated Container OS ✓ Installed Dependencies ✓ Set Up Hardware Acceleration ✓ Installed Jellyfin ✓ Customized Container ✓ Cleaned ✓ Completed Successfully! Jellyfin should be reachable by going to the following URL. http://<redacted>:8096 root@pve:~# lxc-attach 103 root@jellyfin:~# ls -l /dev/dri total 0 crw-rw---- 1 root video 226, 0 Nov 23 22:58 card0 crw-rw---- 1 root render 226, 128 Nov 23 22:58 renderD128 ``` ### Please provide detailed steps to reproduce the issue. 1. Use advanced setup 2. Set os to ubuntu 3. Set os version to 24.04 4. list `/dev/dri` to view permissions
OVERLORD added the not a script issue label 2026-02-04 16:36:35 +03:00
Author
Owner

@di5cord20 commented on GitHub (Nov 24, 2024):

Not exactly the same, but I ran into a similar issue in Plex. Here's the discussion where tteck helped me figure it out. Hope this helps.

https://github.com/tteck/Proxmox/discussions/2867

@di5cord20 commented on GitHub (Nov 24, 2024): Not exactly the same, but I ran into a similar issue in Plex. Here's the discussion where tteck helped me figure it out. Hope this helps. https://github.com/tteck/Proxmox/discussions/2867
Author
Owner

@cospeedster commented on GitHub (Nov 24, 2024):

I think that there has to be another migration in 'install/jellyfin-install.sh' to change the default gids.

@cospeedster commented on GitHub (Nov 24, 2024): I think that there has to be another migration in 'install/jellyfin-install.sh' to change the default gids.
Author
Owner

@havardthom commented on GitHub (Nov 24, 2024):

install/jellyfin-install.sh handles the default distribution which is ubuntu 22.04.

Here is the solution to your problem: https://github.com/tteck/Proxmox/discussions/2850#discussioncomment-10552091 (sed -i -e 's/^_ssh:x:104:$/render:x:104:jellyfin/' -e 's/^render:x:993:jellyfin$/_ssh:x:993:/' /etc/group)

@havardthom commented on GitHub (Nov 24, 2024): `install/jellyfin-install.sh` handles the default distribution which is ubuntu 22.04. Here is the solution to your problem: https://github.com/tteck/Proxmox/discussions/2850#discussioncomment-10552091 (`sed -i -e 's/^_ssh:x:104:$/render:x:104:jellyfin/' -e 's/^render:x:993:jellyfin$/_ssh:x:993:/' /etc/group`)
Author
Owner

@cospeedster commented on GitHub (Nov 24, 2024):

Hey @havardthom,
thanks for your reply. Why is it not an option to implement this?
When will the default be updated to the current lts?

@cospeedster commented on GitHub (Nov 24, 2024): Hey @havardthom, thanks for your reply. Why is it not an option to implement this? When will the default be updated to the current lts?
Author
Owner

@havardthom commented on GitHub (Nov 24, 2024):

We do want to update default to 24.04 at some point, feel free to make a feature request in https://github.com/community-scripts/ProxmoxVE/discussions or make a contribution if you'd like. Such a change must be thoroughly tested by people with intel, nvidia and amd to see that it will still work for everyone, since it is a popular script.

@havardthom commented on GitHub (Nov 24, 2024): We do want to update default to 24.04 at some point, feel free to make a feature request in https://github.com/community-scripts/ProxmoxVE/discussions or make a contribution if you'd like. Such a change must be thoroughly tested by people with intel, nvidia and amd to see that it will still work for everyone, since it is a popular script.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#97