Is it possible to automatically create virtual machines using vSphere / ESXi? How would I go about doing that?

I have a script to automatically create + install windows on a VM using VirtualBox. It makes the VM, mounts the CD (which is an unattended XP install resulting in machine shutdown), then unmounts the CD when it notices the machine is off. Can I do something similar w/ vmware's stuff?

both VirtualBox and XenCenter have command line utilities which do things like let you turn machines on/off. Is there an equivalent cmd line utility for vsphere / ESXi?

2 Answers 2


Sure. I thought you are interested in the official documentation.

Edit: Ok, I could have copied the complete step-by-step guide from here. But that would also be too much for an answer.

  • 1
    Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – user9517
    Aug 3, 2011 at 22:12
  • The documentation is a 150 pages PDF with hundreds of options and parameters depending on the task and the context. Unspecified questions lead to unspecified answers.
    – mailq
    Aug 3, 2011 at 22:28
  • 1
    aye no need for him to do my work for me. i was really looking to see where i could get the command line tool
    – Claudiu
    Aug 3, 2011 at 22:32

The Orchestration part of vCenter is particularly good at this, it can tie into your networking and storage too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.