Skip to content
FossShelf
Home / Categories / For IT Operations

ProxmoxVE

Graceful UPS shutdown for Proxmox VE without config files

Replaces Vmware Vsphere, Microsoft Hyper V, Citrix Hypervisor

30.13K stars
Screenshot of ProxmoxVE

Who it's for

Homelab operator with a single Proxmox node

Run the one-line installer, walk through the wizard to register the UPS (via SNMP or a NUT server on the NAS), add the node's API token, and arm the appliance. Hosts shut down cleanly on power outage with no config files anywhere.

Small business with a Proxmox VE cluster

Map each cluster node to its own API URL and enable cluster-wide shutdown so a single failing UPS does not leave the cluster in a split-brain state. Use the HA disarm option to prevent services from being recovered onto nodes that are themselves shutting down.

Running a single standalone Proxmox host with no cluster.

Hyper-converged Ceph environment

Enable the Ceph option to have PVE-UPS follow the official Proxmox shutdown order: disarm HA, stop all guests cluster-wide, then set Ceph maintenance flags before taking nodes down. This prevents IO from blocking when the pool drops below min_size.

No Ceph storage in use, or cluster nodes have dedicated non-Ceph storage.

Operator replacing APC PowerChute

PVE-UPS reads APC network cards using the PowerNet MIB (including older NMC1 cards: AP9617/AP9618/AP9619 that do not implement RFC 1628 at all), so existing APC hardware works without a proprietary management appliance.

Already using NUT successfully and not looking to replace it.

The problem

Proxmox VE homelab and small-business operators need their hypervisor hosts to shut down cleanly when the UPS battery runs low, but the standard tool for this (NUT) requires writing upsd and upsmon config files on every host plus custom shutdown scripting. Vendor-supplied solutions like APC PowerChute are locked to specific hardware brands. PVE-UPS replaces both with a single appliance container configured through a browser wizard, requiring no files on the protected hosts and no vendor-specific software.

How it works

Web wizard with test buttons

Every configuration step -- UPS devices, host entries, thresholds, and webhooks -- is completed through a guided web UI. Each step includes a test button that breaks down results per object, distinguishing a missing OID, wrong credentials, or blocked port at a glance.

SNMP and NUT UPS sources

UPS devices can be read via SNMP v1/v2c/v3 with automatic MIB selection (RFC 1628, APC PowerNet for NMC1/NMC2, or CyberPower CPS-MIB), or as a read-only NUT client covering USB and serial devices attached to a NAS, OPNsense, or Raspberry Pi.

Agentless Proxmox API shutdown

Hosts are shut down through the Proxmox API using a dedicated API token with only the `Sys.PowerMgmt` (VE) or `Sys.PowerManagement` (PBS) privilege. No root SSH, no agents, and the token is revocable at any time.

Cluster and Ceph support

For Proxmox VE clusters (9.2+), PVE-UPS can disarm the HA manager before shutdown and optionally stop all guests cluster-wide first. Hyper-converged Ceph clusters get additional maintenance flags (noout, nobackfill, norecover, norebalance) set in the correct order to avoid IO blocking.

History tab with charts

UPS runtime, load, and charge are logged to an embedded database and displayed as time-series charts covering 1 hour to 90 days, with outage bands, event-log markers, drag-to-zoom, and CSV export. The logging runs in a background process and never touches the shutdown path.

Webhook notifications

Multiple webhook targets are supported per instance, each with its own format (Slack, Discord, Teams, ntfy, status JSON, or a custom template), severity filter, and an individual test button.

Features

  • Web wizard with test buttons
  • SNMP and NUT UPS sources
  • Agentless Proxmox API shutdown
  • Cluster and Ceph support
  • History tab with charts
  • Webhook notifications

How to install

bash -c "$(curl -fsSL https://github.com/ffind-dev/pve-ups/releases/latest/download/install.sh)"

Recommended for this setup

Strengths

  • No files on protected hosts: The entire configuration lives in the appliance container. Protected Proxmox hosts receive nothing -- no config files, no agents, no SSH keys. Shutdown authority is granted and revoked through a standard Proxmox API token.
  • Vendor-neutral UPS support: The RFC 1628 standard MIB covers many network UPS cards, and automatic fallback to APC PowerNet or CyberPower vendor MIBs handles cards that implement the standard partially or not at all. NUT server integration extends coverage to USB and serial UPS devices.
  • Dry-run mode for safe testing: While dry-run is active the appliance evaluates thresholds and logs what it would do but performs no shutdowns. This lets you verify the complete shutdown sequence, including cluster preparation steps, before arming.
  • Single installer, self-updating LXC: One command run in the Proxmox node shell creates the unprivileged Debian container and installs PVE-UPS. The LXC deployment supports in-app updates through the web UI, keeping the appliance current without manual intervention.

Trade-offs

  • Proxmox-only scope: PVE-UPS shuts down Proxmox VE nodes and Proxmox Backup Servers. It does not support other hypervisors, bare-metal Linux hosts, or Windows servers. Environments mixing hypervisors need a separate shutdown solution for non-Proxmox machines.
  • No in-app updates in Docker mode: The Docker deployment has no privileged companion process, so the 'Upload update package' button is hidden. Updates require pulling a new image tag and recreating the container. The LXC deployment does not have this limitation.
  • PBS attachment carries elevated risk: Attaching a Proxmox Backup Server requires an Admin-scoped token (PBS has no fine-grained power-management role). The PVE-UPS README explicitly recommends against attaching PBS to the same instance that manages PVE hosts in production, because a compromised host would then also reach the backup server.
  • Cluster features require Proxmox VE 9.2+: The cluster-preparation steps (HA disarm, cluster-wide guest stop, Ceph maintenance flags) are marked Beta and require Proxmox VE 9.2 or later. Single-node deployments and older Proxmox versions can still use all other features.

Tech stack

Languages
—
Frameworks
—
Databases
—
Tooling
—

FAQ

Does PVE-UPS replace NUT entirely?

Not necessarily. For UPS devices without a network card, PVE-UPS connects as a read-only NUT client to an existing NUT server (on a NAS, Raspberry Pi, OPNsense, or a Proxmox host). NUT handles the USB or serial driver layer; PVE-UPS reads variables from upsd and makes all shutdown decisions itself -- no upsmon, no upssched, no shutdown scripts on the protected hosts.

What Proxmox privileges does the API token need?

For Proxmox VE, the token needs only the `Sys.PowerMgmt` privilege granted on `/nodes` (or narrower). For Proxmox Backup Server, both the user and the token must be granted the `Admin` role on `/system/status`, because PBS has no fine-grained power-management role.

Can the appliance container run on Ceph-backed storage?

No. The installer refuses a Ceph-backed rootfs by default and skips Ceph storage when picking automatically. The container must keep running while the Ceph cluster it is shutting down loses quorum; once the pool drops below min_size, a Ceph-backed disk stops answering. Use a local storage, or override with --allow-ceph-storage if you understand the risk.

How do I verify the shutdown sequence before arming?

Leave dry-run mode active (the default after installation). In this mode PVE-UPS evaluates all thresholds and logs what it would do but performs no actual shutdowns. When you are satisfied with the sequence shown in the UI, disable dry-run to arm the appliance.

Is Docker supported, and are there differences from the LXC deployment?

Yes. A multi-arch image (amd64, arm64, arm/v7) is published to ghcr.io/ffind-dev/pve-ups on every release. Two features are unavailable in Docker mode: in-app updates (update by pulling a new image tag) and NTP/timezone management from the wizard (set the TZ environment variable on the container instead). All other features, including SNMP polling, NUT client, Proxmox API shutdown, and webhooks, work identically.

Similar tools

More in IT Operations