From f5884c1b0324e3bb1b3e80a265b624d8a52a2c19 Mon Sep 17 00:00:00 2001 From: "Jason T. Greene" Date: Tue, 26 Sep 2023 11:39:00 -0500 Subject: [PATCH] Add Hyper-V Signed-off-by: Jason T. Greene --- IMG_SFX | 2 +- win_images/win_packaging.ps1 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/IMG_SFX b/IMG_SFX index a3a11294..5eb41d83 100644 --- a/IMG_SFX +++ b/IMG_SFX @@ -1 +1 @@ -20230921t145748z-f38f37d13 +20230926t165419z-f38f37d13 diff --git a/win_images/win_packaging.ps1 b/win_images/win_packaging.ps1 index 6fac680e..540cbef7 100644 --- a/win_images/win_packaging.ps1 +++ b/win_images/win_packaging.ps1 @@ -30,6 +30,9 @@ iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocola choco install -y git mingw archiver psexec; CheckExit choco install golang --version 1.19.2 -y; CheckExit +# Install Hyper-V +Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoRestart + # Install WSL, and capture text output which is not normally visible $x = wsl --install; CheckExit 0 1 # wsl returns 1 on reboot required Write-Output $x