Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template://alpine with --plain gets stuck during Waiting for the essential requirement 1 of 1: "ssh" #3052

Open
AkihiroSuda opened this issue Dec 25, 2024 · 3 comments · May be fixed by #3057
Labels
guest/alpine Guest: Alpine

Comments

@AkihiroSuda
Copy link
Member

limactl start --plain template://alpine gets stuck during Waiting for the essential requirement 1 of 1: "ssh".

No output in the serial console (serialv.log) nor in the video screen (--video).

The non-plain mode (limactl start template://alpine) still works.

Lima v1.0.2 (Alpine 3.20.3) on macOS 15.2 on Apple M4 Max.

@AkihiroSuda AkihiroSuda added the guest/alpine Guest: Alpine label Dec 25, 2024
@AkihiroSuda AkihiroSuda linked a pull request Dec 25, 2024 that will close this issue
@balajiv113
Copy link
Member

For me even normal alpine without --plain is not working in VZ mode

@jandubois
Copy link
Member

For me even normal alpine without --plain is not working in VZ mode

Works fine for me (M1 Ultra on macOS 15.2):

$ limactl start --tty=false template://alpine
INFO[0000] Terminal is not available, proceeding without opening an editor
INFO[0000] Starting the instance "alpine" with VM driver "vz"
INFO[0000] Attempting to download the image              arch=aarch64 digest="sha512:699f89be2c5507e15a7bb0c3b7dedf966a96372dc78845abc98f1737ddb99f9a95de5be3d170591430e41b4618e776791e0037878a42ade84d9392b72ceef32a" location="https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/cloud/nocloud_alpine-3.20.3-aarch64-uefi-cloudinit-r0.qcow2"
INFO[0000] Using cache "/Users/jan/Library/Caches/lima/download/by-url-sha256/87aae94c96e4d1a239575fe464ada4cfb391340ec9bd22efe42a9fbecefb42e3/data"
INFO[0000] Converting "/Users/jan/.lima/alpine/basedisk" (qcow2) to a raw disk "/Users/jan/.lima/alpine/diffdisk"
244.00 MiB / 244.00 MiB [----------------------------------------] 100.00% ? p/s
INFO[0000] Expanding to 100GiB
INFO[0000] [hostagent] hostagent socket created at /Users/jan/.lima/alpine/ha.sock
INFO[0000] [hostagent] Starting VZ (hint: to watch the boot progress, see "/Users/jan/.lima/alpine/serial*.log")
INFO[0000] SSH Local Port: 53612
INFO[0000] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0000] [hostagent] [VZ] - vm state change: running
INFO[0010] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0011] [hostagent] 2024/12/25 18:44:53 tcpproxy: for incoming conn 127.0.0.1:53618, error dialing "192.168.5.15:22": connect tcp 192.168.5.15:22: connection was refused
INFO[0020] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0022] [hostagent] 2024/12/25 18:45:04 tcpproxy: for incoming conn 127.0.0.1:53626, error dialing "192.168.5.15:22": connect tcp 192.168.5.15:22: connection was refused
INFO[0031] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"
INFO[0031] [hostagent] The essential requirement 1 of 2 is satisfied
INFO[0031] [hostagent] Waiting for the essential requirement 2 of 2: "user session is ready for ssh"
INFO[0031] [hostagent] The essential requirement 2 of 2 is satisfied
INFO[0031] [hostagent] Waiting for the guest agent to be running
INFO[0031] [hostagent] Guest agent is running
INFO[0031] [hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished"
INFO[0031] [hostagent] Not forwarding TCP 0.0.0.0:22
INFO[0031] [hostagent] Not forwarding TCP [::]:22
INFO[0031] [hostagent] The final requirement 1 of 1 is satisfied
INFO[0032] READY. Run `limactl shell alpine` to open the shell.

@balajiv113
Copy link
Member

Doesn't work for me. Stuck in waiting for essential requirement. Even with video its blank.

Alpine 3.20.3 on macOS 15.2 on Apple M2 Max tried even with current master same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guest/alpine Guest: Alpine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants