XenServer: APC Smart Shutdown

If you have the network modules for your APC Smart-UPS then you can use the embedded soft to perform a smart shutdown. However this method permits you to shutdown all virtual machines and the virtual host with a single serial cable attached to a physical server

–          Connect the APC UPS to a non virtualized machine

–          Install PowerChute

–          Install XenCenter

–          Create a default.cmd file (attached) which points to a batch file in the XenCenter directory

–          Create a shutdown.bat file (attached) which shutdowns appropriate services, and then shuts down the xen servers, then the host.

–          In the PowerChute console,  configure it to run the default.cmd file on the power event

default.bat file:

xe.exe -s -u root -pw P@ssword vm-shutdown vm=”SBS01″

xe.exe -s -u root -pw P@ssword host-disable host=”XEN-HOST1″

xe.exe -s -u root -pw P@ssword host-shutdown host=”XEN-HOST1″

default.cmd file:

@echo on

C:\Program Files\Citrix\XenCenter\shutdown.bat

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: