VMware Communities
BXL
Contributor
Contributor

Cannot connect to internet on workstation 12

I´am runnig an  ubuntu 16.04 virtual machine on workstation 12 on WIn 10.

Internet works fine on Win 10, but I cannot ping (access) on ubuntu despite  sytem find a network connection and connect to it.

The images below show my problem:

Internet connection OK.pngNo internet access.png

I`ve already ready tutorials on the internet. Most of them say to change the virtual machine network adpater, but none worked for me.

Tags (1)
0 Kudos
10 Replies
bluefirestorm
Champion
Champion

Are you using "Bridged" or "NAT" for the network adapter of the VM?

Easiest setup is to set the Ubuntu VM to use DHCP and then use either "Bridged" or "NAT".

Bridged networking will then obtain IP address and DNS just like your Windows 10 host.

NAT will share the internet connection with your Windows 10 host through a virtual switch.

If you still have trouble show the output of ifconfig of Ubuntu and ipconfig of Windows 10.

0 Kudos
BXL
Contributor
Contributor

I am using NAT adapter.

DHCP were already configured.

Beneth is shown ipconfig and is config screenshots.

ipconfig.pngifconfig.png

0 Kudos
louyo
Virtuoso
Virtuoso

Can you ping by IP? ping 8.8.8.8 (Google DNS server)

what does it show for routing information in "Connection Information"?

0 Kudos
BXL
Contributor
Contributor

Ping 8.8.8.8 returned the following;

ping 8.8.8.8.png

The connection infomation seems ok to me:

connecting information.png

0 Kudos
louyo
Virtuoso
Virtuoso

You have a DNS server problem, 192.168.152.2 isn't getting it done. The fact you can ping by IP says you can get to the Internet OK.

What do you get if you go bridged and let your router set things up?

0 Kudos
BXL
Contributor
Contributor

Set adapter connector to bridge didn`t change anything ( actually, some packages got lost when ping 8.8.8.8).

Still having DNS error.

0 Kudos
Susie201110141
VMware Employee
VMware Employee

Are you sure your DNS server's IP is the same as gateway? I think your DNS solution may  has problem.

You may run "nslookup www.vmware.com" to see whether your DNS server works or not.

0 Kudos
louyo
Virtuoso
Virtuoso

when you change to bridged, what do you see in connections?

Have you edited anything in the virtual network setup? What are the dns settings in your host? (ipconfig/all).

Well, I run bridged and use static IP but you may be able to edit your connections file and test.

My Ubuntu connections are defined in

/etc/NetworkManager/system-connections/Ethernet connection 1

due to space, I have to read it using

sudo cat /etc/NetworkManager/system-connections/Ethernet\ connection\ 1

the ipv4 entry is:

------------------------------

[ipv4]

address1=10.0.2.113/24,10.0.2.1

dns=8.8.8.8;

dns-search=8.8.8.8;

may-fail=false

method=manual

-------------------------------------

You may be able to change just the DNS entries to 8.8.8 for test purposes, but with dhcp, it will change when you boot up..

(it is not supposed to be this hard) Smiley Happy

Lou

0 Kudos
gimmely
Hot Shot
Hot Shot

Do you have firewall turned on on your guest?  If yes, try to turn it off.

0 Kudos
BXL
Contributor
Contributor

Thanks guys for your replies.

I solved the problem by simple connecting the virtual machine in a different network.

0 Kudos