colima: Colima hangs on macOS, cannot stop
Description
Colima hanged on my macOS installation. The VMs I try to start simply get stuck. If I run colima status, it just hangs there forever.
colima stop returns INFO[0000] stopping colima and then also hangs.
colima start just returns WARN[0000] already running, ignoring.
The only way out was to manually kill the process qemu-system_x86_64 and restart colima, but then it froze again after running a VM. Even after that, colima start would print
INFO[0000] starting colima
INFO[0000] runtime: docker
and then again get stuck.
Version
colima version 0.6.8
git commit: 9b0809d0ed9ad3ff1e57c405f27324e6298ca04f
limactl version 0.20.1
qemu-img version 8.2.1
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers
While it was in the stuck behavior, only the first two lines are displayed, then it hangs.
Operating System
- macOS Intel <= 13 (Ventura)
- macOS Intel >= 14 (Sonoma)
- Apple Silicon <= 13 (Ventura)
- Apple Silicon >= 14 (Sonoma)
- Linux
Output of colima status
(hangs)
Reproduction Steps
It happens when running some specific VM.
Expected behaviour
No response
Additional context
No response
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 21
- Comments: 20
Commits related to this issue
- Use qemu by default on M3 macs This removes the special case logic for M3 macs that use the vz driver instead of qemu. A lot of people are having trouble with vz on M3 macs: - https://github.com/a... — committed to bradleyayers/colima by bradleyayers 2 years ago
- core: revert to using qemu by default on M3 macs (#1058) This removes the special case logic for M3 macs that use the vz driver instead of qemu. A lot of people are having trouble with vz on M3 macs:... — committed to abiosoft/colima by bradleyayers 2 years ago
same here. it stuck while trying to download something.
Tried all of the above solution, none of them worked. Work around downgrading to 0.6.7 worked
colima start --vm-type=vz --vz-rosetta=true --mount-type=virtiofsMacOS 14.4 M1 Pro
below worked for me, brew install --HEAD colima colima delete default colima start --vm-type vz --mount-type virtiofs
The above didn’t fix it for me. Installed
HEAD, started, and deleted defaults, but still stuck at expanding.Apple Sillicon, M3 Pro macOS 14.4.1 colima HEAD-281757a
Look like it’s now working.
Steps to run.
brew install --HEAD colimacolima start-> stuck.colima delete defaultcolima start-> working.Yeah.
colima sshsudo chmod 666 /var/run/docker.socksame issue as @ngamsomset… M1 MBP Sonoma 14.2.1 Colima 0.6.8
Edit: I ended up downgrading to 0.6.7 to get colima to a working state… it introduced another issue, which I was able to resolve. Here are the steps I took:
hit error:
log:
{"error":"close tcp4 127.0.0.1:443-\u003e127.0.0.1:51217: shutdown: socket is not connected","level":"debug","msg":"failed to call CloseWrite","time":"2024-02-21T17:05:17-03:00"}fixed with:rm -rf ~/.colima/_lima/_networks/user-v2rancolima startagain… worked.