Thursday, September 19, 2013

Fix Virtual Box No Internet problem with Domain Controller

I struggled for days trying to get my Windows Server 2012 VM running on Virtual Box to connect to the internet.  In the end, it turned out to be a DNS issue because I was running a DNS server on my Domain Controller.  Here's how I fixed it:

Open Command Prompt and type: ping www.google.com


What you will probably see is “could not resolve host”.  If you do, then confirm that your DNS is pointing to the wrong place by typing: ipconfig /all



Down at the bottom you will see the DNS Server(s) you are using.  If it is set to 127.0.0.1 then you need to find a “real” DNS server.

On the HOST operating system open a command prompt and type: ipconfig /all and note the DNS server.

Back on the guest VM, open up the TCP/IP properties by going to Network Sharing Center and clicking the connection.  On the Ethernet Status dialog click Properties.  On the Ethernet Properties dialog click Internet Protocol Version 4 (TCP/IPv4) and click Properties:

On the TCP/IP Properties dialog, enter the address of your HOST’s DNS server and click OK

Go back to your command prompt and you should now be able to ping www.google.com