diff options
Diffstat (limited to 'roles/vm/guest/create/templates')
-rw-r--r-- | roles/vm/guest/create/templates/libvirt-domain.xml.j2 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/vm/guest/create/templates/libvirt-domain.xml.j2 b/roles/vm/guest/create/templates/libvirt-domain.xml.j2 index 0d124566..04905c72 100644 --- a/roles/vm/guest/create/templates/libvirt-domain.xml.j2 +++ b/roles/vm/guest/create/templates/libvirt-domain.xml.j2 @@ -9,8 +9,15 @@ </memoryBacking> {% endif %} <vcpu>{{ install.vm.numcpus }}</vcpu> +{% if (install.efi | default(false)) %} + <os firmware="efi"> + <firmware> + <feature enabled='no' name='secure-boot'/> + </firmware> +{% else %} <os> - <type arch='x86_64' machine='q35'>hvm</type> +{% endif %} + <type machine='q35'>hvm</type> {% if vm_create_installer %} {% if install_distro == 'debian' or install_distro == 'ubuntu' %} <kernel>{{ installer_tmpdir }}/linux</kernel> |