Enable UEFI in addition to legacy bootmode
In order to enable UEFI support we need to configure guests VM to use OVMF (Open Virtual Machine Firmware) Closes: #319 Change-Id: I4b1c3b9fa8f1f0fe42ced7ec3e57b9d95dd4a3f5
This commit is contained in:
parent
582894d389
commit
1fcb6df061
@ -7,6 +7,7 @@ metadata:
|
|||||||
hosts:
|
hosts:
|
||||||
m3:
|
m3:
|
||||||
node01:
|
node01:
|
||||||
|
bootMode: UEFI
|
||||||
macAddress: 52:54:00:b6:ed:31
|
macAddress: 52:54:00:b6:ed:31
|
||||||
bmcAddress: redfish+http://10.23.25.1:8000/redfish/v1/Systems/air-target-1
|
bmcAddress: redfish+http://10.23.25.1:8000/redfish/v1/Systems/air-target-1
|
||||||
bmcUsername: root
|
bmcUsername: root
|
||||||
@ -17,9 +18,9 @@ hosts:
|
|||||||
macAddresses:
|
macAddresses:
|
||||||
oam: 52:54:00:9b:27:4c
|
oam: 52:54:00:9b:27:4c
|
||||||
pxe: 52:54:00:b6:ed:31
|
pxe: 52:54:00:b6:ed:31
|
||||||
bootMode: legacy
|
|
||||||
hardwareProfile: default # defined in the hostgenerator-m3 function
|
hardwareProfile: default # defined in the hostgenerator-m3 function
|
||||||
node02:
|
node02:
|
||||||
|
bootMode: UEFI
|
||||||
macAddress: 52:54:00:b6:ed:02
|
macAddress: 52:54:00:b6:ed:02
|
||||||
bmcAddress: redfish+http://10.23.25.2:8000/redfish/v1/Systems/air-target-2
|
bmcAddress: redfish+http://10.23.25.2:8000/redfish/v1/Systems/air-target-2
|
||||||
bmcUsername: username
|
bmcUsername: username
|
||||||
|
@ -70,6 +70,7 @@
|
|||||||
name: libvirt-domain
|
name: libvirt-domain
|
||||||
vars:
|
vars:
|
||||||
libvirt_domain:
|
libvirt_domain:
|
||||||
|
boot_mode: UEFI
|
||||||
enable_vnc: true
|
enable_vnc: true
|
||||||
console_log_enabled: true
|
console_log_enabled: true
|
||||||
state: shutdown
|
state: shutdown
|
||||||
@ -99,6 +100,7 @@
|
|||||||
name: libvirt-domain
|
name: libvirt-domain
|
||||||
vars:
|
vars:
|
||||||
libvirt_domain:
|
libvirt_domain:
|
||||||
|
boot_mode: UEFI
|
||||||
enable_vnc: true
|
enable_vnc: true
|
||||||
console_log_enabled: true
|
console_log_enabled: true
|
||||||
state: shutdown
|
state: shutdown
|
||||||
@ -167,6 +169,7 @@
|
|||||||
name: libvirt-domain
|
name: libvirt-domain
|
||||||
vars:
|
vars:
|
||||||
libvirt_domain:
|
libvirt_domain:
|
||||||
|
boot_mode: UEFI
|
||||||
enable_vnc: true
|
enable_vnc: true
|
||||||
console_log_enabled: true
|
console_log_enabled: true
|
||||||
state: shutdown
|
state: shutdown
|
||||||
|
@ -106,6 +106,9 @@ libvirt_domain_template_default: |
|
|||||||
<on_crash>destroy</on_crash>
|
<on_crash>destroy</on_crash>
|
||||||
<os>
|
<os>
|
||||||
<type arch='{{ libvirt_vm_arch }}'{% if machine is not none %} machine='{{ machine }}'{% endif %}>hvm</type>
|
<type arch='{{ libvirt_vm_arch }}'{% if machine is not none %} machine='{{ machine }}'{% endif %}>hvm</type>
|
||||||
|
{% if libvirt_domain.boot_mode is defined and libvirt_domain.boot_mode == 'UEFI' %}
|
||||||
|
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
|
||||||
|
{% endif %}
|
||||||
<bootmenu enable='no'/>
|
<bootmenu enable='no'/>
|
||||||
<boot dev='hd'/>
|
<boot dev='hd'/>
|
||||||
<boot dev='cdrom'/>
|
<boot dev='cdrom'/>
|
||||||
|
@ -25,7 +25,9 @@
|
|||||||
- python3-libvirt
|
- python3-libvirt
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- ebtables
|
- ebtables
|
||||||
|
- ovmf
|
||||||
RedHat:
|
RedHat:
|
||||||
|
- edk2-ovmf
|
||||||
- libguestfs-tools
|
- libguestfs-tools
|
||||||
- libvirt
|
- libvirt
|
||||||
- libvirt-devel
|
- libvirt-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user