containers / podman-desktop-extension-bootc

Support for bootable OS containers (bootc) and generating disk images
Apache License 2.0
406 stars 14 forks source link

Podman machine on GHA runners is by default set to rootless and cannot create bootc images #489

Open cbr7 opened 3 months ago

cbr7 commented 3 months ago

Bug description

The podman machines on GHA runners are set to rootless which means it cannot currently create bootc images since bootc requires root access to the machine.

Operating system

linux

Version

next (development version)

Steps to reproduce

No response

Relevant log output

No response

Additional context

No response

odockal commented 3 months ago

So, regarding running the Podman Machine in a rootful mode on GHA Ubuntu runner, it is not possible:

 Extracting compressed file
Image resized.
Machine init complete
Starting machine "podman-machine-default"
Waiting for VM ...
Error: qemu exited unexpectedly with exit code 1, stderr: Could not access KVM kernel module: Permission denied
qemu-system-x86_64: -accel kvm: failed to initialize kvm: Permission denied

Simply it is VM and does not have nested virtualization allow (my bet).

Workaround could be to set podman on the system to be in a rootful mode.