I had a bit of a problem the other day.
I run VirtualBox on Linux Mint and have a copy of Windows 7 running on a virtual machine. I use it to run those very few programmes that don’t have a Linux equivalent.
For various reasons I decided to install a new copy of 7 and delete the old one.
The installation ran without a hitch and everything worked perfectly except for one thing – I couldn’t access the Internet.
I was able to browse my local network all right and to connect to and browse the other devices. However I could not access any web sites. I was able to ping external sites but that’s all.
I tried searching the Net for a solution and found loads of suggestions about changing the network configuration of VirtualBox, mostly suggesting I attach to Bridged Adaptor instead of NAT. I tried all the suggestions without success, so I had to rely on my own efforts.
The solution was simple and quite obvious.
The installation of the guest software [Windows 7] had configured the Network to default values. The IP4 was set to “Obtain an IP address automatically” and the DNS to “Obtain DNS server address automatically”. The solution is to simply manually enter the DNS server IP addresses (I used the addresses supplied by my ISP, though any DNS servers should do). The main IP address should be left as is, to obtain automatically.
The only thing that baffles me now is how I got the original guest Windows to work!