Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-10-12,master
commit ac7cdd8bdae439b938156594cec6e98838126214 Author: Sven Eckelmann sven@narfation.org Date: Sat Oct 12 12:55:31 2019 +0000
doc: open-mesh/Emulation_Debug
ac7cdd8bdae439b938156594cec6e98838126214 open-mesh/Emulation_Debug.textile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/open-mesh/Emulation_Debug.textile b/open-mesh/Emulation_Debug.textile index e6f4acb..681c035 100644 --- a/open-mesh/Emulation_Debug.textile +++ b/open-mesh/Emulation_Debug.textile @@ -270,7 +270,7 @@ make all -j$(nproc || echo 1)
h2. Start of the simple environment
-The two node environment must be started inside a screen session. The hub (bridge with eth0 + 2 tap devices) has to be started first to have a simple network. A more complex network setup can be on the page [[Emulation]] +The two node environment must be started inside a screen session. The hub (bridge with 5 tap devices) has to be started first to have a simple network. A more complex network setup can be on the page [[Emulation]]
The @ETH@ in hub.sh has to be changed to the real interface which provides internet-connectivity
@@ -300,6 +300,11 @@ The @SHARED_PATH@ in run.sh has to be changed to a valid path which is used to s cat > run.sh << "EOF" #! /bin/sh
+if [ "${LINKS_XTERM}" != "screen" ]; then + echo "must be started inside a screen session" >&2 + exit 1 +fi + SHARED_PATH=/home/sven/tmp/qemu-batman/
for i in $(seq 1 5); do @@ -311,7 +316,7 @@ for i in $(seq 1 5); do -display none -no-user-config -nodefaults \ -m 512 -device virtio-balloon \ -cpu host -smp 2 -machine q35,accel=kvm,usb=off,dump-guest-core=off \ - -drive file=root.cow$i,if=virtio \ + -drive file=root.cow$i,if=virtio,cache=unsafe \ -nic tap,ifname=tap$i,script=no,model=virtio-net-pci,mac=02:ba:de:af:fe:"${twodigit_id}" \ -nic user,model=virtio-net-pci,mac=06:ba:de:af:fe:"${twodigit_id}" \ -virtfs local,path="${SHARED_PATH}",security_model=none,mount_tag=host \