Bug 575738 - [RFE] Tool to Merge Windows Registry Entries
[RFE] Tool to Merge Windows Registry Entries
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Richard W.M. Jones
Depends On:
  Show dependency treegraph
Reported: 2010-03-22 05:56 EDT by Marko Myllynen
Modified: 2010-03-30 11:28 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-03-30 11:28:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2010-03-22 05:56:35 EDT
Description of problem:
When migrating a Windows guest from VMware to Xen or KVM one can convert the disk image easily with vmware-vdiskmanager/qemu-img if needed. However, when booting the guest it may give BSOD due to changed system disk as described in Microsoft KB article


To overcome this issue one needs to merge a set of registry entries provided in the KB article into the guest's registry.

Currently there is no mechanism with libguestfs/hivex/hivexsh to easily merge Windows registry entries from a .reg file. Having such a tool would be beneficial and make, for example, migrations easier.
Comment 1 Richard W.M. Jones 2010-03-22 06:02:48 EDT
It turns out we need a similar capability for virt-v2v as well.

Along the same lines:
virt-win-reg needs to be rewritten so it doesn't suck so much
and so it is capable of writing registry entries.  Probably it would
be the front end to merging, with a corresponding lower-level
tool in hivex.
Comment 2 Richard W.M. Jones 2010-03-25 16:27:08 EDT
First part (of three) posted for review upstream:
Comment 3 Richard W.M. Jones 2010-03-26 10:26:53 EDT
Parts 1 and 2 (out of 3) posted for review upstream:
Comment 4 Richard W.M. Jones 2010-03-29 09:41:18 EDT
Complete 3 part patch posted for review upstream:

This could do with some testing please.
Comment 5 Richard W.M. Jones 2010-03-29 11:43:32 EDT

There are scratch builds of hivex and libguestfs for EPEL 5
here for a few days:


You need to install the following subpackages as a minimum:


For some ideas about how to use it and what to test, read
the virt-win-reg manpage (after installation, NOT the online
one which is now out of date), the Win::Hivex::Regedit
manpage, and

Make sure you've got backups of your Windows VMs.

virt-win-reg --merge must NOT be done on live VMs.

If you get problems, see the BUGS section of the virt-win-reg
manpage for how/what to report.
Comment 6 Richard W.M. Jones 2010-03-29 18:03:43 EDT
Updated ...  (libguestfs is the same, hivex is updated with several
important fixes):

Comment 8 Richard W.M. Jones 2010-03-30 11:28:34 EDT
All the changes required for this have been pushed upstream.
Marko tested this.  I'm therefore closing this bug.

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