Wireless Bridged Adapter does not work

Discussions related to using VirtualBox on Windows hosts.
Post Reply
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Wireless Bridged Adapter does not work

Post by prefection9791 »

I am using a HP Compaq 8710p laptop (with XP SP3) and I am trying to bridge eth1 on the Ubuntu guest OS to the wireless nic (eth0 is already bridged to the wired nic) on the XP Host.

For some reason or another, it simply will not get an IP address when I attempt to only use the wireless nic in this fashion. No errors, just no connection. Eth0 works with no issue when connected to a wired connection.

Please advise. I can get any logs needed to help resolve this issue. Thanks.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Wireless Bridged Adapter does not work

Post by Perryg »

Did you setup a second adapter in the guest settings for the wireless connection?
Usually works better if you do.
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Re: Wireless Bridged Adapter does not work

Post by prefection9791 »

Okay, I am a bit of a Vitrualbox novice. How would I do that?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Wireless Bridged Adapter does not work

Post by Perryg »

With the guest shut down, click on settings and then go to the network area.
select adapter 2 tab at the top and setup the wireless to that one, leaving the adapter 1 for the wired connection.
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Re: Wireless Bridged Adapter does not work

Post by prefection9791 »

That's already been done.

Adapter 1 is bridged to my wired nic. Adapter 2 is bridged to my wireless nic.

Is there anything else that needs to be done?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Wireless Bridged Adapter does not work

Post by Perryg »

Now you start the guest and add the adapter.
run ifconfig -a in a terminal window to see the adapters and addresses.
run lspci to see if the network adapter is actually connected.

Here are some links on how to setup a network in Ubuntu http://www.bing.com/search?q=setup+netw ... orm=OSDSRC
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Re: Wireless Bridged Adapter does not work

Post by prefection9791 »

Okay. Here's what I did so far:

Reinstalled Ubuntu 9.10 on my VM
I added the adapters in my /etc/network/interfaces file (eth0 and eth1). All that was there by default was the "lo" interface
I did the lspci and ifconfig -a commands and both adapters were listed when I performed both commands
I also checked the /etc/udev/rules.d/70-persistent-net.rules file and both adapters were present.

Yet, I still cannot connect with eth1 (the wireless bridge). "eth0" (the wired bridge) works with no issue.

What am I missing?

I can post text outputs of these commands if necessary.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Wireless Bridged Adapter does not work

Post by Perryg »

OK I just reinstalled my 9.10 so I could verify that it works as advertised.
Here is how I did it.
  • 1. create the new guest and do not start.
    2. edit the settings of the network and add the second adapter. Since this was on my Ubuntu 10.04 host I selected the eth0 for the first adapter and wlan for the second adapter.
    3. Start and install the guest. Shutdown.
    3. Removed the DVD from the DVD drive and started the guest.
    4. Installed the guest additions, (so I could have a bigger area to look at) and reboot.
    5. Open a terminal window and run ifconfig -a
Here is the result.

Code: Select all

perry@U910-laptop:~$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:00:27:bc:a0:36  
          inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:febc:a036/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:53 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9715 (9.7 KB)  TX bytes:6169 (6.1 KB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:22:a1:13  
          inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe22:a113/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4977 (4.9 KB)  TX bytes:4423 (4.4 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

perry@U910-laptop:~$ 
As you can see they are both working and sending and receiving packets. I can selectively disconnect either and the network will continue to run. Although if you disconnect and someone else captures your IP you will need to run dhclient.
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Re: Wireless Bridged Adapter does not work

Post by prefection9791 »

OK, I was able to do that on another computer at work where Ubuntu 9.10 is the host OS with a wireless nic. Works with no issue.

However, on my XP Host laptop, the same issue remains.

EDIT: *I made a mistake here....see below.
Last edited by prefection9791 on 22. Apr 2010, 20:21, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Wireless Bridged Adapter does not work

Post by Perryg »

I don't have wireless on my Windows host so I can not check that out, but I see no reason why it would not work the same way.
VirtualBox emulates the network connection and as long as it can see that the host has the NIC or wireless adapter it should work.
I would look at the settings closely and see what the difference is. I will see if one of my boys has a windows laptop and see what they have to say.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Wireless Bridged Adapter does not work

Post by Perryg »

One of the boys had Vista as host on his laptop and it works there as well.
I am not able to reproduce your problem on my side. At this point I am at a loss as to what to tell you.
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Re: Wireless Bridged Adapter does not work

Post by prefection9791 »

Well I installed an XP guest virtual machine with the same network settings as my ubuntu virtual machine. I am not able to connect with the wireless bridged adapter. It seems like something network related on my laptop. I will investigate. Any ideas?
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Re: Wireless Bridged Adapter does not work

Post by prefection9791 »

Okay, here's what I did.

The PC at work was on the GUEST wireless network (no authentication).

The issue is when I try to connect the laptop on the employee wireless network (WPA2/Enterprise with PEAP/MSCHAP authentication).

To further isolate the issue, I took the laptop home and was able to connect to the wireless network (802.11n, WPA2) via the guest Windows OS with no issues.

So how do I connect via the wireless bridge if the employee wireless network requires the kind of authentication specified above?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Wireless Bridged Adapter does not work

Post by Perryg »

OK I see the problem now.
The guest is going to see a normal wired network since the network adapter is emulated to the hosts network adapter.
Usually it just connects and works but you are being asked to add a layer of authentication that Is not normally used. Well not for Virtual Machines so much. At least I have not.

You might try to use the paravirtualized network adapter which should just use the hosts adapter direct. Other then that you would need to post a ticket to the DEVs and see what they say bugtracker. You will need to setup an account there as it is on a different system.
It would also help if you can post the ticket number here so other can see the progress, add information, or see the final results.
prefection9791
Posts: 8
Joined: 20. Apr 2010, 23:50
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: Ubuntu 9.10

Re: Wireless Bridged Adapter does not work

Post by prefection9791 »

I posted a bug report here: http://www.virtualbox.org/ticket/6579

I will keep everyone posted.
Post Reply