Pi-Hole is a wrapper around dnsmasq, so you could just run that on your base OS with the same configuration files. Add gravity.sh if you want automated blocklist updating:
https://lowendbox.com/blog/host-your-own-dns-now-with-100-mo...
If you already have an available server there's no need to spin up a VM to host another OS instance just to run native software...