summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu/data
diff options
context:
space:
mode:
authorManuel Bentele2021-11-09 14:18:51 +0100
committerManuel Bentele2021-11-09 14:18:51 +0100
commit7a4522d6b59ad2936e5ce0ed466f57b8546991b3 (patch)
tree74cde08e0508f1c3e338a786fb8960a3c83cd60e /core/modules/qemu/data
parentsetup_target: Only install packages of selected modules (diff)
downloadmltk-7a4522d6b59ad2936e5ce0ed466f57b8546991b3.tar.gz
mltk-7a4522d6b59ad2936e5ce0ed466f57b8546991b3.tar.xz
mltk-7a4522d6b59ad2936e5ce0ed466f57b8546991b3.zip
[qemu] Add automatic firmware path transformation for UEFI based VMs
Diffstat (limited to 'core/modules/qemu/data')
-rw-r--r--core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
index 1f61f5d9..3e0aa68c 100644
--- a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
+++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
@@ -54,6 +54,9 @@ run_plugin() {
writelog "Failed to set up mediated device (Intel GVT-g) for GPU passthrough!"
fi
+ # set path to QEMU firmware specification files
+ local firmware_path="/usr/share/qemu/firmware"
+
# set debug related options
if [ "${DEBUG}" = "true" ]; then
# write finalized config in debug mode to temporary folder for debugging purposes
@@ -75,6 +78,7 @@ run_plugin() {
VIRTCMDOPTS=( "-jar" "${QEMU_PLUGIN_DIR}/runvirt-plugin-qemu.jar" )
notempty DEBUG && VIRTCMDOPTS+=( "-debug" "${DEBUG}" )
+ notempty firmware_path && VIRTCMDOPTS+=( "-firmware" "${firmware_path}" )
notempty VM_CLEANNAME && VIRTCMDOPTS+=( "-vmname" "${VM_CLEANNAME}" )
notempty VM_DISPLAYNAME && VIRTCMDOPTS+=( "-vmdsplname" "${VM_DISPLAYNAME}" )
notempty VM_OS_TYPE && VIRTCMDOPTS+=( "-vmos" "${VM_OS_TYPE}" )