Hey guys, am new to LXC. I have a working unpriveleged LXC container with archlinux image. I start it as root. I cannot run glxgears:
[root@archplay /]# glxgears
Error: couldn’t open display :0.0
I have configuration in /var/lib/lxc/archplay/config as follows:
lxc.mount.entry = tmpfs tmp tmpfs defaults
lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry = /dev/snd dev/snd none bind,optional,create=dir
lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,optional,create=dir,ro
lxc.mount.entry = /dev/video0 dev/video0 none bind,optional,create=file
and I’ve tried running “xhost +” before attaching to the container, to no avail.
If I run “ls” from within the container I do not see X0, so I am thinking /tmp/.X11-unix is not really bound. I don’t know where there might be some logs? I saw nothing in the journal, also nothing in /var/log/Xorg.0.log on host.