summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/files/run-virt.include
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-02-24 20:04:24 +0100
committerDirk von Suchodoletz2009-02-24 20:04:24 +0100
commita61d27fd1226e4b9fa7e7e871691ff9b79bbd195 (patch)
treeeb376be6f1ff196b999888e35a83d2e21ef4eba9 /os-plugins/plugins/vmware/files/run-virt.include
parent * test fix for dbus/hal problems (diff)
downloadcore-a61d27fd1226e4b9fa7e7e871691ff9b79bbd195.tar.gz
core-a61d27fd1226e4b9fa7e7e871691ff9b79bbd195.tar.xz
core-a61d27fd1226e4b9fa7e7e871691ff9b79bbd195.zip
Some fixes for the new run-virt.sh system ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2636 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/files/run-virt.include')
-rw-r--r--os-plugins/plugins/vmware/files/run-virt.include6
1 files changed, 5 insertions, 1 deletions
diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include
index d384b0b2..f8312395 100644
--- a/os-plugins/plugins/vmware/files/run-virt.include
+++ b/os-plugins/plugins/vmware/files/run-virt.include
@@ -27,6 +27,9 @@ conffile="${confdir}/run-vmware.conf"
# users vmware config folder
vmhome="${HOME}/.vmware"
+# percentage of memory to use for vmwares in standard case
+permem=60
+
# serial port defined (e.g. "ttyS0" or "autodetect")
serial=$(grep -i "<serial port=\"" ${xml} | awk -F "\"" '{ print $2 }')
case "$serial" in
@@ -56,6 +59,7 @@ elif grep -qe "ramfs /tmp " /proc/mounts ; then
permem=30
fi
mem=$(expr ${totalmem} / 100 \* ${permem} / 4 \* 4)
+echo "BLa $mem, ${totalmem}, ${permem}"
# check memory range
memtest=${totalmem}-128
if [ "${mem}" -lt "128" ] || [ "${mem}" -gt "${totalmem}" ]; then
@@ -81,7 +85,7 @@ scsi="FALSE"
hddrv="ide"
# get version info
-. /etc/vmware/config
+. /etc/vmware/slxvmconfig
# VMplayer buildversion
vmbuild=$buildversion