[Feature request] Emulate other CPU architectures

Offen
#258 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
rust
Bereich
backend

Rechercherichtung

Start at crates/kit/src/run_ephemeral_ssh.rs:246, where the failed run reports the monitor exit, and trace how the QEMU command is selected for the working x86_64 case. Check how architecture and emulation support are configured and run the existing ephemeral VM tests. Done means bootable containers for a different architecture, such as aarch64 on x86_64, can start successfully.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

I can't run bootable containers for other CPU architectures (aarch64 on x86_64):

❯ bcvk ephemeral run-ssh quay.io/fedora/fedora-bootc:44-aarch64
⠤ Starting VM...
Error: can only start exec sessions when their container is running: container state improper

Container state: stopped (exit code: 1)
bwrap: Creating new namespace failed: Invalid argument
(Container produced no output)
Error: 
   0: 91mMonitor process exited unexpectedly: ExitStatus(unix_wait_status(65280))

Location:
   35mcrates/kit/src/run_ephemeral_ssh.rs:35m246

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

For reference, running x86_64 on x86_64 works:

❯ bcvk ephemeral run-ssh quay.io/fedora/fedora-bootc:44-x86_64 
[systemd]
Failed Units: 1
  bootloader-update.service
[root@fedora ~]# exit
logout

Running x86_64 uses QEMU behind the scenes and QEMU support for aarch64 seems to be installed.

It would be nice to try out bootable containers for other CPU architectures.

Vorherrschende Sprache
Rust
Sterne
142
Forks
40
Ø Merge
2 T. 22 Std.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus bootc-dev/bcvk

Alle Issues in bootc-dev/bcvk

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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