
LXC vs VM in Proxmox: Which Should You Use?
One of the first decisions you make in Proxmox is whether a new service should run in an LXC container or a virtual machine (VM). Both appear in the same sidebar and both get their own IP address, but they work very differently.
The short answer
- Use an LXC container for lightweight Linux services: Pi-hole, a web server, a database, most self-hosted apps that don’t need Docker.
- Use a VM when you need a different operating system (Windows, a firewall like OPNsense), the strongest isolation, or an appliance that ships as its own OS (like Home Assistant OS).
What’s the difference?
A VM emulates an entire computer. It has its own kernel and virtual hardware and boots its own operating system. That makes it flexible and well isolated, but it uses more RAM and disk.
An LXC container shares the Proxmox host’s Linux kernel. It only packages the userland (the files and programs), so it starts in seconds and can run in a few hundred MB of RAM.
Side-by-side
| LXC container | Virtual machine | |
|---|---|---|
| Operating system | Linux only (shares host kernel) | Anything: Linux, Windows, BSD |
| Resource use | Very low | Higher |
| Startup time | Seconds | Like a normal boot |
| Isolation | Good | Strongest |
| Hardware passthrough | Possible but fiddly | Straightforward (PCIe, USB) |
| Best for | Small Linux services | Different OSes, appliances, Docker hosts |
Which should you choose?
Ask two questions:
- Does it need a non-Linux OS or its own kernel? Use a VM.
- Is it an appliance image (Home Assistant OS, OPNsense, TrueNAS)? Use a VM.
Otherwise, start with an unprivileged LXC container. It’s the most efficient choice and the safest default.
What about Docker?
You can run Docker inside an LXC, and many people do. The commonly recommended approach, and the one the Proxmox documentation leans toward, is to run Docker inside a VM. It avoids permission and kernel-feature problems, and updates to the host are less likely to break your containers.
Next steps
Upcoming guides will walk through creating your first LXC container from a template and building your first Linux VM, step by step.