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 摘要。