Created
December 4, 2015 15:16
-
-
Save duffney/35c61d2c9a441951310c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$Name = 'VyOS' | |
$SwitchName = 'Internal' | |
$HardDiskSize = 2GB | |
$HDPath = 'E:\Hyper-V\Virtual Hard Disks'+'\'+$Name+'.vhdx' | |
$Generation = '1' | |
$ISO_Path = 'D:\ISOs\vyos-1.1.6-amd64.iso' | |
New-VM -Name $Name -SwitchName $SwitchName ` | |
-NewVHDSizeBytes $HardDiskSize ` | |
-NewVHDPath $HDPath -Generation $Generation -MemoryStartupBytes 512MB | |
Add-VMDvdDrive -VMName $Name -Path $ISO_Path | |
Add-VMNetworkAdapter -VMName $Name -SwitchName External |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment