I’m using Ubuntu 22.04 lxd (5.0.1-9dcf35b installed as snap as ubuntu 22.04 does by default).
I’m launching a new Ubuntu 16.04 container with
lxc launch ubuntu:16.04 test-1604
or copying from an older lxd installation (ubuntu 18.04) with
lxc copy container1604 server2204:container1604
But it seems that both the new and old 16.04 container are unable to fully boot on lxd 5:
root@server2204:~# lxc exec test-1604 /bin/bash
root@test-1604:~#
root@test-1604:~# ps fax
PID TTY STAT TIME COMMAND
24 pts/1 Ss 0:00 /bin/bash
34 pts/1 R+ 0:00 \_ ps fax
1 ? Ss 0:00 /sbin/init
root@test-1604:~# ps uax
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 36436 1592 ? Ss 09:00 0:00 /sbin/init
root 24 0.0 0.0 21604 2236 pts/1 Ss 09:00 0:00 /bin/bash
root 36 0.0 0.0 37764 1780 pts/1 R+ 09:01 0:00 ps uax
(only /sbin/init is running inside the container, plus my session bash and ps)
and it’s not possible to shutdown the 1604 container
root@test-1604:~# systemctl status
Failed to connect to bus: No such file or directory
root@test-1604:~# systemctl poweroff
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
root@test-1604:~# halt -p
Failed to connect to bus: No such file or directory
Failed to talk to init daemon.
root@test-1604:~#
And
root@test-1604:~# systemctl is-system-running
offline
All these commands inside the container have been executed twice, immediately after boot and one hour after the boot.
Any ideas ?