247-IT Guide
Sizing a UPS for Hyper-V hosts: VA, runtime and shutdown time
A UPS for Hyper-V hosts has to answer two questions: can it carry the load, and does it last long enough for the last VM and the last host to shut down in order? Both can be calculated, provided you measure the load instead of adding up nameplates and derive the shutdown time budget from what actually happens during a shutdown. This guide shows the method in four steps, with a worked example and the mistakes that come up most often.
Apparent power, real power and what a PSU actually draws
UPS manufacturers rate their units in volt-amperes (VA) and in watts (W). VA is apparent power, voltage times current. Watts are real power, what is actually turned into computing and heat. The ratio between the two is the power factor. Server power supplies with active power factor correction (PFC) sit close to 1, while many UPS models are designed for 0.6 to 0.9. A UPS rated 1500 VA and 1000 W is therefore full at 1000 W of PFC load, long before the 1500 VA are reached. Check both figures; the limiting one is whichever your load reaches first.
- PSU rating is not consumption — the 750 or 1100 W on the nameplate is the maximum output of the power supply. What the server draws depends on CPU load, memory and disks and is usually well below that. Two redundant PSUs share the load; adding both nameplates doubles the error.
- Inrush current — on a cold start capacitors charge, fans spin up, disks start turning. For a few seconds the draw is well above the steady load. That does not matter for runtime, but it does for restart when every server comes up at once. See Restarting after a power outage.
- Online or line-interactive — an online UPS (double conversion, class VFI) feeds the load permanently through rectifier and inverter, with no transfer time. A line-interactive UPS (class VI) passes the mains through and switches to the inverter within a few milliseconds when it fails; server PSUs usually bridge that with their hold-up time. The topology does not matter for the calculation, but it does for choosing the unit in step 4.
- Runtime is not linear to load — half the load gives more than twice the runtime, because a lead-acid battery delivers more usable capacity at a lower discharge current. Near the rated load, runtime drops disproportionately. That is why datasheets quote half and full load separately, and why only the manufacturer's table for your own load helps.
Determine the load
The only reliable figure is the measured draw under normal operation, ideally over a few days including backup runs. Three ways get you there:
- Display or web interface of the existing UPS — shows load as a percentage of the rating, often in watts too. Anyone replacing a UPS already has the measuring source in the rack.
- Management card via SNMP or NUT — delivers the same values as
upsOutputPercentLoad(RFC 1628) orups.load(NUT). The UPS Hyper-V Shutdown Monitor shows them on the dashboard as load in percent; with the additional readings (Pro) also the output power in watts, if the unit reports it. - Plug-in power meter — for environments without a UPS. Measure every device that will later hang off the UPS: hosts, storage, switches, routers, the monitoring machine. Server vendors' configuration calculators only give an estimate.
On top of the measured value comes a reserve for growth: another host in two years, more disks, a second switch. A common rule of thumb is not to run a UPS above 70 to 80% of its rating in continuous operation. On a three-phase UPS it is not the total that counts but the most heavily loaded phase; see Monitoring a three-phase UPS.
Determine the shutdown time budget
From the moment the software sees the threshold crossed, the UPS has to last until the last machine is off. This time budget follows from the actual sequence, not from gut feeling. With the default values of the UPS Hyper-V Shutdown Monitor it looks like this:
- Detection — one poll every 30 s. If, on battery, the charge drops to 20% or the runtime to 300 s, or the UPS reports LOW BATTERY, the software starts counting. Only after 3 consecutive confirmations does the shutdown begin, so up to 90 s after the threshold is crossed.
- Abort window — 15 s of further polling; if mains returns, nothing happens.
- Stages — Hyper-V hosts and additional servers with the same shutdown order run in parallel, stages run one after another. The host running the VM that hosts the service itself is automatically given the last stage.
- Per host — VMs are stopped in their order groups, in parallel within a group, each VM for at most the VM timeout of 120 s, then turned off hard. Then a 5 s pause and
shutdown.exe /s /f /t 30with the host delay of 30 s. An additional server only getsshutdown.exewith its own delay, also 30 s. - Local machine — if enabled, last: a 3 s pause and
shutdown.exe /s /f /t 60. - Hard budget — per host at most 4 × VM timeout + host delay + 120 s, 630 s with defaults, more for each additional VM group. The same figure caps the whole run across all stages. Once it is used up, remaining hosts only get the host shutdown command.
That gives the rule. Plan each VM group with its timeout, not with the measured duration: the timeout is what the software waits for in the worst case.
Time budget
Detection + abort window + per stage (VM groups × VM timeout + 5 s + host delay) + local machine + shutdown of the last operating system + reserve| Step | Source | Duration |
|---|---|---|
| Detection | 3 polls × 30 s (default) | 90 s |
| Abort window | default | 15 s |
| Stage 0: hosts A and B in parallel, VM group 1 application and file VMs | VM timeout 120 s (default) | 120 s |
| Stage 0: VM group 2 domain controllers | VM timeout 120 s | 120 s |
| Stage 0: pause and host delay | 5 s + 30 s (default) | 35 s |
| Stage 1: backup server (additional server) | shutdown.exe /t 30 (default) | 30 s |
| Local monitoring machine | 3 s + 60 s (default) | 63 s |
| Last operating system shuts down | assumption, measure on your own hardware | 60 s |
| Subtotal | stages partly overlap, so the sum is conservative | 533 s ≈ 9 min |
| Reserve 50% | battery ageing, firmware estimate, load on the day | ≈ 4.5 min |
| Runtime threshold | rounded up | 840 s = 14 min |
Shortening VM timeouts to measured values or using fewer VM groups shrinks the budget. Which stop action and order makes sense per VM is covered in Shutting down Hyper-V VMs in a power outage.
Set the runtime threshold
The runtime a UPS reports via SNMP or NUT is an estimate by its firmware, derived from the current load and the battery capacity it assumes. As the battery ages, that estimate turns optimistic unless a calibration is run. The threshold from step 2 therefore has to be set so the time budget still holds when the battery delivers less than the UPS assumes. Two levers do that:
- Reserve in the time budget — the 50% in the table is a planning figure. With a new, calibrated battery it may be smaller; with a battery past three years and no calibration, larger. What deduction is appropriate for aged batteries is explained in Calculating UPS runtime.
- Second threshold on battery charge — the UPS Hyper-V Shutdown Monitor checks charge in percent and runtime in seconds separately; whichever is crossed first triggers. The charge threshold catches an over-optimistic runtime. Set it so the remaining charge at your load still covers the time budget on paper; with tight total runtime that means 30 to 40% rather than the preset 20%.
- LOW BATTERY from the UPS — triggers independently of both figures, but on many units only arrives with a few minutes of runtime left. As the sole trigger that would be too late for a Hyper-V environment.
A threshold of 840 s does not mean 840 s of total runtime is enough. The UPS needs the threshold plus the time it should ride through short outages without shutting down. Anyone who wants to sit out five minutes needs about 19 min of runtime at the measured load in this example, with an aged battery.
Choose the unit
With load and runtime requirement known, the profile is set. In the example: an assumed measurement of 620 W for two hosts, storage and switch, PSU power factor close to 1, so about 650 VA. With a 30% growth reserve that becomes roughly 810 W and 850 VA. You are looking for a unit that carries those figures in watts and VA and delivers at least 19 min at 620 to 810 W of load, after the ageing deduction.
- Read runtime from the manufacturer's table — manufacturers publish runtime curves or tables per load in watts. Look up the row for your load with reserve, not the half-load row, and subtract the ageing deduction. If it is not enough, an extended battery pack is usually cheaper than the next larger UPS: the load stays the same, only the capacity grows.
- A network card is mandatory — a network-based shutdown of several hosts needs a UPS reachable via SNMP or NUT. On many units the card is an accessory with its own price; USB is enough for a single machine. Which vendors the UPS Hyper-V Shutdown Monitor supports natively is listed in Monitoring UPS units from multiple vendors.
- Topology — line-interactive is usually sufficient for small environments with server PSUs. Online double conversion pays off with poor mains quality, generator operation and anywhere no transfer time can be tolerated.
- Outlets — rack UPS units mostly have IEC C13 outlets, larger units C19 for loads above 10 A, tower units often Schuko or regional outlets. Count the power supplies, not the servers.
- Redundancy — one UPS for everything is a single point of failure. Servers with two PSUs can be split across two UPS units; how the shutdown then decides is described in UPS redundancy with dual power supplies.
Six typical sizing mistakes
- Adding up PSU ratings — three hosts with two 800 W PSUs each come to 4800 W on paper and perhaps 900 in operation. The UPS is bought too large, or the runtime is read from the wrong table row.
- Reading runtime at full or half load — both values hold only for exactly that load. Yours sits in between or below, and the curve is not linear.
- Ignoring battery ageing — the threshold fits on day one with a new battery. Three years later the UPS reports the same runtime but delivers less. When replacement is due is covered in Replacing UPS batteries.
- Storage or switch not on the UPS — the hosts keep running, but their iSCSI or SMB storage is gone, or the switch between monitoring machine and UPS card is dark. The software then no longer sees the UPS. In that case it holds the confirmation counter instead of resetting it, but it cannot shut anything down without a network.
- Monitoring machine unprotected — the machine or VM running the service hangs off an outlet without UPS, or off a host that is shut down first. The service recognises its own host and shuts it down last, but only if it has power itself.
- One UPS for everything — without a second feed, the UPS itself remains the single point of failure, however well it is sized.
What the software contributes to sizing
The calculation above works without any software. The UPS Hyper-V Shutdown Monitor does, however, supply four inputs that would otherwise be guessed:
- Live load and runtime — the dashboard shows load in percent, battery charge and the reported runtime on every poll. That tells you whether the UPS, at today's load, even reaches the threshold from step 3 with any reserve.
- Energy report with rated power — enter the UPS rating in VA and the software estimates consumption from load in percent × rating × an assumed power factor of 0.9. Average and peak load over weeks show how much reserve is left. The monthly report that goes with it is explained in UPS monthly report: availability and energy.
- Duration of a real shutdown — after a real shutdown, for example a manual emergency shutdown in a maintenance window, the history view shows the duration per host in seconds, and the log carries a timestamp for every step. That replaces the assumptions in the table with measurements.
- Test mode — runs the sequence without real commands: the software logs which hosts and servers would be affected and which a redundant UPS would defer, and writes a history entry. It measures no duration, because nothing is sent. It verifies the assignment, not the time budget.
Energy report, monthly report and additional readings belong to the Pro edition. Dashboard, history, log and test mode are included in all editions.
UPS sizing checklist
- Load measured — every device on the UPS over several days, including storage, switch and monitoring machine; growth reserve defined.
- VA and watts checked — the load sits below both UPS ratings, with reserve.
- Time budget calculated — detection, abort window, stages, VM timeouts, host delays and local machine added up, reserve added.
- Thresholds set — runtime threshold from the time budget, charge threshold matched to the total runtime.
- Runtime verified — manufacturer's table for your own load, ageing deduction subtracted, ride-through time for short outages added.
- Network card present — SNMP or NUT reachable, the switch in between also on the UPS.
- Real shutdown measured — run it once in a maintenance window and compare the duration per host from the history view with the calculation.
Frequently asked questions
How many VA does a UPS for a Hyper-V host need?
You cannot read it off the host model; you have to measure it: the draw of every device at the power-supply input under normal operation, plus storage and switches. Add a reserve for growth. The UPS must carry that load in both VA and watts, and at that load it must deliver the runtime your shutdown needs.
Why is the datasheet runtime not enough for planning?
Datasheets usually quote runtime at half and full load with a new battery. Your load sits somewhere in between, runtime is not linear to load, and the battery loses capacity over the years. Plan with the manufacturer's runtime table for your measured load and apply a deduction for battery ageing.
How do I measure how long my shutdown really takes?
After a real shutdown, for example a manual emergency shutdown in a maintenance window, the history view of the UPS Hyper-V Shutdown Monitor shows the duration per host in seconds, and the log carries a timestamp for every step. Test mode shows the sequence and the affected hosts but measures no duration, because it sends no commands.
What happens if the shutdown time budget is not enough?
Every host has a hard time budget, by default four times the VM timeout plus the host delay plus 120 seconds. When it runs out, the software still sends the host shutdown; any VMs left running are then handled by Hyper-V's automatic stop action. That is better than an empty battery, but it is no longer an orderly shutdown.
More guides
Calculating UPS runtime
Why the datasheet runtime rarely holds.
Shutting down Hyper-V VMs in a power outage
Stop action, shutdown order and time budget for an orderly shutdown.
Monitoring a three-phase UPS
Reading phase values L1 to L3 correctly.
UPS redundancy with dual power supplies
Shutting down servers with two PSUs on two UPS units correctly.
Replacing UPS batteries
Warning signs, self-test and planning without a protection gap.
UPS monthly report: availability and energy
What the automatic PDF report contains and how to read it.
Restarting after a power outage
Starting servers, storage and VMs automatically when power returns.
Shutting down backup servers and NAS
Including servers without Hyper-V in the shutdown.
Monitoring UPS units from multiple vendors
One tool instead of several silos.
UPS monitoring without shutdown
Monitor and alert without shutting anything down.
Hyper-V failover cluster power outage
Coordinating quorum, CSV and live migration.
Check the load and runtime of your own UPS
30 days free, every feature included. Load, battery charge and runtime via SNMP or NUT on the dashboard, separate thresholds for charge and runtime, duration of every shutdown in the history view.