This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
virtualisation:pihole_lxc_container [2022/05/23 10:36] – [Get latest debian image (only necessary for manual install)] cakir | virtualisation:pihole_lxc_container [2022/05/24 09:28] (current) – [Setup a Pi-hole in LXC container] cakir | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Pi-hole in LXC container ====== |
Line 26: | Line 26: | ||
- | ===== Setup virtualization ===== | + | ===== Setup LXC Pi-hole |
| | ||
Before we can start please check if virtualization feature is licensed on your system (see SYSTEM -> Licensing on WebGUI). | Before we can start please check if virtualization feature is licensed on your system (see SYSTEM -> Licensing on WebGUI). | ||
Line 48: | Line 48: | ||
- | ===== Setup router ===== | + | ===== Setup router |
We are now back at the router Web-GUI to do the final setup of the DHCP server and DNS settings. | We are now back at the router Web-GUI to do the final setup of the DHCP server and DNS settings. | ||
| | ||
- | **Step 1:** Navigate to SERVICES → DHCP Server and click the Edit button. Pick the specify radio button which will make some additional input windows pop up. Here you have to put the address you want the pi-hole to server to have in the Primary DNS field. Note that the address will have to be within the range of the DHCP server settings, for example 192.168.1.111, | + | **Step 1:** Navigate to SERVICES → DHCP Server and click the '' |
{{: | {{: | ||
| | ||
- | **Step 2:** Click the Edit button one more time so we can setup the pi-hole as static host. Once again we click the small plus icon and set IP address to the one you picked earlier (192.168.1.111 in my case) and MAC address to 00: | + | **Step 2:** Click the Edit button one more time so we can setup the pi-hole as static host. Once again we click the small plus icon and set IP address to the one you picked earlier ('' |
{{: | {{: | ||
| | ||
- | **Step 3:** To finalize the setup do a reboot of the router. You can do this by navigating to SYSTEM → Reboot and the hit the Reboot Now button or alternatively just run the reboot command in terminal. | + | **Step 3:** To finalize the setup do a reboot of the router. You can do this by navigating to SYSTEM → Reboot and the hit the '' |
{{: | {{: | ||
| | ||
- | **Step 4:** To verify that everything is working correctly open then pi-hole web interface by visiting http:// | + | **Step 4:** To verify that everything is working correctly open then pi-hole web interface |
{{: | {{: | ||
- | **Step 5:** To change the password we need to access the router | + | **Step 5:** To change the password we need to access the router |
- | **The installation is finished and Pi-hole is now in working condition.** You can access the webgui | + | {{: |
+ | |||
+ | **The installation is finished and Pi-hole is now in working condition.** You can access the webgui | ||