This is an old revision of the document!
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#downloadsCreate/Register VMDeploy a virtual machine from an OVF or OVA fileNextCyberpower Powerpanel Business as the name, and select all the extracted filesNextThin is selected, and deselect Power on automatically, and press NextFinish to start the import processCyberpower-PPBVirtual 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 usercyberpower user that was just createdAdministratorAdd userhttp://cyberpower-ppb:3052/local/ to Caddy
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 # 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 passwordUPS Setting > Configuration > Set Replacement Date to when the unit was purchased or the battery was last replacedSetting > Notifications:Notification Channels:E-mailE-mail to use Gmail:Cyberpower VM Notification EmailsEnabledProvider > OtherSMTP server address > smtp.gmail.comConnection Security > TLS > AutoService port > 587Sender name > The name you want the sender to show in the emailSender E-mail > Gmail account email addressAuthenticationUser Name/Password > Gmail account username and passwordApplyTest to make sure it sends correctlyRecipients:Default Receiver > Edit:Recipient Name > Your nameE-mail Address > <Gmail address>+powerpanel@gmail.comto:(<Gmail address>+powerpanel@gmail.com)Setting > Shutdown Setting > Shutdown Events:Local Host Shutdown Requirements:Shutdown Type > ShutdownShutdown UPSESXi: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:ShutdownShutdown Duration to the time it takes for all the VMs to shutdownApplyShutdown 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 > InactiveReporting > Energy Use > Cost Per kWh > AU - AUSTRALIAadmin@cyberpower-ppb:sudo apt update && sudo apt upgradeHelp tab, and Check for Updates