diff options
author | Michael Janczyk | 2010-04-08 21:12:10 +0200 |
---|---|---|
committer | Michael Janczyk | 2010-04-08 21:12:10 +0200 |
commit | 8d36684e70cb0e83133f9e671039de2c48461478 (patch) | |
tree | 58a04937e405d0a8b225d1ae616d6df08f5c6529 /os-plugins/plugins/vmgrid/XX_vmgrid.sh | |
parent | changed name of init-hook, qemukvm tun/tap config (diff) | |
download | core-8d36684e70cb0e83133f9e671039de2c48461478.tar.gz core-8d36684e70cb0e83133f9e671039de2c48461478.tar.xz core-8d36684e70cb0e83133f9e671039de2c48461478.zip |
annoying warning from demuxer removed, has to be solved otherwise
virtualization plugin refurbished
virtualbox can boot now 64 bit guests on 32 bit hosts
Diffstat (limited to 'os-plugins/plugins/vmgrid/XX_vmgrid.sh')
-rw-r--r-- | os-plugins/plugins/vmgrid/XX_vmgrid.sh | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/os-plugins/plugins/vmgrid/XX_vmgrid.sh b/os-plugins/plugins/vmgrid/XX_vmgrid.sh index d9e35dfb..1d0c76be 100644 --- a/os-plugins/plugins/vmgrid/XX_vmgrid.sh +++ b/os-plugins/plugins/vmgrid/XX_vmgrid.sh @@ -96,29 +96,9 @@ if [ -f $CONFFILE ]; then chmod 1777 ${RWSHARE} echo "vmgrid_rwmnt=${RWSHARE#/mnt}" >> ${PLUGINCONFDIR}/vmgrid.conf - # virtual virtualization plugin - testmkd ${VIRTUALIZATIONPLUGIN} - totalmemtest=$(expr $(echo ${vmgrid_memratio} \ - | awk -F ',' '{print $1" + "$2" + "$3" + "$4" + "$5" + "$6}')) - totalmem=$(expr $(grep -i "memtotal" /proc/meminfo \ - | awk '{print $2}') / 1024) - if [ ${totalmemtest} -le 100 2>/dev/null ]; then - # get hostmem - freememper=$(expr 100 - $(echo ${vmgrid_memratio} \ - | awk -F ',' '{print $1" - "$2" - "$3" - "$4}')) - freemem=$(expr ${totalmem} \* ${freememper} / 100) - echo "virt_freemem=${freemem}" \ - >> ${VIRTUALIZATIONPLUGIN}/virtualization.conf - else - # more than 100% memory assigned stupid! - # vmgrid will get this as well and exit! - # so we have theoretically 100% free - echo "virt_freemem=${totalmem}" \ - >> ${VIRTUALIZATIONPLUGIN}/virtualization.conf - fi - # finished ... [ $DEBUGLEVEL -gt 0 ] && echo "done with 'vmgrid' os-plugin ..." fi -[ $DEBUGLEVEL -gt 0 ] && echo " * configuration of 'vmgrid' os-plugin failed" +else + [ $DEBUGLEVEL -gt 0 ] && echo " * configuration of 'vmgrid' os-plugin failed" fi |