• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5254
  • Last Modified:

APC Powerchute & ESXi without Network Managment Card?

Tried to find a solution to have APC PowerChute shutdown the VMs and ESXi when the power is out, but all I found are solutions that use the network management card.  I only have USB & Serial on my Smart-UPS 1000 (SUA1000).

Is there a way to have PowerChute installed on one of the VMs, and have it shutdown the VMs and ESXi host gracefully?
0
CTS-Tech
Asked:
CTS-Tech
  • 3
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
What you can do, is use the "Execute the following command" on a station which has the PowerChute software installed, this could be a physical workstation connected via USB or Serial to the APC UPS or a Virtual Machine connected to UPS or Serial. If you use a Virtual Machine be warned, it loses connectivity with the APC UPS!

So download and install the vSphere Command Line interface v5, onto your Powerchute workstation.

download is here
http://www.vmware.com/support/developer/vcli/

and use the command, in Powechute

"C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\vicfg-hostops.pl --username
=root --password=password --server=esxdev001.cyrus-consultants.co.uk --operation shutdown"

Host esxdev001.cyrus-consultants.co.uk shutdown successfully.
that should do what you want.

If you configure the host to Shutdown VMs with Host, option, when the Host is given the signal to shutdown, the VMs will be shutdown.

Auto Start and Shutdown Virtual Machines

Just log into your ESX server using the vSphere GUI Client, click on the host, then click the Configuration tab. In the 'Software' box, click the Virtual Machine Startup/Shutdown link. In the upper right click Properties.

http://www.vmadmin.co.uk/vmware/35-esxserver/111-esxautostartstop

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

Checkout these documents on USB passthrough and VM DirectPath, if you want to connect Virtual Machine to UPS via USB.

http://www.vm-help.com/esx40i/VMDirectPath/USB_Setup.php

http://vstorage.wordpress.com/2010/07/15/usb-passthrough-in-vsphere-4-1/
0
 
CTS-TechAuthor Commented:
Great, thanks!
0
 
CTS-TechAuthor Commented:
Getting a "The operation is not allowed in the current state" error...

Does it need to be in maintenance mode, or have something else configured first?
0
 
CTS-TechAuthor Commented:
Got this working by making a few tweaks:

In vSphere - Set VM Startup/Shutdown to "Guest Shutdown"

(otherwise VMs will not shutdown gracefully)

"C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\vicfg-hostops.pl" --username=root --password=password --server=server_IP --operation shutdown --force

(the --force option was needed)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now