Description
Hello - I'm sorry if this is not the correct place to report this problem. I don't think this is a problem regarding bootc itself, but rather how the container image is working. I am trying to create a hypervisor bootc image, nothing fancy just kvm/libvirt on top of centos-bootc - however the resulting libvirt installation is broken.
To reproduce this:
host# podman run --rm -d quay.io/centos-bootc/centos-bootc:stream9 /bin/bash
container# dnf install -y libvirt
Results in:
Running scriptlet: libvirt-daemon-driver-qemu-10.0.0-7.el9.x86_64 79/80
useradd: group 'kvm' does not exist
Installing : libvirt-daemon-driver-qemu-10.0.0-7.el9.x86_64 79/80
warning: user qemu does not exist - using root
This does not fail though, and if you build a bootc container with libvirt it will succeed however kvm/libvirt will be broken in several places due to the qemu user being missing. I think I can workaround this, if I can figure out exactly what users/groups need to be created and if any directories need to be chown'ed - but I have not had success yet.
Digging into this, trying to create the user manually results in:
container# groupadd kvm
groupadd: group 'kvm' already exists
So it looks like the group exists already, its referenced in /lib/group
. I'm not familiar enough with how this altfile structure works but it looks like the installer for libvirt doesn't understand it.
Thanks in advance for the assistance.