hi fellas
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).
My Issue:
If I restart the container I cant use X Display anymore.
ubuntu@bionic-nvidia3:~$ glxinfo
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!
For audio, check that the Pulseaudio’s socket on the host is indeed /run/user/1000/pulse/native.
For X11 you use a LXD disk device. You can use instead a LXD proxy device (for abstract Unix socket). I have not blogged about this yet but mentioned it on several recent X11 discussions here. I would need to install Manjaro to know what’s wrong but the LXD proxy device is more elegant here.
For audio, check that the Pulseaudio’s socket on the host is indeed /run/user/1000/pulse/native.
The Socket Path its correct. Also Pulseaudio inside the container works with firefox and vlc.
For X11 you use a LXD disk device. You can use instead a LXD proxy device (for abstract Unix socket). I have not blogged about this yet but mentioned it on several recent X11 discussions here. I would need to install Manjaro to know what’s wrong but the LXD proxy device is more elegant here.
I thought I am allready using the Proxy method since I have it in my configs device section:
I solved it using abstract unix sockets as adviced and described here in your / simos posts!
I had to change config accordingly and now containers are surviving restarts