NathanVaughn / powerpanel-business-docker

Docker image for CyberPower PowerPanel Business
https://hub.docker.com/r/nathanvaughn/powerpanel-business
MIT License
24 stars 14 forks source link

[TIP] use ESXi shutdown instead of local shutdown #18

Open Racle opened 1 year ago

Racle commented 1 year ago

After comparing linux version with VM version I found out that you can enable ESXi shutdown also in linux installation. (this replaces local shutdown option in Setting => Shutdown Setting => Shutdown events)

  1. Add file /usr/local/PPB/etc/config.properties
  2. write this to file isVirtualAppliance = true
  3. Reboot ppbd

Linux one-liner to write this file

echo "isVirtualAppliance = true" | sudo tee -a /usr/local/PPB/etc/config.properties 

Tested with current latest version of PowerPanel Business 4.8.6

war59312 commented 1 year ago

Very good.

FYI with a clean copy of PowerPanel Business this is already set, just checked my ESXi copy.

Racle commented 1 year ago

Very good.

FYI with a clean copy of PowerPanel Business this is already set, just checked my ESXi copy.

In PPB VM edition this is already set.

But when using PPB Linux edition this is not set as default, even when manually installed in Linux VM in ESXi.

With this tip you can shut down ESXi instance on your existing linux server, so no need to set up new VM for PPB with template (which also has older, 20.04, Ubuntu installation)

war59312 commented 1 year ago

Yeap, cool. I just upgraded my ESXi image from 20.04 to 22.04. Everything still looking good. Took a snapshot before hand, just in case.

NathanVaughn commented 1 year ago

I add a note about this in the README. I'll leave this open if I, or someone else, gets around to adding this as an environment variable in docker-entrypoint.sh.

4Syno commented 7 months ago

I found out that you can enable ESXi shutdown also in linux installation

Thank you so much for sharing this! Works also for the remote version!