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 324101FF0BC for ; Wed, 02 Dec 2026 16:21:58 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 995A921A13; Wed, 02 Dec 2026 16:20:03 +0100 (CET) From: Jonas Theisen To: pve-devel@lists.proxmox.com Subject: [PATCH docs v4 21/21] qm: document the CPU checks for live migration Date: Wed, 2 Dec 2026 16:18:17 +0100 Message-ID: <20261202151831.414110-22-j.theisen@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261202151831.414110-1-j.theisen@proxmox.com> References: <20261202151831.414110-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: 1796224762076 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.054 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: TSF2C6WWASATDOTC2C4TPJBBELBVD3SU X-Message-ID-Hash: TSF2C6WWASATDOTC2C4TPJBBELBVD3SU 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 which live migrations are refused because of the target node's CPU, for all CPU types and including unsupported Hyper-V enlightenments, how to override the CPU flag check for the 'host' and 'max' CPU types, the warnings about migrations between CPU vendors and models, and how the checks apply to HA-managed VMs. Signed-off-by: Jonas Theisen --- qm.adoc | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/qm.adoc b/qm.adoc index cfa8587..3856b31 100644 --- a/qm.adoc +++ b/qm.adoc @@ -1867,6 +1867,52 @@ 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} checks the CPU of the target node before a live migration and refuses it +if the VM cannot run there: ++ +-- +** VMs with the CPU type `host` or `max` require a CPU from the same vendor that + has all CPU flags of the source node's CPU. +** VMs with other CPU types, for example `x86-64-v3` or a custom CPU type, + require a node that supports all CPU flags of the VM, including the defaults + of the CPU type. +** All VMs require a node that supports their Hyper-V enlightenments, which + {pve} enables for Windows guests. +-- ++ +These checks only apply to VMs that use KVM hardware virtualization. The +migration dialog and `qm migrate` show the reason, and bulk migrations skip +such VMs. ++ +{pve} only shows a warning if: ++ +-- +** the nodes have CPUs from different vendors, for VMs with other CPU types. +** the CPU models of the nodes differ, for VMs with the CPU type `host` or + `max`, as live migration with these is only reliable between identical CPUs. +** the target node lacks CPU flags that only tell the guest which CPU + vulnerabilities do not affect it, for example `its-no` or `srso-no`. KVM + reports some of them only with newer kernels. +** a node does not report the CPU information needed for a check, for example + as the target node runs an older {pve} version. If a node does not report + Hyper-V enlightenments, restart its `pvestatd` service to detect them again. +** the checks themselves fail. +-- ++ +As the flags supported by KVM also depend on the kernel version, you can +override the check of the CPU flags for `host` and `max` with the +`--allow-missing-cpu-flags` option of `qm migrate`, or the 'Ignore CPU +incompatibility' checkbox of the migration dialog. This does not apply to flags +explicitly enabled for VMs with the CPU type `max`. The `--force` option does +not override the checks. ++ +The checks also apply to HA-managed VMs. Migrations requested through the API or +the web interface are refused right away. The override also applies to VMs that +the HA stack migrates along due to a positive resource affinity rule, so it +requires the 'VM.Migrate' privilege on these as well. Migrations that the HA +stack starts on its own, for example for maintenance mode, do not use the +override and fail. Conntrack State Migration ^^^^^^^^^^^^^^^^^^^^^^^^^ -- 2.47.3