I am trying to isolate gaming from the rest of my Linux Desktop.
So I installed LXD (snap version) on my Manjaro Linux box and granted access to my X (“Xhost +local:”). Inside Container I am running Bionic/18.04 Ubuntu. I have a working config for running nvidia runtime and I am able to fire up (launch) a container with my profile. I can login, and Glxinfo/Glxgears worx fine. Also I can install games and run them smoothly (like 0ad). I have been even able to run (unfortunately without any sound) Steam and CSGO. Pulseaudio is otherwise working inside my container (tried firefox and vlc).
If I restart the container I cant use X Display anymore.
Error: unable to open display :0
How Do I fix this issue and get NVIDIA Runtime running again without launching a whole new container?
I can reproduce the issue by fireing up a new container. It works at first but after lxc stop/start I am getting said error … I would really appreciate some help… also I would be happy if anybody could give me a hint about the nosound in steam issue… I tried installing all 32bit pulse and alsa related libs in container and hostsystem but couldnt fix it. I am unsure if this could be related to LXD as well…
Thanks and kind regards!