On Mon, Oct 10, 2022 at 08:51:00AM +0000, Harry Bryson wrote:
>> [Rocky9]$ virt-customize -a disk.qcow2 --firstboot-command
/tmp/bootstrap
>> [ 0.0] Examining the guest ...
>> [ 17.1] Setting a random seed
>> [ 17.3] Installing firstboot command: /tmp/bootstrap
>> virt-customize: error: guest type rocky is not supported
>This is just a bug. For reference what versions of libguestfs &
>guestfs-tools are you using?
Just the native EL9 versions
$ rpm -q libguestfs guestfs-tools
libguestfs-1.46.1-4.el9_0.alma.x86_64
guestfs-tools-1.46.1-6.el9.0.1.x86_64
(I am running on AlmaLinux9/Rocky9 as well)
What does Alma (as a guest image) return for inspect-get-distro? As
far as I can tell we don't really support it in libguestfs so far.
Anyway the attached patches should fix the issue for Rocky guest
images, although it's not really long-term supportable to keep adding
distros like this, we'll have to think of a better way.
The bug is:
https://bugzilla.redhat.com/show_bug.cgi?id=2133443
Not sure if this is the correct fix, but I test patched the distro
matching and it seemed to fix this.
(Although virt-builder did not link cleanly - fPIE ?)
You probably need to configure with:
./configure CFLAGS="-O2 -fPIC -g"
(or alternatively just rebuild from the CentOS SRPM)
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit