ubuntu10 guest OS not able to connect to wireless network
-
- Posts: 5
- Joined: 23. May 2010, 23:21
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: ubuntu
ubuntu10 guest OS not able to connect to wireless network
hey all
i'm having a problem connecting to my wireless network from my guest OS which is Ubuntu 10. My host OS is Windows Vista.
I've read numerous of forum posts, etc.. but i still can't get it to work despite following the most common guidelines.
GUEST :
*i enabled two network adapters (devices > network adapters): 1 Nat, 1 Bridged attached to my wireless Broadcom 802.11g adapter
*when i ifconfig -a , i get 3 results : eth0, eth1, lo
*currently i've unchecked the 'cable connected' in my Nat settings to make sure i'm not using the Nat when trying to connect.
HOST:
*in my network connections, i have 2 networks: my wireless, and the virtualbox host only (with this one, i already right clicked and checked 'virtualbox bridged networking driver')
i even added the guest MAC address to my routers allowed devices..
as a virtualbox novice, i'm not really sure what to do next to get it to connect to my wireless through the bridged adapter, so i use the guest OS as a server, etc..
thanx in advance!
i'm having a problem connecting to my wireless network from my guest OS which is Ubuntu 10. My host OS is Windows Vista.
I've read numerous of forum posts, etc.. but i still can't get it to work despite following the most common guidelines.
GUEST :
*i enabled two network adapters (devices > network adapters): 1 Nat, 1 Bridged attached to my wireless Broadcom 802.11g adapter
*when i ifconfig -a , i get 3 results : eth0, eth1, lo
*currently i've unchecked the 'cable connected' in my Nat settings to make sure i'm not using the Nat when trying to connect.
HOST:
*in my network connections, i have 2 networks: my wireless, and the virtualbox host only (with this one, i already right clicked and checked 'virtualbox bridged networking driver')
i even added the guest MAC address to my routers allowed devices..
as a virtualbox novice, i'm not really sure what to do next to get it to connect to my wireless through the bridged adapter, so i use the guest OS as a server, etc..
thanx in advance!
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: ubuntu10 guest OS not able to connect to wireless network
You need two things: a valid connection with your wireless router/access point with the Host system; and a valid IP address inside the Guest. If you have not configured the eth1 adapter (which should be your bridged one), then you need to do that. A simple 'sudo dhclient eth1' from a terminal should do the trick, if you don't see an IP address on the interface with 'ifconfig -a'.
Once you have a proper bridged connection with the Guest, you can set a static address on that interface so it won't change. Make sure it's outside the DHCP scope of your router, so you won't get IP conflicts.
Once you have a proper bridged connection with the Guest, you can set a static address on that interface so it won't change. Make sure it's outside the DHCP scope of your router, so you won't get IP conflicts.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 5
- Joined: 23. May 2010, 23:21
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: ubuntu
Re: ubuntu10 guest OS not able to connect to wireless network
Well, i'm not sure what you mean with 'a valid connection', but accessing the internet, etc.. with my wireless connection is no prob with my host OS using the broadcom adapter.
are there other router configurations i should take care of maybe ?
when i ifconfig -a i get this under eth1
so there's no ipaddress..only a mac ..?
when doing sudo dhclient eth1, i get the following results
thanx!
are there other router configurations i should take care of maybe ?
when i ifconfig -a i get this under eth1
Code: Select all
Link encap:Ethernet HWaddr 08:00:27:60:47:10
inet6 addr: fe80::a00:27ff:fe60:4710/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:517 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:48830 (48.8 KB) TX bytes:888 (888.0 B)
Interrupt:9 Base address:0xd240
when doing sudo dhclient eth1, i get the following results
Code: Select all
Listening on LPF/eth1/08:00:27:60:47:10
Sending on LPF/eth1/08:00:27:60:47:10
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: ubuntu10 guest OS not able to connect to wireless network
Could you post your VM configuration here please? I'll see tomorrow (or someone else will before me) what is wrong here. The router shouldn't need any configuration at all, not even the VM MAC address in it's accept list.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 3
- Joined: 25. May 2010, 06:49
- Primary OS: MS Windows 7
- VBox Version: PUEL
- Guest OSses: Ubuntu 104
Re: ubuntu10 guest OS not able to connect to wireless network
I am also experiencing the same problem.
Host OS: Windows 7 pro 64-bit
Guest OS: Ubuntu 104
Both ifconfig -a and sudo dhclient eth1 have the same results as the above post.
Host OS: Windows 7 pro 64-bit
Guest OS: Ubuntu 104
Both ifconfig -a and sudo dhclient eth1 have the same results as the above post.
-
- Volunteer
- Posts: 138
- Joined: 11. Jan 2008, 17:03
- Primary OS: MS Windows Vista
- VBox Version: PUEL
- Guest OSses: Windows 2000, Windows XP, Ubuntu, FreeBSD
Re: ubuntu10 guest OS not able to connect to wireless network
You will want to check the properties of your wireless card on the host and make sure that the 'Virtualbox Bridged Network Driver" is bound.
If for some reason it isn't you are bound to have issues.
If for some reason it isn't you are bound to have issues.
-
- Posts: 5
- Joined: 23. May 2010, 23:21
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: ubuntu
Re: ubuntu10 guest OS not able to connect to wireless network
the 'VirtualBox Bridged Networking Driver' is checked in the list of network properties of my wireless adapter.. if that's what you mean ?
i've put a screenshot of my settings online here http://dl.dropbox.com/u/2187895/screen-virtualbox.jpg
i've put a screenshot of my settings online here http://dl.dropbox.com/u/2187895/screen-virtualbox.jpg
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: ubuntu10 guest OS not able to connect to wireless network
Ok, then the Guest should be able to get a DHCP offer on eth1 from the Linux Guest, if the Host is configured with DHCP too. What happens if you set a static address on it, in the same range as the Host? For example, if the Host has 192.168.1.100, use these commands and ping the host and router from the Guest:
If you want to go even further, put 'nameserver 192.168.1.1' in /etc/resolv.conf for DNS server.
This is all if the wifi connection is actually working from the Guest, but somehow the router doesn't respond to DHCP calls.
Code: Select all
sudo ifconfig eth1 192.168.1.90 255.255.255.0
sudo route add default gw 192.168.1.1
This is all if the wifi connection is actually working from the Guest, but somehow the router doesn't respond to DHCP calls.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 5
- Joined: 23. May 2010, 23:21
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: ubuntu
Re: ubuntu10 guest OS not able to connect to wireless network
Sasquatch wrote:Ok, then the Guest should be able to get a DHCP offer on eth1 from the Linux Guest, if the Host is configured with DHCP too. What happens if you set a static address on it, in the same range as the Host? For example, if the Host has 192.168.1.100, use these commands and ping the host and router from the Guest:If you want to go even further, put 'nameserver 192.168.1.1' in /etc/resolv.conf for DNS server.Code: Select all
sudo ifconfig eth1 192.168.1.90 255.255.255.0 sudo route add default gw 192.168.1.1
This is all if the wifi connection is actually working from the Guest, but somehow the router doesn't respond to DHCP calls.
thanx! this worked! i'm connected to the wireless network and i can access my guest server from my host now
![Very Happy :D](./images/smilies/icon_biggrin.gif)
-
- Posts: 3
- Joined: 25. May 2010, 06:49
- Primary OS: MS Windows 7
- VBox Version: PUEL
- Guest OSses: Ubuntu 104
Re: ubuntu10 guest OS not able to connect to wireless network
Thanks. After followed all your suggestions and checked the "Cable connected" at "Adapter 2". My guess OS (Ubuntu104) can now get connected through wireless NIC.
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: ubuntu10 guest OS not able to connect to wireless network
I can assume you removed the ICS setting you posted above?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 5
- Joined: 23. May 2010, 23:21
- Primary OS: MS Windows Vista
- VBox Version: OSE other
- Guest OSses: ubuntu
Re: ubuntu10 guest OS not able to connect to wireless network
yes, i removed the ics settings.
strangely enough, everything worked untill today. after booting up the vm it doesn't connect anymore.
when i ifconfig -a, i notice that the ipaddress isn't set anymore. so when i set the ipaddress again and the gateway, it workst again.
do i need to repeat the previous commands everytime ? or can i prevent the machine from losing it's ipaddress.
in my router settings there's also the option to bind an ipaddress to a mac address, is this what i need to do ?
thanx once again.
strangely enough, everything worked untill today. after booting up the vm it doesn't connect anymore.
when i ifconfig -a, i notice that the ipaddress isn't set anymore. so when i set the ipaddress again and the gateway, it workst again.
do i need to repeat the previous commands everytime ? or can i prevent the machine from losing it's ipaddress.
in my router settings there's also the option to bind an ipaddress to a mac address, is this what i need to do ?
thanx once again.