My strategy was just plain being lazy and reflecting the outside environment (Proxmox) to the Container (Proxmox amd drivers). This was gratuitously taken from thex and countless others across many forums. I decided to post my notes and not necessarily a guide on getting GPU passthrough working for a Debian LXC container with Renoir (I lazily copy and pasted my editor).
Quite a few hacks, would like to do a writeup but no Idea when I will find some time.ĮDIT: 5.11 kernel isn't required so skip that install under the Proxmox section if you want to stay a little more stable. Hacks: Install the packages directly not via the amd script, add i386 architecture to the repos, disguise proxmox debian as ubuntu, use the drivers meant for 18.04, installation of two packages will fail and you might to remove the blacklist file for amd-gpu manually. I also installed the AMD drivers with some hacks on both the host and the guest and have still to investigate where they are actually needed)
I used ubuntu as a base for the installation and there the renderer gid was 109 so I had to change the gids to match the host (might be resolveable with different mapping) There are a few more steps to the mapping described here (subgid/subuid files etc.): #mapping uid/gid 1000 to 1000 as my local media shares are mounted for this user and mapping the renderer group ID too (108) #we need to map some user/group IDs so that they are identical inside the guest : /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file #we need the renderer device passed through #important stuff for jellyfin in unprivileged lxc