Config host network interface (tap1?) with WIFI laptop card

Discussions related to using VirtualBox on Linux hosts.
Post Reply
jokker
Posts: 13
Joined: 26. Sep 2007, 04:57

Config host network interface (tap1?) with WIFI laptop card

Post by jokker »

I'm trying to setup a laptop running Ubuntu Gutsy 7.10_x86 entirely up to date with a virtual guest machine XP_x86. There seems to be an issue regarding the network. I must use host interface type connection between the host and guest since I want the virtual machine on the same network as all the other machines, no subnets allowed here. The interface is type WIFI. I tried to create a tap1 virtual interface but no network connection occurs after rebooting the network on bridge0. Is there some kind of trick to get that stuff working ? (The wifi card on the linux host is eth1)
Thanks all
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Post by frank »

You have to create a bridge on the host as well and connect that TAP interface to the bridge. Please consult the user manual or have a look at http://www.virtualbox.org/wiki/User_HOWTOS
jokker
Posts: 13
Joined: 26. Sep 2007, 04:57

Post by jokker »

Yes I know that ... I use this on several boxes and it works like a charm. My only concern is that it won't work properly on this laptop with a wireless interface :roll:
davidv00
Posts: 11
Joined: 28. Dec 2007, 19:06

Post by davidv00 »

Hi there,

I been trying to do the same thing except I am creating dynamic host interface using startup and terminate scripts as described in the documentation manual of VB (page 69 - 70).

Using SUSE 10.3 with VBOSE 1.5.2.

Here are some screenshots:

1. The script entry:

Image
click here for larger image

2. The error message during a start:

Image
click here for larger image

Please help!

My host box is using wireless on eth1.

Thanks

davidv00
fredL
Posts: 1
Joined: 9. Jan 2008, 16:37

Post by fredL »

It's for debian based distro so to install parprouted, use your distro installer.
1. Install paraprouted via.
# sudo aptitude install parprouted

2. I then ran the below script to configure my connection on the host:
#/bin/bash
#wifibridge.sh
chown root:vboxusers /dev/net/tun
tunctl -t tap1 -u <vboxuser>
ip link set tap1 up
ip addr add 192.168.2.30 dev tap1
echo 1 > /proc/sys/net/ipv4/ip_forward
parprouted eth1 tap1

Note: DHCP is not supported by parprouted. So use static IPs instead on the guest, that is different from the IP of the host.
davidv00
Posts: 11
Joined: 28. Dec 2007, 19:06

Post by davidv00 »

thanks but I need to use DHCP. anyone else have any ideas?
Ingo
Volunteer
Posts: 731
Joined: 22. Aug 2007, 10:13
Location: Germany

Post by Ingo »

parprouted doesn't support DHCP, layer 2 bridging mostly doesn't support WIFI.
User Manual chapter 6.3 wrote:Network bridging is one of the simplest ways to use Host Interface Networking. [...] You will need wired (Ethernet) network hardware on the host for this as most current wireless network devices do not support bridging.
Here is a solution without a bridge, setting up proxy arp by hand. But it's hard stuff ...
http://forums.virtualbox.org/viewtopic.php?t=2217
The simplest way to a complex system is to start with a simple system.
davidv00
Posts: 11
Joined: 28. Dec 2007, 19:06

Post by davidv00 »

Oic... thanks for the information.
jokker
Posts: 13
Joined: 26. Sep 2007, 04:57

Post by jokker »

Thank you I will try this when I have a little time ahead :roll:
Post Reply