First of all, I am using these things:
- Windows 7 host
- Ubuntu 14.04 guest (just set this up)
- VirtualBox 5.0.2
Where I'm at now
I am having some issues with my networking settings. Everything is at default right now (attached to NAT and, yes, "cable connected" is checked). I can successfully ping IPs and domain names to the outside world from the guest. E.g., commands like this succeed:
ping 220.127.116.11 ping google.com
et cetera, both successfully getting back packets, so I must have some kind of connection and DNS service.
However, I cannot browse the internet or things like this do not work:
curl google.com telnet google.com 80
et cetera, all fail.
Steps I've taken so far
I should note that my networking issues started when I moved onto my university campus and started using its network. Before I was on campus, all of my virtual machines (a variety of guest OSes) had internet fine and dandy. This is when my problems start, but I cannot guarantee that this is related to my issue; several of my peers use VirtualBox with the same host and guest setup as I do on campus network without issues.
I spent a lot of time yesterday trying to fix this issue. I decided to uninstall and reinstall VirtualBox and set up a brand new guest machine.
Initially, pinging the IP address worked but DNS lookup was not working, so I followed the instructions in this thread and ran this in the host:
VBoxManage modifyvm "My guest VM name" --natdnshostresolver1 on
and then DNS service started working in the guest and I could do things like ping superuser.com successfully.
(Side question: is this off by default?)
This guy (askubuntu forums) had a similar issue as I did (his title: "I can Ping, Dig, but I can't browse", and he is using a bridged adapter). The answerer suggests using WireShark (on host) to figure out what is blocking and that it might be a firewall thingy. The dude ultimately fixed his problem but I don't think my problem is similar enough to his for this to work out:
*Thanks for everyone's help, the problem was the avast! firewall, I solved it activating the ICS mode on it's firewall. *
Tried disabling my Windows firewall, but that was really a desperate act and didn't work. Also I have no idea what I would connect ICS to or if this is at all related to the issue. I know almost nothing about networking (except what I learned so far trying to solve this problem). Also, I'm not actually sure the title of my question is correct.
So how do I fix this? All help appreciated, thanks.
I should note that campus network requires WPA-2 Enterprise username/password authentication. Switching to bridged mode (as suggested by Frank in his comment below) allowed me to authenticate from within the guest, no problems. Now, when creating a new guest machine, the Ubuntu install likes to be connected to the internet (but I can't authenticate during install) so I'd still like to find a way to NAT if possible (I still want to leave the question open, but maybe it's more appropriate for me to open a new one for this issue? Not sure, sorry new here)