As most of the documentation on the subject relates to older versions of VirtualBox and other distributions of GNU/Linux, I am having a hell of a time getting this to work.
NAT networking works just fine, however I want the VM to have a different IP than the host, and have it appear to be a separate machine connected to the network.
I have created br0 (brctl addbr br0)
Bridged br0 to eth0 (brctl addif br0 eth0)
But when I start VirtualBox (running XP) with bridged networkign attached to eth0 I get the:
"Failed to open/create the internal network 'HostInterfaceNetworking-eth0' (VERR_SUPDRV_INTERFACE_NOT_SUPPORTED)."
I have also tried creating br0 (brctl addbr br0)
Creating a tap interface (tunctl -t tap1 -u void) -- [void is my username]
Bridging the two (ifconfig tap1 up && brctl addif br0 tap1)
Putting current interface in promisc mode (ifconfig wlan0 0.0.0.0 promisc) and configuring it with my current address and interface (brctl addif br0 wlan0 && ifconfig br0 `ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | cut -d' ' -f1`)
Then adding my current gateway (route add default gw `route -n | grep UG | sed s/' *'/' '/g | cut -d' ' -f2`)
But still regardless of any interface I select in the VirtualBox Networking section (eth0 wlan0 br0 or tap1) I get the same error as above.
I connect to the internet via wlan0 and use dhcp to acquire an IP, if that affects anything.
I do not want to go back to using VMWare (with which setting this up was quite easy) because the latest version of VMWare's interface is horrible, it's not open source, and the kernel modules have trouble with my kernel (2.6.30)
Does anyone have any suggestion as to what I am missing?