projects
/
training-lab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f3221c8
)
Minor tweaks
author
Steve McIntyre
<steve.mcintyre@arm.com>
Thu, 7 May 2020 17:23:31 +0000
(18:23 +0100)
committer
Steve McIntyre
<steve.mcintyre@arm.com>
Thu, 7 May 2020 17:23:31 +0000
(18:23 +0100)
scripts/start_runtime
patch
|
blob
|
history
diff --git
a/scripts/start_runtime
b/scripts/start_runtime
index
2feba5b
..
7808149
100755
(executable)
--- a/
scripts/start_runtime
+++ b/
scripts/start_runtime
@@
-1,6
+1,5
@@
#!/bin/sh
#!/bin/sh
-VM_IP=127.16.2.1
SSH_PORT=2222
SHARE=/vagrant
MEM=512
SSH_PORT=2222
SHARE=/vagrant
MEM=512
@@
-62,7
+61,7
@@
fi
NET="-netdev user"
NET="$NET,id=eth0"
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 \
NET="$NET -device virtio-net-device,netdev=eth0"
CMD="qemu-system-$MACH -m $MEM \
@@
-78,7
+77,7
@@
$CMD
i=0
while true; do
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
if [ ! -f $SHARE/runtime/waiting_runtime_vm ]; then
echo "ready after $i seconds"
exit 0