colima icon indicating copy to clipboard operation
colima copied to clipboard

Colima vm hangs after a few minutes, using lima HEAD

Open aaronlehmann opened this issue 1 year ago • 8 comments

Description

I upgraded to lima HEAD to get the fix for https://github.com/lima-vm/lima/issues/1333, but I found that in this configuration, the VM often becomes completely unresponsive after a few minutes.

Version

Colima Version: colima version 0.5.6 git commit: ceef812c32ab74a49df9f270e048e5dced85f932 Lima Version: limactl version HEAD-c4986e7 Qemu Version: qemu-img version 8.1.1

Operating System

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

Output of colima status

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/alehmann/.colima/default/docker.sock

Reproduction Steps

brew install --head lima
colima start

After a few minutes, dockerd or the entire VM often becomes unresponsive. Sometimes colima ssh doesn't work at all, sometimes it does but things are in a very bad state (processes randomly go into D state, etc.).

Expected behaviour

No response

Additional context

No response

aaronlehmann avatar Oct 18 '23 23:10 aaronlehmann

@alexpav-prodyna @jsankeytwilio: I see you both thumbs-up'd this issue - curious if this is something you're running into as well?

aaronlehmann avatar Oct 25 '23 17:10 aaronlehmann

same here but i'm on lima 0.18.0 instead of head, im on macOS M2 >= 14 (Sonoma)

k0d3r1s avatar Oct 26 '23 11:10 k0d3r1s

@aaronlehmann it seems like i have found the issue and fixed this for myself. issue here is that there are changes in configuration in new lima version and updating lima itself does not seem to update configuration files.

solution:

colima stop -f
colima delete
colima start

this will delete all colima settings (including lima.yaml) and recreate them with correct syntax. only downside is that this will delete all local images, containers etc

k0d3r1s avatar Oct 27 '23 15:10 k0d3r1s

@aaronlehmann, I had the same issue with colima version 0.5.6 after upgrading to macOS Sonoma. Manually deleting ~/.lima & ~/.colima solved it for me.

ghost avatar Nov 02 '23 09:11 ghost

Same here with colima version 0.5.5, high CPU usage meanwhile without doing nothing.

zwaittt avatar Nov 03 '23 07:11 zwaittt

This continues to happen with colima 0.6.2 and lima 0.18.0.

aaronlehmann avatar Nov 15 '23 18:11 aaronlehmann

Same thing here. Starts okay, works for a few moments and then hangs indefinitely. Not even colima status works.

haggen avatar Nov 17 '23 14:11 haggen

Same here!

ricardo-faria-rlabs avatar Nov 24 '23 12:11 ricardo-faria-rlabs