From 54701ab543104146da2307c09fa1f062d2aa73a8 Mon Sep 17 00:00:00 2001 From: Lewis Denny Date: Wed, 8 May 2024 16:07:36 +1000 Subject: [PATCH] [libvirt_manager] Update domain.xml.j2 to support baremetal instance This patch: - Adds support to enable the bootmenu - Adds early RNG entropy[1], without this baremetal instance vms can fail with "Jitter RNG permanent health test failure" errors [2] - Update docs with `disk_file_name: "blank"` example using `bootmenu_enable` [1] https://libvirt.org/formatdomain.html#id109 [2] Jira: OSPRH-1967 Jira: OSPRH-6841 --- roles/libvirt_manager/README.md | 10 ++++++++++ roles/libvirt_manager/templates/domain.xml.j2 | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/roles/libvirt_manager/README.md b/roles/libvirt_manager/README.md index 17d1f24c3a..cebd275adb 100644 --- a/roles/libvirt_manager/README.md +++ b/roles/libvirt_manager/README.md @@ -59,6 +59,7 @@ cifmw_libvirt_manager_configuration: password: (string, optional, defaults to fooBar. Root password for console access) target: (Hypervisor hostname you want to deploy the family on. Optional) uefi: (boolean, toggle UEFI boot. Optional, defaults to false) + bootmenu_enable: (string, toggle bootmenu. Optional, defaults to "no") networks: net_name: ``` @@ -101,6 +102,15 @@ cifmw_libvirt_manager_configuration: nets: - public - osp_trunk + baremetal_instance: + amount: 2 + disk_file_name: "blank" + disksize: 50 + memory: 8 + cpus: 4 + bootmenu_enable: "yes" + nets: + - public networks: public: |- diff --git a/roles/libvirt_manager/templates/domain.xml.j2 b/roles/libvirt_manager/templates/domain.xml.j2 index b6b230fe7c..56830d87c4 100644 --- a/roles/libvirt_manager/templates/domain.xml.j2 +++ b/roles/libvirt_manager/templates/domain.xml.j2 @@ -13,7 +13,7 @@ hvm {% endif %} - + @@ -107,6 +107,7 @@ /dev/urandom +