Description of problem: virt-inspector can be used to inspect a given disc. It would be great if virt-inspector could also output a libosinfo short-id. If this is done, then the connection to th elibosinfo database can be made, which enables a wide range of use cases - i.e. querying additional informations about the guest (name, version, …), also understanding requirements of this guest. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Yes we should do this. It's a very easy change actually. A new API called something like ‘inspect-get-osinfo’, and a mapping table buried in daemon/inspect*
Richard, yes that sounds good. I'd be happy to test this once it lands in upstream Fedora or alike.
Patch series posted upstream: https://www.redhat.com/archives/libguestfs/2018-February/msg00129.html
Fixed with https://github.com/libguestfs/libguestfs/commit/286b88891c2288fb7f64c9538296599ece04bcb1 https://github.com/libguestfs/libguestfs/commit/2f8ec91fc1f3e81c8fb81d45849bc7462ee13642 (and also as followup unrelated to this bug: https://github.com/libguestfs/libguestfs/commit/5e8052dc8f21bfef2d17827f18391de9d8741fee ) which are in libguestfs >= 1.39.1.
One thing - It would be good if we can somehow detect windows geusts as well. Should this be a spearate rfe?
(In reply to Fabian Deutsch from comment #7) > One thing - It would be good if we can somehow detect windows geusts as well. Basically it boils down to find out all the various combinations of version number (MAJ.MIN), product name, and product variant to an osinfo-db short ID. > Should this be a spearate rfe? No, this one is fine.
Verified with package: libguestfs-1.38.2-10.el7.x86_64 Steps: 1.Prepare a RHEL7 guest image: rhel7.6.qcow2 2. # virt-inspector -a rhel7.6.qcow2 <?xml version="1.0"?> <operatingsystems> <operatingsystem> <root>/dev/rhel/root</root> <name>linux</name> <arch>x86_64</arch> <distro>rhel</distro> <product_name>Red Hat Enterprise Linux Server 7.6 Beta (Maipo)</product_name> <major_version>7</major_version> <minor_version>6</minor_version> <package_format>rpm</package_format> <package_management>yum</package_management> <hostname>localhost.localdomain</hostname> <osinfo>rhel7.6</osinfo> <mountpoints> <mountpoint dev="/dev/rhel/root">/</mountpoint> <mountpoint dev="/dev/sda1">/boot</mountpoint> </mountpoints> <filesystems> ... ... There is osinfo in the output, so verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:3021