On Fri, Dec 14, 2012 at 12:07:22PM -0500, Skippy VonDrake wrote:
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,
"raw",-1);
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
Suggestions?
There is also a bug in the code ... The attached patch (not
tested) may fix it.
However it would still be extremely useful to see the trace output
because (a) it would confirm if this is the bug or not, and
(b) for some reason it seems as if the SOFTWARE or SYSTEM registry in
the Win7 guest cannot be opened, and I don't understand why that would
be.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org