abiosoft / abiosoft/colima

Colima fails to start Rosetta, and reports that it's not installed.

未關閉
#1,069 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
30.8k
分支
613
PR 合併指標
30 天內沒有已合併 PR

描述

### Description

Colima detects if Rosetta is running and if it's not Colima will ask the user to install Rosetta 2.

The [RosettaRunning](https://github.com/abiosoft/colima/blob/8d349191294f98d63b6ef5e2463c67125e84fd1d/util/macos.go#L81) function does the correct thing (checks if it's running), but for some reason the same function is called in [colima/environment/vm/lima/yaml.go](https://github.com/abiosoft/colima/blob/main/environment/vm/lima/yaml.go#L36) to determine if it's installed.

In my case I have Rosetta installed, and when I call `colima start` I get a warning message noting that rosetta isn't installed, and asking me to install Rosetta. Colima then falls back to a very slow QEMU instance (comparison [here](https://github.com/ctrlok/macdockergeek/issues/3)).

I installed it so many times believing that it was being removed somehow. Thankfully, I'm able to look at the code (others might not get that far) to see what the issue is.

The ideal solution:
* Detect if Rosetta is **installed**
* If Rosetta is installed (and required), start it.

### Version

```
colima version 0.6.9
git commit: c3a31ed05f5fab8b2cdbae835198e8fb1717fd0f

runtime: docker
arch: aarch64
client: v27.0.3
server: v26.1.1
limactl version 0.22.0
qemu-img version 9.0.2
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`

```
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/jd/.colima/default/docker.sock
```

### Reproduction Steps

`$ colima start`

### Expected behaviour

Colima uses Rosetta if installed and configured.

### Additional context

_No response_

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。