Prior to Enterprise Linux 9, it seems some Red Hat based distros returned "redhat-based" for inspect-get-distro This allowed things like "virt-customize --firstboot-command" to work as this matched the supported distro list, e.g. | "fedora"|"rhel"|"centos"|"scientificlinux"|"oraclelinux"|"redhat-based" However, it seems some distros, e.g. Rocky9 and AlmaLinux9 are now returning "rocky"/"almalinux" for inspect-get-distro When using virt-install and then virt-customize, I am seeing issues like the following: [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 Is there some way to return "redhat-based" again for inspect-get-distro or does the distro list matching need to be updated? I possibly updated the OS database (osinfo-query os) to support newer OS - is this related to this problem? Harry Harry Bryson | Software Engineer Harry.Bryson at corero.com <mailto:Harry.Bryson at corero.com> 53 Hanover Street, Edinburgh, EH2 2PJ United Kingdom Access Corero Network Security?s Privacy Policy here <www.corero.com/privacy>. We are Corero Network Security plc (?Corero?), registered in England and Wales, with registered company number 02662978, registered office address Regus House Highbridge, Oxford Road, Uxbridge, Middlesex, UB8 1HR. Corero is the parent company for Corero Network Security, Inc. and Corero Network Security (UK) Ltd (a company registered in England and Wales with registered number 04047090, with the same registered office address as above) For information about how we process your data, or to manage your data preferences, click here <info.corero.com/data-preferences.html>.
Richard W.M. Jones
2022-Oct-07 19:17 UTC
[Libguestfs] redhat-based EL9 distros not supported?
On Fri, Oct 07, 2022 at 04:33:01PM +0000, Harry Bryson wrote:> Prior to Enterprise Linux 9, it seems some Red Hat based distros returned "redhat-based" for inspect-get-distro > This allowed things like "virt-customize --firstboot-command" to work as this matched the supported distro list, e.g. > > | "fedora"|"rhel"|"centos"|"scientificlinux"|"oraclelinux"|"redhat-based" > > However, it seems some distros, e.g. Rocky9 and AlmaLinux9 are now returning "rocky"/"almalinux" for inspect-get-distro > When using virt-install and then virt-customize, I am seeing issues like the following: > > [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 supportedThis is just a bug. For reference what versions of libguestfs & guestfs-tools are you using?> Is there some way to return "redhat-based" again for inspect-get-distro or does the distro list matching need to be updated? > I possibly updated the OS database (osinfo-query os) to support newer OS - is this related to this problem?Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html