colima: colima start fails most of the time: error validating SHA sum

Description

I had to run colima start more than 5 times for it to start correctly. I am running from AWS-hosted M1 and M2 machines. Output follows:

colima --verbose start -p default --cpu 8 --memory 12 --disk 256 --vm-type=vz --vz-rosetta
INFO[0000] starting colima                              
INFO[0000] runtime: docker                              
INFO[0000] creating and starting ...                     context=vm
INFO[0000] downloading disk image ...                    context=vm
FATA[0006] 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.7.1/ubuntu-24.04-minimal-cloudimg-arm64-docker.qcow2': error validating SHA sum for 'ubuntu-24.04-minimal-cloudimg-arm64-docker.qcow2': exit status 1

Version

colima version 0.7.5
git commit: 1588c066b9ab9dae8205ef265929c7eb43dca473

runtime: docker
arch: aarch64
client: v27.3.1
server: v27.1.1
limactl version 0.23.2
qemu-img version 9.1.0
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)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

(I don’t know if it matters, but I run this after a successful download)

colima status
INFO[0001] colima is running using macOS Virtualization.Framework 
INFO[0001] arch: aarch64                                
INFO[0001] runtime: docker                              
INFO[0001] mountType: virtiofs                          
INFO[0001] socket: unix:///Users/ec2-user/.colima/default/docker.sock

Reproduction Steps

  1. colima --verbose start -p default --cpu 8 --memory 12 --disk 256 --vm-type=vz --vz-rosetta

Expected behaviour

No response

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 4
  • Comments: 54 (19 by maintainers)

Most upvoted comments

@abiosoft can we reopen this issue?

Here’s my workaround

$ brew uninstall colima
$ brew install lima

Then manually download from github releases colima v6.9.10. Anything >=0.70 runs into this SHA mismatch error.

Copy the downloaded 0.6.9 version to /usr/local/bin. Allow macOS security to execute this binary

then re-run colima start - works!

colima status                                                                                                                                                                                                  ✔
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] socket: unix:///Users/rsriniva/.colima/default/docker.sock
Client: Docker Engine - Community
 Version:    27.4.0
 Context:    colima
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 27.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-36-generic
 Operating System: Ubuntu 24.04 LTS
 OSType: linux
 Architecture: aarch64
 CPUs: 6
 Total Memory: 15.58GiB
 Name: colima
 ID: bea89346-729a-4ce9-9c66-78538f5301ee
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8

any ideas on how to work around. I copied the downloaded qcow2 file to /Library/Caches/colima/caches folder, but it did not work