0

I have to use virtual machine located at https://crypto.stanford.edu/cs155/hw_and_proj/pp1/boxes-2.3.tar.bz2. 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

outputs

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

3
  • 1
    Can you ping 8.8.8.8?
    – ponsfonze
    Dec 20, 2012 at 14:29
  • I can ping 8.8.8.8 but can't ping any website.
    – serdar
    Dec 20, 2012 at 14:54
  • Please correct the title: VMware Jun 17, 2019 at 22:47

4 Answers 4

3

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:

nameserver 8.8.8.8
nameserver 8.8.4.4

Save the file.

0

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

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

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

traceroute www.google.com

1
  • It prints out a lot of ~ symbols there is not ip adresses.
    – serdar
    Dec 20, 2012 at 15:20
0

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.

You must log in to answer this question.

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