I tried following the blog post by Stéphane but got stuck at this error:
root@guibox:/# glxinfo name of display: :0.0 libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Error: couldn't find RGB GLX visual or fbconfig
Looks like there might be an issue accessing the drivers. I’m using an Ubuntu 17.10 host with Nvidia
config looks as follows:
lxc.include = /usr/share/lxc/config/ubuntu.common.conf lxc.include = /usr/share/lxc/config/ubuntu.userns.conf lxc.arch = x86_64 lxc.include = /etc/lxc/default.conf lxc.idmap = u 0 100000 1000 lxc.idmap = g 0 100000 1000 lxc.idmap = u 1000 1000 1 lxc.idmap = g 1000 1000 1 lxc.idmap = u 1001 101001 64535 lxc.idmap = g 1001 101001 64535 lxc.rootfs.path = dir:/ssdpool/lxc/guibox lxc.uts.name = guibox lxc.mount.entry = tmpfs tmp tmpfs defaults # https://github.com/lxc/lxc/issues/434 lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir lxc.mount.entry = /tmp/.X11-unix/ tmp/.X11-unix/ none bind,optional,create=dir lxc.mount.entry = /home/adrian/.Xauthority home/gui/.Xauthority none bind,optional,create=dir
I basically threw everything I could find at it, but I don’t entirely know what I’m doing.
p.s. There is an apparent lack of up-to-date LXC documentation and examples. Will this change in the future, or are all efforts being put into LXD now, meaning LXC is no longer intended for direct use?