possible bug in efi detection for guest

daggs daggs at gmx.com
Tue Oct 20 09:39:06 UTC 2020


Greetings All,

following a suggestion I got here on how to properly boot uefi-q35 guest, I found an weird config in the xml.
this is what I see when I run virsh edit streamer-vm-q35:
<os firmware='efi'>
  <type arch='x86_64' machine='pc-q35-5.0'>hvm</type>
  <boot dev='hd'/>
</os>

when I run virsh dumpxml streamer-vm-q35, I get this:
<os>
  <type arch='x86_64' machine='pc-q35-5.0'>hvm</type>
  <loader readonly='yes' type='pflash'>/usr/share/qemu/edk2-x86_64-secure-code.fd</loader>
  <nvram template='/usr/share/qemu/edk2-i386-vars.fd'>/var/lib/libvirt/qemu/nvram/streamer-vm-q35_VARS.fd</nvram>
  <boot dev='hd'/>
</os>

question is, why the nvram template is /usr/share/qemu/edk2-i386-vars.fd and not /usr/share/qemu/edk2-x86_64-code.fd (file exists) as the system is x64?

Thanks

Dagg.




More information about the libvirt-users mailing list