15 February 2009

Instaling Virtual Box and Seting more Tap interface in Ubuntu

Installing VirtualBox OSE on Ubuntu 7.10

#sudo apt-get update
#sudo apt-get install virtualbox-ose virtualbox-ose-source

Install VirtualBox OSE kernel module:

sudo apt-get install module-assistant
sudo m-a prepare
sudo m-a a-i virtualbox-ose
sudo modprobe vboxdrv

Automatically load the kernel module:

sudo gedit /etc/modules

Then add:

vboxdrv

taro nama User “vboxusers” group:

sudo adduser [your username] vboxusers

To run VirtualBox OSE, you can click Applications → System Tools → InnoTek VirtualBox menu item.

if u get error message ufter load iso Operation System like :

VBox status code: -1909 VERR_VM_DRIVER_NOT_ACCESSIBLE

fix with this command

sudo chmod 666 /dev/vboxdrv


Configuration Sub interface ini Ubuntu

At first let’s install the needed software:

$ sudo apt-get install bridge-utils uml-utilities

The virtual network interface is configured with the package uml-utilities. uml stands for User Mode Linux, so understandably the package is preconfigured for use with User Mode Linux. In order to work correctly with VirtualBox, in /etc/network/if-pre-up.d/uml-utilities replace

chown root:uml-net /dev/net/tun

with

chown root:vboxusers /dev/net/tun

auto lo
iface lo inet loopback

auto tap0
iface tap0 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap1
iface tap1 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap2
iface tap2 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap3
iface tap3 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap4
iface tap4 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap5
iface tap5 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap6
iface tap6 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap7
iface tap7 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap8
iface tap8 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap9
iface tap9 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap10
iface tap10 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto eth0
iface eth0 inet static
address 10.8.8.237
netmask 255.255.255.0
gateway 10.8.8.1

###########pakai yang ini untuk bridge 1 interface ##########
#auto br0
#iface br0 inet static
#address 10.8.8.234
#netmask 255.255.255.0
#bridge_ports eth0 tap0

#####pakai configuration yang ini untuk bridge banyak interface
auto br0
iface br0 inet dhcp
bridge_ports eth0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7 tap8 tap9 tap10
bridge_maxwait 0


Sumber Cerita : http://feryjunaedi.wordpress.com/

15 February 2009

Instaling Virtual Box and Seting more Tap interface in Ubuntu

Installing VirtualBox OSE on Ubuntu 7.10

#sudo apt-get update
#sudo apt-get install virtualbox-ose virtualbox-ose-source

Install VirtualBox OSE kernel module:

sudo apt-get install module-assistant
sudo m-a prepare
sudo m-a a-i virtualbox-ose
sudo modprobe vboxdrv

Automatically load the kernel module:

sudo gedit /etc/modules

Then add:

vboxdrv

taro nama User “vboxusers” group:

sudo adduser [your username] vboxusers

To run VirtualBox OSE, you can click Applications → System Tools → InnoTek VirtualBox menu item.

if u get error message ufter load iso Operation System like :

VBox status code: -1909 VERR_VM_DRIVER_NOT_ACCESSIBLE

fix with this command

sudo chmod 666 /dev/vboxdrv


Configuration Sub interface ini Ubuntu

At first let’s install the needed software:

$ sudo apt-get install bridge-utils uml-utilities

The virtual network interface is configured with the package uml-utilities. uml stands for User Mode Linux, so understandably the package is preconfigured for use with User Mode Linux. In order to work correctly with VirtualBox, in /etc/network/if-pre-up.d/uml-utilities replace

chown root:uml-net /dev/net/tun

with

chown root:vboxusers /dev/net/tun

auto lo
iface lo inet loopback

auto tap0
iface tap0 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap1
iface tap1 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap2
iface tap2 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap3
iface tap3 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap4
iface tap4 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap5
iface tap5 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap6
iface tap6 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap7
iface tap7 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap8
iface tap8 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap9
iface tap9 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto tap10
iface tap10 inet manual
tunctl_user ts
uml_proxy_arp 10.8.8.237
uml_proxy_ether eth0

auto eth0
iface eth0 inet static
address 10.8.8.237
netmask 255.255.255.0
gateway 10.8.8.1

###########pakai yang ini untuk bridge 1 interface ##########
#auto br0
#iface br0 inet static
#address 10.8.8.234
#netmask 255.255.255.0
#bridge_ports eth0 tap0

#####pakai configuration yang ini untuk bridge banyak interface
auto br0
iface br0 inet dhcp
bridge_ports eth0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7 tap8 tap9 tap10
bridge_maxwait 0


Sumber Cerita : http://feryjunaedi.wordpress.com/