32

Hi all - recently moved my old docker setup across to Podman rootless containers, however I am having some trouble with getting my Plex container to use the on CPU hardware transcoding.

"/dev/dri" device is being passed into the container and after reading, I also added "--group-add=keep-groups" to my configuration.

Still no luck getting the "video" group to the plex user inside the container so it can access the device.

Anyone successfully running rootless Plex with H/W transcode?

you are viewing a single comment's thread
view the rest of the comments
[-] aberrate_junior_beatnik@midwest.social 9 points 1 year ago* (last edited 1 year ago)

You might need to also add --gidmap=n:{video_gid}:1, otherwise the host video group won't have a matching group in the container's user namespace. n can be any number you pick, so long as it doesn't clash with an existing gid in the container. Unsure if --group-add=keep-groups does this already. You can check /proc/self/gid_map to see what is already being mapped.

Of course the container user will need group n (from the gidmap flag above) either as primary or in the supplementary groups.

[edit: I wrote this at 3am on my phone, and I misunderstood how the --gidmap flag works. This code won't work, but I think the diagnosis is correct: there's no mapping from the host's video group to the container's user namespace, see my other comment in reply to OP]

this post was submitted on 13 Aug 2023
32 points (94.4% liked)

Linux

48214 readers
867 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS