2024-12-15, 04:16 PM
(This post was last modified: 2024-12-15, 05:02 PM by lupine. Edited 3 times in total.)
I need help with rootelss podman hardware acceleration on openSUSE tumbleweed with SELinux on.
This is my podman run command:
And I did this:
And added myself to the 'render' group.
The device renderD128 is seen in the container, but lacking the permission to use it:
When I enable hardware acceleration and try to play a hevc file, or try to change the resolution of a h264 or AV1 file, I get an error:
"Playback Error
Playback failed due to a fatal player error."
Does somebody know how I can pass the device with proper permissions.
This is my podman run command:
Code:
podman run \
--detach \
--label "io.containers.autoupdate=registry" \
--name jellyfin \
--device /dev/dri/:/dev/dri/:rwm \
--rm \
--replace \
--user $(id -u):$(id -g) \
--userns keep-id \
--group-add keep-groups \
--volume /var/storage/mediumstorage/jellyfin/jellyfin-cache:/cache:Z \
--volume /var/storage/jellyfin/jellyfin-config:/config:Z \
--volume /var/storage/slowstorage/jellyfin/jellyfin-media:/media:ro,z \
-p 8096:8096/tcp \
docker.io/jellyfin/jellyfin:latest
And I did this:
Code:
sudo setsebool -P container_use_devices=true
And added myself to the 'render' group.
The device renderD128 is seen in the container, but lacking the permission to use it:
Code:
crw-rw---- 1 nobody nogroup 226, 128 Dec 14 10:22 renderD128
When I enable hardware acceleration and try to play a hevc file, or try to change the resolution of a h264 or AV1 file, I get an error:
"Playback Error
Playback failed due to a fatal player error."
Does somebody know how I can pass the device with proper permissions.