an APC UPS is connected to the Proxmox VE server locally by USB or COM.
In case of a power failure Proxmox VE will not shutdown when the battery is getting to low.
Simple because there is nothing installed on the server to tell that Proxmox VE should make a clean shutdown for the VM's and then shutdown the server properly.
With apcupsd this can be done.
It is also reachable by browser so you can see the remaining battery and more.
Nearly every APC UPS should work with apcupsd.
In case of a power failure Proxmox VE will not shutdown when the battery is getting to low.
Simple because there is nothing installed on the server to tell that Proxmox VE should make a clean shutdown for the VM's and then shutdown the server properly.
With apcupsd this can be done.
It is also reachable by browser so you can see the remaining battery and more.
Nearly every APC UPS should work with apcupsd.
Tested configuration
Running Proxmox VE 3.4 with a VM that can be shutdown from the Proxmox VE webinterface.
APC SC420 ( serial interface connected to COM1 on the server )
APC SC450 ( serial interface connected to COM1 on the server )
MGE Evolution 1550 ( serial interface connected to USB on the server )
APC SC420 ( serial interface connected to COM1 on the server )
APC SC450 ( serial interface connected to COM1 on the server )
MGE Evolution 1550 ( serial interface connected to USB on the server )
Installation
- Open the Proxmox "Shell"
Update your package repositories.
type: apt-get update
Now it's time to install the webserver to be used to check the status of the battery and so on in the browser.
type: apt-get apache2
Time to install apcupsd and neccesary packages
type: apt-get install apcupsd apcupsd-doc apcupsd-cgi
One installed configure some settings in the config file.
In the config file everything is well explained.
type: nano /etc/apcupsd/apcupsd.conf
Following are the settings i modified or should be checked. You should change according to your situation.
UPSNAME APC-SC402
UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/ttyS0 (this is COM1 on my server)
ONBATTERYDELAY 6
BATTERYLEVEL 25 (when batterylevel hits 25% your proxmox server will shutdown)
MINUTES 10 (or when 10 minutes battery time is remaining)
TIMEOUT 0
SELFTEST 336 ON
Press "CTRL+X" to exit.
Press "Y" to save.
Now activate the just edited configuration file
type: nano /etc/default/apcupsd
Change the "ISCONFIGURED" to yes
ISCONFURED=yes
Press "CTRL+X" to exit.
Press "Y" to save.
Start the APCUPS deamon
type: /etc/init.d/apcupsd start
Now open your browser and go to the following link:
http://your-proxmox-ip/cgi-bin/apcupsd/multimon.cgi
Nothing to explain anymore, you should know by now if it works ;)
Different config files for different UPS Models:
APC SC402 / SC450 (Serial Connection)
==============================================================================
UPSNAME APC-SC402
UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/ttyS0 (this is COM1 on my server)
==============================================================================
MGE Evolution 1550 (USB Connection
==============================================================================
UPSNAME MGE-1550
UPSCABLE usb
UPSTYPE usb
DEVICE
==============================================================================
Update your package repositories.
type: apt-get update
Now it's time to install the webserver to be used to check the status of the battery and so on in the browser.
type: apt-get apache2
Time to install apcupsd and neccesary packages
type: apt-get install apcupsd apcupsd-doc apcupsd-cgi
One installed configure some settings in the config file.
In the config file everything is well explained.
type: nano /etc/apcupsd/apcupsd.conf
Following are the settings i modified or should be checked. You should change according to your situation.
UPSNAME APC-SC402
UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/ttyS0 (this is COM1 on my server)
ONBATTERYDELAY 6
BATTERYLEVEL 25 (when batterylevel hits 25% your proxmox server will shutdown)
MINUTES 10 (or when 10 minutes battery time is remaining)
TIMEOUT 0
SELFTEST 336 ON
Press "CTRL+X" to exit.
Press "Y" to save.
Now activate the just edited configuration file
type: nano /etc/default/apcupsd
Change the "ISCONFIGURED" to yes
ISCONFURED=yes
Press "CTRL+X" to exit.
Press "Y" to save.
Start the APCUPS deamon
type: /etc/init.d/apcupsd start
Now open your browser and go to the following link:
http://your-proxmox-ip/cgi-bin/apcupsd/multimon.cgi
Nothing to explain anymore, you should know by now if it works ;)
Different config files for different UPS Models:
APC SC402 / SC450 (Serial Connection)
==============================================================================
UPSNAME APC-SC402
UPSCABLE smart
UPSTYPE apcsmart
DEVICE /dev/ttyS0 (this is COM1 on my server)
==============================================================================
MGE Evolution 1550 (USB Connection
==============================================================================
UPSNAME MGE-1550
UPSCABLE usb
UPSTYPE usb
DEVICE
==============================================================================