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 E6183953D6 for ; Wed, 1 Mar 2023 10:12:48 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C9E84FC34 for ; Wed, 1 Mar 2023 10:12:48 +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 for ; Wed, 1 Mar 2023 10:12:47 +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 C7DD348D4E for ; Wed, 1 Mar 2023 10:12:46 +0100 (CET) From: Leo Nunner To: pve-devel@lists.proxmox.com Date: Wed, 1 Mar 2023 10:12:25 +0100 Message-Id: <20230301091229.53505-1-l.nunner@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.129 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [qemu.pm, github.io, qemuserver.pm] Subject: [pve-devel] [PATCH qemu-server docs manager] Implement support for fw_cfg 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, 01 Mar 2023 09:12:48 -0000 This patch introduces an interface for passing values to a guest via the fw_cfg parameter. Settings are in the format opt/$key=$value Where $key should start with a rfqdn (but doesn't need to). Both plain strings and files (only from the snippets directory) can be passed through. An example application for this parameter is for provisioning CoreOS systems [1]. Files are currently passed through if the user specifies the value as "storage:snippets/file", there is no implicit file flag. [1] https://coreos.github.io/ignition/ qemu-server: Leo Nunner (2): fix #4068: implement support for fw_cfg test: add cfg2cmd tests for fw_cfg PVE/API2/Qemu.pm | 14 +++++++++++ PVE/QemuServer.pm | 35 ++++++++++++++++++++++++++++ test/cfg2cmd/fw_cfg-files.conf | 15 ++++++++++++ test/cfg2cmd/fw_cfg-files.conf.cmd | 30 ++++++++++++++++++++++++ test/cfg2cmd/fw_cfg-strings.conf | 15 ++++++++++++ test/cfg2cmd/fw_cfg-strings.conf.cmd | 30 ++++++++++++++++++++++++ 6 files changed, 139 insertions(+) create mode 100644 test/cfg2cmd/fw_cfg-files.conf create mode 100644 test/cfg2cmd/fw_cfg-files.conf.cmd create mode 100644 test/cfg2cmd/fw_cfg-strings.conf create mode 100644 test/cfg2cmd/fw_cfg-strings.conf.cmd docs: Leo Nunner (1): fix #4068: document fw_cfg parameter qm.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) manager: Leo Nunner (1): fix #4068: expose fw_cfg through the GUI www/manager6/Makefile | 1 + www/manager6/qemu/FirmwareCfgEdit.js | 224 +++++++++++++++++++++++++++ www/manager6/qemu/Options.js | 6 + 3 files changed, 231 insertions(+) create mode 100644 www/manager6/qemu/FirmwareCfgEdit.js -- 2.30.2