0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Macで`$colima start`を実行しようと思ったらエラーが出た際の解決メモ

Posted at

Macで$colima startを実行しようと思ったらエラー

$ colima start
FATA[0000] limactl is running under rosetta, please reinstall lima with native arch FATA[0002] lima compatibility error: error checking Lima version: exit status 1

以下のようにしたら少し解決した

1) Make sure you’re not in a Rosetta shell

Quit Terminal/iTerm → Finder → Applications → (Terminal or iTerm) → Get Info → uncheck “Open using Rosetta”.

Reopen a fresh shell and run:

arch            # should print: arm64
uname -m        # should print: arm64

2) Ensure you’re using the arm64 Homebrew
which brew
brew config | grep HOMEBREW_PREFIX     # should be /opt/homebrew


If it’s /usr/local (Intel brew), fix your PATH and restart the shell:

echo 'export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"' >> ~/.zshrc
exec zsh -l

3) Remove Intel lima and install native arm64
# See if multiple limactl are on PATH
command -v -a limactl

# Force arm64 brew for safety
arch -arm64 /opt/homebrew/bin/brew uninstall --force lima colima || true
arch -arm64 /opt/homebrew/bin/brew install lima colima

4) Verify it’s arm64 now
file "$(which limactl)"   # should say: Mach-O 64-bit executable arm64
limactl --version

5) If it still complains

You may have stale Intel VMs or a shadowed binary.

# Check for shadowing
which -a limactl          # remove any from /usr/local/, MacPorts, Nix, asdf, etc.

# (Optional) reset Lima VMs – this deletes them; back up first if needed
limactl stop --all || true
mv ~/.lima ~/.lima.bak.$(date +%Y%m%d-%H%M)


Paste the outputs of:

arch
brew config | grep HOMEBREW_PREFIX
command -v -a limactl
file "$(which limactl)"

その後、また$colima startを実行しようと思ったらタイムアウトエラー

% colima start
INFO[0000] starting colima 
INFO[0000] runtime: docker 
INFO[0003] creating and starting ... context=vm INFO
[0004] downloading disk image ... context=vm
#################################### 29.6%

以下によりまた少し進む

1) Sanity check (one-time)
file "$(which colima)"     # should be arm64
file "$(which limactl)"    # should be arm64
colima version
limactl --version

2) If it finishes
colima status
docker info
docker run --rm hello-world

3) If it stalls on “downloading disk image…”

Try these in order:

Verbose logs

colima start --verbose
# or watch the Lima logs:
tail -f ~/.lima/colima/serial.log


Network/proxy hiccup reset

colima stop || true
colima delete -f
# Best settings for Apple silicon, no guest Rosetta:
colima start --vm-type=vz --arch=aarch64 --cpu=4 --memory=8 --vz-rosetta=false


(--vm-type=vz uses Apple’s Virtualization Framework; faster and cleaner on M-series.)

Behind a proxy? Start with your proxy env vars set:

export HTTP_PROXY=http://proxy:port HTTPS_PROXY=http://proxy:port NO_PROXY=localhost,127.0.0.1
colima start --vm-type=vz --arch=aarch64 --vz-rosetta=false


Check which image URL is failing
Open the log and look for the download URL:

grep -i 'download' ~/.lima/colima/serial.log | tail


If you see repeated timeouts, it’s a network issue (VPN, proxy, firewall).

4) Common “gotchas”

Make sure Terminal/iTerm isn’t launched “Using Rosetta”.

Ensure you’re on /opt/homebrew (arm64) brew in your PATH.

Don’t mix Intel/arm64 installs of Colima/Lima.

If it still sticks, paste the last ~30 lines of ~/.lima/colima/serial.log and the output of:

colima status
limactl list --detail


and I’ll zero in on the exact cause.

実行

% colima start
FATA[0059] error starting vm: error at 'creating and starting': error getting qcow image: error during image download: error downloading 'https://github.com/abiosoft/colima-core/releases/download/v0.9.0-2/ubuntu-24.04-minimal-cloudimg-amd64-docker.qcow2': exit status 56

QEMUをインストールしてリトライ

If you do want to use QEMU

Install it via Homebrew:

brew install qemu


Then retry:

colima start --vm-type=qemu --arch=aarch64

動いたような気がするので様子をみてみる

% colima start --vm-type=qemu --arch=aarch64 INFO
[0001] starting colima INFO
[0001] runtime: docker INFO
[0004] creating and starting ... context=vm INFO
[0004] downloading disk image ... context=vm INFO
[0035] provisioning ... context=docker INFO
[0039] starting ... context=docker INFO
[0040] done
...

docker/docker composeバージョン

% docker -v 
Docker version 28.5.0, build 887030fbe8 
% docker compose -v 
Docker version 28.5.0, build 887030fbe8

参考

About
Container runtimes on macOS (and Linux) with minimal setup

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?