Problems with wireless network

This is for discussing general topics about how to use VirtualBox.
Post Reply
sim085
Posts: 26
Joined: 6. Jul 2007, 13:46

Problems with wireless network

Post by sim085 »

Hello, I am using virtual box with Windows7 as hostOS and Ubuntu 10.04 as guestOS. The problem I have is this. Yesterday I was using my laptop on an unsecure wireless network. On that setup, when from the guestOS I passed the command apt-get everything worked fine and the wanted packages got downloaded without any problems. Today I am using my laptop on a secure network. In other words on my hostOS I need to give the network key in order to be able to connect to the Internet. The guestOS on the other hand is configured as NAT. However this time I cannot download any package using apt-get!! I think the problem is the network key, however I am not sure!

Does anyone know how I could solve this problem without actually changing things in the gurstOS?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problems with wireless network

Post by Perryg »

If you are using NAT on the guest it will use what-ever the host is connected with.
if you saved (did not shut down) the guest you should only need to run dhclient to refresh the connection or reboot the guest.
sim085
Posts: 26
Joined: 6. Jul 2007, 13:46

Re: Problems with wireless network

Post by sim085 »

Thanks running the command dhclient from the guestOS seems to have solved my problem. What I noticed is this; before I run the command, ifconfig does not display any connection (ex: eth0, eth1, etc). After I run the command I get the connection eth0 with the expected IP address for NAT. This had never happened to me before. In other words, in the past, whenever I install Ubuntu as guestOS I always got eth0 there and ready for NAT without me needing to run the dhclient command. Now in this installation I seem to have to run the command each time on start-up in order to have a connection to the internet (i.e. - on boot up I have to run the command to get the connection).

I do not remeber I did anything different then usual during the installation! However I would be very thankfull if anyone knows why this might have happened.

Regards,
Post Reply