summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDirk2011-07-19 14:57:28 +0200
committerDirk2011-07-19 14:57:28 +0200
commit06edfae88fd8e118aff7b7f80fc2063eab867eb1 (patch)
tree9165f1cde9f1d1a9f048f2377847d27d112591ac /src
parentAvoid annoying error message ... (diff)
downloadcore-06edfae88fd8e118aff7b7f80fc2063eab867eb1.tar.gz
core-06edfae88fd8e118aff7b7f80fc2063eab867eb1.tar.xz
core-06edfae88fd8e118aff7b7f80fc2063eab867eb1.zip
Some more changes for emu/virt plugins ...
Diffstat (limited to 'src')
-rw-r--r--src/os-plugins/plugins/emufe/files/run-virt.include15
-rw-r--r--src/os-plugins/plugins/qemukvm/files/run-virt.include6
-rw-r--r--src/os-plugins/plugins/vmchooser/files/run-virt.sh8
-rwxr-xr-xsrc/os-plugins/plugins/vmchooser/files/vmchooserbin1564081 -> 1563753 bytes
4 files changed, 23 insertions, 6 deletions
diff --git a/src/os-plugins/plugins/emufe/files/run-virt.include b/src/os-plugins/plugins/emufe/files/run-virt.include
index 567bc406..6e8850c8 100644
--- a/src/os-plugins/plugins/emufe/files/run-virt.include
+++ b/src/os-plugins/plugins/emufe/files/run-virt.include
@@ -125,6 +125,21 @@ case "${emulator}" in
VIRTCMDOPTS="${VIRTCMDOPTS} -s floppy0=${diskfile}"
;;
*qemu*)
+ # disable kvm for a range of older operating systems
+ case "${vmostype}" in
+ beos*)
+ VIRTCMDOPTS="${VIRTCMDOPTS} -no-kvm -m 256"
+ ;;
+ win3*|win*3*|Win*3*)
+ VIRTCMDOPTS="${VIRTCMDOPTS} -no-kvm -m 32"
+ ;;
+ win95*|Win*95)
+ VIRTCMDOPTS="${VIRTCMDOPTS} -no-kvm -m 96"
+ ;;
+ win*)
+ VIRTCMDOPTS="${VIRTCMDOPTS} -no-kvm -m 256"
+ ;;
+ esac
[ "x${rombios}" != "x" ] && rom="-bios ${imgpath}/${rombios}"
VIRTCMDOPTS="${VIRTCMDOPTS} ${rom} -name \"${displayname}\" -snapshot ${diskfile}"
;;
diff --git a/src/os-plugins/plugins/qemukvm/files/run-virt.include b/src/os-plugins/plugins/qemukvm/files/run-virt.include
index 728801c1..64f2b3e1 100644
--- a/src/os-plugins/plugins/qemukvm/files/run-virt.include
+++ b/src/os-plugins/plugins/qemukvm/files/run-virt.include
@@ -54,7 +54,7 @@ fi
# disable kvm for a range of older operating systems
case "${vmostype}" in
- beos*|win*3*|win*9*)
+ beos*)
VIRTCMDOPTS="${VIRTCMDOPTS} -no-kvm"
if [ "${totalmem}" -ge "1000" ]; then
forcemem=512
@@ -64,12 +64,12 @@ case "${vmostype}" in
# add some OS specific options if required
emu="qemu"
;;
- win*3*)
+ win3*|win*3*|Win*3*)
VIRTCMDOPTS="${VIRTCMDOPTS} -no-kvm"
forcemem=32
emu="qemu"
;;
- win*95)
+ win95*|Win*95)
VIRTCMDOPTS="${VIRTCMDOPTS} -no-kvm"
forcemem=96
emu="qemu"
diff --git a/src/os-plugins/plugins/vmchooser/files/run-virt.sh b/src/os-plugins/plugins/vmchooser/files/run-virt.sh
index f796271d..3af50550 100644
--- a/src/os-plugins/plugins/vmchooser/files/run-virt.sh
+++ b/src/os-plugins/plugins/vmchooser/files/run-virt.sh
@@ -20,6 +20,8 @@
. /etc/opt/openslx/openslx.conf
+set -x
+
################################################################################
### Define default dirs / get configs
################################################################################
@@ -248,15 +250,15 @@ elif [ -z "${xmlvirt}" ]; then
xmlvirt="qemukvm"
;;
*)
- xmlvirt="emulator"
+ xmlvirt="emufe"
;;
esac
writelog "result:\t${xmlvirt}"
fi
# Definition of the client system
-vmostype=$(grep -io '<os param=.*"' ${xmlfile} | awk -F '"' '{ print $2 }' \
- | tr "[A-Z]" "[a-z]")
+vmostype=$(grep -io '<os param=.*"' ${xmlfile} | awk -F '"' '{ print $2 }' |\
+ tr "[A-Z]" "[a-z]")
# Definition of the networking the client system is connected to
network_kind=$(grep -io '<network param=.*"' ${xmlfile} \
diff --git a/src/os-plugins/plugins/vmchooser/files/vmchooser b/src/os-plugins/plugins/vmchooser/files/vmchooser
index 69970233..c4ec59e2 100755
--- a/src/os-plugins/plugins/vmchooser/files/vmchooser
+++ b/src/os-plugins/plugins/vmchooser/files/vmchooser
Binary files differ