colima: colima start fails due to 'QEMU has already exited' - QEMU 8.0.4

Description

No response

Version

Colima Version: 0.5.5 Lima Version: 0.17.0 Qemu Version: 8.0.4

Operating System

  • macOS Intel <= 12 (Monterrey)
  • macOS Intel >= 13 (Ventura)
  • macOS M1 <= 12 (Monterrey)
  • macOS M1 >= 13 (Ventura)
  • Linux

Output of colima status

FATA[0000] colima is not running

Reproduction Steps

  1. Run colima start

Expected behaviour

colima starts without errors.

Additional context

❯ colima start --very-verbose TRAC[0000] cmd [“limactl” “info”] TRAC[0000] cmd [“limactl” “list” “colima” “–json”] INFO[0000] starting colima INFO[0000] runtime: docker TRAC[0000] cmd [“limactl” “list” “colima” “–json”] INFO[0000] preparing network … context=vm TRAC[0000] cmd [“/usr/local/bin/colima” “daemon” “status” “default”] TRAC[0000] cmd [“/usr/local/bin/colima” “daemon” “stop” “default”] TRAC[0000] cmd [“/usr/local/bin/colima” “daemon” “start” “default” “–gvproxy” “–very-verbose”] TRAC[0000] cmd [“limactl” “list” “colima” “–json”] INFO[0000] starting … context=vm TRAC[0000] cmd [“limactl” “start” “colima”]

Using the existing instance “colima” [hostagent] Starting QEMU (hint: to watch the boot progress, see “/Users/xxx/.lima/colima/serial*.log”) SSH Local Port: 49426 [hostagent] Waiting for the essential requirement 1 of 5: “ssh” [hostagent] Driver stopped due to error: “exit status 255” [hostagent] Shutting down the host agent [hostagent] failed to exit SSH master [hostagent] Shutting down QEMU with ACPI [hostagent] failed to open the QMP socket “/Users/xxx/.lima/colima/qmp.sock”, forcibly killing QEMU [hostagent] QEMU has already exited exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see “/Users/xxx/.lima/colima/ha.stderr.log”) FATA[0001] error starting vm: error at ‘starting’: exit status 1

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 15 (9 by maintainers)

Most upvoted comments

Turned out to be a regression in QEMU v8.0.4: https://gitlab.com/qemu-project/qemu/-/issues/1828

Downgrading to v8.0.3 will work:

curl -OSL https://raw.githubusercontent.com/Homebrew/homebrew-core/dc0669eca9479e9eeb495397ba3a7480aaa45c2e/Formula/qemu.rb
brew install ./qemu.rb

But now you’re too late, you can close it as it was solved. #777 (comment)

The regression occurred again:

I missed this issue because it was closed, but it doesn’t seem to have been resolved yet… downgrading is a workaround, but certainly not solved

Can confirm that the issue doesn’t seem to affect M1 chip, so it’s Intel specific - also tried upgrading to lima@0.17.2 which supposedly fixes this problem, ~but still get the same error. Going to keep the downgraded version of qemu for now, and pin it to prevent upgrading~

EDIT: Just needed to follow the instructions of the lima update to sign the binary - I think the solve for this issue should be that colima checks whether the binary is signed, and if it isn’t, then prompt the user to sign - as the error being thrown is not clear.

@z0sen it’s definitely not closed, it will affect all users and upgraders. Please reopen it and improve the title now that it’s understood what’s going on. Maybe “colima start fails due to ‘QEMU has already exited’ - QEMU 8.0.4”

Since the homebrew troubles have not been resolved, lots of people will be looking for this issue.