How to create new VM using VMware VSphere API via PHP

Ryan picture Ryan · Aug 8, 2013 · Viewed 14.1k times · Source

I'm trying to create a new Virtual Machine in VSphere via specifications entered into a web form POSTed to php. I found the method call CreateVM_Task (scroll 70% of the way down) which seems to be the right API call. My problem is how to connect the php to this API call. The documentation for VSphere is plentiful, but I'm having trouble getting what I need.

Answer

mpr4ul picture mpr4ul · Aug 12, 2013

why not try with Perl, its simple, vSphere SDK avail at free ,

http://www.vmware.com/support/developer/viperltoolkit/index.html

here they gave how to connect to vsphere, we can use web services calls to connect to vsphere. all the need is to open https port.