From 1125aeed09b614136ce01446b17981965bfce22a Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Sun, 11 Apr 2010 23:05:28 +0200 Subject: virtualization plugin, now with calculation of mem, run-vmgrid and run-virt use them --- os-plugins/plugins/virtualbox/files/run-virt.include | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'os-plugins/plugins/virtualbox/files/run-virt.include') diff --git a/os-plugins/plugins/virtualbox/files/run-virt.include b/os-plugins/plugins/virtualbox/files/run-virt.include index 4dc6d4fc..f846a442 100644 --- a/os-plugins/plugins/virtualbox/files/run-virt.include +++ b/os-plugins/plugins/virtualbox/files/run-virt.include @@ -190,14 +190,14 @@ else fi mem=$(expr ${totalmem} / 100 \* ${permem}) if [ "${id44}" = "1" ]; then - memhost=$(expr ${totalmem} - ${mem}) + hostmem=$(expr ${totalmem} - ${mem}) else - memhost=$(expr ${totalmem} - ${mem} - ${mem}) + hostmem=$(expr ${totalmem} - ${mem} - ${mem}) fi #permem=40 #mem=$(expr ${totalmem} * ${permem}) - if [ "${mem}" -lt "256" ] || [ "${memhost}" -lt "256" ]; then - writelog "Memory out of range: ${mem} MB (guest) / ${memhost} MB (host)!" + if [ "${mem}" -lt "256" ] || [ "${hostmem}" -lt "256" ]; then + writelog "Memory out of range: ${mem} MB (guest) / ${hostmem} MB (host)!" writelog "Min. 256 MB for host and guest!" exit 1 fi @@ -296,8 +296,8 @@ writelog "Diskimage:" writelog "Virtual Hardware:" [ ${vtflag} -eq 1 ] && writelog "\tVT enabled CPU" writelog "\tGuest RAM:\t\t${mem} MB" -# echo nur wenn memhost gesetzt -[ -n "${memhost}" ] && writelog "\tHost RAM:\t\t${memhost} MB" +# echo nur wenn hostmem gesetzt +[ -n "${hostmem}" ] && writelog "\tHost RAM:\t\t${hostmem} MB" writelog "\tMAC address:\t\t$macaddr" writelog "\tNetwork card:\t\t${vb_network_card}" writelog "\tNetwork kind:\t\t${network_kind}" -- cgit v1.2.3-55-g7522