From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 262991FF143 for ; Mon, 02 Feb 2026 15:08:20 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A33FD75E3; Mon, 2 Feb 2026 15:08:49 +0100 (CET) From: Maximiliano Sandoval To: pdm-devel@lists.proxmox.com Subject: [PATCH proxmox-datacenter-manager] cli: add target-vmid parameter to remote_migrate_qemu Date: Mon, 2 Feb 2026 15:08:14 +0100 Message-ID: <20260202140817.431548-1-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1770041223765 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.089 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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: 4277MHRDWCMYH4URICBCQAETBLMZHAOQ X-Message-ID-Hash: 4277MHRDWCMYH4URICBCQAETBLMZHAOQ X-MailFrom: m.sandoval@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 Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Adds a --target-vmid parameter to `proxmox-datacenter-manager-client pve qemu remote-migrate`. Signed-off-by: Maximiliano Sandoval --- cli/client/src/pve.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cli/client/src/pve.rs b/cli/client/src/pve.rs index 16289986..5c2a1abd 100644 --- a/cli/client/src/pve.rs +++ b/cli/client/src/pve.rs @@ -546,6 +546,10 @@ async fn migrate_qemu( }, vmid: { schema: VMID_SCHEMA }, target: { schema: REMOTE_ID_SCHEMA }, + "target-vmid": { + optional: true, + schema: VMID_SCHEMA, + }, delete: { description: "Delete the original VM and related data after successful migration.", optional: true, @@ -587,6 +591,7 @@ async fn remote_migrate_qemu( node: Option, vmid: u32, target: String, + target_vmid: Option, online: Option, delete: Option, map_storage: Vec, @@ -603,6 +608,9 @@ async fn remote_migrate_qemu( if let Some(bwlimit) = bwlimit { params = params.bwlimit(bwlimit); } + if let Some(target_vmid) = target_vmid { + params = params.target_vmid(target_vmid); + } for mapping in map_storage { let pos = mapping .find(':') -- 2.47.3