Can't access Internet from guest OS

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mgl
Posts: 14
Joined: 4. Dec 2007, 07:58

Can't access Internet from guest OS

Post by mgl »

Hello,

I'm just wondering if anyone knows how to troubleshoot my Internet connection from a guest OS. I can connect to the host OS (10.0.2.2) - for example, I have network drives mapped from the Windows guest to a samba service on my Linux host at 10.0.2.2. However, I recently discovered I can no longer access the internet from the guest...this is a new problem. I don't think I've had any problem with this before VirtualBox version 2.2.2.

My connection is via NAT.

Any suggestions would be appreciated.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Can't access Internet from guest OS

Post by Sasquatch »

First check the VirtualBox FAQ for known issues. Second, check the IP config of the Guest. Does it really have an IP address? With 2.2.0 and 2.2.2, some Linux Guests seem to fail every now and then to get an IP address from the internal DHCP server. Running dhclient will fix that. Windows Guests should not have this issue.
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.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Can't access Internet from guest OS

Post by baf »

Try these two tests
does
ping forums.virtualbox.org
work?

and
ping 78.46.147.154

if the second works but the first complains something like
"ping: cannot resolve forums.virtualbox.org"

Then its a dns issue look at /etc/resolv.conf
Oh also which linux is this?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
mgl
Posts: 14
Joined: 4. Dec 2007, 07:58

Re: Can't access Internet from guest OS

Post by mgl »

Thanks for the replies.

I did try following some of the steps in the FAQ having to do with cleaning up dkms/vboxnetflt after upgrading to 2.2.2. It didn't seem to have any effect, even after a full reboot. However, the next morning (I think after rebooting again) it seems to be working fine again. Maybe it was something wrong with the ISP?

FWIW, this is with Fedora 10, x86_64.
Post Reply