Re: Vista (running ubuntu)



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

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: if_bridge stops when running virtualbox 4.1.8
    ... I mistake bridge interface settings. ... I use only one bridge interfaceand add ethernet, ... Now I can use both VirtualBox and WI-FI HOSTAP mode. ... create tap interface and bridge interface ...
    (freebsd-net)
  • ifupdown locking up when bringing down bridge devices
    ... bringing down br0 (bridge device via bridge-utils, ... This is occuring when "brctl delbr br0" is ran from the ... it seems to be something about bringing the interface full down ... These last two entries are needed since the if-post-down.d/bridge script ...
    (Debian-User)
  • Re: Emulating multiple nics with one
    ... #ifdef DEBUG ... printf("ioctl SETNOCSUM error on interface #%d\n", ... # Bridge a group of TAP interfaces with an ethernet interface ... brctl addbr br0 ...
    (comp.os.linux.networking)
  • (no subject)
    ... bringing down br0 (bridge device via bridge-utils, ... This is occuring when "brctl delbr br0" is ran from the ... it seems to be something about bringing the interface full down ... These last two entries are needed since the if-post-down.d/bridge script ...
    (Debian-User)
  • Re: Vista (running ubuntu)
    ... so far impossible under Virtualbox. ... Booting takes considerably longer due to the bridge. ... replace eth0 with the appropriate interface name ... iface br0 inet dhcp ...
    (Ubuntu)