Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Created October 15, 2017 09:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yetanotherchris/4062bae67714b358091c27740d219939 to your computer and use it in GitHub Desktop.
Save yetanotherchris/4062bae67714b358091c27740d219939 to your computer and use it in GitHub Desktop.
Enable Hyper-V inside Hyper-V for Windows 10 Creators Edition. Run docker inside a Hyper-V VM
# Example: ./enable-hyperv-in-hyperv.ps1 -vmName "Windows 10"
param (
[Parameter(Mandatory = $true)]$vmName
)
Set-VMProcessor -VMName $vmName -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName $vmName | Set-VMNetworkAdapter -MacAddressSpoofing On
Write-Host "VM updated. Make sure your VM has dynamic memory enabled, and has 4gb or more"
@yetanotherchris
Copy link
Author

For Docker:

./enable-hyperv-in-hyperv.ps1 -vmName "MobyLinuxVM"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment