This post is also available in: Italian
As written in a previous post, starting from vSphere 5.0U1 in a HA cluster the VM Startup & Shutdown ESXi host properties is disabled.
Anyway wasn’t supported, because according with the vSphere Avalability Guide and also the KB 850 (Automating the process of starting and stopping virtual machines on VMware ESX):
The Virtual Machine Startup and Shutdown (automatic startup) feature is disabled for all virtual machines residing on hosts that are in (or moved into) a vSphere HA cluster. Automatic startup is not supported when used with vSphere HA.
So, how it’s possible handle a correct poweron and shutdown sequence of your infrastructure?
The only simple way is handle it through scripts (or using the UPS framework if it has something specific for VMware vSphere).
- VM Shutdown script
- VM Startup script
Start-VM -Confirm -RunAsync
Of course this could not work if your vCenter Server is virtual and it’s not running. Also a better approach could be read the VMware HA priority level for each VM and shutdown or startup it according to its priority.
Finally there is the need to manage in the right way the ESXi hosts power management.