Lxd with gui profile fails to start

Hi all,

My aim is to run firefox inside a container. I used the GUI profile as described in the Running X11 software in LXD containers – Mi blog lah!. I used a Ubuntu 20.04 image to create the container buti t fails to start giving the following error: (output of lxc info --show-log test03)

lxc test03 20221023184834.773 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc test03 20221023184834.773 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc test03 20221023184834.774 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc test03 20221023184834.774 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc test03 20221023184836.199 ERROR conf - …/src/src/lxc/conf.c:run_buffer:321 - Script exited with status 1
lxc test03 20221023184836.199 ERROR conf - …/src/src/lxc/conf.c:lxc_setup:4400 - Failed to run mount hooks
lxc test03 20221023184836.199 ERROR start - …/src/src/lxc/start.c:do_start:1272 - Failed to setup container “test03”
lxc test03 20221023184836.199 ERROR sync - …/src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4)
lxc test03 20221023184836.203 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 “veth02674685”
lxc test03 20221023184836.203 ERROR start - …/src/src/lxc/start.c:__lxc_start:2107 - Failed to spawn container “test03”
lxc test03 20221023184836.203 WARN start - …/src/src/lxc/start.c:lxc_abort:1036 - No such process - Failed to send SIGKILL via pidfd 17 for process 9613
lxc test03 20221023184836.203 ERROR lxccontainer - …/src/src/lxc/lxccontainer.c:wait_on_daemonized_start:877 - Received container state “ABORTING” instead of “RUNNING”
lxc test03 20221023184841.306 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc test03 20221023184841.306 WARN conf - …/src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc 20221023184841.342 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 20221023184841.342 ERROR commands - …/src/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command “get_state”

Can you help me please ?
Thank you…

What does /var/snap/lxd/common/lxd/logs/lxd.log show?

Hi Thomas,

Thank you for your answer but I used a normal ubuntu 20.04 container and install firefox with ‘apt install firefox’ in it, then ssh -X IP_of_Container fixed my problem.

Best regards…