I followed Craft Computing’s Tutorial on installing Pi-Hole

I created an Ubuntu Server VM with 4GB of RAM, 2 Cores, and 20GB of drive space. I also installed QEMU Guest Agent to SSH into the server.

After logging into the server via SSH, I typed in the following command to install Pi-Hole:

sudo curl -sSL https://install.pi-hole.net​ | bash

I kept all the settings on their default selection.

I noted down the login password and went to the web interface provided.

To install Unbound I typed the following commands:

sudo apt update
sudo apt install unbound
sudo nano /etc/unbound/unbound.conf.d/pi-hole.conf

I then copied the configuration file from: https://docs.pi-hole.net/guides/dns/unbound/ and pasted it into the config file.

I then pressed Control+X to exit and Y to save and enter to confirm and restarted Unbound with the following command:

sudo service unbound restart

The DNS port is now 5335.

In the Pi-Hole admin interface DNS settings I set the Custom 1 Upstream DNS Server to and saved.

Pi-Hole was now set up and ready to use. Set the IP of Pi-Hole as the DNS server and that’s it.