diff options
author | Michael Janczyk | 2009-12-02 18:54:36 +0100 |
---|---|---|
committer | Michael Janczyk | 2009-12-02 18:54:36 +0100 |
commit | ce7218bd26fb48d40a62e3227fed7d2be146310a (patch) | |
tree | e874ffcaa5905ab22135fdbc1402c945ab583677 /os-plugins/plugins/vmware/files/run-virt.include | |
parent | updated installation of ubuntu9.10 (diff) | |
download | core-ce7218bd26fb48d40a62e3227fed7d2be146310a.tar.gz core-ce7218bd26fb48d40a62e3227fed7d2be146310a.tar.xz core-ce7218bd26fb48d40a62e3227fed7d2be146310a.zip |
numvcpus>=2 only with vmplayer 3+
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3209 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.include | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include index 641f03ec..6641d491 100644 --- a/os-plugins/plugins/vmware/files/run-virt.include +++ b/os-plugins/plugins/vmware/files/run-virt.include @@ -42,7 +42,9 @@ sharedFolder.option = \"alwaysEnabled\"" >>${conffile} esac case "$vmversion" in 2.5|3.*|6.5|7.*) - numvcpus="${cpu_cores}" + if [ "${cpu_cores}" -ge "2" 2>/dev/null]; then + numvcpus="2" + fi cap3d="TRUE" # helper var for loging output echo " # version specific stuff - ver. 2.5|3.*|6.5|7.* @@ -52,6 +54,7 @@ mks.enable3d = \"${enable3d}\"" >>${conffile} esac case "$vmversion" in 3.*|7.*) + numvcpus="${cpu_cores}" # svga_autodetect="FALSE" # if defined manual, see below echo " # version specific stuff - ver. 3.*|7.* |