bootc-image-builder icon indicating copy to clipboard operation
bootc-image-builder copied to clipboard

Any investigation on using krun (to be able to run bib non-root)?

Open cdrage opened this issue 1 year ago • 3 comments

Tried my hand at using --runtime=krun with bootc-image-builder to get it to work on non-rootless. But got stuck with the "podman needs root" error.

Has anyone tried it with krun (yet)?

podman run \
    --rm --privileged \
    -it --runtime krun --pull=newer \
    -v $(pwd)/output:/output \
    -v ~/.local/share/containers/storage:/var/lib/containers/storage \
    [quay.io/centos-bootc/bootc-image-builder:latest](http://quay.io/centos-bootc/bootc-image-builder:latest) \
    --type qcow2 \
    --local \
    [quay.io/centos-bootc/centos-bootc:stream9](http://quay.io/centos-bootc/centos-bootc:stream9)
2024/07/29 18:37:58 error: cannot validate the setup: this command must be run in rootful (not rootless) podman

cdrage avatar Jul 29 '24 18:07 cdrage

This sounds very exciting - what version of podman is required to use --runtime=krun ?

mvo5 avatar Jul 29 '24 19:07 mvo5

This sounds very exciting - what version of podman is required to use --runtime=krun ?

You will have to install it on fedora:

sudo dnf copr enable -y slp/libkrunfw
sudo dnf copr enable -y slp/libkrun
sudo dnf copr enable -y slp/crun-krun
sudo dnf install -y crun-krun

but I've been using it on podman 5.0.2

cdrage avatar Jul 29 '24 19:07 cdrage

I think https://github.com/containers/podman-bootc/issues/9 is probably the best place to track this...I don't think we should try to do special magic in this project; it's not the right place. To do sophisticated things here in the end we basically need to start with native code executing in the host, which is not what this project does.

cgwalters avatar Aug 01 '24 21:08 cgwalters

This issue is stale because it had no activity for the past 365 days. Remove the "Stale" label or add a comment, otherwise this issue will be closed in 30 days.

github-actions[bot] avatar Aug 02 '25 04:08 github-actions[bot]

This issue was closed because it has been stalled for 365+30 days with no activity.

github-actions[bot] avatar Sep 02 '25 04:09 github-actions[bot]