Skip to content

Commit

Permalink
Merge pull request containers#307 from n1hility/add-hyperv
Browse files Browse the repository at this point in the history
Add hyperv to windows image
  • Loading branch information
cevich authored Sep 27, 2023
2 parents 5b9f617 + f5884c1 commit e5de95d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
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

0 comments on commit e5de95d

Please sign in to comment.