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

Charles Arnold carnold at suse.com
Tue Sep 6 22:12:18 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 except for uuid validation and date format checking. All
values are passed as strings to the hypervisor driver.

Examples:
    --sysinfo emulate
    --sysinfo host
    --sysinfo type=smbios,bios_vendor=Vendor_Inc.,bios_version=1.2.3-abc,...
    --sysinfo type=smbios,system_manufacturer=System_Corp.,system_product=codename,...
    --sysinfo type=smbios,baseBoard_manufacturer=Baseboard_Corp.,baseBoard_product=codename,...

Charles Arnold (2):
  Add classes for defining SMBios information in a guest. This
    includes adding an smbios sub-element to the guest os element    
    and a sysinfo sub-element to the guest. The sysinfo sub-element    
    contains the SMBios specific data.
  Add the --sysinfo option to allow passing SMBios information to
    the guest. Also update the appropriate files with test cases.

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

-- 
1.8.5.6




More information about the virt-tools-list mailing list