diff --git a/templates/libvirt/xen.xml b/templates/libvirt/xen.xml
index a9ce7c1db..5204e8a35 100644
--- a/templates/libvirt/xen.xml
+++ b/templates/libvirt/xen.xml
@@ -42,7 +42,11 @@
and SeaBIOS based on the loader type. This has nothing to
do with the hvmloader binary.
-->
- hvmloader
+ {% if vm.features.check_with_template('uefi', False) -%}
+ /usr/share/edk2/xen/OVMF.fd
+ {% else -%}
+ hvmloader
+ {% endif -%}
{% else %}