test virtually ("in the cloud", woooshhh....) using
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 27 Jul 2009 21:55:40 +0000 (21:55 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 27 Jul 2009 21:55:40 +0000 (21:55 +0000)
vde2 as virtual network

bin/kvm-vde.sh [new file with mode: 0755]

diff --git a/bin/kvm-vde.sh b/bin/kvm-vde.sh
new file mode 100755 (executable)
index 0000000..4615e10
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh -x
+
+if ! grep tap0 /etc/network/interfaces ; then
+
+sudo apt-get install vde2
+
+cat >> /etc/network/interfaces << __add_tap0__
+
+iface tap0 inet static
+  address 172.16.10.1
+  netmask 255.255.255.0
+  vde2-switch -
+
+__add_tap0__
+
+sudo ifup tap0
+
+fi
+
+vdeq kvm -m 512 -net nic,vlan=1,macaddr=52:54:00:12:01:00 \
+       -net vde,vlan=1,sock=/var/run/vde2/tap0.ctl \
+       -boot n
+
+