X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-autoinstaller.git/blobdiff_plain/629cd652712211f0dbb6fff36365023d69889d2e..ba1c60598428c29bc247a3768627fdf39657e59f:/host/usr/sbin/invirt-install diff --git a/host/usr/sbin/invirt-install b/host/usr/sbin/invirt-install index eaa3e58..d415c97 100644 --- a/host/usr/sbin/invirt-install +++ b/host/usr/sbin/invirt-install @@ -15,16 +15,14 @@ export MIRROR="$4" export FSSIZE="$5" # in mebibytes SWAPSIZE="$6" # in mebibytes export IP="$7" +export NETMASK="$8" +export GATEWAY="$9" export ARCH=amd64 VGNAME=xenvg #LVSIZE=`lvs --noheadings --units m --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'` -if [ -z "$IP" ]; then - IP=`host $HOSTNAME.xvm.mit.edu | sed 's/.* //' | head -n 1` -fi - /sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))m -n "${NAME}_hda" $VGNAME export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')"