Debian vm on OSX 15.5 fails to complete startup ("user session is ready for ssh") (`podman.service loaded failed failed`)
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### Description
host: osx 15.5
lima: 1.0.7 (homebrew)
guest: debian testing
I've just rebooted a long running Linux (Debian testing) vz vm and rebooted my machine after updating from 15.4 to 15.5 and the VM doesn't seem to be mounting cidata:
```
$ mount |grep virtio
mount0 on /Users/jms type virtiofs (ro,relatime)
vz-rosetta on /mnt/lima-rosetta type virtiofs (rw,relatime)
mount1 on /tmp/lima type virtiofs (rw,relatime)
```
The setup was working fine before rebooting the host.
```
$ limactl start default
INFO[0000] Using the existing instance "default"
INFO[0000] Starting the instance "default" with VM driver "vz"
INFO[0000] [hostagent] hostagent socket created at /Users/jms/.lima/default/ha.sock
INFO[0000] [hostagent] Starting VZ (hint: to watch the boot progress, see "/Users/jms/.lima/default/serial*.log")
INFO[0000] [hostagent] Setting up Rosetta share
INFO[0001] SSH Local Port: 60022
INFO[0001] [hostagent] [VZ] - vm state change: running
INFO[0001] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0011] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0011] [hostagent] The essential requirement 1 of 2 is satisfied
INFO[0011] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0051] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0091] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0131] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0171] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0212] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0252] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0292] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
```
The host is continally sshing in trying to run `/usr/bin/diff -q /run/lima-boot-done /mnt/lima-cidata/meta-data`, wich fails as neither of those paths exist.
```
$ ls /run/*lima*
/run/lima-guestagent.sock
```
```
1 ? Ss 0:00 /sbin/init
369 ? Ss 0:00 /usr/lib/systemd/systemd-journald
407 ? Ss 0:00 /usr/bin/python3 /usr/bin/cloud-init --all-stages
521 ? S 0:00 \_ /bin/sh -c tee -a /var/log/cloud-init-output.log
522 ? S 0:00 \_ tee -a /var/log/cloud-init-output.log
411 ? Ss 0:00 /usr/lib/systemd/systemd-resolved
412 ? Ssl 0:00 /usr/lib/systemd/systemd-timesyncd
421 ? Ss 0:00 /usr/lib/systemd/systemd-udevd
663 ? Ss 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
667 ? Ssl 0:01 /usr/local/bin/lima-guestagent daemon --vsock-port 2222
672 ? Ss 0:00 /usr/lib/systemd/systemd-logind
768 ? Ss 0:00 /usr/lib/systemd/systemd-networkd
786 ? Ss 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
794 tty1 Ss+ 0:00 /sbin/agetty -o -- \u --noreset --noclear - linux
797 hvc0 Ss+ 0:00 /sbin/agetty -o -- \u --noreset --noclear --keep-baud 115200,57600,38400,9600 - vt220
798 ? Ss 0:00 /usr/lib/systemd/systemd --user
812 ? S 0:00 \_ (sd-pam)
843 ? Ssl 0:00 \_ rootlesskit --state-dir=/run/user/502/containerd-rootless --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=
985 ? Sl 0:00 | \_ /proc/self/exe --state-dir=/run/user/502/containerd-rootless --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-
1023 ? Sl 0:03 | | \_ containerd
1013 ? S 0:00 | \_ slirp4netns --mtu 65520 -r 3 --disable-host-loopback --enable-seccomp --userns-path=/proc/985/ns/user --netns-type=path /proc/985/root/run/user/502/containerd-rootless/netns ta
926 ? S 0:00 \_ catatonit -P
1057 ? Ss 0:00 \_ /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
1140 ? Ssl 0:00 \_ buildkitd --oci-worker=false --containerd-worker=true --containerd-worker-rootless=true --addr=unix:///run/user/502/buildkit-default/buildkitd.sock --root=/home/jms.linux/.local/sh
1141 ? Ssl 0:00 \_ containerd-stargz-grpc -address /run/user/502/containerd-stargz-grpc/containerd-stargz-grpc.sock -root /home/jms.linux/.local/share/containerd-stargz-grpc -config /home/jms.linux/.
808 ? SLs 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
1303 ? SLs 0:00 \_ sshd-session: jms [priv]
1312 ? S 0:00 \_ sshd-session: jms@pts/0,pts/2
1529 pts/0 Ss 0:00 \_ /bin/bash --login
4471 pts/0 R+ 0:00 | \_ ps fax
1938 pts/2 Ss+ 0:00 \_ /bin/bash --login
4432 ? Ss 0:00 \_ /bin/bash
4437 ? S 0:00 \_ timeout 30s bash -c until sudo diff -q /run/lima-boot-done /mnt/lima-cidata/meta-data 2>/dev/null; do sleep 3; done
4438 ? S 0:00 \_ bash -c until sudo diff -q /run/lima-boot-done /mnt/lima-cidata/meta-data 2>/dev/null; do sleep 3; done
4466 ? S 0:00 \_ sleep 3
1100 ? Ss 0:00 sh -c echo "start" | nc -Uu -W1 /run/cloud-init/share/config.sock -s /run/cloud-init/share/config-return.sock | sh
1104 ? S 0:00 \_ nc -Uu -W1 /run/cloud-init/share/config.sock -s /run/cloud-init/share/config-return.sock
1105 ? S 0:00 \_ sh
```
Contributor guide
Assessment
This issue has not been assessed yet.