colima: Colima cannot start with QEMU on macOS 15.2
Description
Hello, I have now seen two separate Macs (M4) unable to start Colima after upgrading to macOS 15.2.
→ colima start -v
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0001] starting ... context=vm
> Using the existing instance "colima"
> Starting the instance "colima" with VM driver "qemu"
> QEMU binary "/nix/store/dsn48d742ggs7h5dwdfgw1pwbs57hh5n-qemu-9.1.0/bin/qemu-system-aarch64" seems properly signed with the "com.apple.security.hypervisor" entitlement
> [hostagent] hostagent socket created at /Users/tim/.colima/_lima/colima/ha.sock
> [hostagent] Using system firmware ("/nix/store/dsn48d742ggs7h5dwdfgw1pwbs57hh5n-qemu-9.1.0/share/qemu/edk2-aarch64-code.fd")
> [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/tim/.colima/_lima/colima/serial*.log")
> SSH Local Port: 56548
> [hostagent] Waiting for the essential requirement 1 of 4: "ssh"
> [hostagent] Driver stopped due to error: "signal: abort trap"
> [hostagent] Shutting down the host agent
> "[hostagent] failed to exit SSH master" error="failed to execute `ssh -O exit -p 56548 127.0.0.1`, out=\"Control socket connect(/Users/tim/.colima/_lima/colima/ssh.sock): No such file or directory\\r\\n\": exit status 255"
> [hostagent] Shutting down QEMU with ACPI
> [hostagent] Failed to remove SSH binding for port 56548
> "[hostagent] failed to open the QMP socket \"/Users/tim/.colima/_lima/colima/qmp.sock\", forcibly killing QEMU" error="dial unix /Users/tim/.colima/_lima/colima/qmp.sock: connect: connection refused"
> [hostagent] QEMU has already exited
> exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see "/Users/tim/.colima/_lima/colima/ha.stderr.log")
Here is the ha.stderr.log:
{"level":"debug","msg":"Creating iso file /Users/tim/.colima/_lima/colima/cidata.iso","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"Using /var/folders/wr/dvtgqcnj2zj4y0m9dyn_t_f40000gp/T/diskfs_iso3716314262 as workspace","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"Failed to detect CPU features. Assuming that AES acceleration is available on this Apple silicon.","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"OpenSSH version 9.8.1 detected","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"AES accelerator seems available, prioritizing aes128-gcm@openssh.com and aes256-gcm@openssh.com","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"hostagent socket created at /Users/tim/.colima/_lima/colima/ha.sock","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"QEMU version 9.1.0 detected","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"firmware candidates = [/Users/tim/.local/share/qemu/edk2-aarch64-code.fd /nix/store/dsn48d742ggs7h5dwdfgw1pwbs57hh5n-qemu-9.1.0/share/qemu/edk2-aarch64-code.fd /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/qemu-efi-aarch64/QEMU_EFI.fd]","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"Using system firmware (\"/nix/store/dsn48d742ggs7h5dwdfgw1pwbs57hh5n-qemu-9.1.0/share/qemu/edk2-aarch64-code.fd\")","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"Starting QEMU (hint: to watch the boot progress, see \"/Users/tim/.colima/_lima/colima/serial*.log\")","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"qCmd.Args: [/nix/store/dsn48d742ggs7h5dwdfgw1pwbs57hh5n-qemu-9.1.0/bin/qemu-system-aarch64 -m 2048 -cpu host -machine virt,accel=hvf,highmem=off -smp 2,sockets=1,cores=2,threads=1 -drive if=pflash,format=raw,readonly=on,file=/nix/store/dsn48d742ggs7h5dwdfgw1pwbs57hh5n-qemu-9.1.0/share/qemu/edk2-aarch64-code.fd -boot order=c,splash-time=0,menu=on -drive file=/Users/tim/.colima/_lima/colima/diffdisk,if=virtio,discard=on -drive id=cdrom0,if=none,format=raw,readonly=on,file=/Users/tim/.colima/_lima/colima/cidata.iso -device virtio-scsi-pci,id=scsi0 -device scsi-cd,bus=scsi0.0,drive=cdrom0 -netdev socket,id=net0,fd=3 -device virtio-net-pci,netdev=net0,mac=52:55:55:2b:29:d4 -device virtio-rng-pci -display none -device virtio-gpu -device virtio-keyboard-pci -device virtio-mouse-pci -device qemu-xhci,id=usb-bus -parallel none -chardev socket,id=char-serial,path=/Users/tim/.colima/_lima/colima/serial.sock,server=on,wait=off,logfile=/Users/tim/.colima/_lima/colima/serial.log -serial chardev:char-serial -chardev socket,id=char-serial-pci,path=/Users/tim/.colima/_lima/colima/serialp.sock,server=on,wait=off,logfile=/Users/tim/.colima/_lima/colima/serialp.log -device pci-serial,chardev=char-serial-pci -chardev socket,id=char-serial-virtio,path=/Users/tim/.colima/_lima/colima/serialv.sock,server=on,wait=off,logfile=/Users/tim/.colima/_lima/colima/serialv.log -device virtio-serial-pci,id=virtio-serial0,max_ports=1 -device virtconsole,chardev=char-serial-virtio,id=console0 -chardev socket,id=char-qmp,path=/Users/tim/.colima/_lima/colima/qmp.sock,server=on,wait=off -qmp chardev:char-qmp -chardev socket,path=/Users/tim/.colima/_lima/colima/ga.sock,server=on,wait=off,id=qga0 -device virtio-serial -device virtserialport,chardev=qga0,name=io.lima-vm.guest_agent.0 -name lima-colima -pidfile /Users/tim/.colima/_lima/colima/qemu.pid]","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 4: \"ssh\"","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/tim/.colima/_lima/_config/user\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^aes128-gcm@openssh.com,aes256-gcm@openssh.com\" -o User=tim -o ControlMaster=auto -o ControlPath=\"/Users/tim/.colima/_lima/colima/ssh.sock\" -o ControlPersist=yes -p 56548 127.0.0.1 -- /bin/bash]","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 56548: Connection refused\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 56548: Connection refused\\r\\n\": exit status 255","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"qemu[stderr]: Unexpected error in object_property_find_err() at ../qom/object.c:1358:","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"qemu[stderr]: qemu-system-aarch64: Property 'host-arm-cpu.sme' not found","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"Driver stopped due to error: \"signal: abort trap\"","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"Shutting down the host agent","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"shutting down the SSH master","time":"2024-12-12T13:52:03-06:00"}
{"level":"debug","msg":"executing ssh for exiting the master: /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/tim/.colima/_lima/_config/user\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers=\"^aes128-gcm@openssh.com,aes256-gcm@openssh.com\" -o User=tim -o ControlMaster=auto -o ControlPath=\"/Users/tim/.colima/_lima/colima/ssh.sock\" -o ControlPersist=yes -O exit -p 56548 127.0.0.1]","time":"2024-12-12T13:52:03-06:00"}
{"error":"failed to execute `ssh -O exit -p 56548 127.0.0.1`, out=\"Control socket connect(/Users/tim/.colima/_lima/colima/ssh.sock): No such file or directory\\r\\n\": exit status 255","level":"warning","msg":"failed to exit SSH master","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"Shutting down QEMU with ACPI","time":"2024-12-12T13:52:03-06:00"}
{"level":"warning","msg":"Failed to remove SSH binding for port 56548","time":"2024-12-12T13:52:03-06:00"}
{"error":"dial unix /Users/tim/.colima/_lima/colima/qmp.sock: connect: connection refused","level":"warning","msg":"failed to open the QMP socket \"/Users/tim/.colima/_lima/colima/qmp.sock\", forcibly killing QEMU","time":"2024-12-12T13:52:03-06:00"}
{"level":"info","msg":"QEMU has already exited","time":"2024-12-12T13:52:03-06:00"}
All the serial files are empty:
→ ls -lh ~/.colima/_lima/colima/serial*.log
-rw-r--r-- 1 tim staff 0 Dec 12 13:52 /Users/tim/.colima/_lima/colima/serial.log
-rw-r--r-- 1 tim staff 0 Dec 12 13:52 /Users/tim/.colima/_lima/colima/serialp.log
-rw-r--r-- 1 tim staff 0 Dec 12 13:52 /Users/tim/.colima/_lima/colima/serialv.log
Please note that I am using Devbox (Nix), but the same error happens when using Colima + QEMU from Homebrew. I can provide logs for a Homebrew-based install if that would be helpful.
Version
→ colima version; limactl --version; qemu-img --version
colima version 0.7.5
git commit: 1588c06
zsh: command not found: limactl
qemu-img version 9.1.1
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
Note that limactl is not available via the Devbox shell.
Operating System
- macOS Intel <= 13 (Ventura)
- macOS Intel >= 14 (Sonoma)
- Apple Silicon <= 13 (Ventura)
- Apple Silicon >= 14 (Sonoma)
- Linux
Output of colima status
→ colima status
FATA[0000] colima is not running
Reproduction Steps
colima delete -fcolima start
Expected behaviour
I expected the machine to be created and for it to start.
Additional context
If I start colima with the command colima start --arch aarch64 --vm-type=vz, it works.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 16 (3 by maintainers)
Qemu is actually still the default (if present). Looks like it is time to set the default to VZ regardless of the availability of Qemu.
I head the same issue on a M1 Pro MacBook. Running
colima delete -fandbrew reinstall colimadid solve the issue.devbox and Colima user and upgraded to 15.2 and had zero issues starting my previous Colima setup.
Yes,
colima start --arch aarch64 --vm-type=vzworks.