I just posted this issue to github https://github.com/lxc/lxd/issues/3968
Basically X fails to reconnect to the VM in some way, I’m new to .X and .XAuthority but have attempted to learn as much as possible. I’ve posted the log files to github and they should help
I’m using a custom UID for another user - jenkins (100gid, 109uid) and have the correct UID and GID set as per the guide:
it worked before the reboot extremely well, does anyone know how to fix this as it’s a great feature.
I attempted to re-do the setup as per the guide, to see if some configuration was lost but the issue appears to be finding the /tmp/.X11-unix/X0 on the host.
lxc config device add build-server X0 disk path=/tmp/.X11-unix/X0 source=/tmp/.X11-unix/X0
error: Failed to setup device: Unable to mount /proc/1/root/tmp/.X11-unix/X0 at /var/snap/lxd/common/lxd/devices/build-server/disk.tmp-.X11-unix-X0: invalid argument
Now, this worked before, I’ve checked on the host, the symbolic link is in place, so I don’t understand why it’s telling me there is an invalid argument. Tried removing the X0 and Xauthortity, this makes the container bootable again but can’t then re-add the X0 and Xauthority.
I can provide more info, if needed.