Red Hat Bugzilla – Bug 888059
guestfs_inspect_os() fails with Win7 image with registry in "non-pristine" state
Last modified: 2012-12-18 03:14:51 EST
Created attachment 665162 [details]
see "Additional info" above for steps taken to create debug log.
Description of problem:
Windows 7 image can be booted in Xen, but upon startup (in Xen) a "Registry Recovery... recovery was successful" message appears. The libguestfs cannot digest such "impure" registry entries.
Version-Release number of selected component (if applicable):1.19.61
How reproducible: Very - with my specific image. I may be able to provide it. (about 20GB).
Steps to Reproduce:
1. load image with guestfs and call guestfs_inspect_os()
guestfs_inspect_os not fail?
The debug info provide was obtained using 'guestfs_set_verbose(g,1)' in the application code. AND by hardcoding the "flags" in hivex.c, function 'do_hivex_open()' of the libguestfs sources (1.19.61). Flags is set to include HIVEX_OPEN_VERBOSE and HIVEX_OPEN_DEBUG.
The registry is faulty:
hivex: /sysroot/Windows/System32/config/SOFTWARE: trailing garbage at end of file (at 0x245b000, after 8557 pages)
The problem with libguestfs failing when presented with
a bad registry has already been fixed.