mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
committed by
Richard W.M. Jones
parent
604be8ced8
commit
cc162b49e6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user