Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230777

Re: i want to deploy 50+ red hat vm's from a template how can i automate it

$
0
0

Hi Nielse,

 

The below script is working fine to deploy Linux VMs finally.. Thanks Nielse for all your help, time quick response..

 

Import-Csv "C:\Users\sg0217865\Desktop\NewVMs.csv" -UseCulture | %{

 

    Get-OSCustomizationSpec $_.Customization | Get-OSCustomizationNicMapping | Set-OSCustomizationNicMapping -IpMode UseStaticIP -IpAddress $_.ip -SubnetMask $_.subnet -DefaultGateway $_.gw

 

    $vm=New-VM -Name $_.Name -Template $_.Template -Host $_.Host -Datastore $_.Datastore -Confirm:$false -RunAsync -OSCustomizationSpec $_.Customization

}


Viewing all articles
Browse latest Browse all 230777

Trending Articles