Use hardware transcoding, on an Intel NUC, running Plex in an unprivileged LXC container

Written on Wednesday, 16 November 2022 at 15:36.

Tags: Home Assistant, Linux, Open source, Proxmox.

This post is still in draft.

I used to run Home Assistant supervised on a Intel NUC. It ran Debian, and apart from Home Assistant I also run a few Docker containers (Resilio Sync, Plex, ..). However, as I kept getting more warnings that my supervisor was in an unsupported state, I knew it was time to do it differently.

At first I feared I would have to buy another Intel NUC, or a Home Assistant Yellow. Luckily, a wise friend told me about I should run Proxmox Virtual Environment.

So I did, and once Home Assistant was running smoothly in a Virtual Machine, I wanted to run Plex in an LXC Container.

Create a LXC Container and install Plex

First let’s create a Container!

Memory8192 MB
Bootdisk size32 GB

Jump in the Console and let’s install Plex!

apt update
apt upgrade
echo deb public main | tee /etc/apt/sources.list.d/plexmediaserver.list
curl | sudo apt-key add -
apt install plexmediaserver

Sources for installing Plex:

Setup Plex


Enable hardware transcoding

Mount /dvi/dri/renderD128


lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/renderD128 none bind,optional,create=file

Fix permissions for /dvi/dri/renderD128



lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 998
lxc.idmap: g 998 103 1
lxc.idmap: g 999 100999 64537


Sources for configuring hardware transcoding:

Site with 💕 made by