From ce7218bd26fb48d40a62e3227fed7d2be146310a Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Wed, 2 Dec 2009 17:54:36 +0000 Subject: numvcpus>=2 only with vmplayer 3+ git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3209 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/vmware/files/run-virt.include | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'os-plugins/plugins/vmware/files') 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.* -- cgit v1.2.3-55-g7522