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

Aperta
#61 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@cgwalters ci sta già lavorando.

Dal 10/10/2025.

  • #63 di @cgwalters — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
142
Fork
40
Merge medio
2g 22h
PR unite (30g)
10

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bootc-dev/bcvk

Tutte le issue di bootc-dev/bcvk

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.