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() 2. 3. Actual results: guestfs_inspect_os fails. Expected results: guestfs_inspect_os not fail? Additional info: 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. https://github.com/libguestfs/libguestfs/commit/95df8a7c0cedb0daf8f5318fbeb931f6a67e6286