at http://www.virtualbox.org/wiki/Linux_Downloads
and install it with "gdebi" command.
For example
wget http://download.virtualbox.org/virtualbox/3.0.6/virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb
mv virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb?e=1253006096&h=261692f9fb58b931914cb1dae9141b82 virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb
sudo gdebi virtualbox-3.0_3.0.6-52128_Ubuntu_jaunty_i386.deb
Restart Ubuntu.
Configure a bridge interface for local machine.
========
root@alexey:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface br0 inet static
address 192.168.0.23
netmask 255.255.255.0
gateway 192.168.0.254
auto br0
========
The constants values for me:
NEW_INT_NAME = winXP
USER = alexey
Comands:
VBoxTunctl -u USER -t NEW_INT_NAME
apt-get install bridge-utils
brctl addbr br0
brctl addif br0 NEW_INT_NAME
4 comments:
:~$ cat 4vb.sh
#!/bin/sh
sudo tunctl -t tap1 -u sergey
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif vnet0 eth0
sudo ifconfig vnet0 192.168.0.5 up
sudo brctl addif vnet0 tap1
sudo ifconfig tap1 up
sudo route add default gw 192.168.0.254
sudo chmod 0666 /dev/net/tun
#!/bin/sh
sudo brctl addbr br0
#sudo tunctl -t tap1 -u alexey
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo ifconfig br0 192.168.0.23 up
sudo brctl addif br0 vboxnet0
sudo ifconfig vboxnet0 up
sudo route add default gw 192.168.0.254
sudo chmod 0666 /dev/net/tun
alexey@alexey:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
iface br0 inet static
address 192.168.0.23
netmask 255.255.255.0
gateway 192.168.0.254
auto br0
$ cat bridge-conf.sh
#!/bin/sh
sudo brctl addbr br0
#sudo tunctl -t tap1 -u alexey
sudo ifconfig eth0 0.0.0.0 promisc
sudo brctl addif br0 eth0
sudo ifconfig br0 192.168.0.23 up
sudo brctl addif br0 vboxnet0
sudo ifconfig vboxnet0 up
sudo route add default gw 192.168.0.254
Post a Comment