From 415a65c67f04884d94b7f14e83fca7b07bd6622b Mon Sep 17 00:00:00 2001 From: Dirk Date: Thu, 7 Jul 2011 19:46:59 +0200 Subject: Extensions of the emufe plugin ... --- src/os-plugins/plugins/vmchooser/files/run-virt.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/os-plugins/plugins/vmchooser/files') diff --git a/src/os-plugins/plugins/vmchooser/files/run-virt.sh b/src/os-plugins/plugins/vmchooser/files/run-virt.sh index c4866212..e38c0f19 100644 --- a/src/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/src/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -211,6 +211,11 @@ displayname=${vm_name} xmlvirt=$(grep -o 'virtualmachine param=.*"' ${xmlfile} \ | sed -e "s/&.*;/; /g" | awk -F '"' '{print $2}') +# choose the proper virtualization/emulator plugin +[ "x${xmlvirt}" != "x" -a "x${xmlvirt}" != "xqemukvm" -a \ + "x${xmlvirt}" != "xvirtualbox" -a "x${xmlvirt}" != "xvmware" ] && \ + xmlvirt="emulator" + # make a guess from the filename extension if ${xmlvirt} is empty # (not set within the XML file) # TODO: implement possibility to submit own configuration files @@ -239,11 +244,11 @@ elif [ -z "${xmlvirt}" ]; then vbox) xmlvirt="virtualbox" ;; - img|qcow*) + qcow*) xmlvirt="qemukvm" ;; *) - xmlvirt="none" + xmlvirt="emulator" ;; esac writelog "result:\t${xmlvirt}" -- cgit v1.2.3-55-g7522