Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180923

PowerCLI to deploy VMs at once

$
0
0

I can deploy multiple VMs usng PowerCLI but they deploy sequentially and with an error.  It seems almost easier to deploy them manually so that they are created at the same time, and not one after the other.  I also want static IPs but not sure how to achieve it.

 

Right now I am using a customization specs file which specifies static IP  and  prompt for it.  But it never does, it deploys the vms then throws  an  error in VC stating 'a specified paramater was not correct.  nicsettings  :adatpter:ip."  I want incrementing IPs on the VMS I  deploy.

 

This is the contents of my basic .ps1 file

 

 

New-vm   -vmhost vm04a.domain.com -Name w2k8sp2s64qa14-vm -Template   Template_w2k8sp2s64qa -Datastore vm04a_storage -OSCustomizationspec   w2k8sp2s64

 

Can someone help me out?

1. Assign static IPs

2. Deploy all VMs at once

 

...


Viewing all articles
Browse latest Browse all 180923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>