[virt-tools-list] "problem" with virt-win-reg
digimars at gmail.com
Thu Nov 4 12:25:04 UTC 2010
Actually, after I posted that message, I found in the man page the bit
about CurrentControlSet. I did finally get a script together that
works out well digging into either a Windows VM or a RHEL VM and
finding the hostname on my RHEV export storage. This way I am able to
make a backup of my exported VM's and rename them to what the VM is
actually called, rather than the 32 character GUID that RHEV creates
when exporting the VM.
I will be uploading my work after I do some further testing to my
rhev-wiki site at www.rhev-wiki.org.
On Wed, Nov 3, 2010 at 7:15 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
> 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
>> 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
>> 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