VMware

How to configure ESXi to shutdown using an APC SmartUPS (with lamw scripts)

VERSION 13 Published

Created on: Jan 8, 2009 4:26 AM by jholland - Last Modified:  Mar 12, 2009 4:18 AM by jholland

This tutorial will show you how to configure a VMWare ESXi install to shutdown using an APC SmartUPS. This proven practice came about because our company was sending a Dell PowerEdge T300 server with ESXi and a APC UPS to one of our sales offices. Because it would just be this server and the UPS there, we needed a way for ESXi to shutdown the guest operating systems and then itself gracefully. This document assumes that you have a VMWare ESXi install with VIMA running on it and an APC SmartUPS with a network management card installed. This document includes scripts from the VMWare Communities user “lamw.” His scripts are available at http://communities.vmware.com/docs/DOC-9531 Lamw's scripts do not need the enabling of the unsupported SSH option within ESXi.

Average User Rating
(1 rating)




Feb 13, 2009 6:31 AM depping  VMware Employees User Moderators  says:

Cool stuff! Maybe you should contact vmtn user "lamw". he's looking into using perl to do the shutdown of vm's and host. this way you won't need to change the ESXi hosts, which is preferable in terms of support.

Duncan
Blogging: http://www.yellow-bricks.com

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

Mar 18, 2009 12:06 PM barber50701  says: in response to: depping

I am having a problem... when I run apcacess it says that the communication is lost..any ideas... I have retraced all of my steps via the nice document that he put together.

Nick

Sep 28, 2009 7:24 AM redsnapper76  says: in response to: barber50701

Is this also supported on the latest version of ESXi? version 4.0.0?

Sep 28, 2009 7:31 AM jholland  says: in response to: redsnapper76

I have never tried this on version 4 of ESXi. You are welcome to try it though. Joe.

Dec 23, 2009 3:17 PM VMarpole  says: in response to: jholland

Hi Jholland,

I have one ESX1 3.5 with one Windows Server 2003 gues VM.

I have followed your steps, installed VIMA and configured apc daemons. It works fine except the script failed to shutdown the Windows guess machine.

I set the sleep delay time to 30 and 45 minutes but didn't make anything change.

This is the upslogs:

12-22-2009 17:38:44 -- Found ESX/ESXi host: vmesx35i.localdomain!
12-22-2009 17:38:44 -- Begin shutdown process ...
12-22-2009 17:38:45 -- WARNING VM: Server01 failed to hard power down, please verify this system later!
12-22-2009 17:38:46 -- Shutting down final host: vmesx35i.localdomain and UPS VM: vima-ovf-124830!

So far I didn't see anything usefull in the esx server and Vima message logs.

Is there anything to do with the Auto startup order in ESX configuration?

Any idea?

Thanks in advance ... Happy Holidays!

Regards,

Vmarpole

Actions

More by jholland

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities