• 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: July 8th, 2023

help-circle

  • I’m using rootless podman, not sure if that will make a big difference.

    Add the user running the containers to the video using the following command:

    sudo usermod -a -G video [username]
    

    Then I have this in my quadlet for the containers that need HW acceleration. As I understand it, keep-groups means the user rights to use video resources will be passed from the OS into the container.

    AddDevice=/dev/dri/renderD128:/dev/dri/renderD128
    AddDevice=/dev/dri/card0:/dev/dri/card0
    PodmanArgs=--group-add keep-groups
    

    I don’t think I have anything else relevant in my set up. Hope it helps!