title: How to create a VM using VSphere java API?
body: <p>I want to write some java code to create a VM, install iso (or copy the existing vm set up if install iso is not possible) and assign disk space, create login for the created VM.</p>
  
  <p>I looked at Vsphere API examples in <a href="http://vijava.svn.sourceforge.net/viewvc/vijava/trunk/src/com/vmware/vim25/mo/samples/" rel="nofollow">http://vijava.svn.sourceforge.net/viewvc/vijava/trunk/src/com/vmware/vim25/mo/samples/</a>, it has power on/off of installed VM. I could not figure out how to create one with the API. I have two questions:</p>
  
  <ol>
  <li>What are the steps to create VM using API?</li>
  <li>What API or objects should be used to create VM programatically?</li>
  </ol>
  
  <p>Appreciate your help.</p>