colima icon indicating copy to clipboard operation
colima copied to clipboard

Unable start colima in mac M3

Open samantsu01 opened this issue 1 year ago • 9 comments

Description

Trying to start colima using this command colima start --cpu 2 --memory 4 --arch x86_64

Getting hung with message below

INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0001] creating and starting ... context=vm

Terminal is not available, proceeding without opening an editor

Version

colima version 0.8.0 git commit: 9c08cff339f087c0600d9d56af7b5fbcfe02e287 limactl version 1.0.1 qemu-img version 9.1.1 Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

Operating System

  • [ ] macOS Intel <= 13 (Ventura)
  • [ ] macOS Intel >= 14 (Sonoma)
  • [ ] Apple Silicon <= 13 (Ventura)
  • [X] Apple Silicon >= 14 (Sonoma)
  • [ ] Linux

Output of colima status

colima status FATA[0000] colima is not running

Reproduction Steps

  1. brew install lima 2.brew install qemu 3.brew install colima
  2. colima start --cpu 2 --memory 4 --arch x86_64

Expected behaviour

should start colima with docker

Additional context

No response

samantsu01 avatar Nov 21 '24 06:11 samantsu01

Is that all the output you get?

abiosoft avatar Nov 21 '24 08:11 abiosoft

I didnt get you question , can you please elaborate ?

samantsu01 avatar Nov 22 '24 06:11 samantsu01

Can you start with --verbose flag and share the output?

colima start --verbose

abiosoft avatar Nov 22 '24 07:11 abiosoft

here is the output, not moving forward after that

Screenshot 2024-11-22 at 3 35 50 PM

samantsu01 avatar Nov 22 '24 10:11 samantsu01

That is very strange. Does it start up normally if you do not specify x86_64 as the architecture.

abiosoft avatar Nov 22 '24 15:11 abiosoft

@samantsu01, not sure if it matters, but I did not need to manually install lima or qemu, steps 1 & 2 in your reproduction steps. Just brew install colima works fine.

These are the settings that consistently work for me to get my large project to run on M3:

colima start -f --cpu 6 --memory 12 --disk 50 --arch aarch64 --vm-type=vz --vz-rosetta --mount-type=virtiofs

ddcech avatar Dec 06 '24 11:12 ddcech

Having the exact same issue on Mac M1

hbontempo-cw avatar Jan 27 '25 18:01 hbontempo-cw

Was having the exactly same issue wit my Mac M1 today and after spending hours tweaking configurations reinstalling Colima and etc I remembered that in the past I had to manually symlink to ~/.colima/docker.sock from /var/run/docker.sock (don't remember why) I removed this symlink and everything is working now.

sudo rm /var/run/docker.sock

hbontempo-cw avatar Jan 27 '25 20:01 hbontempo-cw

Was having the exactly same issue wit my Mac M1 today and after spending hours tweaking configurations reinstalling Colima and etc I remembered that in the past I had to manually symlink to ~/.colima/docker.sock from /var/run/docker.sock (don't remember why) I removed this symlink and everything is working now.

sudo rm /var/run/docker.sock

it worked for Apple M2 Max

araujo-luis avatar Feb 06 '25 12:02 araujo-luis