Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hyperv to windows image #307

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IMG_SFX
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20230921t145748z-f38f37d13
20230926t165419z-f38f37d13
4 changes: 4 additions & 0 deletions win_images/enable-rdp-userdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<powershell>
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
</powershell>
3 changes: 3 additions & 0 deletions win_images/win_packaging.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down