VirtualBox networking on the console

Static networking (aka bridging) on Ubuntu 6.06 LTS

  1. Install bridge-utils
    sudo apt-get install bridge-utils
  2. Edit /etc/network/interfaces:
    auto br0
    iface br0 inet dhcp
    bridge_ports eth0
  3. Restart networking
    /etc/init.d/networking restart
  4. Create a new vbox networking interface. Replace “username” with the name of the user starting the virtual machine, and vbox0 with vbox1, vbox2, etc. if creating several interfaces:
    sudo VBoxAddIf vbox0 username br0
  5. Add the virtual networking device to the virtual machine:
    VBoxManage modifyvm "vm name" -hostifdev1 vbox0
  6. Change permissions of the following device:
    crw-rw---- 1 root vboxusers 10, 200 2007-10-18 18:27 /dev/net/tun

Einen Kommentar schreiben