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 92CB3AE0B for ; Wed, 6 Apr 2022 10:04:36 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 88C4F270AD for ; Wed, 6 Apr 2022 10:04:36 +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 id 232CA2708F for ; Wed, 6 Apr 2022 10:04:35 +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 D541D41FA4 for ; Wed, 6 Apr 2022 10:04:34 +0200 (CEST) From: Fabian Ebner To: pve-devel@lists.proxmox.com Date: Wed, 6 Apr 2022 10:03:57 +0200 Message-Id: <20220406080416.66227-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.112 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 - Subject: [pve-devel] [PATCH-SERIES v10 manager] Add GUI to import disk & VM 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, 06 Apr 2022 08:04:36 -0000 Allows selecting the import source when creating/adding a new VM disk and makes loading configuration from an OVF manifest in the VM creation wizard possible. First patch is also included in the series for the backend. Patches 2-6 are for making import source selectable when creating/adding a VM disk. The rest of the series is preparation for the import functionality in the various components used by the wizard, with the final patch adding the functionality itself. Changes from Dominic's v9: * Split out preparatory work, and re-use existing classes, rather than re-writing HD edit and multi disk edit functionality as separate classes (the latter did not even exist yet when Dominic wrote his patch). * Show message upon successfull readovf API call. * Show import from path/OVF only for root user. * Simplify a few things. Dependency bump for qemu-server is needed. Dominic Jäger (1): ui: qemu: wizard: add import from OVF functionality Fabian Ebner (18): api: nodes: add readovf endpoint ui: HD edit: get rid of unneeded binding for backup checkbox ui: HD edit: move advanced options into a dedicated tab ui: disk storage selector: add setSize function ui: file selector: add getCurrentSize function ui: HD edit: allow selecting import source ui: CD edit: handle change even if not yet rendered ui: multi disk edit: only pass confid for addPanel ui: HD edit: allow preselecting config ID ui: multi HD edit: pre select passed-in config ID ui: multi disk edit: allow setting config ID when adding disk ui: multi disk edit: add removeAllDisks function ui: multi disk edit: allow adding a disk with existing settings ui: multi disk edit: expose addDisk outside of the controller ui: HD edit: set drive: make specifying file/volid optional ui: HD edit: support setting an import path in setDrive ui: qemu: memory edit: expose setMemory outside the controller ui: qemu: memory edit: allow passing explicit value PVE/API2/Nodes.pm | 7 + www/manager6/form/ControllerSelector.js | 4 + www/manager6/form/DiskStorageSelector.js | 25 +++- www/manager6/form/FileSelector.js | 6 + www/manager6/lxc/MultiMPEdit.js | 9 +- www/manager6/panel/MultiDiskEdit.js | 41 ++++- www/manager6/qemu/CDEdit.js | 3 - www/manager6/qemu/CreateWizard.js | 61 ++++++++ www/manager6/qemu/HDEdit.js | 183 +++++++++++++++++++---- www/manager6/qemu/MemoryEdit.js | 33 ++-- www/manager6/qemu/MultiHDEdit.js | 12 +- 11 files changed, 324 insertions(+), 60 deletions(-) -- 2.30.2