Problem with internet connection on guest (ubuntu)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
haeggi
Posts: 6
Joined: 13. Jan 2014, 15:33

Problem with internet connection on guest (ubuntu)

Post by haeggi »

Hi,
I am running a 64 bit Windows 7 Computer (Lenovo X230) and using a Ubuntu 12.04 64bit with virtual box as a guest system.
I am using virtual box version 4.3.9 (newest one). Guest additions are installed.

I never had problems with this, but last Friday I was not able to access the internet anymore from my guest system. I did some google searches and found same hints but couldn't fix the problem.
After several reinstallations of Virtual Box and reboots the connection worked suddenly again.

But this morning the problem occured again and was not able to fix it the same way.

My network settings are set to NAT in virtual box (screenshot attached).
vbox_net_settings.png
vbox_net_settings.png (10.03 KiB) Viewed 11420 times
I also attached two screenshot about the settings inside the guest system.
The connection between host and guest seem to work, I can also use my shared folder to transfer files.
vbox_guest_netsettings2.png
vbox_guest_netsettings2.png (86.58 KiB) Viewed 11420 times
But I can not access the internet from within the guest system. I tryed to ping google and also to open some webpage with firefox.

I also attached a screenshot of my windows networksetting.
windows_netsettings.png
windows_netsettings.png (35.37 KiB) Viewed 11420 times
Thanks for you help
haeggi
Posts: 6
Joined: 13. Jan 2014, 15:33

Re: Problem with internet connection on guest (ubuntu)

Post by haeggi »

Update:

I could figure out now that it must be some DNS problem.
When I ping the IP adress of google or enter the IP of google in firefox (inside the guest), everythink works as expected.

Any hints how to solve that issue?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Problem with internet connection on guest (ubuntu)

Post by noteirak »

what do you get if you type in the guest :

Code: Select all

nslookup google.com
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
haeggi
Posts: 6
Joined: 13. Jan 2014, 15:33

Re: Problem with internet connection on guest (ubuntu)

Post by haeggi »

noteirak wrote:what do you get if you type in the guest :

Code: Select all

nslookup google dot com
Thanks for helping. That is what I get:

stefan@vbox:~$ nslookup google dot com
;; connection timed out; no servers could be reached

(I have to write "dot com" here, because I cant posts URLs since my account on this forum is new)


I should mentioned, that last night I was at home and everythink worked fine there.
Now I am back at work and its broken again, like yesterday.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Problem with internet connection on guest (ubuntu)

Post by noteirak »

And what is the output of this :

Code: Select all

nslookup
server
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
haeggi
Posts: 6
Joined: 13. Jan 2014, 15:33

Re: Problem with internet connection on guest (ubuntu)

Post by haeggi »

noteirak wrote:And what is the output of this :

Code: Select all

nslookup
server
stefan@vbox:~$ nslookup
> server
Default server: 78.42.43.62
Address: 78.42.43.62#53
Default server: 192.168.0.1
Address: 192.168.0.1#53
>
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Problem with internet connection on guest (ubuntu)

Post by noteirak »

What happens if you try to ping the IPs?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
haeggi
Posts: 6
Joined: 13. Jan 2014, 15:33

Re: Problem with internet connection on guest (ubuntu)

Post by haeggi »

noteirak wrote:What happens if you try to ping the IPs?
stefan@vbox:~$ nslookup
> server
Default server: 78.42.43.62
Address: 78.42.43.62#53
Default server: 192.168.0.1
Address: 192.168.0.1#53
> ^Cstefan@vbox:~$ ping 78.42.43.62
PING 78.42.43.62 (78.42.43.62) 56(84) bytes of data.
^C
--- 78.42.43.62 ping statistics ---
115 packets transmitted, 0 received, 100% packet loss, time 114663ms

stefan@vbox:~$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
^C
--- 192.168.0.1 ping statistics ---
35 packets transmitted, 0 received, 100% packet loss, time 34027ms
haeggi
Posts: 6
Joined: 13. Jan 2014, 15:33

Re: Problem with internet connection on guest (ubuntu)

Post by haeggi »

Another Information:
I also tested a old ubuntu in my VBox. (Ubuntu 10, which I used before and still had the files).
Within this Ubuntu10 vbox the internet works fine. The Vbox settings are the same for both versions.
I attached two screenshots of the network settings.

Again in short: Ubuntu 10 and 12 are running with the same settings on windows 7 host. Ubuntu 12 cant connect to the DNS server, ubuntu 10 works fine.
Attachments
connection_information_u12.png
connection_information_u12.png (50.85 KiB) Viewed 11323 times
connection_information_u10.png
connection_information_u10.png (45.52 KiB) Viewed 11323 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Problem with internet connection on guest (ubuntu)

Post by noteirak »

They are NOT running with the same configuration.
The DNS servers are not the same on both screens. What about trying the DNS servers that works in your non-working VM?
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply