/*
 * Install instructions for VMWare OpenNebula drivers. Please note that these drivers are in an early stage,
 * please submit found bugs or doubts to users@opennebula.org mailing list
 */

1. Install OpenNebula in self-contained mode (specifying the -d option in the install.sh)
2. Install the VMWare VI SDK from [1]
3. Configure the VMWare VI SDK following [2]. You should end up with a keystore containing VMWare certificates installed in the <oneadmin> home folder.
4. Install Apache Axis 1.4 [3]
5. Add all jars in $AXISHOME/lib and $SDKHOME/samples/Axis/java/lib/ to <oneadmin> CLASSPATH
6. Go to OpenNebula source code directory and navigate to src/vmm_mad/vmware. Run the install-vmware.sh script.
7. Edit $ONE_LOCATION/etc/oned.conf and enable the tm_dummy TM MAD removing the leading # from each line. Also, add the following two MADs for VMWare:

#-------------------------------------------------------------------------------
#  VMWare Information Driver Manager sample configuration
#-------------------------------------------------------------------------------
  IM_MAD = [
      name       = "im_vmware",
      executable = "one_im_vmware",
      arguments  = "--username <esxi_username> --password <esxi_password>",
      default    = "im_vmware/im_vmware.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  VMWare Virtualization Driver Manager sample configuration
#-------------------------------------------------------------------------------
   VM_MAD = [
      name       = "vmm_vmware",
      executable = "one_vmm_vmware",
      arguments  = "--username <esxi_username> --password <esxi_password>",
      default    = "vmm_eh/vmm_eh.conf",
      type       = "xml" ]
#-------------------------------------------------------------------------------

8. Add ESXi hosts using the following drivers:

$ onehost add <esxi_hostname> im_vmware vmm_vmware tm_dummy

9. Create VMWare VM using the VI client. This can be created in an ESXi server and then shared among others using VMFS or (ideally) NFS. Be careful with the name of the datastore where the VMs are residing, at this stage of the VMWare drivers for OpenNebula it only supports "datastore1" for the datastore and "ha-datacenter" for the datacenter. This is hardcoded in the drivers, but also is the default installation for ESXi.

10. Create a VM template using the name used for the VM in the VI client in step 9 as the Name of the OpenNebula VM.
11. Submit using "onevm create"

--

[1] http://www.vmware.com/support/developer/vc-sdk/
[2] http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/visdk25setupguide.pdf
[3] http://ws.apache.org/axis/
