From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id D02FB997A7 for ; Wed, 11 Oct 2023 09:51:17 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B95DE3C96 for ; Wed, 11 Oct 2023 09:51:17 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 11 Oct 2023 09:51:17 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 13510449B4; Wed, 11 Oct 2023 09:51:17 +0200 (CEST) Message-ID: <12580a59-53c4-4212-879b-b4f6faff58c2@proxmox.com> Date: Wed, 11 Oct 2023 09:51:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "DERUMIER, Alexandre" , "pve-devel@lists.proxmox.com" , "aderumier@odiso.com" References: <20230928144556.2023558-1-aderumier@odiso.com> <20230928144556.2023558-3-aderumier@odiso.com> <5ecfa7d0-4525-5f1e-75a2-a6ae1a93356b@proxmox.com> <73e0a3a6-f978-ac24-5f6b-16af759ee209@proxmox.com> From: Fiona Ebner In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.087 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 Subject: Re: [pve-devel] [PATCH v4 qemu-server 2/2] remote-migration: add target-cpu && target-reboot params X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Oct 2023 07:51:17 -0000 Am 10.10.23 um 18:29 schrieb DERUMIER, Alexandre: >> >> I think that a true offline migration (without starting any >> source/target vm) can be done with qemu-storage-daemon running nbd >> server on target &&  qemu-img on source. >> >> This could be also used for online migration with unused/detached >> disks. >> > >>> Yes, we could, but would require additional logic. So the question is >>> if >>> there are enough advantages to do it rather than via a full VM. >>> Starting >>> a VM of course requires more resources. > > I don't known if it's possible to use the ndb server in the targetvm, > if the target disk is not attached ? (I really don't known) Yes, I think need to attach it as a blockdev first. But for 'restart' migration, it should be fine to start out with NBD and migrate non-attached disks with our current method. If we (later) want to add logic for migrating non-attached disks via storage-daemon we can always do that too and switch storage_migrate() to use that (maybe not unconditionally, ZFS -> ZFS still makes more sense to do with send/recv for example).