The problem is, as I said, I cannot ping anything outside. I cannot reach out to any website on the internet from the VM.
My host laptop is connected to my home network, I can reach everything from host laptop but nothing from guest VM.
Here is the output from ifconfig and and ping commands. I just tried getting the IP address of
www.yahoo.com using ping from host laptop, and then tried ping that IP address from VM and it worked. So, the problem is it is not able to resolve the IP address using the name. So, is it possible it is not able to reach the DNS server? If so, how to start or point to it?
$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:A9:7F:DE
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00

fea9:7fde/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6711 (6.5 KiB) TX bytes:8643 (8.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5453 errors:0 dropped:0 overruns:0 frame:0
TX packets:5453 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8603860 (8.2 MiB) TX bytes:8603860 (8.2 MiB)
$ ping
www.yahoo.com
ping: unknown host
www.yahoo.com
$ ping 98.139.183.24
PING 98.139.183.24 (98.139.183.24) 56(84) bytes of data.
64 bytes from 98.139.183.24: icmp_seq=1 ttl=53 time=22.3 ms
64 bytes from 98.139.183.24: icmp_seq=2 ttl=53 time=22.6 ms
64 bytes from 98.139.183.24: icmp_seq=3 ttl=53 time=26.4 ms
I also tried doing this, but it didn't work:
VBoxManage modifyvm "VM name" --natdnsproxy1 on
VBoxManage modifyvm "VM name" --natdnshostresolver1 on