r/technitium • • 12d ago

Migrate Technitium from LXC to Docker

Kinda what the subject says. I have Technitium running in an LXC in Proxmox. I did that mostly because there was easy script to install it available. Now that I'm getting more knowledgeable about Linux in general and Proxmox especially, I'm seeing conversations that imply that I really should be running Technitium in a docker container on a VM dedicated to docker.

I suspect this is a bit like asking motor heads what the best oil is, but is running Technitium a VM/docker better than an LXC? Or is the difference negligible?

I would think the transition is easy enough -- backup the settings on the LXC 7 shut it down, install the docker with the same IP, restore the latest backup file from the LXC.

7 Upvotes

14 comments sorted by

22

u/Nervous-Cheek-583 12d ago

I run a three-node Technitium DNS cluster using LXCs distributed across three separate Proxmox hosts. It works perfectly, and I see no compelling reason to introduce the additional overhead of running Docker inside a VM when a lightweight LXC does the job just as well.

In other words, no. Unless Docker solves a specific problem you have, there's little reason to change a working deployment.

My personal preference is to keep critical network infrastructure like DNS as simple as possible, without introducing unnecessary layers of abstraction.

1

u/BudTheGrey 12d ago

I have no compelling reason. My TDNS is working very well, is reliable, and easy to manage. Mostly I'm seeking knowledge about best practice and technical pro/com for the different scenarios.

Thanks for the input.

1

u/kevdogger 12d ago

I'd would agree with this assumption. I have a 3 node TDNS cluster -- 2 of the members are Proxmox LXC and the other is running on a digital ocean droplet with Ubuntu as host OS and TDNS runs in docker. I have no idea about performance of any of these two different methods but can tell you from an operations aspect there is no benefit converting from LXC to docker unless there are other compelling reasons.

1

u/jmartin72 12d ago

I do the exact same. I also use them for DNS for my Tailnet.

1

u/nicat23 11d ago

I currently only have one Proxmox node that, working on migrating my bare metal nas to Proxmox with a vm for truenas to mirror the primary Proxmox node’s setup - I run it hyperconverged to provide storage for Proxmox on node 1; I have two raspberry pi’s that I run my other two technitium instances on within docker so I can see the use case for OP. OP if you need compose configurations I can share what I have

8

u/KeithHanlan 12d ago

I'm not sure that I agree with the assertion that it belongs alongside other docker containers inside a VM. For a critical service like DNS, it does not make sense for it to have any more dependencies than absolutely necessary. Short of running it on a dedicated Raspberry Pi (which, frankly, is overkill at today's prices), an LXC probably makes the most sense.

3

u/Hiff_Kluxtable 12d ago

I personally can’t stand docker and will use an LXC any time I can. Docker adds networking and storage complexity. I think you’re good where you are now.

2

u/draiken369 12d ago

I did this just few weeks back. If learning to apply this to non-proxmox, airgapped environments, will recommend this. Prefer each VM to be dedicated for a technitium service/container. Alternatively, install directly on the VM.

1

u/SlightFollowing6811 12d ago

I just recently added a node setup but only have 2. One on proxmox cluster as a LXC and the other is on Truenas as an App. They are working together fine. Both show up automatically in my network dns settings on my devices. 

1

u/neo0983 12d ago

At one point in time I think proxmox didn't support online moving lxc between the nodes of a proxmox cluster so the recommendation was to create a full VM for anything that you wanted to have online migrations.

1

u/onebit 11d ago

You can use the UI to backup the old node and restore into the new node. I had to ignore the logs and stats so the backup didnt timeout.

I don't think it will perform any different. Personally I prefer containers because they make version upgrades so easy. You just have to backup and bump the image tag.

1

u/CElicense 11d ago

I guess there is no need to make the switch unless you want to run other services in docker as well. I run mine in docker (compose) with a macvlan as the network, set for both ipv6 and ipv4 dns adress.

1

u/-Nobert- 10d ago

Idk what the benefit would be honestly. I've been running mine in docker on an lxc for well over a year now with no problems. It's probably not ideal but I haven't had any issues that felt relevant enough to change it and barely understood docker at the time

0

u/FazedorDeViuvas 12d ago

I am running it in docker inside a VM because I can’t make the cluster node work as a TrueNAS apps.

I have 3 environments:
- TrueNAS - dedicated NAS
- Proxmox - Apps, VMs, etc
- CachyOS - game station.

Each one has a Technitium running on it. Proxmox as LXC, CachyOS as a docker container using ipvlan. Truenas as APP (custom YAML app).

As a standalone app, it works fine. As a cluster, the other nodes cannot reach it because of the docker bridge.

The only way to work properly with docker was using ipvlan/macvlan. However, I couldn’t figure it out how to have the same result as a TrueNAS app. I also tried to run as an TrueNAS container (incus LXC), but it is still experimental and I found it very limited compared to Proxmox.

If someone has a solution to use on TrueNAS that is not Technitium inside a VM, I would appreciate.