Bug 1422831 - [RFE] Add support for passing files as firmware config blobs to QEMU
Summary: [RFE] Add support for passing files as firmware config blobs to QEMU
Keywords:
Status: CLOSED DUPLICATE of bug 1837990
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: Meina Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-16 11:14 UTC by Daniel Berrangé
Modified: 2020-06-08 13:01 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-18 13:14:02 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2017-02-16 11:14:13 UTC
Description of problem:
As of QEMU 2.4.0 it is possible to pass arbitrary files to QEMU, which get stored in the fw_cfg tables. These are in turn exposed to the guest OS, and Linux >= 4.5 will expose the data in sysfs at /sys/firmware/qemu_fw_cfg

eg

$QEMU -fw_cfg name=opt/ks,file=/var/lib/libvirt/images/anaconda-ks.cfg

causes the contents of anaconda-ks.cfg to be visible in the file

  /sys/firmware/qemu_fw_cfg/by_name/opt/ks/raw

This facility is useful for providing data to the guest that is required during early boot when no userspace services are initialized (and thus no networking available for example).

In the context of cloud, this can be used to replace need to expose CDROM devices to the guest for cloud-init metadata, or to run a metadata service over a 2nd NIC.

Version-Release number of selected component (if applicable):
libvirt-3.0.0-1.el7

Comment 11 Jaroslav Suchanek 2020-02-18 13:14:02 UTC
This bug was closed deferred as a result of bug triage.

Please reopen if you disagree and provide justification why this bug should
get enough priority. Most important would be information about impact on
customer or layered product. Please indicate requested target release.

Comment 12 Michal Privoznik 2020-06-08 13:01:33 UTC
After some discussion and research we realized this is needed. New bug was filed though. I'm making this a duplicate of the new bug then.

*** This bug has been marked as a duplicate of bug 1837990 ***


Note You need to log in before you can comment on or make changes to this bug.