I've been using Proxmox for a long time, and over time I've started leaning more and more on LXC containers to save CPU and memory. Container integration in Proxmox is fantastic, even if it's quite different from Docker.
Linux containers are much closer to virtual machines than you might think at first… you share the host machine's kernel, but other than that, it feels an awful lot like a VM. That said, I did run into a few hiccups trying to run Docker inside LXC containers, as well as some headaches setting up a desktop environment for remote access. Moving to Podman, though, was a game changer for me: daemonless, rootless, Docker-compatible commands… it runs like a charm inside LXC in the end (in unprivileged mode).
Now, with a bit more mileage, plenty of headaches and plenty of wins, here is why I pick LXC over VMs on Proxmox, and vice versa.

LXC (Linux Containers)
Pros:
- Lightweight: LXC containers share the host system's kernel, which keeps system resource usage low.
- Fast boot: Can be started and stopped in seconds.
- Resource efficiency: Uses fewer resources, making it ideal for resource-constrained setups.
- Flexible: Memory and CPU can be adjusted on the fly after boot.
- Easy integration: The Proxmox console makes changing DNS settings and the hostname much easier.
Cons:
- Limited isolation: Containers share the host kernel, so they're less isolated than full VMs.
- Kernel dependency: Only Linux-based operating systems that can run on the host's kernel work inside LXC containers.
- Less flexible live migration: You can't migrate a container without stopping it first.
- Docker compatibility quirks: Docker can run inside LXC, but you may hit kernel conflicts and stability issues, especially with more advanced setups. That said, as mentioned earlier, you can usually sidestep those with Podman.
- Volume headaches: Mounts and volumes can be trickier to manage in LXC than in VMs because of how host filesystem permissions work. You often end up needing privileged containers.
- Tricky desktop environments: Setting up a remote desktop is a pain to get working and keep stable.
VMs (Virtual Machines)
Pros:
- Better isolation: VMs run their own separate operating system, giving you stronger isolation, which lets you run complex setups without worry.
- Hardware emulation: Can emulate different hardware configurations.
- Flexibility: Great for running different operating systems, including ones that don't share the host's kernel.
- Easier migration: VMs can be live-migrated between hosts without downtime.
Cons:
- Resource-heavy: VMs need more system resources (CPU, memory, and even storage).
- Slower boot: VMs take longer to boot compared to containers.
Real-world examples:
- Jellyfin: A media server that connects to my NAS to stream music, movies, and TV shows. A simple setup that runs great on LXC.
- Nginx Proxy Manager: This tool manages my SSL certificates (fetched via API) and reverse-proxies a few of my other services… again, nothing fancy, so it goes on LXC.
- CheckMK: The observability system that keeps an eye on all my machines, virtual or physical. Runs like a charm on LXC.
- Gitlab: The Omnibus install is pretty beefy, and since I'm never quite sure what it's doing under the hood, I play it safe and run it in a VM.
- PartageNFS: This machine runs MinIO (S3-compatible storage) and a few volumes that other machines mount. I run it in a VM because sharing folders over TCP/IP services like NFS forces you to enable less secure options in LXC.
- K3S: My kubernetes node runs in a VM to keep life simple… it's already resource-hungry anyway since I run a bunch of services and cronjobs on it.
- LinuxMint: My remote desktop machine… since it's a graphical desktop and I install all kinds of random stuff in there… easy call: a VM.
Conclusion
Choosing between LXC and VMs obviously comes down to what you need. For lightweight isolation, efficiency, and quick deployment, LXC is hard to beat. If you need stronger isolation or want to run different operating systems, VMs are the way to go. And if you're running Docker or Kubernetes, VMs make life a whole lot simpler.
If you want to manage a container more like a full operating system than an app container on a machine with modest hardware, LXC is a rock-solid option. In fact, for 90% of the Linux workloads I run, LXC gets the job done very cleanly.
