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

Ouverte
#61 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

@cgwalters y travaille déjà.

Depuis le 10/10/2025.

  • #63 par @cgwalters — ouverte

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
rust

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Rust
Étoiles
142
Forks
40
Merge moyen
2 j 22 h
PR mergées (30 j)
10

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

  • Aucun Dockerfile ni fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de bootc-dev/bcvk

Toutes les issues de bootc-dev/bcvk

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.