Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualisation:pihole_lxc_container [2022/05/23 10:39]
cakir [Setup router]
virtualisation:pihole_lxc_container [2022/05/24 09:28] (current)
cakir [Setup a Pi-hole in LXC container]
Line 1: Line 1:
-====== ​Setup a Pi-hole in LXC container ====== ​+====== Pi-hole in LXC container ====== ​
  
                                                                                                                                                                
Line 26: Line 26:
  
  
-===== Setup virtualization =====                      ​+===== Setup LXC Pi-hole ​virtualization =====                      ​
                                                                                                     ​                                                                                                     ​
 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 ​DHCP/​DNS ​=====
                                                                                                                                            
 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. ​                          
Line 64: Line 64:
 {{:​virtualisation:​03-pihole-reboot.png}} {{:​virtualisation:​03-pihole-reboot.png}}
                                                                                                     ​                                                                                                     ​
-**Step 4:** To verify that everything is working correctly open then pi-hole web interface by visiting ''​http://​192.168.1.111/​admin/''​ with your browser. The default admin password after installation is "​admin01"​. **We strongly recommend to change the password after verifying sucessfull installation.** (see next step)+**Step 4:** To verify that everything is working correctly open then pi-hole web interface ​login page by visiting ''​http://​192.168.1.111/​admin/​index.php?​login''​ with your browser. The default admin password after installation is "​admin01"​. **We strongly recommend to change the password after verifying sucessfull installation.** (see next step)
  
 {{:​virtualisation:​04-pihole-gui.png}} {{:​virtualisation:​04-pihole-gui.png}}
  
-**Step 5:** To change the password we need to access the router ​via terminal. Log in via ssh, telnet or serial connection and then run the command "''​lxc-attach guest0''""​ then run the command ​for changing the password ​"''​pihole -a -p''"​. ​+**Step 5:** To change the password we need to access the router ​with command line interface. Log in via ssh, telnet or serial connection and then run the command "''​lxc-attach guest0''"" ​to enter the shell in LXC, then run the command "''​pihole -a -p''" ​for changing the password
  
-**The installation is finished and Pi-hole is now in working condition.** You can access the webgui ​(192.168.1.111any time and view the dashboard or login to adjust settings.+{{:​virtualisation:​05-pihole-gui.png}} 
 + 
 +**The installation is finished and Pi-hole is now in working condition.** You can access the webgui ​on ''​192.168.1.111'' ​any time and view the dashboard or login to adjust settings.