[lxc-users] GUI app in lxd

zztest at openmailbox.org zztest at openmailbox.org
Fri Mar 11 11:53:55 UTC 2016


Hi!

A couple of years ago, Graber wrote a neat article about how to run a 
GUI app in LXC 
(https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/). I 
would like to do this in LXD, but have no idea how to translate those 
LXC settings to LXD. Is it even possible?

Please point me to a doc or tutorial if one exists.  If not, please 
explain how to convert each of the "lxc.mount.entry" settings (from the 
article) listed below to their LXD equivalents.

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
lxc.mount.entry = /dev/video0 dev/video0 none bind,optional,create=file
lxc.hook.pre-start = 
/home/USERNAME/.local/share/lxc/precise-gui/setup-pulse.sh

Thank you!
zamzing.


More information about the lxc-users mailing list