If you don’t mind, I’m curious to know what was wrong with proxmox? What are the advantages for you for moving from proxmox to incus os?
I liked the idea of using OpenTofu for declaring my homelab, as I am someone that sets things up, and the forgets about them or how I did it (I am sometimes quite impulsive when it comes to new stuff
). I also had the problem of patching the lxcs and VMs (currently 25 lxcs and vms running on proxmox). Most of them where installed using the community-scripts, I could have added manually or via script unattended-upgrade to them, but I still needed to update every single app manually. I already have a gitea and renovate bot setup for a few docker containers, that means with OpenTofu I get PRs for every update.
I first tried to use OpenTofu with proxmox but had a lot of trouble with lxcs and cloud-init (I consulted LLMs) but that all was to much hacky and with IncusOS it just works ![]()
From my experience, proxmos is better suited for VMs than for its lxc part, and the 2 terraform providers available from 3rd parties are not really great compared to the terraform provider for incus.
Thank you so much for this and your subsequent posts about your setup, it is really inspiring!
For the network setup, is your server using a trunk port and the incus bridge is set to the DMZ vlan, or is the upstream port set to just that vlan? I would like to do the former so that I can have a separate bridge for my cameras vlan, but I haven’t worked out how to do that with incus bridges - so right now everything is fully exposed on my LAN!
I’m not doing any VLAN, it’s hosted at home and I don’t have a switch with VLAN capacity. However I just consider the LAN a bit less hostile than the Internet so I don’t expose any unnecessary ports ^^
Every device are using a mesh VPN (I use headscale) and a local PKI if they need to access something sensitive enough I don’t want to expose it on LAN.
Ah, I misinterpreted the “DMZ” label on the haproxy VM to mean that it was on a DMZ VLAN, but I guess you were just calling that VM itself a DMZ.
Indeed, I called it a DMZ because while almost everything else on incus runs as a container, it’s on a VM, with a dedicated IP on the LAN and using the physical network card, instead of Incus OS NAT
that’s the least secure place in the stack as it’s between incus internal network / services and the physical network.
Putting it in a VM is a great idea; I currently run caddy + crowdsec in an LXC container, which exposes the whole system to container sandbox escapes. I should move that to a VM! Thanks again for your inspiring posts. ![]()
I have three follow-up questions ![]()
- Can you further explain your tailscale/headscale use-case?
As far as I understand you proxy ports 80, 443 from caddy internal to the IncusOS host and then access IncusOS (8443) and caddy-internal via tailscale, and all revelant endpoints (e.g. the Admin UIs) are available via caddy-internal?
Do you use tailscale for the container to container communication (e.g. prometheus to metrics endpoints or vector to loki push) and if yes, what is the risk you try to reduce in doing so? All communication is within a single host, so no data ever leaves the host and you firewalled everything quite tight.
- Where and how do you use your own PKI, what do you use and why not only the “internal PKI” from caddy?
- Where do you execute
tofu apply? From your workstation or from within the Forgejo CI runner?
I only use tailscale to connect my computers to Incus OS, containers have no knowledge of tailscale.
My PKI is just caddy
distributing certificates via ACME, I crafted a certificate once from the Root CA found in caddy. This could be done way better by making a root CA offline with step-ca and use an intermediate CA in caddy for Acme.
This happens on a laptop I use for development, it seems complicated to scope incus access from a CI, and this gives too much privileges to the CI with little benefits in my case.
Signed up to say thanks for this post! I’ve been working on my v2 architecture for a couple weeks and finding this today was perfect!
My planned setup (waiting patiently after incus init) is very similar to what you described here: quadlets in Incus containers with VMs for things that want more containment (Caddy, Mailcow, Nextcloud AIO). I’m using Ansible and was planning to use OpenTofu as well but moved to Ansible-only. I might take another look at OpenTofu after reading this. I also think I’ll try to copy your egress approach!
I had a few reasons to overhaul things, but one of the main ones was to move away from Docker with root. On that topic, a question for you and everyone else: does my container/VM split seem reasonable? I could go back to a roll-my-own Nextcloud stack but I like the AIO packaging. Mailcow seems like a slam dunk, especially as it is (gingerly) connected to the public internet. I’m not sure about Caddy, at the moment it’s internal-only (Mailcow is my only public service).
I’ll be interested to hear if you end up migrating to k8s/k3s/etc., and if so what your experience is like. I’ve spent a lot of time going back and forth on this and eventually (earlier today) decided it’s not worth it for my use case, though I think I may spin up some VMs to test it anyway once my current project is complete.
I don’t think so, k8s would be suitable if I had a service that need high availability and load balancing, which is not the case.