mosers
/
eaas-vde-proxy
Archiviert
1
0
Fork 0

Test environment added [Close #1]

main
Simon Moser vor 3 Jahren
Ursprung 46e497d36e
Commit 87316e4154
Signiert von: mosers
GPG-Schlüssel-ID: 96B3365A234B500C

@ -0,0 +1,27 @@
#!/bin/sh
# QEMU/VDE network environment preparation script
case "$1" in
start)
echo "Starting VDE network for QEMU: "
vde_switch -daemon -mod 660
slirpvde --dhcp --daemon
qemu -m 512 -nic vde,mac='52:54:00:12:34:56' -hda alpine1.qcow2 -daemonize -vnc :1
qemu -m 512 -nic vde,mac='52:54:00:12:34:66' -hda alpine2.qcow2 -daemonize -vnc :1
# -nographic statt -daemonize -vnc :1 für Terminalinterface
;;
stop)
echo "Stopping VDE network for QEMU: "
pkill vde_switch
pkill slirpvde
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac
exit 0

@ -0,0 +1,3 @@
#!/bin/bash
vde_switch --daemon