From 19ec30d3e2e52d87ddde96c8ee9b99224aaa8586 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Sun, 22 Aug 2010 23:03:48 +0200 Subject: changed to 50% ram for vbox and vmware --- os-plugins/plugins/vmchooser/files/run-virt.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh') diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index a644ea5b..23f026c7 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -283,10 +283,14 @@ VM_ID="00" cpu_cores=${cpu_cores:-"1"} # total amount of memory defined in stage 3 -permem=60 +permem=50 # get a result which can be divided through 4 mem=$(expr ${totalmem} / 100 \* ${permem} / 4 \* 4) -[ -n "${mainvirtmem}" ] && forcemem=$(expr ${mainvirtmem} / 4 \* 4) +if [ -n "${mainvirtmem}" ]; then + forcemem=$(expr ${mainvirtmem} / 4 \* 4) + mem=${forcemem} +fi +hostmem=$(expr ${totalmem} - ${mem}) # configuring ethernet mac address: first 3 bytes are fixed (00:50:56) # 4th byte is the VM-ID (0D) -- cgit v1.2.3-55-g7522