Unable to Connect to Internet on Virtual Machine

Follow given below points:

  1. Host machine has windows 8.

  2. VM machine has windows server 2012.

  3. Open network connection.

  4. Go to properties of ethernet0.

  5. Add alternate DNS server (8.8.8.8).

  6. Open the DNS server.

  7. Go to properties.

  8. Move to forwarders tab.

  9. Click on edit and add 8.8.8.8 and 4.2.2.2.

  10. Go to VM settings.

  11. Choose network adapters, select custom on right and choose VMNet8(NAT).

  12. Go to VM Edit -> Virtual network editor.

  13. Select VMNet8, click on NAT settings at bottom.

  14. Just click ok, ok and close the windows.

  15. Go to the network connections, disable and enable the ethernet connection.