VMWare ESXi – How to Create a Guest Virtual Machine from Command Line

command-line-interfacelinuxmac-osxvmware-esxi

Finding I have access to a Windows machine less and less these days and am a bit frustrated by the lack of a Virtual Infrastructure Client for Mac or Linux. I have SSH setup on my ESXi hosts and have dug around a bit but haven't seen any method of creating virtual machines from within the "unsupported" shell.

Anybody know of an NIX friendly methods of managing ESXi (3.x) or vSphere 4? I'd be willing to upgrade if there was a noticeable gain in remote/NIX-based management.

DISCLAIMER:

Yes, I'm aware that the "unsupported" mode is, well, unsupported, but this is a lab ESXi host; there's no production VMs running on it.

Best Answer

you should use VMware SDK or API calls instead. Look at vmcreate.pl that comes with vSphere SDK for Perl.