I have had a USB UPS for a while now and although I've never had a power outage with it and my Synology NAS, in testing it's worked great connected just with USB to the NAS. Now I've added an ESXi node that uses the NAS for storage. So in the event of a power outage, the VMs need to shutdown, then the ESXi and Synology can shutdown together or in order.
I've tried this already but got stuck at enabling community supported packages cause I installed ESXi with secure boot enabled.
So what are my options and what's best practice? I could reinstall ESXi and use NUTclient, or write my own thing to login into ESXi over ssh and shut down that way. Other ideas?