
Gentoo with GPU-enabled Podman and MACVLAN. GitHub Gist: instantly share code, notes, and snippets.

A community for people who love Gentoo and want to discuss it, or ask for advice regarding Gentoo or its' package manager, Portage.
This community is not in any way affiliated with the Gentoo Foundation, but in order to use the Gentoo name, we must conform to the Gentoo Code of conduct, which is incidentally a very reasonable set of guidelines.
Credit for banner: Jens Bludau, CC BY-SA 3.0, via Wikimedia Commons
How to set up Podman with NVIDIA GPU acceleration and macvlan networking on Gentoo
Gentoo with GPU-enabled Podman and MACVLAN. GitHub Gist: instantly share code, notes, and snippets.
cross-posted from: https://lemm.ee/post/2871450
Getting GPU acceleration working is a common task for those of us running Plex or Jellyfin. There is not much documentation for getting the NVIDIA container stack to work with Podman, even less on Gentoo, plus there have been a lot of changes to NVIDIA's container toolkit lately.
I have been fighting with Podman for a while now and just recently got it working 1:1 with my Docker setup. Gentoo may not be the most popular or easy to use distro but I documented it in case some poor soul runs across it searching the web.
Feel free to poke holes in it or leave feedback.
Do you enable telemetry?
Speceficially the telemetry use flag. On one hand, fuck telemetry, but on the other hand, I trust FOSS developers to do the right thing vs the likes of Microsoft and Google.
How long have you been using Gentoo? Linux in general?
And why do you prefer it over other distros?