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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>