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
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