ElementaryOS - No Internet Connection

This is for discussing general topics about how to use VirtualBox.
Post Reply
En-TACT
Posts: 6
Joined: 5. Mar 2018, 23:42

ElementaryOS - No Internet Connection

Post by En-TACT »

I'm running VirtualBox 5.2.8, successfully installed CentOS 7 and ElementaryOS 4.1. I have internet connection for CentOS, however, not for ElemetaryOS. Network adapter is set to NAT for both virtuals. Is there additional setup required for ElementaryOS?
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: ElementaryOS - No Internet Connection

Post by BillG »

No, that should just work. It does for me. What do you see if you click on the network icon?
Elementary.PNG
Bill
En-TACT
Posts: 6
Joined: 5. Mar 2018, 23:42

Re: ElementaryOS - No Internet Connection

Post by En-TACT »

Almost identical to yours. I'm able to get updates, but cannot use the browser to visit a site (eg. amazon.com), and get a "we can't connect.." error.
Attachments
Capture1.PNG
Capture1.PNG (54.46 KiB) Viewed 2733 times
Capture.PNG
Capture.PNG (36.77 KiB) Viewed 2733 times
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: ElementaryOS - No Internet Connection

Post by BillG »

If you get an IP and can download updates, Internet access is working as it should. If it is a just the browser, that is an Elementary OS problem, not a VirtualBox problem.

Your screenshot does not look like the Elementary Epiphany browser. Where did it come from?
Bill
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: ElementaryOS - No Internet Connection

Post by socratis »

BillG wrote:Where did it come from?
Mozilla. It says so on the title-bar ;)

@En-TACT
Try the following commands from a Terminal on your guest. I've included sample output that you should be focusing on:
$ ifconfig
enp0s3    Link encap:Ethernet  HWaddr 08:00:27:40:51:1a  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0

$ route -n
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG    100    0        0 enp0s3

$ ping <DefaultGateway>    <-- tests your connectivity
$ ping 8.8.8.8             <-- tests outgoing connectivity
$ ping google.com          <-- tests name resolution
If you can ping your "gateway", if you can ping "8.8.8.8", if you can ping "google.com", VirtualBox is working as it should. You should look elsewhere for your browser connectivity. Look in your host for firewalls, proxies, antivirus filters, web-cleaning applications, redirectors, etc.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
En-TACT
Posts: 6
Joined: 5. Mar 2018, 23:42

Re: ElementaryOS - No Internet Connection

Post by En-TACT »

Thanks for the replies..

ElementaryOS has an IP, and I'm able to ping my gateway, 8.8.8.8, google.com. My host machine is running Avast. Disabled it, same issue. I encountered the issue with Epiphany browser, so I downloaded FireFox thinking it was that browser. But I'm seeing it as well in Firefox.
Attachments
Capture3 copy.jpg
Capture3 copy.jpg (92.13 KiB) Viewed 2711 times
Capture2.PNG
Capture2.PNG (26.19 KiB) Viewed 2711 times
Capture1 copy.jpg
Capture1 copy.jpg (92.8 KiB) Viewed 2711 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: ElementaryOS - No Internet Connection

Post by socratis »

En-TACT wrote:ElementaryOS has an IP, and I'm able to ping my gateway, 8.8.8.8, google.com.
Then it's not a VirtualBox problem. You got to start searching elsewhere. I already gave you some ideas, you shouldn't expect me to pinpoint the culprit remotely...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply