Skip to main content

Pi-hole on container in Proxmox

Login into Proxmox

Download Debian distro template for containers. For some reason it might be cancelled or disrupted. As we now, which one template is expecting to find, let's download that manually. Navigate to containers' templates storage, find suitable and hit [Download] button

Download task itself

Template downloaded

Scripts location:

https://community-scripts.org/scripts/pihole?id=pihole

Login into Proxmox,

curl https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/pihole.sh

Paste and execute, this will download a script and execute it on hypervisor:

Let's see what us inside of this script

and invoke it's from the shell:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/pihole.sh)"

First screen is regarding telemetry data, do you choice using [Tab], [Space], [Enter]:

Use 'Default Install'

Begin, this will look for Debian Linux distro (and if necessary download it:it):

New taskScript will bedownload appearedcontainer and do configuration of container

Now, when container is ready, Proxmox's script will invoke Pi-hole script (which is actual application installer)

Final question is about 'Unbound' service

Check in the taskbrowser journalthe URL, which is indicated by installer.

http://10.77.81.110/admin

ForConfiguration someof reasonPi-hole itis mightdescribed bein cancelledanother orpage.

disrupted.

The Asonly change we now,want whichto one templateperform is expectingto change IP address. Locate container, open it's network configuration, change from DHCP to find,STATIC let'sand downloaddefine thatdesired IP address.