Frequently Asked Question

My VM cannot connect to the internet.
Last Updated 3 years ago

Test whether your problem is actually an internet connection, or DNS. From the VM, run the following commands:

# ping
# ping

Successful responses look something like this:

64 bytes from ( icmp_seq=2 ttl=53 time=25.6 ms

If the first command doesn’t work, but the second one does, your problem is DNS. Check the contents of /etc/resolv.conf. Does the line nameserver and 12 appear on separate lines? If not: go to Network–>Networks, click the relevant private network, and click Edit Subnet next to the relevant subnet. Make sure is entered in the Nameservers box on separate lines. and edit the relevant private subnet. There are more detailed instructions on the Set Up a Private Network page of the tutorial.

If you can’t ping, check that your security groups are allowing outgoing traffic.

Please Wait!

Please wait... it will take a second!