]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add support for setting OEM strings SMBIOS data fields
authorDaniel P. Berrange <berrange@redhat.com>
Sat, 28 Oct 2017 13:56:51 +0000 (14:56 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 25 Jan 2018 14:48:56 +0000 (14:48 +0000)
commit68eed56b2d51e66bb540062fe09f5ffd44e99f6e
tree985669abdaa592cc7b95da53617ca8fcfc490016
parente7cb9c4e230c3c77e35e72334c261b5b0a2211c6
conf: add support for setting OEM strings SMBIOS data fields

The OEM strings table in SMBIOS allows the vendor to pass arbitrary
strings into the guest OS. This can be used as a way to pass data to an
application like cloud-init, or potentially as an alternative to the
kernel command line for OS installers where you can't modify the install
ISO image to change the kernel args.

As an example, consider if cloud-init and anaconda supported OEM strings
you could use something like

    <oemStrings>
      <entry>cloud-init:ds=nocloud-net;s=http://10.10.0.1:8000/</entry>
      <entry>anaconda:method=http://dl.fedoraproject.org/pub/fedora/linux/releases/25/x86_64/os</entry>
    </oemStrings>

use of a application specific prefix as illustrated above is
recommended, but not mandated, so that an app can reliably identify
which of the many OEM strings are targetted at it.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/util/virsysinfo.c
src/util/virsysinfo.h