From 2ba25839c3d9ad12578b0a9a3a7915becfa4ddfe Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Mon, 14 Sep 2015 15:22:15 +0200 Subject: [runvirt] cpu handling (maxcpu etc) --- .../data/opt/openslx/scripts/includes/get_xml_file_variables.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'remote/modules') diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/includes/get_xml_file_variables.inc b/remote/modules/run-virt/data/opt/openslx/scripts/includes/get_xml_file_variables.inc index 7edac642..b7ed648c 100644 --- a/remote/modules/run-virt/data/opt/openslx/scripts/includes/get_xml_file_variables.inc +++ b/remote/modules/run-virt/data/opt/openslx/scripts/includes/get_xml_file_variables.inc @@ -52,6 +52,10 @@ xmlvirt=$(grep -o 'virtualmachine param=.*"' "${xmlfile}" \ # choose the proper virtualization/emulator plugin [ "x${xmlvirt}" != "x" -a "x${xmlvirt}" != "xqemukvm" -a "x${xmlvirt}" != "xvirtualbox" -a "x${xmlvirt}" != "xvmware" ] && xmlvirt="emufe" +# Extracting OS type (vmostype) from xml file. We don't care here whether vmostype is empty, as then +# it will yield the default entries later on. +vmostype=$(grep -io '