Can pi-hole be install into an LXC container using the Turris OS template?

The subject says it all.

Hi,

No problem. I installed a Debian in lxc and installed pi-hole according to the instructions on the Pi-hole page.

It runs without problems since two years or so.

Rainer

same here. running pi hole on Debian lxc

@rwg and @valknut89: Neither of you answered my actual question.

The Luci LXC container page offers multiple template options. Yes, one template is Debian. But another template is Turris OS stable.

My thought (perhaps incorrect) was that by using the Turris OS template, the container would share pages with the already present Turris OS, rather than a distinct guest OS (e.g., Debian). If my assumption is correct, then that would reduce memory pressure to accommodate a larger set of pages and thence also reduce paging traffic. Again, if my assumption is correct, then the next question is the one I attempted to ask, namely, is Turris OS capable of hosting the pi-hole application?

@jsyjr
Turris OS ist not officially supported by pi-hole. So you atre on your own.

The memory usage by using a Debian guest on a Turris OS host is okay. The lxc guest uses the kernel of the host. So the kernel is only once in the memory (RAM).

You should not use the internal memory (flash) with LXC because LXC is IO-intensive. Use external memory (e.g. USB). I have lxc on an internal ssd. I have five lxc containers. Three of them run permanently. (pi.hole, a special DNS server and a login server). All are debian based. .

After some time and hesitation I wanted try pi-hole… As far as I created Debian container some time ago (v10 - buster), I tried to install pi-hole into it. Attempt to install pi-hole ended with error message “Unsuported OS detected: Debian 10”.

Thus I first tried to upgrade Debian v10 to more current version (apt-get dist-upgrade), but this attempt ended with no upgrade. (Note that before I tried to install pi-hole I updated v10 using apt-get update/upgrade as well.)

Next I tried to create new Debian container for latest stable version 12, using LuCI, unsuccesfully. Any possible offered selection of containers URL, nor any possible custom URL (full or partial of https://repo.turris.cz/lxc/images/Debian/Bookworm/armv7l/2025-01-15/rootfs.tar.xz or ~/meta.tar.xz) was not applicable, there was always mesage “There are no templates for your architecture (armv7l) available, please select another containers URL.”

Listing of Index of /lxc/images/Debian/Bookworm/armv7l/2025-01-15/ show:

meta.tar.xz 15-Jan-2025 01:29 452
rootfs.tar.xz 15-Jan-2025 01:29 76474696

It seems that even though there are templates for Debian versions 10-12, LuCI is not able to use them.

I’ll send this info to support team.

Edit: Sorry, I forget: TOS 7.1.3
TO 2016, HBS branch, 2 GB, 2x WiFi, HaaS, RIPE Atlas, Sentinel, lxc, SSD (logs etc), simple config.

After searching documentation (OpenWRT, Debian) and my notes from previous excersize setting containers, I found that simple CLI command

lxc-create -t download -n KontDeb

was enough to create container wanted (it asked for any specification needed).

Then I followed instructions on Installation - Pi-hole documentation and it was done. Pi-hole is now running.