-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add podman machine bootc
#21243
Comments
I have some WIP in https://github.com/cgwalters/podman/commits/machine-exec/ |
OK looking into this...I think this is going to have a fair bit of conflict/overlap with what @baude wants to do for cleaning up the virt stack. A basic thing this issue wants to do is have a more generic "run a VM" tool that notably:
And this is going to really want a setup that looks like this: pkg/virt/ (exposes generic primitives for basic cross-platform virt) But having a more generic setup also helps lead towards helping with #21251 @baude thoughts? Happy to do a realtime sync on this too. |
I'm still thinking about this and looking at things. I took some time to do a deeper dive into https://lima-vm.io/ too. Positives:
Negatives:
Neutrals:
Uncertainties:
|
I'm doing some experiments from the user POV [0]. It currently uses qemu, it supports cloudinit and smbios to inject credentials (but we can also create users and set users passwords). The idea is to be part of podman, as |
For reference the latest code here is https://gitlab.com/bootc-org/podman-bootc-cli |
@cgwalters there is a typo in the url an extra "l" at the end |
Current trending thought is now away from doing this here, so closing. (But, we do need to dedup virt code in the medium term...at least on Linux I think podman-machine should consider using libvirt nowadays, which would have made #22920 trivial; see containers/podman-bootc#36 ) |
Feature request description
In the https://github.com/containers/bootc project we are focusing on bootable containers. We reuse
podman build
(or other container build tools) for this.We want to have a fast and efficient workflow of booting a container image directly as a virtual machine.
Today,
podman machine
has cross-platform virt code that works...and only needs a small generalization to support a flow like this:podman build localhost/testos
podman machine bootc run localhost/testos
By default, this VM would be "lifecycle bound" to the controlling shell invocation; this removes a lot of CLI/infrastructure needs around having external daemons with APIs,
start|stop
verbs, support for reconfiguration etc.Behind the scenes,
podman machine bootc run
would actually runbootc install to-disk
to synthesize a disk image or would leverage https://github.com/osbuild/bootc-image-builderSuggest potential solution
Add code to do the above
Have you considered any alternatives?
Documenting how to use external virt tools is the other big solution, which we will also do...but we can much more easily streamline things by reusing existing
podman
andpodman machine
code.Additional context
No response
The text was updated successfully, but these errors were encountered: