

I have no idea why the two servers cannot connect to the internet as Virtualbox NAT Network. One should act as a server, the second one as a client, and the machine acting as a server should be connected to the Internet. I need to have them connected to each other and the Internet for testing purposes. Temporary failure resolving ‘gb.’īoth have an empty /etc/nf and the same /etc/hosts files. If I ping 8.8.8.8, I have a 100% packet loss and I am unable to install any package: $ apt-get update & apt-get upgrade The two virtual machines can ping each other with these settings, but they cannot access the Internet. I configured the Network setting of each virtual machine to use the Adapter 1 attached to 'Nat Network' testlab.

Once you are in Ubuntu, press ctrl + alt + T to open a terminal and type sudo service networking restart. If that doesn't work, try to swap again to NAT and reboot your virtual machine. I installed Ubuntu Server 16.04.3 in two Virtualbox virtual machines, and then I created a NAT network and a DHCP server with the following commands from the host machine: $ vboxmanage natnetwork add -netname testlab -network "10.10.10.0/24" -enable 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.
