Vista (running ubuntu)

Nils Kassube kassube at gmx.net
Thu Jun 12 16:46:31 UTC 2008


Derek Broughton wrote:
> I'd really like to get network bridging working - that was trivial when
> I used VMWare, so far impossible under Virtualbox.

This is how it works for me - and please note:

1. Here it doesn't really work if there is no network at the interface 
configured for the bridge (eth0) when I boot the machine.

2. Booting takes considerably longer due to the bridge.

In the following setup, replace eth0 with the appropriate interface name 
if necessary.

Get package bridge-utils:

sudo apt-get install bridge-utils

In /etc/network/interfaces remove the entry for eth0 (if it exists) and 
add an entry for the bridge like this:

auto br0
iface br0 inet dhcp
   bridge_ports eth0

Then restart networking:

sudo /etc/init.d/networking restart

Now you should have an interface br0. Next create the VirtualBox interface 
vbox0:

sudo VBoxAddif vbox0 $USER br0

And the tun device should be accessible by VirtualBox users:

sudo chown root:vboxusers /dev/net/tun

Now start VirtualBox and select the network setup for your VM. At 
the "Attached to" field select "Hostinterface" and enter "vbox0" for 
the "Interface name".

Finally start the VM and check its IP address - it should come from your 
DHCP server and it should be different from the host. Now you should be 
able to ping the VM from other machines in your network.


Nils




More information about the ubuntu-users mailing list