[virt-tools-list] [PATCH 0/2] virtinst: Pass SMBios information to guest

Charles Arnold carnold at suse.com
Thu Jul 14 14:06:26 UTC 2016


This patchset introduces a command line option to pass smbios information to
the guest. It adds an smbios mode sub-element to the guest's os element. The
mode attribute must be specified and is either "emulate" (let the hypervisor
generate all values), "host" (copy all of Block 0 and Block 1, except for the
UUID, from the host's SMBIOS values), or "sysinfo" (use the values in the
sysinfo element). If not specified, the hypervisor default is used.

If sysinfo is specified in the smbios mode field then an additional sysinfo
element is added to the guest defining the SMBios information. The sysinfo
element has a mandatory attribute type of "smbios". The smbios information
comes as three sub-types, "bios", "system", and "baseBoard" where each of
these types contains sub-elements .

Incorrectly supplied entries for the bios, system or baseBoard blocks will be
ignored without error. Other than uuid validation and date format checking, all
values are passed as strings to the hypervisor driver.

Examples:
    --sysinfo emulate
    --sysinfo host
    --sysinfo type=0,vendor=Vendor_Inc.,version=1.2.3-abc,...
    --sysinfo type=1,manufacturer=System_Corp.,product=codename,...
    --sysinfo type=2,manufacturer=Baseboard_Corp.,product=codename,...


Charles Arnold (2):
  virtinst: Add smbios and sysinfo sub-elements
  virtinst: virtinst: Add --sysinfo command line option

 .../compare/virt-install-singleton-config-2.xml    |  50 +++++++
 tests/clitest.py                                   |   3 +
 virtinst/cli.py                                    |  69 +++++++++
 virtinst/guest.py                                  |   4 +-
 virtinst/osxml.py                                  |   3 +-
 virtinst/sysinfo.py                                | 158 +++++++++++++++++++++
 6 files changed, 285 insertions(+), 2 deletions(-)
 create mode 100644 virtinst/sysinfo.py

-- 
2.6.6




More information about the virt-tools-list mailing list