From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 6DE201FF0B7 for ; Mon, 30 Nov 2026 19:13:25 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0A4F621738; Mon, 30 Nov 2026 19:12:48 +0100 (CET) From: Jonas Theisen To: pve-devel@lists.proxmox.com Subject: [PATCH docs v3 18/18] qm: document the CPU checks for live migration Date: Mon, 30 Nov 2026 19:09:50 +0100 Message-ID: <20261130181007.596064-19-j.theisen@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261130181007.596064-1-j.theisen@proxmox.com> References: <20261130181007.596064-1-j.theisen@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796062253824 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.060 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: QO73NPCMDCAXHJQHKBYZWZOEUWX657L6 X-Message-ID-Hash: QO73NPCMDCAXHJQHKBYZWZOEUWX657L6 X-MailFrom: j.theisen@proxmox.com 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 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Document that live migrations known not to work because of the target node's CPU are now refused, for all CPU types, how root can override the check of the CPU flags for VMs with the 'host' or 'max' CPU type, the warnings about live migrations between different CPU vendors and models, and how the checks apply to HA-managed VMs. Signed-off-by: Jonas Theisen --- qm.adoc | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/qm.adoc b/qm.adoc index cfa8587..102966b 100644 --- a/qm.adoc +++ b/qm.adoc @@ -1867,6 +1867,38 @@ For Live Migration to work, there are some things required: vendor *might* work depending on the actual models and VMs CPU type configured, but it cannot be guaranteed - so please test before deploying such a setup in production. ++ +{pve} refuses live migrations that are known not to work: ++ +-- +** VMs with the CPU type `host`, or `max` with KVM, to a node with a CPU from a + different vendor, or whose CPU lacks flags of the source node's CPU, as the + guest might use them. +** VMs with any other CPU type and KVM, for example `x86-64-v3` or a custom CPU + type, to a node that does not support all flags of the VM's virtual CPU, + including the flags the CPU type enables by default. QEMU would refuse to + start the VM on such a node. +-- ++ +The migration dialog and `qm migrate` show the reason, and migrating all VMs +of a node skips such VMs. For live migrations between CPU vendors with other +CPU types, a warning is shown, as guests can become unstable, sometimes only a +while after the migration. A warning is also shown for VMs with the CPU type +`host` or `max` if the CPU models of the nodes differ, as live migration with +these CPU types is only reliable between identical CPUs. Checking the CPU vendor +and model requires the target node to run a {pve} version that reports them. +Otherwise, a warning is shown for VMs with the CPU type `host` or `max`. ++ +As the flags supported by KVM also depend on the kernel version, `root@pam` +can override the check of the flags for the CPU types `host` and `max` with +the `--allow-missing-cpu-flags` option of `qm migrate`, or the 'Ignore CPU +incompatibility' checkbox of the migration dialog. The `--force` option, which +the HA stack uses for its migrations, does not override this check. ++ +The checks also apply to migrations of HA-managed VMs. A migration requested +through the API or web interface is refused right away. Migrations that the HA +stack starts on its own, for example for maintenance mode, cannot override the +check and fail. Conntrack State Migration ^^^^^^^^^^^^^^^^^^^^^^^^^ -- 2.47.3