From my virtualbox device I cannot connect to internet.

ping www.google.com works well. But when I open mozilla and try connect to internet, it is unsuccessful. In virtualbox settings in Windows I use NAT network adapter. What I am doing wrong? In ububtu I didn`t make any changes, it is a clean install.

Host OS: Windows7

Guest OS: Ubuntu 16.04

  • Try to change network adapter to Bridge. Feb 2, 2018 at 10:11
  • I already tried, it doesn`t help.
    – wair92
    Feb 2, 2018 at 10:19
  • Please add the complete output of ping. Have you tried to run wget www.google.com? What’s the output? If the problem is no more relevant, please close or delete your question.
    – Melebius
    Jun 5, 2019 at 14:06

1 Answer 1


Try creating a Network NAT in VirtualBox and then change the Network settings of your VirtualMachine (Ubuntu 16.04) to the Network NAT you crated.

If that doesn't work, try to swap again to NAT and reboot your virtual machine. Once you are in Ubuntu, press ctrl+alt+T to open a terminal and type sudo service networking restart

  • 1
    I already configured NAT interface in VirtualBox and checked the interface config in Linux which all looked good. service networking restart was all I then needed and resolved the issue for me. Mar 11, 2020 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.