Solved

ESXI UPS Connection

Posted on 2011-02-23
5
1,091 Views
Last Modified: 2012-06-27
I need to know what is the best waty to protect an ESXI server from power failure and of course the running virtual servers. With no USB support for usb connected UPs's (or presumably serial support) how can the esxi server do anything in the event of a power failure except crash along with all the virtual servers.
0
Comment
Question by:duncaninnz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 6

Accepted Solution

by:
siht earned 500 total points
ID: 34967978
The general way to do this is to have your UPS connected to UPS management software in a Windows or Linux host. Then when you have a Power Out event the UPS management software fires a script which shuts down your ESXi host(s). If your VMs are configured to shutdown/suspend when the host shuts down they will do so.

The trick is how to connect your UPS to the UPS management software. If you have a 'traditional' physical host then no problem, attach your UPS USB cable to that and away you go. If you're all virtual then it's a little more complex. You can use a network management card on the UPS to communicate with the management software. I can confirm that the USB passthrough feature introduced in vSphere 4.1 will connect a Server 2008 VM to an APC UPS over USB. Another method is to use a USB over IP device to connect your UPS via USB to a VM.

This script works well to gracefully shut down an ESXi host:

http://blog.peacon.co.uk/wiki/Esxi-control.pl#Host_Shutdown

Here are a couple of other resources I used to get this working in our environment:

http://www.techhead.co.uk/how-to-automatically-shut-down-vmware-esxi-gracefully-during-power-failure-using-an-apc-ups

http://communities.vmware.com/docs/DOC-9531

Good Luck
0
 
LVL 6

Expert Comment

by:siht
ID: 34967998
0
 
LVL 121
ID: 34968497
You must have the licensed version of ESXi (not the free licensed version). Because the CLI and API are read only in the free licensed version.

I've discussed this many times on EE, have a look at my solutons here which discussed APC UPS and ESXi.

http://www.experts-exchange.com/Software/VMWare/Q_26680279.html

http://www.experts-exchange.com/Hardware/Components/Power_Supplies/Q_26573834.html

http://www.experts-exchange.com/Software/VMWare/Q_26808288.html

http://www.experts-exchange.com/Software/VMWare/Q_26646419.html
0
 
LVL 4

Expert Comment

by:jmdion
ID: 34989382
Is it for a non-production environment (lab/personal/home) and you are using the free version of ESXi?

If this is the case I have a low cost solution (free if you already have a UPS with a USB port).  I use the free PowerAlert from TrippLite (works with all brands of UPS) and a few lines of PowerShell.

The solution shuts down the running servers (guests/VMs).  It's an all Windows environment.

When this is done the ESXi host has its power simply cut off by the UPS.  This does not damage the ESXi installation: you may lose recent changes you made in the configuration.  Link to my own question about this: http://www.experts-exchange.com/Software/VMWare/Q_26678696.html

Last month there was a real power outage and everything worked as it should.  Of course nothing will power on automatically when the power comes back like in an enterprise scenario.
0
 

Author Comment

by:duncaninnz
ID: 34990488
No its production
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question