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 552901FF146 for ; Tue, 03 Feb 2026 09:16:48 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2985916908; Tue, 3 Feb 2026 09:17:17 +0100 (CET) From: Maximiliano Sandoval To: pdm-devel@lists.proxmox.com Subject: [PATCH proxmox-datacenter-manager v2 1/2] cli: add target-vmid parameter to remote_migrate_qemu Date: Tue, 3 Feb 2026 09:17:08 +0100 Message-ID: <20260203081710.48911-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: 1770106556243 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: SQOW4BYS3ZGSCDSEPSQCW5NOTGBJQIRM X-Message-ID-Hash: SQOW4BYS3ZGSCDSEPSQCW5NOTGBJQIRM 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 --- Differences from v1: - Add the optional argument to pve lxc remote-migrate too 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