Cannot share igpu for hw transcoding

i cant seem to add any settings to share /dev/dri to the container

$ sudo lxc-start nl
lxc-start: nl: …/src/lxc/confile.c: parse_line: 3099 Invalid argument - Invalid configuration line: lxc.cgroup2.devices.allow: c 226:0 rwm
lxc-start: nl: …/src/lxc/parse.c: lxc_file_for_each_line_mmap: 129 Failed to parse config file “/var/lib/lxc/nl/config” at line “lxc.cgroup2.devices.allow: c 226:0 rwm”
Failed to load config for nl
lxc-start: nl: …/src/lxc/tools/lxc_start.c: main: 240 Failed to create lxc_container


Distribution configuration

lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = linux64

Container specific configuration

lxc.rootfs.path = dir:/var/lib/lxc/nl/rootfs = nl

Network configuration = veth = lxcbr0 = up = 00:16:3e:04:39:8c

lxc.mount.entry = /magic magic none bind 0 0
lxc.mount.entry = /magic/space magic/space none bind 0 0

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/fb0 dev/fb0 none bind,optional,create=file

turns out all the guides online used : instead of = that was my issue

1 Like