Hello, I desperately need some help with an issue. All my containers that are supposed to run gui apps cannot start. The host machine is Debian 11 amd64 and the container is the same. The app that I am trying to run in the container is Firefox.
When I do lxc start firefox
i get the following error:
Error: Failed to run: /snap/lxd/current/bin/lxd forkstart firefox /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/firefox/lxc.conf:
Try `lxc info --show-log firefox` for more info
When I do lxc info --show-log firefox
i get the following:
Name: firefox
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2022/06/22 14:35 CEST
Last Used: 2022/06/30 12:23 CEST
Log:
lxc firefox 20220630102327.692 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc firefox 20220630102327.692 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc firefox 20220630102327.693 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc firefox 20220630102327.693 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc firefox 20220630102327.756 ERROR conf - ../src/src/lxc/conf.c:mount_entry:2459 - Operation not permitted - Failed to mount "/var/snap/lxd/common/lxd/devices/firefox/disk.PASocket.tmp-.pulse--native" on "/var/snap/lxd/common/lxc//tmp/.pulse-native"
lxc firefox 20220630102327.756 ERROR conf - ../src/src/lxc/conf.c:lxc_setup:4375 - Failed to setup mount entries
lxc firefox 20220630102327.756 ERROR start - ../src/src/lxc/start.c:do_start:1275 - Failed to setup container "firefox"
lxc firefox 20220630102327.756 ERROR sync - ../src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 3)
lxc firefox 20220630102327.763 WARN network - ../src/src/lxc/network.c:lxc_delete_network_priv:3631 - Failed to rename interface with index 0 from "eth0" to its initial name "vethd0884118"
lxc firefox 20220630102327.763 ERROR lxccontainer - ../src/src/lxc/lxccontainer.c:wait_on_daemonized_start:877 - Received container state "ABORTING" instead of "RUNNING"
lxc firefox 20220630102327.763 ERROR start - ../src/src/lxc/start.c:__lxc_start:2074 - Failed to spawn container "firefox"
lxc firefox 20220630102327.763 WARN start - ../src/src/lxc/start.c:lxc_abort:1039 - No such process - Failed to send SIGKILL via pidfd 17 for process 29910
lxc firefox 20220630102332.839 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc firefox 20220630102332.839 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc 20220630102332.855 ERROR af_unix - ../src/src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220630102332.855 ERROR commands - ../src/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"
the profile used for the container has the following configuration:
config:
environment.DISPLAY: :0
environment.PULSE_SERVER: unix:/tmp/.pulse-native
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=unix:/tmp/.pulse-native | tee --append /home/cezar/.profile'
packages:
- x11-apps
- mesa-utils
- pulseaudio
description: GUI LXD profile
devices:
PASocket:
path: /tmp/.pulse-native
source: /run/user/1000/pulse/native
type: disk
X0:
path: /tmp/.X11-unix/X0
source: /tmp/.X11-unix/X0
type: disk
eth0:
name: eth0
network: lxdbr0
type: nic
mygpu:
type: gpu
root:
path: /
pool: default
type: disk
name: gui
Any suggestions?