Bug 578103 - [RFE] Tool to Compare Windows Registry Entries
[RFE] Tool to Compare Windows Registry Entries
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Richard W.M. Jones
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-30 04:48 EDT by Marko Myllynen
Modified: 2010-03-30 16:43 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2010-03-30 04:48:02 EDT
Description of problem:
Now that it is possible to merge Windows registry entries [1][2] one might also want to compare the registry before and after a merge on Windows guests. Therefore something like virt-win-reg --compare would be very helpful.

1) https://bugzilla.redhat.com/show_bug.cgi?id=575738
2) http://rwmj.wordpress.com/2010/03/29/edit-the-windows-registry-in-your-vms-from-the-host/
Comment 1 Richard W.M. Jones 2010-03-30 05:07:35 EDT
Some of the thinking behind this, as Marko & I discussed on IRC:

* Because of string encoding issues, only a computer program can
really compare two registry entries to determine if they are the
same.

* Manual comparison is made even harder because of the large,
scattered nature of the registry, and the fact that entries are stored
case-insensitively.

The idea would be to have a tool to check whether registry changes
have been made previously.  Thus:

virt-win-reg --compare Windows updates.reg

would either produce no output (meaning that all the updates listed
had been made previously), or some output displaying the list of
additional changes that still need to be made.

The implementation is reasonably straightforward: load the original
registries up twice, and make the changes in 'updates.reg' to the
second copy.  Then recurse over the two sets of registries to find
any differences, and print those out.  Afterwards, discard both copies
since this operation should be non-destructive.
Comment 2 Marko Myllynen 2010-03-30 16:39:40 EDT
In addition to comparing a regfile against a guest's registry it might be useful to be also able to compare hivefile/hivefile and regfile/hivefile. For example, one could download the system hive from a guest, do "something" on the guest, download the updated system hive and then comparing the hivefiles.
Comment 3 Richard W.M. Jones 2010-03-30 16:43:32 EDT
(In reply to comment #2)
> For
> example, one could download the system hive from a guest, do "something" on the
> guest, download the updated system hive and then comparing the hivefiles.    

I agree, this is a compelling feature.

Note You need to log in before you can comment on or make changes to this bug.