VMware Cloud Community
rboteler
Contributor
Contributor

Shut down VM's using UPS agent.

Dear All,

We have been trying to get backup agents working on our ESX 3.5 host's for a while now.

Our goal is when a power outage occurs, the UPS informs the hosts to shut-down via an agent (We are using LanSafe), but also get the VM's running on that host (Windows) to be Shut Down cleanly first.

Here is the snag, I have tested a shut down using the agents installed on the service console and it does shut down the host, however it doesn't shut down OS on the VM's.

Any ideas?

Also... attached is a copy of the messages log from when the server shuts down.

Thanks

Rob

Tags (2)
Reply
0 Kudos
1 Reply
lamw
Community Manager
Community Manager

It sounds like the utility that you're using is not shutting down the guests ... If your VM(s) have VMware Tools installed, however the utility 'hooks' into ESX should initiate a guestOS shutdown if it can and it may have an option to hard power off and then power down the host. I would probably contact the vendor providing this utility and see if they know what the issue is, I don't think it's not a VMware issue if the host is powering down but the VM(s) are not shutting down.

If this utility can be installed on a standard Linux system, you might want to take a look at this shutdown script that I wrote: The script was created against APCUPSD but you can substitute pretty much any UPS utility that can monitor your UPS and provide the appropriate calls to the shutdown script to power down the guestOS (soft / hard) and then power down the host.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

If you find this information useful, please award points for "correct" or "helpful".

Reply
0 Kudos