#!/bin/sh
-VM_IP=127.16.2.1
SSH_PORT=2222
SHARE=/vagrant
MEM=512
NET="-netdev user"
NET="$NET,id=eth0"
-NET="$NET,hostfwd=tcp:${VM_IP}:${SSH_PORT}-10.0.2.15:22"
+NET="$NET,hostfwd=tcp:127.0.0.1:${SSH_PORT}-10.0.2.15:22"
NET="$NET -device virtio-net-device,netdev=eth0"
CMD="qemu-system-$MACH -m $MEM \
i=0
while true; do
- echo "Waiting for VM to come ready ($i seconds)"
+ echo "Waiting for qemu VM to come ready ($i seconds)"
if [ ! -f $SHARE/runtime/waiting_runtime_vm ]; then
echo "ready after $i seconds"
exit 0