[virt-tools-list] "problem" with virt-win-reg

Richard W.M. Jones rjones at redhat.com
Wed Nov 3 23:15:17 UTC 2010

On Wed, Nov 03, 2010 at 02:08:10PM -0400, Kenneth Armstrong wrote:
> I have a Windows 7 VM that I have exported to an NFS share.  Running
> virt-win-reg against it using the following command, I get the
> following error (I'm attempting to get the hostname of the server from
> the registry):
> # virt-win-reg exportedVM
> 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Computername'
> ActiveComputerName
> hivexsh: cd: subkey 'CurrentControlSet' not found
> hivexget failed: 256 at /usr/bin/virt-win-reg line 321.
> However, if I grep for CurrentControlSet, it seems to find it just fine:
> virt-win-reg exportedVM 'HKEY_LOCAL_MACHINE\SYSTEM\' | grep CurrentControlSet
> [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware
> Profiles\0001\System\CurrentControlSet]
> [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware
> Profiles\0001\System\CurrentControlSet\Control]
> ..etc...
> Am I missing something?

Yes, see:


Actually, the manual page is slightly wrong on one point.
CurrentControlSet is not always equal to ControlSet001, although it
usually is.  It can be equal to any ControlSetNNN where NNN is found
by reading another key from the registry, Current in

  # virt-win-reg Win7x32 'HKLM\System\Select'

See also:



Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.

More information about the virt-tools-list mailing list