Well, I had a hell of a time trying to get my Cyberpower 1350PFCLCD UPS to work with my two ESXI hosts.
My first ESXI host runs Pfsense and all the other network security goodies and hosts the VCenter appliance. My second ESXI host runs all my VMs for massive storage, download clients, newsgroup aggregators, compile servers, etc. So, really a lot of stuff that I can't have corrupt on me due to a sudden power loss. A graceful shutdown is really really needed.
I tried Cyberpower's VM appliance, but that was a fail since it required an appliance running each host. One would act as the agent and the other as the client. Running multiple instances of the same appliance is a waste of resources. So, I needed an alternative solution.
I tried to setup the command line powerpanel tools on a debian VM and have it run a script, via plink, on each host. However, there were issues with trying to get VMs to shutdown and then finally poweroff the hosts. I would get "Maintenance Mode" required errors when Maintenance Mode isn't even needed. The workaround would have been to use a Windows VM with the VMware powercli tools installed and use the esxcli commands, but this is too much just to initiate a graceful shutdown on power loss.
Lo and behold, I found the Network UPS Tools (NUT) for ESXI.
http://www.networkupstools.org/index.html
http://rene.margar.fr/2012/05/client-nut-pour-esxi-5-0/
I created a small debian VM to run the NUT server. I installed the VIM on each ESXI 5.5 host and pointed them to the NUT server. After setting some UPS overrides, I am now able to gracefully shutdown both ESXI 5.5 hosts using just 1 UPS.
The following link was much easier to follow than the NUT documentation.
http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/
Hopefully this helps someone.
My first ESXI host runs Pfsense and all the other network security goodies and hosts the VCenter appliance. My second ESXI host runs all my VMs for massive storage, download clients, newsgroup aggregators, compile servers, etc. So, really a lot of stuff that I can't have corrupt on me due to a sudden power loss. A graceful shutdown is really really needed.
I tried Cyberpower's VM appliance, but that was a fail since it required an appliance running each host. One would act as the agent and the other as the client. Running multiple instances of the same appliance is a waste of resources. So, I needed an alternative solution.
I tried to setup the command line powerpanel tools on a debian VM and have it run a script, via plink, on each host. However, there were issues with trying to get VMs to shutdown and then finally poweroff the hosts. I would get "Maintenance Mode" required errors when Maintenance Mode isn't even needed. The workaround would have been to use a Windows VM with the VMware powercli tools installed and use the esxcli commands, but this is too much just to initiate a graceful shutdown on power loss.
Lo and behold, I found the Network UPS Tools (NUT) for ESXI.
http://www.networkupstools.org/index.html
http://rene.margar.fr/2012/05/client-nut-pour-esxi-5-0/
I created a small debian VM to run the NUT server. I installed the VIM on each ESXI 5.5 host and pointed them to the NUT server. After setting some UPS overrides, I am now able to gracefully shutdown both ESXI 5.5 hosts using just 1 UPS.
The following link was much easier to follow than the NUT documentation.
http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/
Hopefully this helps someone.