Created
October 15, 2017 09:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Docker:
./enable-hyperv-in-hyperv.ps1 -vmName "MobyLinuxVM"