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 9B3D06AD4C for ; Thu, 17 Mar 2022 12:31:15 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 74D462C58 for ; Thu, 17 Mar 2022 12:31:15 +0100 (CET) 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 id ED85C2BD3 for ; Thu, 17 Mar 2022 12:31:12 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id C5B5446ED4 for ; Thu, 17 Mar 2022 12:31:12 +0100 (CET) From: Fabian Ebner To: pve-devel@lists.proxmox.com Date: Thu, 17 Mar 2022 12:30:58 +0100 Message-Id: <20220317113107.60466-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.120 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% 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 T_SCC_BODY_TEXT_LINE -0.01 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [ovf.pm, proxmox.com, qemu.pm, drive.pm, importdisk.pm, nodes.pm, qemuserver.pm] Subject: [pve-devel] [PATCH-SERIES v13 qemu-server/manager] API for disk import and OVF 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: Thu, 17 Mar 2022 11:31:15 -0000 Extend qm importdisk/importovf functionality to the API. Changes from v12: * Drop already applied patches. * Add some follow-up improvements related to clone: * Aborting early for TPM state restriction. * Check against a corner case with drive-mirror with different drive names but with the same VM ID. * Clone EFI disk from snapshot when specified. * Make readovf endpoint 'protected => 1'. * Group schema-related changes into a patch. * Some smaller cleanups/improvements to checks (see individual patches). Still missing GUI integration for import from ovf, but that will be it's own series. Previous discussion here: https://lists.proxmox.com/pipermail/pve-devel/2022-March/052005.html qemu-server: Dominic Jäger (1): api: support VM disk import Fabian Ebner (7): clone disk: assert that drive name is the same for drive-mirror on single VM clone disk: move check against cloning TPM state of running VM to beginning api: clone vm: check against cloning running TPM state early clone disk: also clone EFI disk from snapshot api: add endpoint for parsing .ovf files schema: drive: use separate schema when disk allocation is possible api: update vm: print drive string for newly allocated/imported drives PVE/API2/Qemu.pm | 255 ++++++++++++++++++++++++++++++----- PVE/API2/Qemu/Makefile | 2 +- PVE/API2/Qemu/OVF.pm | 53 ++++++++ PVE/QemuServer.pm | 70 ++++++++-- PVE/QemuServer/Drive.pm | 95 +++++++++---- PVE/QemuServer/ImportDisk.pm | 4 +- 6 files changed, 412 insertions(+), 67 deletions(-) create mode 100644 PVE/API2/Qemu/OVF.pm manager: Fabian Ebner (1): api: nodes: add readovf endpoint PVE/API2/Nodes.pm | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.30.2