Skip to content

Add podman run --bootc-vm or so #99

@cgwalters

Description

@cgwalters

Moving this from #95 (comment)

We had a thought a while ago that the functionality from podman-bootc might move to podman. However that has a large scope.

But what would have a much smaller and more obvious scope/match is moving just this functionality to podman:

Run a container that has a kernel embedded (in /usr/lib/modules) as a VM via direct boot (no bootloader) using the container's rootfs via virtiofs. The tool should support overriding init or just leave it with the default (which should work with systemd)

Strawman: podman run --bootc-vm <image>

cc @alicefr

Maybe it shouldn't be --bootc-vm but a more generic name; again the key idea is that we're running the kernel from the target image, and we're also just default to the commandline from the target image (e.g. systemd) - unlike e.g. kata we wouldn't have a runtime embedded.

Details

A really key question is whether the result of the execution of this should itself be represented as a podman container. This question is entangled with questions that arose in the original issue of whether we should require a virt stack on the host (as podman machine does) or whether it should come from a container.

If it does not appear as a (podman) container then perhaps it shouldn't be under podman run, but something more like podman machine runc or so?

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