Handle `qemu:///system` with podman rootless

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

Maintainer antworten meist innerhalb von 2 Tagen

@cgwalters arbeitet bereits daran.

Seit 10.10.2025.

  • #63 von @cgwalters — offen

Bewertung

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

Rechercherichtung

Start by reading the code that creates the disk image in ephemeral and mounts the source container, then trace how it selects and writes to the libvirt storage pool. The issue suggests checking direct write access and falling back to a temporary disk uploaded over the socket; compare both paths for qemu:///system with rootless Podman. Done means persistent VM disk creation works in this setup.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

For many Linux devs operating on a desktop with podman, "rootless" is the default, and here one's container images live in ~/.local/share/containers/storage.

This all basically works fine with libvirt qemu:///session which is effectively the same, disk images are stored in the homedir.

But I want to support creating persistent "pet system" virtual machines with qemu:///system. Libvirt is a daemon, and everything goes over a socket.

There is support for uploading disks over that socket, e.g. virsh vol-upload.

But the problem here is we're bootstrapping generating the disk image in ephemeral by running a pod which mounts the source container (using the source container).

Now, there's a clear easy fix here which is to switch to creating a temporary disk in e.g. /var/tmp which we always upload over the socket - though that forces a full copy. I guess we can check if we have direct write access to the pool, and if not then we fall back.

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.