v2v: windows convert: fix virtio block driver installation for w10/w2k16

This patch fixes the problem of the first boot after installation virtio block
drivers on Windows 10 / Server 2016. The problem is related to the change in
the behavior of Windows-Kernel-Pnp. To fix we need to add a field "Version" to
HKLM/SYSTEM/DriverDatabase/DriverPackages/drv_inf_label then Windows-Kernel-Pnp
will be able to correctly install the virtio block driver.

Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
This commit is contained in:
Pavel Butsykin
2017-04-03 19:44:45 +03:00
committed by Richard W.M. Jones
parent 604be8ced8
commit cc162b49e6

View File

@@ -220,6 +220,13 @@ and ddb_regedits inspect drv_name drv_pciid =
[ "DriverDatabase"; "DeviceIds"; "PCI"; drv_pciid ],
[ drv_inf, REG_BINARY "\x01\xff\x00\x00" ];
[ "DriverDatabase"; "DriverPackages"; drv_inf_label ],
[ "Version", REG_BINARY ("\x00\xff\x09\x00\x00\x00\x00\x00" ^
"\x7b\xe9\x36\x4d\x25\xe3\xce\x11" ^
"\xbf\xc1\x08\x00\x2b\xe1\x03\x18" ^
(String.make 24 '\x00')) ];
(* Version is necessary for Windows-Kernel-Pnp in w10/w2k16 *)
[ "DriverDatabase"; "DriverPackages"; drv_inf_label;
"Configurations"; drv_config ],
[ "ConfigFlags", REG_DWORD 0_l;