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.
Bug 1216305 - virt-inspector fails to detect the rhel7 images
Summary: virt-inspector fails to detect the rhel7 images
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libguestfs
Version: 6.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Pino Toscano
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1301844
TreeView+ depends on / blocked
 
Reported: 2015-04-29 05:13 UTC by Hu Zhang
Modified: 2016-05-10 19:55 UTC (History)
7 users (show)

Fixed In Version: libguestfs-1.20.11-16.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 19:55:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0762 0 normal SHIPPED_LIVE libguestfs bug fix update 2016-05-10 22:33:40 UTC

Description Hu Zhang 2015-04-29 05:13:56 UTC
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:

Comment 2 Pino Toscano 2015-04-29 17:33:43 UTC
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.

Comment 4 Xianghua Chen 2015-12-02 06:35:27 UTC
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.

Comment 6 errata-xmlrpc 2016-05-10 19:55:51 UTC
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


Note You need to log in before you can comment on or make changes to this bug.