VMware Cloud Community
gboskin
Enthusiast
Enthusiast
Jump to solution

Script to create multip[le VM in specified datastore and resource pool

I was looking at doing the following ..writng a powershell script to do the follwoing

1) create a Resource pool called with all the reservation set to unlimited

2) Create 4 Virtuall machines in the Yellow resource pool named Yellow-DB , Yellow-APP1 , Yellow-App2 and Yellow-bk

Yellow-DB

Yellow-APP1 , Yellow-App2 and Yellow-bk

3) All Vrtual machines should be created in Datastore YELLOW-OS

5) Yellow_DB shoule have a second virtual disk 8GB in size in datastore YELLOW-PF

Yellow-APP1 , Yellow-App2 and Yellow-bk should all have a second virtual disk 5GB in size in datastore YELLOW-PF

Any ideas ??

KInd Regards

1) create a VM

0 Kudos
1 Solution

Accepted Solutions
RobMokkink
Expert
Expert
Jump to solution

Hi Gboskin,

Have a look at the following doc:

http://communities.vmware.com/docs/DOC-6972

The script can deploy vm's in resourcepools, clusters and on esx hosts. You can specify datastores, ip's etc.

On the doc site i have an old version of the script, i will update it asap.

View solution in original post

0 Kudos
3 Replies
RobMokkink
Expert
Expert
Jump to solution

Hi Gboskin,

Have a look at the following doc:

http://communities.vmware.com/docs/DOC-6972

The script can deploy vm's in resourcepools, clusters and on esx hosts. You can specify datastores, ip's etc.

On the doc site i have an old version of the script, i will update it asap.

0 Kudos
xooops
Contributor
Contributor
Jump to solution

Hi

How can I define vCPU and Memory by the csv?

thanks, Sven

0 Kudos
RobMokkink
Expert
Expert
Jump to solution

Nope you can't. But you can add it offcourse.

0 Kudos