LXC vs VM – Vergleich
| Kriterium | LXC Container | KVM VM |
|---|---|---|
| Isolation | Kernel-Sharing | Vollständig |
| Performance | Near-Native | ~2–5% Overhead |
| RAM-Overhead | ~50–100 MB | ~200–500 MB |
| Boot-Zeit | Sekunden | 10–30 Sek. |
| Windows | Nein | Ja |
Wann LXC, wann VM?
LXC: Webserver, Datenbanken, DNS/DHCP (PiHole), Grafana, Nextcloud, Home Assistant.
VM: Windows Server, Docker-Host, pfSense/OPNsense, Test-Umgebungen.
LXC Container erstellen
pveam update
pveam download local ubuntu-24.04-standard_24.04-2_amd64.tar.zst
pct create 200 local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst --hostname web-lxc --memory 1024 --swap 512 --cores 2 --storage local-lvm --rootfs local-lvm:8 --net0 name=eth0,bridge=vmbr0,ip=192.168.1.200/24,gw=192.168.1.1 --password PASSWORT --start 1
pct status 200
pct enter 200
Docker in LXC
pct create 202 local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst --unprivileged 0 --features keyctl=1,nesting=1 --hostname docker-lxc
pct enter 202
curl -fsSL https://get.docker.com | sh
systemctl enable --now docker
FAQ
Kann ich LXC live migrieren?
Nein, nur gestoppt. VMs unterstützen Live-Migration.
Fazit
LXC Container sind ideal für einfache Linux-Dienste – schneller und ressourcensparender als VMs.
Proxmox für KMU in Heidelberg, Mannheim und der Rhein-Neckar-Region. Beratung anfragen.