jedi4ever/veewee — pull request #508 by jasonberanek (2013-01-27 21:37:14+00:00)
Title: Support building ESXi on VMware Fusion

This request contains minor changes to ostypes.yaml and a template for installing ESXi 5.1 using the VMware Fusion provider. The current template includes the components necessary to automated building the ESXi 5.1 server once a user pre-populates the relevant isos. After installation is complete and the machine is booting, fusion halt, ssh, and scp commands are all supported.

The initial commit still could use additional testing steps and enhancements to address the following:

* Post install scripts have not been tested, though they should work as the built in post install scripts in the Fusion provider function as expected
* Determine how to handle where the Fusion provider would upload the VMware tools installer
* I am new to this provider, so I don't know exactly how this portion works in veewee
* The ks.cfg, based on the work at http://www.virtuallyghetto.com/2012/09/automating-esxi-51-kickstart-tips-tricks.html, does a majority of its work after the initial reboot. This appears to introduce timing issues on the post installation steps, where veewee gets stuck between reboots. Needs further investigation.

The following are enhancements only required to allow the ESXi 5.1 template to support testing the veewee vSphere provider:

* Boot or post-install script to configure ESXi 5.1 internal firewall to allow VNC ports per the following links:
* http://deangrant.wordpress.com/2012/07/20/enabling-vnc-for-esxi-5-using-custom-firewall-rule-2/
* http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2008226
* http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2007381

In testing, I did see errors with the destroy command against VMware Fusion Professional Version 5.0.2 (900491), but I verified this applied to non-ESXi machines as well. I'll submit a separate issue with the details.