Hi I have re-installed my OS , now is Manjaro uranos.
I am able to launch containers. However, when I try to launch with X support it fails
My x11 profile is
config:
environment.DISPLAY: :0.0
environment.PULSE_SERVER: tcp:127.0.0.1:4713
raw.idmap: both 1000 1000
user.user-data: |
#cloud-config
runcmd:
- 'sed -i "s/; enable-shm = yes/enable-shm = no/g" /etc/pulse/client.conf'
- 'echo export PULSE_SERVER=tcp:127.0.0.1:4713 | tee --append /home/ubuntu/.profile'
packages:
- x11-apps
- mesa-utils
- pulseaudio
- v4l-utils
description: GUI LXD profile
devices:
PASocket:
bind: container
connect: tcp:127.0.0.1:4713
listen: tcp:127.0.0.1:4713
type: proxy
X0:
bind: container
connect: unix:@/tmp/.X11-unix/X0
listen: unix:@/tmp/.X11-unix/X0
security.gid: "1000"
security.uid: "1000"
type: proxy
mygpu:
gid: "1000"
type: gpu
video0:
gid: "1000"
path: /dev/video1
type: unix-char
name: x11
used_by: []
both my /etc/subuid and /etc/subguid
root:100000:65536
user:100000:65536
the launch command is , for example
lxc launch images:opensuse/15.4 --profile default --profile x11 suse-154
I get this error:
lxc suse-154 20231025161234.931 ERROR conf - ../src/lxc/conf.c:lxc_map_ids:3701 - newuidmap failed to write mapping "newuidmap: uid range [1000-1001) -> [1000-1001) not allowed": newuidmap 22863 0 100000 1000 1000 1000 1 1001 101001 64535
lxc suse-154 20231025161234.931 ERROR start - ../src/lxc/start.c:lxc_spawn:1788 - Failed to set up id mapping.
lxc suse-154 20231025161234.931 ERROR lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING"
lxc suse-154 20231025161234.932 ERROR start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "suse-154"
lxc suse-154 20231025161234.932 WARN start - ../src/lxc/start.c:lxc_abort:1036 - No such process - Failed to send SIGKILL via pidfd 17 for process 22863
lxc 20231025161235.202 ERROR af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20231025161235.206 ERROR commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_init_pid"
Any Idea what could be wrong ?
Cheers Julia