public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Leo Nunner <l.nunner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH qemu-server docs manager] Implement support for fw_cfg
Date: Wed,  1 Mar 2023 10:12:25 +0100	[thread overview]
Message-ID: <20230301091229.53505-1-l.nunner@proxmox.com> (raw)

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





             reply	other threads:[~2023-03-01  9:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01  9:12 Leo Nunner [this message]
2023-03-01  9:12 ` [pve-devel] [PATCH qemu-server 1/2] fix #4068: implement " Leo Nunner
2023-03-15 14:05   ` Wolfgang Bumiller
2023-03-24  9:43     ` Leo Nunner
2023-03-01  9:12 ` [pve-devel] [PATCH qemu-server 2/2] test: add cfg2cmd tests " Leo Nunner
2023-03-01  9:12 ` [pve-devel] [PATCH docs] fix #4068: document fw_cfg parameter Leo Nunner
2023-03-01  9:12 ` [pve-devel] [PATCH manager] fix #4068: expose fw_cfg through the GUI Leo Nunner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230301091229.53505-1-l.nunner@proxmox.com \
    --to=l.nunner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal