diff options
author | Richard Jones <rjones@redhat.com> | 2010-03-08 19:31:12 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-03-08 19:35:23 +0000 |
commit | ebfcb7f23df4546977628dc718982730682a68c0 (patch) | |
tree | b5ed6e97fdf3673fa065cfaef846cdc188744a72 /inspector/virt-inspector | |
parent | 4851466ec5adbbc039222201f7c3b1bc3b97e84e (diff) | |
download | libguestfs-ebfcb7f23df4546977628dc718982730682a68c0.tar.gz libguestfs-ebfcb7f23df4546977628dc718982730682a68c0.tar.xz libguestfs-ebfcb7f23df4546977628dc718982730682a68c0.zip |
inspector: Read information about Windows guests from the Registry.
This commit changes substantially the way that we get information
about Windows guests. We now use the Windows Registry to get
information such as the version, product name and much else.
This uses Win::Hivex (ie. the hivex library). 'reged' is no longer
needed or used.
As an incidental change, this also tries harder to search for
%systemroot%, in the case when we cannot find boot.ini (ie.
Windows Vista and more recent). This ensures we can get more
detail from those versions of Windows.
Diffstat (limited to 'inspector/virt-inspector')
-rwxr-xr-x | inspector/virt-inspector | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/inspector/virt-inspector b/inspector/virt-inspector index e5c39907..a7a65146 100755 --- a/inspector/virt-inspector +++ b/inspector/virt-inspector @@ -164,13 +164,11 @@ my $windows_registry; =item B<--windows-registry> -If this item is passed, I<and> the guest is Windows, I<and> the -external program C<reged> is available (see SEE ALSO section), then we -attempt to parse the Windows registry. This allows much more -information to be gathered for Windows guests. +This flag is ignored for compatibility with earlier releases of the +software. -This is quite an expensive and slow operation, so we don't do it by -default. +In this version, if L<Win::Hivex(3)> is available, then we attempt to +parse information out of the Registry for any Windows guest. =back @@ -262,8 +260,7 @@ my @partitions = get_partitions ($g); # Now query each one to build up a picture of what's in it. my %fses = - inspect_all_partitions ($g, \@partitions, - use_windows_registry => $windows_registry); + inspect_all_partitions ($g, \@partitions); #print "fses -----------\n"; #print Dumper(\%fses); @@ -850,9 +847,6 @@ L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>. -For Windows registry parsing we require the C<reged> program -from L<http://home.eunet.no/~pnordahl/ntpasswd/>. - =head1 AUTHOR Richard W.M. Jones L<http://et.redhat.com/~rjones/> |