mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Add support for setting Chassis SMBIOS data fields
This type of information defines attributes of a system
chassis, such as SMBIOS Chassis Asset Tag.
access inside VM (for example)
Linux: /sys/class/dmi/id/chassis_asset_tag.
Windows: (Get-WmiObject Win32_SystemEnclosure).SMBIOSAssetTag
wirhin Windows PowerShell.
As an example, add the following to the guest XML
<chassis>
<entry name='manufacturer'>Dell Inc.</entry>
<entry name='version'>2.12</entry>
<entry name='serial'>65X0XF2</entry>
<entry name='asset'>40000101</entry>
<entry name='sku'>Type3Sku1</entry>
</chassis>
Signed-off-by: Zhuang Yanying <ann.zhuangyanying@huawei.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
committed by
John Ferlan
parent
9148293018
commit
c8fec25692
@@ -411,6 +411,13 @@
|
||||
<entry name='version'>0B98401 Pro</entry>
|
||||
<entry name='serial'>W1KS427111E</entry>
|
||||
</baseBoard>
|
||||
<chassis>
|
||||
<entry name='manufacturer'>Dell Inc.</entry>
|
||||
<entry name='version'>2.12</entry>
|
||||
<entry name='serial'>65X0XF2</entry>
|
||||
<entry name='asset'>40000101</entry>
|
||||
<entry name='sku'>Type3Sku1</entry>
|
||||
</chassis>
|
||||
<oemStrings>
|
||||
<entry>myappname:some arbitrary data</entry>
|
||||
<entry>otherappname:more arbitrary data</entry>
|
||||
@@ -502,6 +509,23 @@
|
||||
validation and <code>date</code> format checking, all values are
|
||||
passed as strings to the hypervisor driver.
|
||||
</dd>
|
||||
<dt><code>chassis</code></dt>
|
||||
<dd>
|
||||
<span class="since">Since 4.1.0,</span> this is block 3 of
|
||||
SMBIOS, with entry names drawn from:
|
||||
<dl>
|
||||
<dt><code>manufacturer</code></dt>
|
||||
<dd>Manufacturer of Chassis</dd>
|
||||
<dt><code>version</code></dt>
|
||||
<dd>Version of the Chassis</dd>
|
||||
<dt><code>serial</code></dt>
|
||||
<dd>Serial number</dd>
|
||||
<dt><code>asset</code></dt>
|
||||
<dd>Asset tag</dd>
|
||||
<dt><code>sku</code></dt>
|
||||
<dd>SKU number</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
<dt><code>oemStrings</code></dt>
|
||||
<dd>
|
||||
This is block 11 of SMBIOS. This element should appear once and
|
||||
|
||||
Reference in New Issue
Block a user