diff options
Diffstat (limited to 'os-plugins/plugins/vmware/files/run-virt.include')
-rw-r--r-- | os-plugins/plugins/vmware/files/run-virt.include | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include index 0fb1d228..149dd730 100644 --- a/os-plugins/plugins/vmware/files/run-virt.include +++ b/os-plugins/plugins/vmware/files/run-virt.include @@ -300,9 +300,16 @@ case "$parallel" in ;; esac -# percentage of memory to use for vmwares in standard case -permem=30 -if [ "${totalmem}" -ge "1600" ]; then +# adjust memory available for vmware guests +case "$vmversion" in + 2.*) + permem=30 + ;; + 3.*) + permem=25 + ;; +esac +if [ "${totalmem}" -ge "2500" ]; then permem=40 fi # check if /tmp is on harddisk |