Edit bodhi.zazen : With the most recent version of Virtualbox, 2.1.0, this entire thread is out dated.
It may take a while for the Ubuntu repo (OSE) edition to catch up.
With VirtualBox 2.1.0 you simply select host networking and select your network card (eth0 , wlan0, etc) from the pull down list.
No need to manually bridge your network card, no need for a tap, although you can use these devices if you wish.
See the VirtualBox users Guide for details.
http://download.virtualbox.org/virtu...UserManual.pdf
=====================
I started messing around with this stuff (Virtualbox.org) a couple of weeks ago just like everyone else, frantically searching for how to uninstall it (http://www.virtualbox.org/wiki/User_FAQ) when it broke my laptop
But the last several days, off and on, I have had it running and wanted to get out of the NAT mode of operation. I looked hard at this docBut for me, there were a couple of commands missing, as I followed this doc to a tee! (Great doc, you should start there!) So when I finally saw my virtual w2k machine boot and get an ip from my local dhcp server, I thought, I HAVE to put all of this down here in the forum. So here are the commands ripped right out of my HISTORY.HTML Code:https://help.ubuntu.com/community/VirtualBox#head-ac88c03223e773c78dbb46b4b13c109de1143a03
Some things to make this easier to read. My eth0 on my host is 192.168.0.45. My tap0 is going to get 192.168.0.94 (totally arbitrary.. ping it first, just to make sure it isn't in use). The "user" in the first command is the user you login with.
Those first 7 commands are from the help.ubuntu.com page I listed above (bottom of that page.. long page.. but good!). The rest of the commands are actually in the man page for 'tunctl' (man tunctl at a prompt). I just stumbled on them because the first 7 commands alone were NOT doing it for me (Dapper).Code:sudo tunctl -t tap0 -u user sudo chmod 666 /dev/net/tun sudo /usr/sbin/brctl addbr br0 sudo /sbin/ifconfig eth0 0.0.0.0 promisc sudo /usr/sbin/brctl addif br0 eth0 sudo /sbin/dhclient br0 sudo /usr/sbin/brctl addif br0 tap0 sudo ifconfig tap0 192.168.0.94 up sudo bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp' sudo route add -host 192.168.0.45 dev tap0 sudo arp -Ds 192.168.0.45 eth0 pub
Add tap0 into the Interface name under
Virtual machine/Network Tab/Adapter 0
Save and start machine.
And on a personal note... I am an old Novell guy (some say that is like being a Jedi these days).. then an old Microsoft guy (have to pay the bills), then an old Cisco guy.. but the last couple of years have been RH, SuSE.. then I found Debian, and now this. Been running it as the only OS in the house for about 18 months... THAT is the real reason I wrote this.. I have to give something back to this incredible community!!
Thanks!!
Bookmarks