My hair is in fire trying to make Internet connection work in guest OS.
I have Ubuntu 12.10 machine with VirtualBox 4.1.18 installed from Ubuntu Software Center
I set PC-BSD and FreeBSD to work as GuestOS
Now both GuestOS have no internet connection. I have tried different methods like:
sudo apt-get install dnsmasq
and changed the /etc/dnsmasq.d/network-manager
config to add except-interface=lo
which blocked all of my internet connections.
I also added dns-nameservers 8.8.8.8 8.8.4.4
to /etc/network/interfaces
and restart the network-manager
.
Finally I did VBoxManage modifyvm "PC-BSD" --natdnshostresolver1 on
and VBoxManage modifyvm "PC-BSD" --natdnshostresolver1 on
but to no avail.
I have already tried NAT
and different options in Bridged
too
I still don't have internet connection in GuestOS, is there anyway I can fix this ? As far as I think the problem is in Ubuntu 12.10 for not sharing the internet, but I don't know how to fix this.