From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 206AE1FF0A8 for ; Sat, 28 Nov 2026 16:21:21 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id DA1FA21746; Sat, 28 Nov 2026 16:21:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stuttgart.de; s=s1022; t=1795878689; bh=JRkyNtGvg8Sb93+G/H2jNTp7Th/hYewyQWDPmIPsj2s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hO4pQMlSHq/XlSy3l3embelzZai0viMZAl/eCbq78ThgouXTrR7TgVnGGYEqqn+hu p8eOCk+/sTlCRQsIbkyzPc/UJwolfmzCDmT7rFhhmGe55GgDRz8n+A4DS0JSONNtPu BTn+hoQOWROUvUGiUYsmKKaSWlOpYsTsR/1Ubwqt6bBoYWfG44p2bHmW6yRFlb4Ckk h1kxPD0j4ulcc8fNXi72wshKj0rRG0s0DqEgBdAgiwCd8USBPo73dqCLlgFM0yz4W2 NFKZbI0lPyjckYkHl7B38oZoT5Jze2xXh6r9oplt73W1fkvwsQvSXQx3NehxvC+vAb cS7J8ZD2pYkhA== From: Jakob-Tobias Winter To: pve-devel@lists.proxmox.com Subject: [RFC PATCH docs 10/11] ha-manager: document the stop-on-poweroff setting Date: Sat, 28 Nov 2026 16:11:17 +0100 Message-ID: <20261128151118.892037-11-tobias@stuttgart.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261128151118.892037-1-tobias@stuttgart.de> References: <20261128151118.892037-1-tobias@stuttgart.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.032 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: G6Z5P5MEEKUYPWGWU6KFATNWEOV765IX X-Message-ID-Hash: G6Z5P5MEEKUYPWGWU6KFATNWEOV765IX X-MailFrom: prvs=7495f99b94=tobias@stuttgart.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Jakob-Tobias Winter X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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