diff options
author | Michael Janczyk | 2010-04-11 23:05:28 +0200 |
---|---|---|
committer | Michael Janczyk | 2010-04-11 23:05:28 +0200 |
commit | 1125aeed09b614136ce01446b17981965bfce22a (patch) | |
tree | 7c71645507f360d64a60c36d72625e9018686877 /os-plugins/plugins/virtualbox/files/run-virt.include | |
parent | qemu network scripts and sudoers, should work now (diff) | |
download | core-1125aeed09b614136ce01446b17981965bfce22a.tar.gz core-1125aeed09b614136ce01446b17981965bfce22a.tar.xz core-1125aeed09b614136ce01446b17981965bfce22a.zip |
virtualization plugin, now with calculation of mem, run-vmgrid and run-virt use them
Diffstat (limited to 'os-plugins/plugins/virtualbox/files/run-virt.include')
-rw-r--r-- | os-plugins/plugins/virtualbox/files/run-virt.include | 12 |
1 files changed, 6 insertions, 6 deletions
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}" |