[Libguestfs] inspect_os error with Win7 image

Richard W.M. Jones rjones at redhat.com
Fri Dec 14 21:47:57 UTC 2012


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?

It's definitely a bug.

What would be more useful than the verbose output, would be
just the trace output (ie. guestfs_set_trace (g, 1)).

Also, which version of libguestfs?  It looks like 1.19/1.20 ...

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




More information about the Libguestfs mailing list