Skip to content

Commit

Permalink
Fix OVMF path in libvirt xml config
Browse files Browse the repository at this point in the history
Libvirt 9.2.0+ no longer ignores specific value of the <loader/>
element for UEFI variant. Fix it to the proper OVMF firmware path.

QubesOS/qubes-issues#8625
  • Loading branch information
marmarek committed Nov 1, 2024
1 parent 6935f26 commit 7e42430
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/libvirt/xen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
and SeaBIOS based on the loader type. This has nothing to
do with the hvmloader binary.
-->
<loader type="{{ "pflash" if vm.features.check_with_template('uefi', False) else "rom" }}">hvmloader</loader>
{% if vm.features.check_with_template('uefi', False) -%}
<loader type="pflash">/usr/share/edk2/xen/OVMF.fd</loader>
{% else -%}
<loader type="rom">hvmloader</loader>
{% endif -%}
<boot dev="cdrom" />
<boot dev="hd" />
{% else %}
Expand Down

0 comments on commit 7e42430

Please sign in to comment.