-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use UEFI instead of legacy as default boot mode #1326
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,25 @@ | |
<os> | ||
<type arch='{{ libvirt_arch }}' machine='q35'>hvm</type> | ||
{% if libvirt_firmware == 'uefi' %} | ||
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> | ||
{% if libvirt_secure_boot|bool %} | ||
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_VARS.secboot.fd</loader> | ||
<nvram template="/usr/share/OVMF/OVMF_VARS.secboot.fd">/var/lib/libvirt/qemu/nvram/{{ item.name }}.fd</nvram> | ||
{% elif host_os == 'centos' or host_os == 'rhel' %} | ||
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_VARS.fd</loader> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/VARS/CODE/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On centos it is VARS on ubuntu it is CODE, this is the centos condition |
||
<nvram template="/usr/share/OVMF/OVMF_VARS.fd">/var/lib/libvirt/qemu/nvram/{{ item.name }}.fd</nvram> | ||
{% else %} | ||
<nvram>/var/lib/libvirt/qemu/nvram/{{ item.name }}.fd</nvram> | ||
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> | ||
<nvram template="/usr/share/OVMF/OVMF_CODE.fd">/var/lib/libvirt/qemu/nvram/{{ item.name }}.fd</nvram> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/CODE/VARS/ |
||
{% endif %} | ||
{% endif %} | ||
<boot dev='network'/> | ||
<bootmenu enable='no'/> | ||
<bios useserial='yes' rebootTimeout='10000'/> | ||
</os> | ||
{% else %} | ||
<os firmware='efi'> | ||
<type arch='aarch64' machine='virt-rhel8.2.0'>hvm</type> | ||
</os> | ||
<os firmware='efi'> | ||
<type arch='aarch64' machine='virt-rhel8.2.0'>hvm</type> | ||
</os> | ||
{% endif %} | ||
|
||
<features> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this export is no longer needed?