VMware vSphere

 View Only
  • 1.  Power off non-essential VMs during HA event

    Posted Jun 09, 2020 04:34 PM

    Does anyone know how to configure vSphere HA to shut off specific VMs in the event of a host failure/HA event.  I know that you can disable restart priority for non-essential VMs, but if those VMs happen to exist on a host that is still up and running, I'd like to shut them down and make the resources available for more critical workloads that may be in the process of being powered up.

    Regards,

    Adam Tyler



  • 2.  RE: Power off non-essential VMs during HA event

    Posted Jun 09, 2020 08:54 PM

    Hi there! I think you are looking for HA overrides.

    Here it is a stepby-step to acomplish that How to Disable VMware HA for individual VM using VM Overrides option

    Regards!



  • 3.  RE: Power off non-essential VMs during HA event
    Best Answer

    Posted Jun 09, 2020 09:11 PM

    There's no specific capability to do exactly as you ask. Disabling HA on specific VMs only works if those VMs are on a host which fails; it does nothing for surviving VMs that you wish to deprioritize. The only good solution here would be to script something which watches for an HA event and shuts those VMs down. Quickest thing that comes to mind would be integrating Log Insight and vRealize Orchestrator together and have vRLI watch for the HA event and trigger a workflow in vRO which calls out to vCenter to initiate a shutdown request. If not clear, this would be a manual scripting/cobbling things together approach.



  • 4.  RE: Power off non-essential VMs during HA event

    Posted Jun 10, 2020 01:11 AM

    I think a better choice than log insight would be VEBA (VMware event broker appliance) VMware Event Broker Appliance | VMware Flings



  • 5.  RE: Power off non-essential VMs during HA event

    Posted Jun 10, 2020 05:38 AM

    Thanks, this is sort of what I figured.  Strange that native vCenter doesn't allow you to complete basic tasks on an HA event.

    Regards,

    Adam Tyler



  • 6.  RE: Power off non-essential VMs during HA event

    Posted Jun 10, 2020 10:58 AM

    That's just not HA's function and what you're seeking to do is uncommon. In those cases, you rely upon automation. VEBA is another good option as pointed out by lucasbernadsky​.



  • 7.  RE: Power off non-essential VMs during HA event

    Posted Jun 10, 2020 02:42 PM

    Thanks for all the input.  I realize HA's function is to provide high availability in the event of host isolation or failure.  I was just stating that the I was surprised the vCenter appliance which manages the VMware environment doesn't have a mechanism for performing basic VM tasks on an HA event.  Ie..  Shut down VM, create clone, start vm, etc...

    vCenter does a lot more than manage HA.  Why not schedule basic tasks from certain events...  I'll have to take some time to look at these alternative tools you guys have referenced.  Thanks again.

    -Adam



  • 8.  RE: Power off non-essential VMs during HA event

    Posted Jun 10, 2020 04:15 PM

    SRM can do this in a DR context, but not HA.



  • 9.  RE: Power off non-essential VMs during HA event

    Posted Jun 10, 2020 08:09 PM

    You can try to use VEBA fling for that:

    VMware Event Broker Appliance | VMware Flings

    Please look up the vmworld session "If this then that" or just go straight to William Lam blog