VMware Cloud Community
satishchirala
Enthusiast
Enthusiast

VM Creation from template Via Powercli

how to create a Vm using template from power cli, if i need to create 10 vm in a single datasore  using single line command with same inventory and manual inventory  , please help for a better solution.

Thanks

Satish.P

Tags (3)
Reply
0 Kudos
3 Replies
gekko
Enthusiast
Enthusiast

Example:

New-vm -vmhost ESXHOST -Name VMNAME -Template TEMPLATE -Datastore DATASTORE -OSCustomizationspec CUSTOMSPEC

Don´t know if you want to be a little more "sophisticated" but if so, you can build a pretty nice script that gets the templates, customspecs, datastore, vm name and you just answer those questions and deploys the machine with that input ..

-Kenth

Reply
0 Kudos
satishchirala
Enthusiast
Enthusiast

i want to create 5 the vm using single script , please send me any Example.

Reply
0 Kudos
gekko
Enthusiast
Enthusiast

ah okey.

You got examples all over internet, maybe this one will work for you? ..:

http://mattlog.net/2010/07/21/auto-deploy-multiple-vmware-virtual-machines/

- Kenth

Reply
0 Kudos