diff options
Diffstat (limited to 'src/os-plugins/plugins/vmchooser/files/run-virt.sh')
-rw-r--r-- | src/os-plugins/plugins/vmchooser/files/run-virt.sh | 9 |
1 files changed, 7 insertions, 2 deletions
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}" |