guessing distro from /etc/debian_version on a sid box..
[build.git] / lbuild-initvm.sh
index 15a8efe..d0533b3 100755 (executable)
@@ -505,7 +505,8 @@ EOF
 
 function write_guest_interfaces_test () {
     cat <<EOF
-iface $VIF_GUEST
+auto $VIF_GUEST
+iface $VIF_GUEST inet static
 address $GUEST_IP
 netmask $NETMASK
 gateway $GATEWAY
@@ -815,10 +816,10 @@ function wait_for_ssh () {
   
     echo network in guest is up, waiting for ssh...
 
-    #wait max 5 min for sshd to start 
+    #wait max 2 min for sshd to start 
     ssh_up=""
-    stop_time=$(($(date +%s) + 300))
     current_time=$(date +%s)
+    stop_time=$(($current_time + 120))
     
     counter=1
     while [ "$current_time" -lt "$stop_time" ] ; do