public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OVMF and SMBIOS
@ 2019-05-28 15:18 Tomas Pilar (tpilar)
  2019-05-28 17:06 ` [edk2-devel] " Laszlo Ersek
  0 siblings, 1 reply; 3+ messages in thread
From: Tomas Pilar (tpilar) @ 2019-05-28 15:18 UTC (permalink / raw)
  To: Devel EDK2


[-- Attachment #1.1: Type: text/plain, Size: 404 bytes --]

Hi,

I am trying to create kvm instance using libvirt and Qemu and OVMF that also has SMBIOS included. My current version of Qemu only supports type 0 and type 1 SMBIOS tables so I specify those. However, when I use smbiosview in the UEFI shell, I get back "SMBIOS not found".

I attach my current libvirt xml specification for the kvm host.

Does anyone have any immediate ideas?

Cheers,
Tom

[-- Attachment #1.2: Type: text/html, Size: 2483 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: qemu.xml --]
[-- Type: text/xml; name="qemu.xml", Size: 2682 bytes --]

<domain type='kvm' id='5'>
  <name>Qemu Test</name>
  <uuid>f6433268-9cc0-4aee-848f-819c27ff3b62</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64'>hvm</type>
    <bootmenu enable='yes' timeout='3000'/>
    <loader readonly='yes' secure='no' type='pflash'>/tmp/ovmf-test/OVMF_CODE.fd</loader>
    <nvram template='/tmp/ovmf-test/OVMF_VARS.fd'>/tmp/ovmf-test/OVMF_VARS2.fd</nvram>
    <smbios mode='sysinfo' />
  </os>
  <sysinfo type='smbios'>
    <bios>
      <entry name='vendor'>Sfc Qemu</entry>
    </bios>
    <system>
      <entry name='manufacturer'>Qemu</entry>
      <entry name='product'>Virt-Manager</entry>
      <entry name='version'>0.9.4</entry>
      <entry name='uuid'>f6433268-9cc0-4aee-848f-819c27ff3b62</entry>
    </system>
  </sysinfo>
  <features>
    <acpi/>
    <apic/>
  </features>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>preserve</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>preserve</on_crash>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        [ADDRESS]
      </source>
    </hostdev>
    <serial type='file'>
      <source path='/tmp/ovmf-test/serial0.log'/>
      <target port='0' />
      <alias name='serial0'/>
    </serial>
    <serial type='file'>
      <source path='/tmp/ovmf-test/serial1.log'/>
      <target port='1' />
      <alias name='serial1'/>
    </serial>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
      <listen type='address' address='127.0.0.1'/>
      <image compression='off'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <rng model='virtio'>
      <backend model='random'>/dev/urandom</backend>
      <alias name='rng0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </rng>
  </devices>
</domain>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-29  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-28 15:18 OVMF and SMBIOS Tomas Pilar (tpilar)
2019-05-28 17:06 ` [edk2-devel] " Laszlo Ersek
2019-05-29  9:44   ` Tomas Pilar (tpilar)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox