From: Jakob-Tobias Winter <tobias@stuttgart.de>
To: pve-devel@lists.proxmox.com
Cc: Jakob-Tobias Winter <tobias@stuttgart.de>
Subject: [RFC PATCH docs 10/11] ha-manager: document the stop-on-poweroff setting
Date: Sat, 28 Nov 2026 16:11:17 +0100 [thread overview]
Message-ID: <20261128151118.892037-11-tobias@stuttgart.de> (raw)
In-Reply-To: <20261128151118.892037-1-tobias@stuttgart.de>
Describe what the HA stack does with a guest that gets powered off
from within, how the new setting changes that for virtual machines,
and in which cases it does not apply.
Signed-off-by: Jakob-Tobias Winter <tobias@stuttgart.de>
---
The files in generated/ are not touched.
ha-manager.adoc | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/ha-manager.adoc b/ha-manager.adoc
index c095fdc..8c9f1ea 100644
--- a/ha-manager.adoc
+++ b/ha-manager.adoc
@@ -1148,6 +1148,44 @@ kill its process if the service could not be stopped)
* *after* you fixed all errors you may request that the service starts again
+[[ha_manager_stop_on_poweroff]]
+Guest Poweroff
+--------------
+
+If the guest of a started HA resource is not running anymore, the HA stack
+starts it again. This also happens if the guest was shut down on purpose from
+within, for example with `poweroff` on the console of a virtual machine. To
+keep such a resource stopped, the guest has to be shut down through {pve}, that
+is with the web interface, the API or the command-line tools, which requests
+the `stopped` state for the resource.
+
+With the `stop-on-poweroff` setting enabled, the HA stack requests the `stopped`
+state by itself for a virtual machine that got powered off from within the
+guest. The resource is then handled like one that was shut down through {pve}:
+it stays stopped, it still gets recovered if its node fails, and starting the
+virtual machine through {pve} requests the `started` state again.
+
+The setting can be enabled in the web interface (`Datacenter` -> `Options` ->
+`HA Settings`), or directly in `datacenter.cfg`:
+
+----
+ha: stop-on-poweroff=1
+----
+
+A virtual machine that crashes, or whose process gets killed, is still started
+again, and so is one that reboots. The setting has no effect on containers.
+
+The requested state is only changed for a resource that the HA stack just keeps
+started on a node in normal operation. It stays `started` if the guest gets
+powered off while the HA stack moves the resource to another node or has frozen
+it, while the node of the resource gets shut down or is in maintenance mode, or
+while xref:ha_manager_disarm[HA is disarmed].
+
+NOTE: Enable the setting only after all nodes of the cluster got upgraded to a
+version that supports it. Older versions ignore all HA settings in
+`datacenter.cfg` as long as it contains a setting they do not know.
+
+
[[ha_manager_package_updates]]
Package Updates
---------------
base-commit: ea34e671b4f14c22497d449a627a323da2ab1512
--
2.53.0
next prev parent reply other threads:[~2026-11-28 15:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 15:11 [RFC PATCH cluster/ha-manager/qemu-server/manager/docs 00/11] fix #6314: ha: keep guests stopped that got powered off from within Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH cluster 01/11] datacenter config: add stop-on-poweroff to the HA settings Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH ha-manager 02/11] fix #6314: config: request stopped state for powered off guests Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH ha-manager 03/11] lrm: do not start a service again that is about to be stopped Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH ha-manager 04/11] sim: hardware: add poweroff command for services Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH ha-manager 05/11] test: add test cases for stop-on-poweroff Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH ha-manager 06/11] resources: add stop-on-poweroff property for virtual machines Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH qemu-server 07/11] fix #6314: qm cleanup: report a guest poweroff to the HA stack Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH manager 08/11] ui: dc options: add stop-on-poweroff to the HA settings Jakob-Tobias Winter
2026-11-28 15:11 ` [RFC PATCH manager 09/11] ui: ha: add stop-on-poweroff selector to the resource edit window Jakob-Tobias Winter
2026-11-28 15:11 ` Jakob-Tobias Winter [this message]
2026-11-28 15:11 ` [RFC PATCH docs 11/11] ha-manager: document the stop-on-poweroff property of resources Jakob-Tobias Winter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128151118.892037-11-tobias@stuttgart.de \
--to=tobias@stuttgart.de \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox