lima icon indicating copy to clipboard operation
lima copied to clipboard

templates: default: use Ubuntu 25.04, Fedora 42

Open AkihiroSuda opened this issue 6 months ago • 4 comments

Ubuntu 24.10 will reach EOL soon (2025-07-10). https://endoflife.date/ubuntu

It should be still noted that Intel Mac with macOS prior to 15.5 requires setting vmType to qemu:

  • #3334

AkihiroSuda avatar Jun 20 '25 07:06 AkihiroSuda

Windows (qemu) seems failing https://github.com/lima-vm/lima/actions/runs/15784238762/job/44497005091?pr=3643

time="2025-06-20T17:28:49Z" level=info msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"C:\\\\Users\\\\runneradmin\\\\.lima\\\\default\\\\serial*.log\")"
time="2025-06-20T17:28:49Z" level=info msg="SSH Local Port: 60022"
time="2025-06-20T17:28:49Z" level=info msg="[hostagent] Waiting for the essential requirement 1 of 2: \"ssh\""
time="2025-06-20T17:28:49Z" level=info msg="[hostagent] Driver stopped due to error: \"exit status 1\""
time="2025-06-20T17:28:49Z" level=info msg="[hostagent] Shutting down the host agent"
time="2025-06-20T17:28:49Z" level=warning msg="[hostagent] failed to exit SSH master" error="failed to execute `ssh -O exit -p 60022 127.0.0.1`, out=\"Control socket connect(/c/Users/runneradmin/.lima/default/ssh.sock): No such file or directory\\r\\n\": exit status 255"
time="2025-06-20T17:28:49Z" level=info msg="[hostagent] Shutting down QEMU with the power button"
time="2025-06-20T17:28:49Z" level=warning msg="[hostagent] failed to open the QMP socket \"C:\\\\Users\\\\runneradmin\\\\.lima\\\\default\\\\qmp.sock\", forcibly killing QEMU" error="dial unix C:\\Users\\runneradmin\\.lima\\default\\qmp.sock: connect: No connection could be made because the target machine actively refused it."
time="2025-06-20T17:28:49Z" level=info msg="[hostagent] QEMU has already exited"
time="2025-06-20T17:28:49Z" level=fatal msg="exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see \"C:\\\\Users\\\\runneradmin\\\\.lima\\\\default\\\\ha.stderr.log\")"
+ ERROR 'Failed to start "default"'
Error: 'TEST| [ERROR] Failed to start "default"'
Error: ERROR] Failed to start "default"
+ diagnose default
+ NAME=default
+ set -x +e
+ tail /c/Users/runneradmin/.lima/default/ha.stderr.log /c/Users/runneradmin/.lima/default/ha.stdout.log
==> /c/Users/runneradmin/.lima/default/ha.stderr.log <==
{"level":"debug","msg":"qemu[stderr]: C:\\Program Files\\QEMU\\qemu-system-x86_64.exe: -virtfs local,mount_tag=mount0,path=C:\\Users\\runneradmin,security_model=none,readonly: There is no option group 'virtfs'","time":"2025-06-20T17:28:49Z"}
{"level":"debug","msg":"qemu[stderr]: C:\\Program Files\\QEMU\\qemu-system-x86_64.exe: -virtfs local,mount_tag=mount0,path=C:\\Users\\runneradmin,security_model=none,readonly: virtfs support is disabled","time":"2025-06-20T17:28:49Z"}
{"level":"info","msg":"Driver stopped due to error: \"exit status 1\"","time":"2025-06-20T17:28:49Z"}
{"level":"info","msg":"Shutting down the host agent","time":"2025-06-20T17:28:49Z"}
{"level":"debug","msg":"shutting down the SSH master","time":"2025-06-20T17:28:49Z"}
{"level":"debug","msg":"executing ssh for exiting the master: C:\\Program Files\\Git\\usr\\bin\\ssh.exe [ssh -F /dev/null -o IdentityFile='/c/Users/runneradmin/.lima/_config/user' -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o GSSAPIAuthentication=no -o Ciphers=^[email protected],[email protected] -o User=lima -o ControlMaster=auto -o ControlPath='/c/Users/runneradmin/.lima/default/ssh.sock' -o ControlPersist=yes -O exit -p 60022 127.0.0.1]","time":"2025-06-20T17:28:49Z"}
{"error":"failed to execute `ssh -O exit -p 60022 127.0.0.1`, out=\"Control socket connect(/c/Users/runneradmin/.lima/default/ssh.sock): No such file or directory\\r\\n\": exit status 255","level":"warning","msg":"failed to exit SSH master","time":"2025-06-20T17:28:49Z"}
{"level":"info","msg":"Shutting down QEMU with the power button","time":"2025-06-20T17:28:49Z"}
{"error":"dial unix C:\\Users\\runneradmin\\.lima\\default\\qmp.sock: connect: No connection could be made because the target machine actively refused it.","level":"warning","msg":"failed to open the QMP socket \"C:\\\\Users\\\\runneradmin\\\\.lima\\\\default\\\\qmp.sock\", forcibly killing QEMU","time":"2025-06-20T17:28:49Z"}
{"level":"info","msg":"QEMU has already exited","time":"2025-06-20T17:28:49Z"}

==> /c/Users/runneradmin/.lima/default/ha.stdout.log <==
{"time":"2025-06-20T17:28:49.3960194Z","status":{"sshLocalPort":60022}}
{"time":"2025-06-20T17:28:49.5733807Z","status":{"exiting":true}}
+ limactl shell default systemctl --no-pager status
time="2025-06-20T17:28:49Z" level=fatal msg="Incorrect function."
+ limactl shell default systemctl --no-pager
time="2025-06-20T17:28:49Z" level=fatal msg="Incorrect function."

This seems to happened because Ubuntu 25.04 re-enables 9p, which seems incompatible with Windows hosts

AkihiroSuda avatar Jun 20 '25 17:06 AkihiroSuda

vz also failing https://github.com/lima-vm/lima/actions/runs/15784819652/job/44500626648?pr=3643

[email protected]                                                   loaded failed failed    Serial Getty on ttyS0

AkihiroSuda avatar Jun 20 '25 20:06 AkihiroSuda

https://github.com/lima-vm/lima/actions/runs/15790132281/job/44514398240?pr=3643

× [email protected] - Serial Getty on ttyS0
     Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled-runtime; preset: enabled)
     Active: failed (Result: start-limit-hit) since Sat 2025-06-21 00:38:10 UTC; 425ms ago
   Duration: 72ms
 Invocation: df7ce3b9e14341b895022db7b8f045fd
       Docs: man:agetty(8)
             man:systemd-getty-generator(8)
             https://0pointer.de/blog/projects/serial-console.html
    Process: 2676 ExecStart=/sbin/agetty -o -- \u --noreset --noclear --keep-baud 115200,57600,38400,9600 - ${TERM} (code=killed, signal=SEGV)
   Main PID: 2676 (code=killed, signal=SEGV)

Jun 21 00:38:10 lima-default systemd[1]: [email protected]: Scheduled restart job, restart counter is at 23.
Jun 21 00:38:10 lima-default systemd[1]: [email protected]: Start request repeated too quickly.
Jun 21 00:38:10 lima-default systemd[1]: [email protected]: Failed with result 'start-limit-hit'.
Jun 21 00:38:10 lima-default systemd[1]: Failed to start [email protected] - Serial Getty on ttyS0.
+ limactl shell default sudo journalctl --no-pager -u [email protected]
Jun 21 00:36:27 lima-default systemd[1]: Started [email protected] - Serial Getty on ttyS0.
Jun 21 00:36:32 lima-default systemd[1]: [email protected]: Deactivated successfully.
Jun 21 00:36:32 lima-default systemd[1]: [email protected]: Scheduled restart job, restart counter is at 1.
Jun 21 00:36:32 lima-default systemd[1]: Started [email protected] - Serial Getty on ttyS0.
Jun 21 00:36:37 lima-default agetty[1019]: could not get terminal name: -22
Jun 21 00:36:43 lima-default systemd[1]: [email protected]: Deactivated successfully.
Jun 21 00:36:43 lima-default systemd[1]: [email protected]: Scheduled restart job, restart counter is at 2.
Jun 21 00:36:43 lima-default systemd[1]: Started [email protected] - Serial Getty on ttyS0.
Jun 21 00:36:48 lima-default agetty[1247]: could not get terminal name: -22
Jun 21 00:36:48 lima-default systemd[1]: [email protected]: Deactivated successfully.
Jun 21 00:36:48 lima-default systemd[1]: [email protected]: Scheduled restart job, restart counter is at 3.
Jun 21 00:36:48 lima-default systemd[1]: Started [email protected] - Serial Getty on ttyS0.
Jun 21 00:36:54 lima-default systemd[1]: [email protected]: Deactivated successfully.
Jun 21 00:36:54 lima-default systemd[1]: [email protected]: Scheduled restart job, restart counter is at 4.
Jun 21 00:36:54 lima-default systemd[1]: Started [email protected] - Serial Getty on ttyS0.
Jun 21 00:36:59 lima-default agetty[1591]: could not get terminal name: -22
Jun 21 00:36:59 lima-default systemd[1]: [email protected]: Deactivated successfully.
Jun 21 00:36:59 lima-default systemd[1]: [email protected]: Scheduled restart job, restart counter is at 5.

Can't reproduce this locally

AkihiroSuda avatar Jun 21 '25 00:06 AkihiroSuda

9p can't be used with vanilla QEMU builds on Windows.

I ran the latest changes (with 9p disabled) in GH actions and it was all green. Thank you for fixing IT failures related to 9p! LGTM

arixmkii avatar Jun 25 '25 14:06 arixmkii

The segfault seems specific to x86_64

(gdb) bt
#0  __strncmp_evex () at ../sysdeps/x86_64/multiarch/strcmp-evex.S:316
#1  0x000061700a0d3ee3 in parse_args (argc=9, argv=0x7ffc93bd6298, op=0x7ffc93bd4080) at term-utils/agetty.c:939
#2  main (argc=9, argv=0x7ffc93bd6298) at term-utils/agetty.c:403

Apparently fixed in:

  • https://github.com/util-linux/util-linux/pull/3425 (v2.41)

AkihiroSuda avatar Jun 26 '25 02:06 AkihiroSuda

Does Rosetta2 support it ?

NN--- avatar Jul 11 '25 16:07 NN---