Windows Server under frequent power outages


  • Hello there, 

    Let me explain my situation. I'm managing the server of a small company. The server runs Windows Server Datacenter 2016 and is set up as a virtualized environment for 6 VMs. The VMs run 2 DCs, a file server, a couple of database servers, nothing fancy. The VMs also run under Windows Server.  
    The computer is connected to an UPS through USB. The UPS can keep the computer running for about 20 minutes before running out of battery when power is interrupted. 
    Now, I live in an area with very frequent power outages. We are currently experiencing daily blackouts of about 3 hours each. The server must be able to cope with the outages without human assistance, and I’d like it to be in the least traumatic way possible (the virtual machines need to be up and working as soon as power is back on). 
    For this purpose, I have configured a power plan that defines 50% battery as low-level charge. The plan shuts down the computer when it reaches this level (this is all done with Windows' Power Settings). I’ve also configured the BIOS settings to always turn on the computer when power is present, and I’ve configured every VM to start automatically with its host machine.  
    The power plan works, the computer does indeed shut down when there's a power outage and the battery reaches 50% charge. But I've noticed that once the power's back and Windows starts, I’ll get the typical warning message saying the computer shut down unexpectedly, I’ll also get this message in the virtual machines.  
    Sometimes I’ll have issues with the virtual machines as well: the OS won’t load, some services won’t automatically start, etc. This seems to indicate that configuring Windows to shut down the computer through the power settings options is not optimal for my case.
    What would you guys do in my case? Perhaps setting the computer to sleep or hibernate instead of shutting down? Perhaps there’s another way to correctly shut down the computer? Having somebody manually shut down the computer after an outage is not possible.  
    Thank you for your help.

    • Edited by RickBauer Sunday, May 13, 2018 3:32 AM
    Monday, May 07, 2018 3:51 AM