[Libguestfs] inspect_os error with Win7 image

Skippy VonDrake skippyvondrake at gmail.com
Fri Dec 14 17:07:22 UTC 2012

The error message:
    hivex_close: do_hivex_close: you must call 'hivex-open' first to
initialize the hivex handle

This is the process flow:
    g = guestfs_create ();
    guestfs_add_drive_opts (g, diskFile,GUESTFS_ADD_DRIVE_OPTS_FORMAT,
    guestfs_launch (g)
    char **roots = guestfs_inspect_os (g);

guestfs_inspect_os returns NULL, guestfs_last_error(g) returns message above.
And guestfs_last_errno(g) returns 0.

However this same code works fine with a Server2008 image and an XP image.

I copied the verbose output to pastebin:  http://pastebin.com/U9Jb6JwH


More information about the Libguestfs mailing list