Richard W.M. Jones
2016-Sep-02 11:27 UTC
[Libguestfs] [PATCH] v2v: Don't remove Processor and Intelppm nodes (RHBZ#1372668).
Don't remove the Processor and Intelppm nodes since that just breaks the device driver. The only remaining node being removed by the original code was "rhelscsi" (the xenpv-win driver). I changed this so that instead of deleting the whole node, it simply disables that driver. If you look at RHBZ#737600, it's not even clear that deleting nodes was the right fix for anything. I also renamed the function. --- v2v/convert_windows.ml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/v2v/convert_windows.ml b/v2v/convert_windows.ml index bd1bc53..25acdcc 100644 --- a/v2v/convert_windows.ml +++ b/v2v/convert_windows.ml @@ -404,33 +404,22 @@ if errorlevel 3010 exit /b 0 let current_cs = get_current_cs root in debug "current ControlSet is %s" current_cs; - disable_services root current_cs; + disable_xenpv_win_drivers root current_cs; disable_prl_drivers root current_cs; disable_autoreboot root current_cs; Windows_virtio.install_drivers g inspect systemroot root current_cs rcaps - and disable_services root current_cs - (* Disable miscellaneous services. *) + and disable_xenpv_win_drivers root current_cs + (* Disable xenpv-win service (RHBZ#809273). *) let services = Windows.get_node g root [current_cs; "Services"] in match services with | None -> () | Some services -> - (* Disable the Processor and Intelppm services - * http://blogs.msdn.com/b/virtual_pc_guy/archive/2005/10/24/484461.aspx - * - * Disable the rhelscsi service (RHBZ#809273). - *) - let disable = [ "Processor"; "Intelppm"; "rhelscsi" ] in - List.iter ( - fun name -> - let node = g#hivex_node_get_child services name in - if node <> 0L then ( - (* Delete the node instead of trying to disable it (RHBZ#737600) *) - g#hivex_node_delete_child node - ) - ) disable + let node = g#hivex_node_get_child services "rhelscsi" in + if node <> 0L then + g#hivex_node_set_value node "Start" 4_L (le32_of_int 4_L) and disable_prl_drivers root current_cs (* Prevent Parallels drivers from loading at boot. *) -- 2.7.4
Seemingly Similar Threads
- [PATCH NOT TO BE APPLIED] v2v: windows: Make registry changes to all ControlSets, not
- [PATCH] v2v:windows: prevent Parallels drivers from loading at boot
- [PATCH 4/7] v2v: extract reusable parts of viostor regedits
- Re: Help with Win10
- [PATCH] v2v: Disable autoreboot when converting Windows guests.