DNS Issues (Virtual Machines) - gorect/Ubuntu GitHub Wiki

Networking Errors.

I have noticed networking issues when trying to create VM's for both Ubuntu 18.04 and 20.04, where part of the install fails and you are unable to resolve dns queries. I believe that this is happening because the image is not properly configuring the /etc/resolv.conf file during installation.

Note: if you are installing either of the Desktop versions of this OS that you should do the following before starting the installation process.

Open the terminal and switch to root the run:

echo "nameserver 8.8.4.4" >> /etc/resolv.conf
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
exit

This will add dns resolvers to you image and you should be able to continue with the installation.