Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to use virtual machine located at It is a Debian without any GUI. I run it with default configuration. I am able to make ssh from host machine to this virtual machine. Also I can ping from virtual machine to host machine but I can't ping any adress from internet. I have to connect this machine to internet. Is there any solution? Thanks.

cat /proc/version


Linux version 2.6.32-5-686 (Debian 2.6.32-41squeeze2) ( (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Mar 26 05:20:33 UTC 2012

share|improve this question
Can you ping – ponsfonze Dec 20 '12 at 14:29
I can ping but can't ping any website. – serdar Dec 20 '12 at 14:54
up vote 3 down vote accepted

I first made sure that both host and guest can ping each other. Once that's done, I configured resolv.conf using the following command:

# sudo nano /etc/resolv.conf

and added two lines:


Save the file.

share|improve this answer

Make sure the VMware client network card is set to NAT. NAT

share|improve this answer
It is set to NAT at default configuration. – serdar Dec 20 '12 at 14:52
Then it has the same access as the host. Does your host machine have internet access? – BroScience Dec 20 '12 at 19:56
Yes. Virtual machine can ping IP adresses not URLs. – serdar Dec 20 '12 at 20:21
OHHHHH, then you have a DNS issue – BroScience Dec 21 '12 at 13:46
Is there any solutions for this. I am unexperienced to Linux without any GUI and console commands. – serdar Dec 21 '12 at 16:58

Networking is running since you can ping a public ip address. Your DNS is not working correctly or is being blocked.

Verify you have a working DNS.

less > /etc/resolv.conf

Find any problems with traceroute


share|improve this answer
It prints out a lot of ~ symbols there is not ip adresses. – serdar Dec 20 '12 at 15:20

This virtual machine is configured to use Stanford's DNS servers. I edited etc/resolv.conf and changed DNS servers to GoogleDNS. Now virtual machine can connect through URL.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .