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
>> [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) 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 ?) Thanks! Harry [cid:Corero-C-Emblem-Logo_45d4852f-9c54-43bf-890a-87cc840a4439.png]<https://www.corero.com/> Harry Bryson | Software Engineer [cid:1.Email-icon_26b8c770-e81e-4f66-a563-df28e00684aa.png] Harry.Bryson at corero.com<mailto:Harry.Bryson at corero.com> [cid:3.Map-icon_41ce7b53-a7ba-45b0-a0f5-984216110856.png] 53 Hanover Street, Edinburgh, EH2 2PJ United Kingdom [cid:4.Website-icon_66f93fb0-fb56-42b8-879c-68b071f492af.png]<https://www.corero.com>[cid:5.LinkedIn-icon_71e7bc7c-e732-410a-898f-d7fd45115cd4.png]<https://www.linkedin.com/company/corero>[cid:6.Twitter-icon_24fc5112-78a4-4303-af64-9ef3ec89fc44.png]<https://twitter.com/corero>[cid:7.Facebook-icon_a3c6fd35-9f1a-4019-951e-0763954abc5c.png]<https://www.facebook.com/corero.inc/>[cid:8.Youtube-icon_cd676141-8f09-4e1b-893d-da9b396d3d00.png]<https://www.youtube.com/user/corerosecurity/> Access Corero Network Security's Privacy Policy here<https://www.corero.com/privacy>. We are Corero Network Security plc ("Corero"), registered in England and Wales, with registered company number 02662978, registered office address Salisbury House, 29 Finsbury Circus, London, EC2M 5QQ. 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<https://info.corero.com/data-preferences.html>. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: Corero-C-Emblem-Logo_45d4852f-9c54-43bf-890a-87cc840a4439.png Type: image/png Size: 11949 bytes Desc: Corero-C-Emblem-Logo_45d4852f-9c54-43bf-890a-87cc840a4439.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.Email-icon_26b8c770-e81e-4f66-a563-df28e00684aa.png Type: image/png Size: 1280 bytes Desc: 1.Email-icon_26b8c770-e81e-4f66-a563-df28e00684aa.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0001.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 2.Phone-icon_8e6fca71-ef0f-4a42-a9c9-c0b0f6217dd7.png Type: image/png Size: 3369 bytes Desc: 2.Phone-icon_8e6fca71-ef0f-4a42-a9c9-c0b0f6217dd7.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0002.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3.Map-icon_41ce7b53-a7ba-45b0-a0f5-984216110856.png Type: image/png Size: 1021 bytes Desc: 3.Map-icon_41ce7b53-a7ba-45b0-a0f5-984216110856.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0003.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 4.Website-icon_66f93fb0-fb56-42b8-879c-68b071f492af.png Type: image/png Size: 1969 bytes Desc: 4.Website-icon_66f93fb0-fb56-42b8-879c-68b071f492af.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0004.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 5.LinkedIn-icon_71e7bc7c-e732-410a-898f-d7fd45115cd4.png Type: image/png Size: 1822 bytes Desc: 5.LinkedIn-icon_71e7bc7c-e732-410a-898f-d7fd45115cd4.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0005.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 6.Twitter-icon_24fc5112-78a4-4303-af64-9ef3ec89fc44.png Type: image/png Size: 1853 bytes Desc: 6.Twitter-icon_24fc5112-78a4-4303-af64-9ef3ec89fc44.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0006.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 7.Facebook-icon_a3c6fd35-9f1a-4019-951e-0763954abc5c.png Type: image/png Size: 1768 bytes Desc: 7.Facebook-icon_a3c6fd35-9f1a-4019-951e-0763954abc5c.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0007.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: 8.Youtube-icon_cd676141-8f09-4e1b-893d-da9b396d3d00.png Type: image/png Size: 1809 bytes Desc: 8.Youtube-icon_cd676141-8f09-4e1b-893d-da9b396d3d00.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20221010/ed8dee7b/attachment-0008.png>