From 6dafa67fd981ec448f46f3809cafb55d9c0bbaef Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 1 Mar 2010 10:04:12 +0100 Subject: Some corrections in vmware plugin ... completing the shift to udhcpd and Linux supported NAT for better handling of incoming connections. --- os-plugins/plugins/vmware/files/run-virt.include | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'os-plugins/plugins/vmware/files/run-virt.include') 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 -- cgit v1.2.3-55-g7522