diff options
-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.* |