6 Replies Latest reply on Jun 4, 2019 6:05 AM by nembus

    How to automatically suspend VMs during power outage? (ESXi 6.7 / HPE ProLiant / APC Smart UPS)

    Quadrimium Novice

      The setup is a HPE ProLiant DL380 Gen10 server running ESXi 6.7 Hypervisor. There is no vCenter server. The server has dual power supplies. There is an APC Smart UPS (SMT1000RMI2UC) available.


      Upon a power outage in the building, I'd like to have the ESXi host server automatically suspend all its VMs and shut itself down after the power has been gone for 5 minutes.


      Can this be achieved without using a third-party server?


      For example, maybe I could connect one of the server's power supplies to the UPS and the other to a power outlet. That way, the server should be able to detect if there's a power outage. Combining that with some scripting to suspend its VMs and power itself off  ... ?