Bug 1216305
| Summary: | virt-inspector fails to detect the rhel7 images | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Hu Zhang <huzhan> |
| Component: | libguestfs | Assignee: | Pino Toscano <ptoscano> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.7 | CC: | leiwang, linl, ptoscano, rjones, tlavigne, wshi, xchen |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libguestfs-1.20.11-16.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-10 19:55:51 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1301844 | ||
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: