abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
19.55k stars 396 forks source link

fatal msg expected the format of .lima/colima/diffdisk to be 'raw' got 'qcow2' #726

Closed silabs-theophilel closed 1 year ago

silabs-theophilel commented 1 year ago

Description

After un-installing from brew my previous 0.5.2 version of colima and re-installing latest HEAD, I got the following errot at startup:

brew install --HEAD colima
colima version
colima version HEAD-6251dc2
git commit: 6251dc2c2c5d8197c356f0e402ad028945f0e8
colima start --arch aarch64
INFO[0000] starting colima
INFO[0000] runtime: docker
INFO[0000] starting ...                                  context=vm
> Using the existing instance "colima"
> [hostagent] Starting VZ (hint: to watch the boot progress, see "/Users/thleroy/.lima/colima/serial.log")
> [hostagent] new connection from  to
> exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see "/Users/thleroy/.lima/colima/ha.stderr.log")
FATA[0001] error starting vm: error at 'starting': exit status 1

I get a fatal error in ha.stderr.log :

"level":"fatal","msg": expected the format of \"/Users/thleroy/.lima/colima/diffdisk\" to be \"raw\", got \"qcow2

Is there an identified issue and/or fix for this? I did not find any issue related to "qcom2" and "raw".

Full content of ha.stderr.log:

{"level":"debug","msg":"Creating iso file /Users/thleroy/.lima/colima/cidata.iso","time":"2023-05-30T16:15:19+02:00"}
{"level":"debug","msg":"Using /var/folders/z3/khjv2r250hl_zs7_4kz5v1xh0000gp/T/diskfs_iso1449743661 as workspace","time":"2023-05-30T16:15:19+02:00"}
{"level":"debug","msg":"Failed to detect CPU features. Assuming that AES acceleration is available on this Apple silicon.","time":"2023-05-30T16:15:19+02:00"}
{"level":"debug","msg":"OpenSSH version 9.0.1 detected","time":"2023-05-30T16:15:19+02:00"}
{"level":"debug","msg":"AES accelerator seems available, prioritizing aes128-gcm@openssh.com and aes256-gcm@openssh.com","time":"2023-05-30T16:15:19+02:00"}
{"level":"info","msg":"Starting VZ (hint: to watch the boot progress, see \"/Users/thleroy/.lima/colima/serial.log\")","time":"2023-05-30T16:15:19+02:00"}
{"level":"debug","msg":"Start udp server listening on: 127.0.0.1:54394","time":"2023-05-30T16:15:19+02:00"}
{"level":"debug","msg":"Using search domains: [silabs.com]","time":"2023-05-30T16:15:19+02:00"}
{"level":"debug","msg":"Start tcp server listening on: 127.0.0.1:58493","time":"2023-05-30T16:15:19+02:00"}
{"level":"info","msg":"new connection from  to ","time":"2023-05-30T16:15:19+02:00"}
{"level":"fatal","msg":"expected the format of \"/Users/thleroy/.lima/colima/diffdisk\" to be \"raw\", got \"qcow2\"","time":"2023-05-30T16:15:19+02:00"}

Version

colima version colima version HEAD-6251dc2 git commit: 6251dc2c2c5d8197c356f0e402ad028945f0e830

Lima Version: lima --version limactl version 0.16.0

Qemu Version: QEMU emulator version 8.0.0

Operating System

Output of colima status

colima status FATA[0000] colima is not running

Reproduction Steps

  1. brew install --HEAD colima
  2. colima start (--arch aarch64)

Expected behaviour

No response

Additional context

No response

silabs-theophilel commented 1 year ago

Fixing the issue with the following image conversion from QEMU:

qemu-img convert -O raw diffdisk diffdisk.raw -p

rm diffdisk

mv diffdisk.raw diffdisk