Note: Does not work with the free version of ESXi.
Deploy the premade Cyberpower Powerpanel Business Local VM on to ESXi and set it up to shutdown the host it is running on.
PowerPanel Business Local for Virtual Machine
from https://www.cyberpower.com/eu/en/product/sku/powerpanel_business_for_virtual_machine#downloads
Create/Register VM
Deploy a virtual machine from an OVF or OVA file
Next
Cyberpower Powerpanel Business
as the name, and select all the extracted filesNext
Thin
is selected, and deselect Power on automatically
, and press Next
Finish
to start the import processCyberpower-PPB
Virtual Hardware
settings:Add other device
> USB device
> The UPSHost
> Manage
:System
> Autostart
:Cyberpower Powerpanel Business
VM, and make sure it is set to 1 in the autostart orderSecurity & Users
> Users
> Add user
:cyberpower
as the username, and a generated passwordHost
> Actions
> Permissions
:Add user
cyberpower
user that was just createdAdministrator
Add user
http://cyberpower-ppb:3052/local/
to CaddyExtra things to be set in the command line before setting up PowerPanel.
One issue with PowerPanel is that it constantly writes to /usr/local/PPB/db_local/filedb.log
(https://www.reddit.com/r/HomeServer/comments/usno37/cyberpower_powerpanel_business_linux_excessive/). We fix this by installing and using Anything-sync-daemon to put the directory into a ram disk that gets synced to disk occasionally.
admin@cyberpower-ppb
using SSH and login with admin
as the password.# Change the default password: passwd # Change the time zone to the one the server is in: # Find your time zone using: timedatectl list-timezones # Then set it with: sudo timedatectl set-timezone Australia/Perth # Set the hostname: sudo hostnamectl set-hostname Cyberpower-PPB # Make sure the system is up to date sudo apt update && sudo apt upgrade # Install Anything-sync-daemon sudo apt install make pv zstd git clone https://github.com/graysky2/anything-sync-daemon.git /tmp/asd cd /tmp/asd sudo make install-systemd-all cd / rm -R /tmp/asd sudo nano /etc/asd.conf # Edit the following lines: WHATTOSYNC=() #VOLATILE="/tmp" #USE_OVERLAYFS="no" # into: WHATTOSYNC=('/usr/local/PPB/db_local') VOLATILE="/dev/shm" USE_OVERLAYFS="yes" # Write out the file and exit # Check to see if configured properly sudo asd p # Enable to run at startup sudo systemctl enable asd.service sudo reboot 0
admin
and admin
as username and passwordadmin
> Change password
UPS Setting
> Configuration
> Set Replacement Date
to when the unit was purchased or the battery was last replacedSetting
> Network Configurations
> Network Configurations
:HTTPS Secure
HTTPS Port
to something slightly differentApply
Setting
> Notifications
:Notification Channels
:E-mail
E-mail
to use Gmail:Cyberpower VM Notification Emails
Enabled
Provider
> Other
SMTP server address
> smtp.gmail.com
Connection Security
> TLS
> Auto
Service port
> 587
Sender name
> The name you want the sender to show in the emailSender E-mail
> Gmail account email addressAuthentication
User Name
/Password
> Gmail account username and passwordApply
Test
to make sure it sends correctlyRecipients
:Default Receiver
> Edit
:Recipient Name
> Your nameE-mail Address
> <Gmail address>+powerpanel@gmail.com
to:(<Gmail address>+powerpanel@gmail.com)
Setting
> Shutdown Setting
> Shutdown Events
:Local Host Shutdown Requirements
:Shutdown Type
> Shutdown
Shutdown UPS
ESXi
:Shutdown Duration
to a reasonable estimation of how long it takes the ESXi server to shut down all the VMs and itself, e.g. 10 minIP Address
> Set to the local hostname of the ESXi hostAccount
and Password
to the previously created account with administrator accessVirtual Machine
:Shutdown
Shutdown Duration
to the time it takes for all the VMs to shutdownApply
Shutdown Delays
:Utility power failure
> Set to the time you want the server to run on the battery, with enough safe time to shut down, e.g. 30 minAvailable runtime is insufficient
> Inactive
Reporting
> Energy Use
> Cost Per kWh
> AU - AUSTRALIA
admin@cyberpower-ppb
:sudo apt update && sudo apt upgrade
Help
tab, and Check for Updates