summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/vmchooser/files/run-virt.sh
diff options
context:
space:
mode:
authorDirk2011-07-07 19:46:59 +0200
committerDirk2011-07-07 19:46:59 +0200
commit415a65c67f04884d94b7f14e83fca7b07bd6622b (patch)
tree0c580962f13742f93c89792caf0d795103444ee9 /src/os-plugins/plugins/vmchooser/files/run-virt.sh
parent... (diff)
downloadcore-415a65c67f04884d94b7f14e83fca7b07bd6622b.tar.gz
core-415a65c67f04884d94b7f14e83fca7b07bd6622b.tar.xz
core-415a65c67f04884d94b7f14e83fca7b07bd6622b.zip
Extensions of the emufe plugin ...
Diffstat (limited to 'src/os-plugins/plugins/vmchooser/files/run-virt.sh')
-rw-r--r--src/os-plugins/plugins/vmchooser/files/run-virt.sh9
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}"