Skip to content

Handle qemu:///system with podman rootless #61

@cgwalters

Description

@cgwalters

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions