Running Pi-Hole Ad Blocker in a Proxmox VE VM
#Proxmox #PiHole #AdBlocker
Full steps can be found at https://i12bretro.github.io/tutorials/0579.html
Creating the VM
01. Log into the Proxmox VE web UI
02. Select a storage from the left navigation pane to download the .iso to
03. Select ISO Images in the left sub-navigation pane
04. If running ProxMox 6, download the Raspberry Pi OS https://downloads.raspberrypi.org/rpd_x86_latest and upload it to the ProxMox ISO image library
05. If on ProxMox 7, click Download from URL and paste the download URL from above ≫ Click Query URL ≫ Click Download
06. Right click the ProxMox node name ≫ Create VM
07. Type RaspberryPi in the name field ≫ Next
08. Set the Type to Linux and select the Raspberry Pi OS iso
09. Leave the defaults on the System tab ≫ Next
10. On the Hard Disk tab, set the Disk size to 16 ≫ Next
11. Leave the defaults on the CPU tab ≫ Next
12. On the Memory tab, set the Memory to 1024 ≫ Next
13. Leave the defaults on the Network tab ≫ Next
14. Verify the summary and click Finish
15. Right click the RaspberryPi VM in the left navigation pane ≫ Start
16. Click console in the left sub-navigation menu
17. Select Graphical Install
18. Select a keyboard map ≫ click Continue
19. Select Guided - use entire disk ≫ click Continue
20. Click Continue, Continue, Continue
21. Select Yes to confirm writing the changes to disk ≫ click Continue
22. Wait while Debian and the Raspberry Pi Desktop are installed
23. Select Yes to install GRUB on the master boot record ≫ click Continue
24. Select /dev/sda ≫ click Continue
25. Click Continue to reboot the VM
26. Click Next on the welcome dialog
27. Set the Country, Language and Time Zone ≫ click Next
28. Enter and confirm a password for the pi user ≫ click Next
29. Click Skip to updating software
30. Click Finish to reboot the VM and complete setup
Installing Updates and Pi-Hole
01. Click the Applications button ≫ Accessories ≫ Terminal
02. Run the following commands to install updates
sudo apt update
sudo apt upgrade -y
sudo apt clean
sudo reboot
03. Click the Applications button ≫ Accessories ≫ Terminal
04. Run the following command to install Pi-Hole
curl -sSL https://install.pi-hole.net | bash
05. Press Enter until the DNS selection is displayed
06. Select a DNS provider and press Enter
07. Press Enter through the rest of the Pi-Hole installer, selecting the defaults
08. Copy the randomly generated admin password (just in case)
09. Press Enter to complete the installation
10. Run the following command to change the Pi-Hole admin password
sudo pihole -a -p
11. Enter and confirm the new password
12. Click the Applications button ≫ Internet ≫ Chromium Web Browser
13. Navigate to http://DNSorIP/admin
14. Click Login
15. Authenticate with the admin password
Testing Pi-Hole
01. Right click the VM network connection ≫ Wireless & Wired Network Settings
02. Select eth0 from the interface dropdown
03. Clear out the DNS servers and input the VM IP address
04. Click Apply
05. Click Devices ≫ Network ≫ Connect Network Adapter to disable networking
06. Click Devices ≫ Network ≫ Connect Network Adapter to re-enable networking
07. In Chromium, open a new tab and navigate to https://yahoo.com
08. Go back to the Pi-Hole tab and see that some DNS queries have been blocked
Setting Up From Windows Client
01. Click the Start button ≫ Type control panel ≫ press Enter
02. Click View By ≫ Small Icons
03. Click Network and Sharing Center
04. Click Change adapter settings
05. Right click on the network connection ≫ Properties
06. Select Internet Protocol Version 4 (TCP/IPv4) ≫ Properties
07. Select the radio option next to Use the following DNS server addresses
08. Input the IP address of the Pi-Hole VM
09. Click OK on both of the open dialog windows
10. Right click the Start button ≫ Command Prompt (Admin)
11. Type the following commands to flush your DNS cache and restart the network connections (note: your network connection will drop if running the commands on a remote machine)
ipconfig /flushdns
ipconfig /release
ipconfig /renew
More on Pi-Hole https://pi-hole.net/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro