How can I shut down all my Virtual Machines when my UPS kicks in?

Posted by Tim on Server Fault See other posts from Server Fault or by Tim
Published on 2010-04-28T09:15:58Z Indexed on 2010/04/28 9:23 UTC
Read the original article Hit count: 261

I have a Dell T610 running ESXi4, an APC Smart UPS 1000VA and a local "console" machine running Vista and the vSphere 4 Essentials pack. A dedicated management network is in place between the T610 and the Vista machine.

We have 4 VMs: SBS 2003, Server 2003 running Terminal Services, and two XP Machines.

Ideally, when the UPS is forced to use battery power [for a set number minutes], I would like to gracefully shutdown all the VMs, then the ESXi, then the console machine. The latter two are not strictly a priority, but the VMs within ESXi are.

Google provided lots of deprecated scripts that used to work on ESXi 3.x or similar, however I am unable to find what they were deprecated by.

  • What do I need to be able to do this? I have Powerchute Express as supplied with the UPS, but would be willing to pay for software if required.

© Server Fault or respective owner

Related posts about vmware

Related posts about vmware-esxi