Intel

For setuping lxc with intel gpu used for some tasks you should do this:

lxc.cgroup.devices.allow: c 226:0 rwm
lxc.cgroup.devices.allow: c 226:128 rwm
dev0: /dev/dri/card1,mode=0666
dev1: /dev/dri/renderD128,mode=0666

After that everything should be good and run smoothly

In case you have broke package manager with intel-i915-dkms you should run this

sudo mkdir /lib/modules/$(uname -r)
sudo dpkg --purge intel-i915-dkms