Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
virt-inspector fails to detect the rhel7 images, include rhel7.0 and rhel7.1. This works well on rhel7 host.
Version-Release number of selected component (if applicable):
libguestfs-1.20.11-14.el6.x86_64
libguestfs-tools-c-1.20.11-14.el6.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Get a rhel7 image.
2. Run virt-inspector on the image
# virt-inspector $rhel7_image
Actual results:
Step 2, it returns:
# virt-inspector $rhel7_image
No operating system could be detected inside this disk image.
This may be because the file is not a disk image, or is not a virtual machine
image, or because the OS type is not understood by virt-inspector.
If you feel this is an error, please file a bug report including as much
information about the disk image as possible.
RHEL 6 notice
-------------
libguestfs will return this error for Microsoft Windows guests if the
separate 'libguestfs-winsupport' package is not installed. If the
guest is running Microsoft Windows, please try again after installing
'libguestfs-winsupport'.
Expected results:
It can return the info of the rhel7 image successfully as following:
<?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 release 7.1 (Maipo)</product_name>
<major_version>7</major_version>
...
Additional info:
I see, that's the old Perl inspector API not properly dealing with /bin as symlink (to /usr/bin). Luckly this API (and the Perl virt-inspector) does not exist anymore...
Anyway, the actual fix (bringing the alternative that /bin is a symlink and /usr/bin exists) is easy, I'll check further whether more issue arise later.
Verified with the packages:
libguestfs-1.20.11-16.el6.x86_64
libguestfs-tools-c-1.20.11-16.el6.x86_64
Verify steps:
1. Get a rhel7.1 raw image:RHEL-Server-7.1-64-hvm.raw
2. Run virt-inspector on the image
# virt-inspector RHEL-Server-7.1-64-hvm.raw
linux rhel x86_64 7.1 (Red Hat Enterprise Linux Server release 7.1 (Maipo)) on /dev/rhel/root:
Mountpoints:
/dev/rhel/root /
/dev/sda1 /boot
/dev/rhel/swap swap
Filesystems:
/dev/rhel/root:
label:
UUID: 9686811d-2b5f-40be-b417-b4893a57037c
type: xfs
content: linux-root
/dev/rhel/swap:
type: swap
/dev/sda1:
label:
UUID: c3ee192f-9672-4abc-a60d-5d35627f6f9e
type: xfs
content: linux-grub
Applications:
......
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://rhn.redhat.com/errata/RHBA-2016-0762.html
Description of problem: virt-inspector fails to detect the rhel7 images, include rhel7.0 and rhel7.1. This works well on rhel7 host. Version-Release number of selected component (if applicable): libguestfs-1.20.11-14.el6.x86_64 libguestfs-tools-c-1.20.11-14.el6.x86_64 How reproducible: Always Steps to Reproduce: 1. Get a rhel7 image. 2. Run virt-inspector on the image # virt-inspector $rhel7_image Actual results: Step 2, it returns: # virt-inspector $rhel7_image No operating system could be detected inside this disk image. This may be because the file is not a disk image, or is not a virtual machine image, or because the OS type is not understood by virt-inspector. If you feel this is an error, please file a bug report including as much information about the disk image as possible. RHEL 6 notice ------------- libguestfs will return this error for Microsoft Windows guests if the separate 'libguestfs-winsupport' package is not installed. If the guest is running Microsoft Windows, please try again after installing 'libguestfs-winsupport'. Expected results: It can return the info of the rhel7 image successfully as following: <?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 release 7.1 (Maipo)</product_name> <major_version>7</major_version> ... Additional info: