From 5edcd8ef9c417f337ee257e2e17ccfde10148add Mon Sep 17 00:00:00 2001 From: Lars The Date: Fri, 21 Mar 2025 20:54:55 +0100 Subject: [PATCH] Update win2019-hv.xml: Disable Hyper-V role When you use Windows 2019 Hyper-V free inside a container with KVM you are using nested virtualization. This slows down the system significantly (especially with WSL2). This change in the configuration disables the role when configuring it. You can enable it later manually if you really need nested virtualization. --- assets/win2019-hv.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/win2019-hv.xml b/assets/win2019-hv.xml index 0f7990d..d07259d 100644 --- a/assets/win2019-hv.xml +++ b/assets/win2019-hv.xml @@ -159,6 +159,11 @@ reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork" /v Category /t REG_DWORD /d 1 /f Set Network Location to Home + + 2 + dism.exe /online /Disable-Feature /FeatureName:Microsoft-Hyper-V /NoRestart + Disable Hyper-V role +