[Libguestfs] [PATCH 0/4] v2v: simplify Windows registry patching

Roman Kagan rkagan at virtuozzo.com
Wed Apr 6 17:24:44 UTC 2016


The way we patch the Windows registry in order to allow it to boot off a
virtio-blk drive was initially conceived by comparing the state with
virtio-blk driver properly installed, to that without.

However, we don't want to replicate the Windows PnP system; rather we
need to apply just enough edits to make the system boot, and then let
the Windows PnP manager figure out the rest.

This series makes a dramatic reduction to the amount of edits we apply.
Besides it refactors the code somewhat, to make it generic enough to
allow later on to accomodate other SCSI drivers (specifically, vioscsi).

Tested on

Win XP SP3 x32
Win XP SP2 x64
Win 2003R2 SP2 x32
Win 2003R2 SP2 x63
Win Vista SP2 x32
Win Vista SP2 x64
Win 2008 SP2 x32
Win 2008R2 SP1 x64
Win 7 SP1 x32
Win 7 SP1 x64
Win 8 x32
Win 8 x64
Win 8.1 x32
Win 8.1 x64
Win 2012R2 x64
Win 10 x64


Roman Kagan (4):
  v2v: win <= 7: reduce registry patch
  v2v: win >= 8: reduce registry patch
  v2v: win >= 8: simplify registry patching
  v2v: win: factor out common bits in registry patching

 v2v/windows_virtio.ml | 306 +++++++++-----------------------------------------
 1 file changed, 52 insertions(+), 254 deletions(-)

-- 
2.5.5




More information about the Libguestfs mailing list