Skip to content

Commit 95950af

Browse files
authored
Merge pull request #102 from stackhpc/nvram-template-format
Add default NVRAM template format
2 parents e238c9a + d6f3e1e commit 95950af

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

templates/vm.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{# NOTE: pflash requires qemu 1.6 or newer. There are alternatives for older versions, but
2727
they do not work with secure boot. See OVMF readme for an overview #}
2828
<loader readonly='yes' type='pflash'>{{ libvirt_vm_ovmf_efi_firmware_path }}</loader>
29-
<nvram template='{{ libvirt_vm_ovmf_efi_variable_store_path }}'/>
29+
<nvram template='{{ libvirt_vm_ovmf_efi_variable_store_path }}' templateFormat='{{ libvirt_vm_ovmf_efi_variable_store_format }}'/>
3030
{% endif %}
3131
</os>
3232
<features>

vars/Archlinux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ libvirt_vm_emulator: /usr/bin/qemu-system-x86_64
1515
# for each VM created.
1616
libvirt_vm_ovmf_efi_variable_store_path: /usr/share/OVMF/OVMF_VARS.fd
1717

18+
# Format of the template OVMF efi variable store.
19+
libvirt_vm_ovmf_efi_variable_store_format: raw
20+
1821
# Path to OVMF efi firmware
1922
libvirt_vm_ovmf_efi_firmware_path: /usr/share/OVMF/OVMF_CODE.fd

vars/Debian.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ libvirt_vm_script_env: >-
1515
# for each VM created.
1616
libvirt_vm_ovmf_efi_variable_store_path: "/usr/share/OVMF/{{ 'OVMF_VARS_4M.fd' if ansible_facts.distribution_release == 'noble' else 'OVMF_VARS.fd' }}"
1717

18+
# Format of the template OVMF efi variable store.
19+
libvirt_vm_ovmf_efi_variable_store_format: raw
20+
1821
# Path to OVMF efi firmware
1922
libvirt_vm_ovmf_efi_firmware_path: "/usr/share/OVMF/{{ 'OVMF_CODE_4M.fd' if ansible_facts.distribution_release == 'noble' else 'OVMF_CODE.fd' }}"

vars/RedHat.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ libvirt_vm_script_env: >-
1515
# for each VM created.
1616
libvirt_vm_ovmf_efi_variable_store_path: /usr/share/edk2/ovmf/OVMF_VARS.fd
1717

18+
# Format of the template OVMF efi variable store.
19+
libvirt_vm_ovmf_efi_variable_store_format: raw
20+
1821
# Path to OVMF efi firmware
1922
libvirt_vm_ovmf_efi_firmware_path: /usr/share/edk2/ovmf/OVMF_CODE.cc.fd

0 commit comments

Comments
 (0)