🌐
Proxmox
forum.proxmox.com › home › forums › proxmox backup server › proxmox backup: installation and configuration
Proxmox UPS and Power Loss | Proxmox Support Forum
December 28, 2021 - It can monitor a attached UPS for the power and battery status and you can then tell it to shutdown your host when only x% of battery is left. A shutdown will automatically gracefully stop your VMs.
🌐
Reddit
reddit.com › r/proxmox › proxmox home server : ups & remote management
r/Proxmox on Reddit: Proxmox home server : UPS & remote management
July 17, 2023 -

Hi,

I have a Proxmox server (6.3-2) at home running a couple of VMs.

I would like to install a UPS (Uninterruptible Power Supply) able to :

  • Stop properly the Proxmox server when the power goes off

  • Restart the Proxmox server when the power comes back.

I guess, I need a UPS (APC vs EATON vs other ?), and I think (but not sure if it can do what I want) I also need another server (e.g. Raspberry Pi) running NUT (https://networkupstools.org/ ) .

  • Is that correct ?

  • What are your advices to achieve this ?

Many thanks for your help

Discussions

UPS APC to shutdown VMs? | Proxmox Support Forum
Hi, I was wondering if someone else has accomplished with apcupsd to shutdown the vms after certain amount of battery. Or should i go with NUT? Currently got it working great with apcupsd but wanted to know if its possible to shutdown the vms? Thank you More on forum.proxmox.com
🌐 forum.proxmox.com
May 28, 2019
Shutdown UPS with nut | Proxmox Support Forum
Hi everybody, I bought an ups that is connected per usb to my proxmox server. I installed nut, setup the connection etc. With the standard config, I get a message "on battery" when I take the ups from power. After 30min I get "low battery" and my proxmox server starts the shutdown process. So... More on forum.proxmox.com
🌐 forum.proxmox.com
February 6, 2024
UPS shutdown | Proxmox Support Forum
HowTo Shut down when electricity is down AND Boot up when electricity is back I have a UPS connected to Synology NAS What to set up in ProxMox to achieve this? Is it enough to just enter the... More on forum.proxmox.com
🌐 forum.proxmox.com
December 4, 2020
Creative ways to Shut Down a Proxmox host on UPS without USB battery monitoring?
Ping a device that isn't on a UPS. More on reddit.com
🌐 r/homelab
39
35
November 22, 2024
🌐
GitHub
github.com › jordanmack › proxmox-ups-shutdown
GitHub - jordanmack/proxmox-ups-shutdown: A script for managing graceful shutdowns of virtual machines in Proxmox during power failures using NUT (Network UPS Tools) and UPS (Uninterruptible Power Supply). Features configurable wait times and force shutdown options. · GitHub
A script for managing graceful shutdowns of virtual machines in Proxmox during power failures using NUT (Network UPS Tools) and UPS (Uninterruptible Power Supply). Features configurable wait times and force shutdown options. - jordanmack/proxmox-ups-shutdown
Author   jordanmack
🌐
Proxmox
forum.proxmox.com › home › forums › proxmox virtual environment › proxmox ve: installation and configuration
UPS APC to shutdown VMs? | Proxmox Support Forum
May 28, 2019 - Successfully tested the setup on my ProxMox server with the UPS Network Management Card 2. ... Click to expand... No. Like I said before, you can have a server with usb connection to a APC battery. The if this server have network, then any other server (hw or virtual with network access ) can use the APC info (power on/off, battery level) to shutdown.
🌐
HardTechnology Blog
blog.hardtechnology.net › post › proxmox-nut
Configure Proxmox for Automatic Shutdown with your SNMP UPS with nut - HardTechnology Blog
November 2, 2025 - Proxmox doesn’t have a built in method to trigger safe shutdown from a UPS (Uninteruptable Power Supply).
🌐
Proxmox
forum.proxmox.com › home › forums › proxmox virtual environment › proxmox ve: installation and configuration
Shutdown UPS with nut | Proxmox Support Forum
February 6, 2024 - upscmd -u upsmon -p xxx idr600 shutdown.return the ups shuts down and restarts when the energy is back. But this is already after 5 seconds. So I am not able to shutdown in this time.
🌐
Proxmox
forum.proxmox.com › home › forums › proxmox virtual environment › proxmox ve: installation and configuration
UPS shutdown | Proxmox Support Forum
December 4, 2020 - if you have a proxmox backup Server and PVE on the same hardware ! connect from the PBS to the PVE and shut down there pve will shut down the VM first ... I started over after I manually deleted all nut config files and reinstalled nut.
🌐
KREAWEB
kreaweb.be › diy-home-server-2021-software-proxmox-ups
DIY HOME SERVER 2021 - Software - PROXMOX - NUT UPS Monitoring | KREAWEB
February 1, 2025 - ... Now you can test if your system shuts down gracefully. In Proxmox, select your PVE node → Shell. ... Your system should shut down all its subsystems and then shutdown itself.
Find elsewhere
🌐
Bachelor Tech
bachelor-tech.com › home › 1. automated proxmox ups shutdown process – goals & installation
1. Automated Proxmox UPS Shutdown Process - Goals & Installation - Bachelor Tech
October 28, 2025 - Monitors your UPS and triggers shutdowns at dynamic battery levels. Gracefully shuts down multiple Proxmox hosts in a staggered, controlled-chaos-free order.
🌐
Vinchin Backup
vinchin.com › home › vm tips › how to set auto shutdown in proxmox with 4 simple methods?
How to Set Auto Shutdown in Proxmox with 4 Simple Methods? | Vinchin Backup
June 18, 2025 - Method4. UPS + NUT integration · Enabling auto shutdown in Proxmox allows you to power off the host or its VMs and containers automatically without manual input. You can trigger it by schedule, idle status, or UPS events.
🌐
GitHub
gist.github.com › steffenba › 8c582d8ffcdf7d2f2cb939564d564a8b
Proxmox: Shutdown via NUT with a NAS as UPS master · GitHub
For this, I found a solution in the Proxmox forums, that I just want to keep here as well, to ensure redundancy. Original Thread ... RUN_AS_USER root MONITOR qnapups@xxx.xxx.xxx.xxx 1 admin 123456 secondary MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h" NOTIFYCMD /usr/sbin/upssched POLLFREQ 2 POLLFREQALERT 1 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYMSG ONLINE "UPS %s is back online" NOTIFYMSG ONBATT "UPS %s on battery" NOTIFYMSG LOWBATT "UPS %s battery low" NOTIFYMSG FSD "UPS %s: forced shutdown in progress" NOTIFYMSG COMMOK "Communcation to UPS %s reestablished" NOTIFYMSG COM
🌐
Reddit
reddit.com › r/homelab › creative ways to shut down a proxmox host on ups without usb battery monitoring?
r/homelab on Reddit: Creative ways to Shut Down a Proxmox host on UPS without USB battery monitoring?
November 22, 2024 -

Howdy folks. I have a situation where I have a Proxmox host I have setup is connected to a UPS, but that UPS for some reason does not have a data interface at all (I guess it was cheap). I was thinking of setting up a crontab command that runs every 5 minutes, and if a smart network switch that is NOT connected to the UPS isn't responding for more than 1 minute, it initiates a shutdown of my Proxmox host (as it would only be unresponsive if power goes out).

Has anyone done something like this? Just wondering what options I have. Would rather not buy extra equipment or replace the UPS if avoidable as it was only just purchased recently. Suggestions appreciated.

🌐
Windgate
windgate.net › home › firewalls & routers › unifi & proxmox graceful shutdown on apc ups when there is power loss
UNIFI & PROXMOX graceful shutdown on APC UPS when there is power loss - windgate
December 1, 2025 - alias: WHEN UPS GOES TO BATTERY ... - switch.shutdown_unifi - switch.shutdown_pve mode: single ... In my case, if the UPS charge goes below 14% it runs script for UNIFI & PROXMOX shutdown....
🌐
Reddit
reddit.com › r/proxmox › setting up apc ups safe shutdowns on proxmox hosts
Setting up APC UPS Safe Shutdowns on Proxmox Hosts : r/Proxmox
February 2, 2026 - Edit the /etc/nut/upsmon.conf and /etc/nut/upsmon.conf to setup proxmox as a nut client. Also, on the Synology it's important to set the Shutdown UPS when system enters stand-by true. That's to cover the case where you lose power but then get it back before the UPS battery runs down.
🌐
Proxmox
forum.proxmox.com › home › forums › proxmox virtual environment › proxmox ve: installation and configuration
NUT with UPS shutdown | Proxmox Support Forum
December 11, 2022 - If you want the UPS to shut down after the VM's, you can modify the shutdown sequence in your upsmon.conf file to reflect this. Alternatively, you can try using a callback function in your shutdown scripts to initiate the UPS shutdown after ...
🌐
Technical Notes
luispa.com › posts › proxmox and ups: graceful shutdown
Proxmox and UPS: Graceful Shutdown | Technical Notes
July 25, 2025 - Note that nut is the one in charge, ... View script /usr/local/sbin/nut-shutdown-master.sh ... Settings > Devices & Services > “Network UPS Tool (NUT)”....
🌐
Proxmox
forum.proxmox.com › home › tags
ups | Proxmox Support Forum
At the moment this is simply a /sbin/shutdown -h +0... ... Hi, I would try to manage this scenario: Ups connected to a qnap, proxmox with nut server need to be capable to switch OFF, after a time, properly, using proxmox shell :now with upsc ...
🌐
Reddit
reddit.com › r/proxmox › pve 9.2 - ups shutdown all nodes (new disarm-ha)
r/Proxmox on Reddit: PVE 9.2 - UPS shutdown all nodes (new disarm-ha)
May 26, 2026 -

Hello,

With Proxmox 9.2 and the new "disarm-ha" and "arm-ha" commands, wondering how to best utilize them (or not) when shutting down all 3 nodes at same time due to low UPS battery. All 3 of my nodes are on same UPS, and yes I know it's not best practice.. but this is my home environment.

I have nut-client configured and working on all 3 nodes using the following in "upsmon.conf"

SHUTDOWNCMD:

"/sbin/pvecm expected 1 && /usr/sbin/ha-manager set --state stopped && sleep 15 && /sbin/shutdown -h now"

Just not sure if this is the right way or if there is a better way to do this with the new commands? I would want HA re-enabled as nodes power back on.

Just want to keep a migration storm from happening when they all shutdown at the same time.

Any feedback & suggestions are appreciated!

And yes, I have proper backups going to my NAS and another location worst case scenario..

Thank you!

🌐
The Smarthome Book
thesmarthomebook.com › 2022 › september › 2 › set up & monitor your ups: proxmox & home-assistant
Set up & Monitor your UPS: Proxmox & Home-Assistant | The Smarthome Book
September 2, 2022 - One thing you need to be mindful of with this set up, is once the UPS has initiated a power down of the server (in my case, Proxmox). The NUT server will also go “unavailable” until that server is brought back up. Depending on how you configure your automatic shutdown parameters this could affect the “slaves” down stream.
🌐
Reddit
reddit.com › r/proxmox › graceful shutdown with power loss and a ups
r/Proxmox on Reddit: graceful shutdown with power loss and a ups
February 1, 2025 -

I've been searching this topic all day with little progress. I feel like there has to be a simple solution that I have just missed.

I have a 5 node cluster, I have 4 VMs spread across the cluster, and what I have done is set groups for each of those VMs with its home node set as priority 2, and the rest set as priority 1. that way if i shut down a node, it will migrate that vm to another, then migrate it back once its home node comes back online. This might be a manual shutdown, or my thought was a crash or hardware failure would trigger it as well.

I also have another machine running TrueNAS, and another running OPNsense.

I have each pc set to power on after power loss via the bios.

What i want is if the power goes out for more than 5 minutes everything shuts off. The UPS (an Eaton 5p) can power down after a set amount of time, and continue its shutdown and restart procedure even if it gets mains power back during its shutdown, so i think the power back up will work ok.

My problem is finding a good solution to have the machines turn off. I would like to avoid installing nut on the host OS if i can. I do have nut in a docker container on one of the VMs.

Has anyone found a reliable, simple method of graceful shutdown of everything on power loss? My UPS should be able to run everything for 15-20 minutes. I keep reading about high availability making things hang up if you try to shut down all nodes at once. Ive read about shutdown scripts not working because they might originate from a single machine which is at some point telling itself to turn off.

I'm not done researching, but I could use some direction if someone has come up with a solution.

Thanks.