Red Hat Bugzilla – Bug 674130
Inspection code fails for Windows guest with two disks
Last modified: 2011-03-28 07:17:01 EDT
Description of problem:
The inspection code gets confused if two partitions
contains what it thinks are Windows root filesystems.
Essentially the Windows root detection test is wrong:
Version-Release number of selected component (if applicable):
libguestfs in RHEL 6.0
This was fairly simple to reproduce. First I installed
Windows 7 on a VM with two virtual disks (12 GB + 512 MB).
After installation I formatted the second small disk.
Then I downloaded Firefox and asked it to install on
to the second drive (E:). Firefox's installer created
This broke the core inspection code: it tried to find an
operating system on the second disk (because it thought the
presence of "/Program Files" meant it was a Windows root).
It failed to determine the %SYSTEMROOT% of this second
disk. The error message was:
# virt-inspector Win7x32TwoDisks
libguestfs: error: cannot resolve Windows %SYSTEMROOT%
virt-inspector: 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 libguestfs.