Home > software > Working bridge on startup for Virtualbox

Working bridge on startup for Virtualbox

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':

BASH:
  1. ifconfig eth0 down
  2. ifconfig eth1 down
  3.  
  4. tunctl -u namous -t tap0
  5.  
  6. brctl addbr br0
  7. brctl addif br0 eth1
  8. brctl addif br0 tap0
  9.  
  10. ifconfig tap0 0.0.0.0 promisc
  11. ifconfig eth1 0.0.0.0 promisc
  12.  
  13. dhclient br0
  14.  
  15. vboxheadless -s seville &
  16.  
  17. exit 0

Categories: software Tags:
  1. No comments yet.
  1. No trackbacks yet.