Hi all,
I have a couple of esxi servers installed in a few servers,
Welcome to the Community - The functionality you are seeking in the even of a failure is what HA does - if the ESXi host fails or if you have VM monitoring enabled HA will restart the VM on other hosts in the cluster - the other option you have would be to use VMware Fault Tolerance (FT) where a shadow machine is running on another host in the cluster and is the VM or ESXi host were to fail the shadow VM would come online and no data would be lost but in either of these scenarios vmotion is not used.
In terms of scripting the creation of the HA cluster that will have to be done at the vCenter lever and require the use of the SDK -
Thank you for the reply, can you please point me to the right way as to how to start with respect to scripting the HA policies onto the vcenter machine so that when i deploy a ova file of the vcenter those policies should be applied to the machine.I am more interested in the automation part of the vcenter ova deployment.
Itll be a great help if you give me a head start.