Add host files
This commit is contained in:
parent
2c81159734
commit
66b08e46cc
67
Host/Infra-Standard.ps1
Normal file
67
Host/Infra-Standard.ps1
Normal file
@ -0,0 +1,67 @@
|
||||
## Tool to automate VM creation
|
||||
|
||||
$VMName = "SRV-01"
|
||||
|
||||
$vms = @{
|
||||
|
||||
Name = $VMName
|
||||
Generation = '2'
|
||||
MemoryStartupBytes = 1024Mb
|
||||
VHDPath = "d:\VHD\$VMName.vhdx"
|
||||
SwitchName = 'Arc-SRV'
|
||||
|
||||
}
|
||||
|
||||
New-VM @vms
|
||||
Set-VMMemory $VMName -DynamicMemoryEnabled $true -MinimumBytes 512MB -StartupBytes 1024MB -MaximumBytes 2GB
|
||||
|
||||
$VMName = "RTR-01"
|
||||
|
||||
$vms = @{
|
||||
|
||||
Name = $VMName
|
||||
Generation = '2'
|
||||
MemoryStartupBytes = 1024Mb
|
||||
VHDPath = "d:\VHD\$VMName.vhdx"
|
||||
SwitchName = 'Arc-Cli'
|
||||
|
||||
|
||||
}
|
||||
|
||||
New-VM @vms
|
||||
Set-VMMemory $VMName -DynamicMemoryEnabled $true -MinimumBytes 512MB -StartupBytes 1024MB -MaximumBytes 2GB
|
||||
Add-VMSwitch -Name "Arc-SRV" -ResourcePoolName "Arc-SRV"
|
||||
Add-VMSwitch -Name "WAN" -ResourcePoolName "WAN"
|
||||
|
||||
$VMName = "RTR-02"
|
||||
|
||||
$vms = @{
|
||||
|
||||
Name = $VMName
|
||||
Generation = '2'
|
||||
MemoryStartupBytes = 1024Mb
|
||||
VHDPath = "d:\VHD\$VMName.vhdx"
|
||||
SwitchName = 'Bou-LAN'
|
||||
|
||||
}
|
||||
|
||||
New-VM @vms
|
||||
Set-VMMemory $VMName -DynamicMemoryEnabled $true -MinimumBytes 512MB -StartupBytes 1024MB -MaximumBytes 2GB
|
||||
Add-VMSwitch -Name "WAN" -ResourcePoolName "WAN"
|
||||
|
||||
$VMName = "RTR-03"
|
||||
|
||||
$vms = @{
|
||||
|
||||
Name = $VMName
|
||||
Generation = '2'
|
||||
MemoryStartupBytes = 1024Mb
|
||||
VHDPath = "d:\VHD\$VMName.vhdx"
|
||||
SwitchName = 'WAN'
|
||||
|
||||
}
|
||||
|
||||
New-VM @vms
|
||||
Set-VMMemory $VMName -DynamicMemoryEnabled $true -MinimumBytes 512MB -StartupBytes 1024MB -MaximumBytes 2GB
|
||||
Add-VMSwitch -Name "Aston" -ResourcePoolName "Aston"
|
||||
|
Loading…
Reference in New Issue
Block a user