I'm experimenting with a server running under virtualbox on my home computer. Here is the script running as /etc/rc.local that sets my bridge up and starts the virtualbox with the name 'seville':
-
ifconfig eth0 down
-
ifconfig eth1 down
-
-
tunctl -u namous -t tap0
-
-
brctl addbr br0
-
brctl addif br0 eth1
-
brctl addif br0 tap0
-
-
ifconfig tap0 0.0.0.0 promisc
-
ifconfig eth1 0.0.0.0 promisc
-
-
dhclient br0
-
-
vboxheadless -s seville &
-
-
exit 0