VMware ESXi 5.0, shutdown when UPS battery runs low

I have a number of clients who are running VMWare ESXi 5.0 free edition servers, and they usually have some form of cheap UPS connected to the server.

The most common one is the CyberPower PureSinewave 1500VA UPS, which can power the server for about 10 minutes or so before it shuts down.

http://www.newegg.ca/Product/Product.aspx?Item=N82E16842102134

The UPS normally connects to the PC over USB. On a regular computer, this USB would appear like a laptop battery, and Windows can initiate a shutdown or standby just like a laptop does.

How can I get VMWare ESXi to standby the virtual machines and power off if the UPS goes onto battey power?
LVL 31
Frosty555Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Using the free version of ESXi has it's complications because you will lack the ability to perform any management functions in the host server, because it's not supported on the free version.

see the following Article

http://www.nojokeit.com/2012/11/graceful-shutdown-of-esxi-51-host-free.html

you will need to create a script to trigger the functions in the article.
0
AkshayNaikCommented:
CyberPower brand battery backups have a VM appliance based on CentOS that is specifically designed for ESXi and Xen Server.  Installed the VM appliance.  

As long as each VM has VMware Tools installed it will do a clean shut down off each VM and then shut down the host.  It will also shut itself off if so configured.

You can configure it to send email notifications on numerous events
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
compdigit44Commented:
I believe this link sums up exactly what you are looking to do:

http://www.tinkertry.com/configure-automated-shutdown-homelab-datacenter-15-minutes/
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
@Frosty555 Did these solutions work for your clients with the FREE version of ESXi?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.