abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colima cause system crash on MacOS M1

golibali opened this issue · comments

Description

I need to develop x86 software on an Apple M1 Macbook Pro, so my solution was to use Colima with Rosetta support. I did the setup with this command:

colima start --arch aarch64 --vm-type=vz --vz-rosetta --cpu 8 --memory 8

It works perfectly until I stay in the Lima VM (and any conatiner in Colima), but unfortunatelly all other ative Apple M1 app are frequently crashes. (MacOs Calendar, Chrome, Slack, etcd)

I tried to narrow the issue down, and until Colima is not started, everything is ok. After that, random crashes are came. One more thing, if I stop Colima, usually a full system reboot needs to be done, to get rid of all the issues.

Version

% colima version && limactl --version && qemu-img --version
colima version 0.6.8
git commit: 9b0809d0ed9ad3ff1e57c405f27324e6298ca04f

runtime: docker
arch: aarch64
client: v26.1.0
server: v24.0.9
limactl version 0.21.0
qemu-img version 9.0.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

Mac:

MacBook Pro,
Chip: Apple M1 Max
Memory: 32 GB
macOS: Sonoma 14.5

Operating System

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

Output of colima status

% 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/golibali/.colima/default/docker.sock

Reproduction Steps

  1. Start Colima with command colima start --arch aarch64 --vm-type=vz --vz-rosetta --cpu 8 --memory 8
  2. Use it a bit (attach a VSCode, run some golang tests)
  3. Watch other Mac apps as they not responding/crashing ...

Expected behaviour

It would be great if all the native apple apps remain workable after Colima is started.

Additional context

I created a development x86 container in Colima with the --platform linux/amd64, and attached a VSCode to it. I don't know if it matters, probably not.