on the net I found a solution to get access from client to host network thru WLAN: (tested with ubuntu 8.04) - maybe someone find it useful.
1. install parprouted:
sudo apt-get install parprouted
2. write the following lines to /etc/rc.local
Code: Select all
sysctl net.ipv4.ip_forward=1
VBoxTunctl -b -u user # "your username"
ip link set tap0 up
ip addr add X.X.X.X/24 dev tap0 # replace X with a unused IP from Host
parprouted eth0 tap0 # replace eth0 with your WLAN-name
chmod 0666 /dev/net/tun
route add -net X.X.X.0 netmask 255.255.255.0 tap0 # replace X
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # replace eth0
4. start Virtualbox ->
5. configure network to Hostinterface ->
6. type in "tap0" for the name of the interface
7. start the virtualmachine and give it a manual IP and DNS address inside the host address-range ->
8. restart the vitualmachine
now you should have access to the hostnetwork from client
A Problem I don't understand at the moment is that sometimes the host has no access to internal IP addresses - internet and Virtualbox client works.
Can't believe that this is so tricky to get working - in VMware - it's no problem at all... Maybe this is my most missed feature of virtualbox
Bye
Ralf