crun-vm icon indicating copy to clipboard operation
crun-vm copied to clipboard

Consider supporting bootc bootable containers

Open albertofaria opened this issue 2 years ago • 4 comments

To run bootc bootable containers using crun-vm, users currently must first create a VM image from the container using something like bootc-image-builder, and then pass that image to crun-vm.

We could potentially allow users to pass the bootc container directly to crun-vm, which would internally convert it into an image and run a VM from it. This would simplify the workflow for users.

bootc-image-builder requires root privileges, but we would want this to work with rootless podman. A possible solution is running it an ephemeral VM before launching the actual VM requested by the user.

albertofaria avatar Mar 01 '24 18:03 albertofaria

Are you considering mounting the image via virtiofsd?

rhatdan avatar Mar 01 '24 21:03 rhatdan

I was thinking of actually building the disk image and booting that. This would just save the user from having to do that themselves, with the added bonus of not requiring privileges.

albertofaria avatar Mar 01 '24 21:03 albertofaria

If you can build the image without requiring privs?

rhatdan avatar Mar 02 '24 01:03 rhatdan

crun-vm could internally run bootc-image-builder in a minimal VM prior to running the user's actual VM.

albertofaria avatar Mar 02 '24 09:03 albertofaria