VMware Cloud Community
sanketm25
Contributor
Contributor

Create a new VM using VC.

Hi All.

I want to create a new Vitual Machine using CLI . I need to write the work flow for the same.

So can anybody help me to implement the Workflow.What all commands i will need to create a VM.

It would be helpfull if anyone can provide me the some W/F for reference .

Note:I'm using VirtualCenter 4.0 /ESX server 4.0

Thanks All,

Sanket

Reply
0 Kudos
1 Reply
lamw
Community Manager
Community Manager

Are you looking to develop a script using vSphere SDK for Perl similar to vCLI comamnds? which are basically Perl scripts that utilizes the vSphere SDK for Perl?

If so, there are bunch of canned VMware scripts as part of the vSphere SDK for Perl installation which is bundled when you install the vCLI on either Linux or Windows. One of the script is called vmcreate.pl which allows you to create a simple VM, you want to take a look at that - http://www.vmware.com/support/developer/viperltoolkit/viperl40/doc/vsperl_util_index.html

If you're new to VMware's API/SDKs, I highly recommend you spending some time looking at this document before getting started - http://communities.vmware.com/docs/DOC-7270

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".