the right setup hopefully
[infrastructure.git] / scripts / create-vm.sh
index 669d3c4..f4e18d8 100755 (executable)
@@ -49,11 +49,12 @@ cd $BUILD
 git pull
 cd -
 
-command="$BUILD/vtest-init-vserver.sh -p $PERSO -f $DISTRO $HOSTNAME none -- --netdev eth0 --interface $ip --hostname $fqdn"
+# single_ip needs to be turned off, vtest-init-vserver now takes care of that
+command="$BUILD/vtest-init-vserver.sh -p $PERSO -f $DISTRO $HOSTNAME none -- --interface nodev:$ip --hostname $fqdn"
 
 if [ -n "$INTERACTIVE" ] ; then
-    echo "Run $command OK ? "
-    read _ ; case $_ in [nN]*) exit 1 ;; esac
+    echo -n "Run $command OK ? "
+    read answer ; case $answer in [nN]*) exit 1 ;; esac
 fi
 
 $command