abiosoft / abiosoft/colima

amd64 emulation doesn't work on aarch64 on restarts

Offen
#1,389 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Go
Sterne
30.8k
Forks
613
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Description

I have seen that amd64 images running on colima with aarch64 with vz. However, on restarts somehow its looses the amd64 emulation support and the containers fails with error `exec /docker-entrypoint.sh: exec format error`. Upon adding the amd64 emulation using `docker run --rm --privileged tonistiigi/binfmt --install amd64` the containers run again.

### Version

colima version 0.8.2
git commit: 798f8ef9a3a9b6b641687027988f2cd4ea2c2f92

runtime: docker
arch: aarch64
client: v28.3.3
server: v28.3.3
limactl version 1.2.1
qemu-img version 10.0.2
Copyright (c) 2003-2025 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[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/p1729/.colima/default/docker.sock

### Reproduction Steps

1. Run amd64 phpmyadmin image on colima with aarch64 and vz and run the container
2. Restart host machine
3. Start the same container again

### Expected behaviour

The container should start again

### Additional context

_No response_

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Das Issue betrifft die binfmt-Emulation für amd64 auf aarch64 mit macOS Virtualization.Framework (vz). Sieh dir an, wie Colima binfmt-Konfigurationen über Neustarts hinweg einrichtet und persistent speichert, vermutlich bei der VM-Initialisierung oder in den Startskripten. Prüfe den Code, der den vz-Treiber und die binfmt-Installation verarbeitet. Überprüfe den Zustand nach einem Neustart des Hosts, um herauszufinden, warum die Emulation verloren geht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
docker, go, macos
Bereich
cli, devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.