I’m trying to switch an unprivileged container working perfectly with X to Wayland. (I am using lxc 3.0.0 and Plasma)
So, I adapted my config as follows:
#lxc.mount.entry = /tmp/.X11-unix mnt/X11-unix tmpfs bind,none,create=dir 0 0 lxc.mount.entry = /run/user/1001/wayland-0 tmp/wayland-0 none bind,ro,create=file
Alas, during the start, I encountered the following error :
lxc-start steam 20191103110640.437 ERROR utils - utils.c:safe_mount:1187 - Permission denied - Failed to mount "/run/user/1001/wayland-0" onto "/usr/local/lib/lxc/rootfs/tmp/wayland-0" lxc-start steam 20191103110640.437 ERROR conf - conf.c:mount_entry:2044 - Permission denied - Failed to mount "/run/user/1001/wayland-0" on "/usr/local/lib/lxc/rootfs/tmp/wayland-0"
On the host, I have got user id 1001.
[uu@host1 ~] ls -l /run/user/1001/wayland-0 srwxr-xr-x 1 uu uu 0 3 nov. 11:53 /run/user/1001/wayland-0
What’s happened ? Any suggestion is welcome.