LXC Containers
Cheat sheet · https://pcornel.dk/topic.php?topic=3722
Answer
Unlike a full VM, an LXC container shares the Proxmox node kernel; host kernel capabilities, cgroups, UID/GID mapping and mount permissions can therefore directly constrain the container.
Remember
- Container Running does not prove its service is healthy.
- Kernel features cannot be independently changed inside a normal container as in a VM.
- Unprivileged UID/GID mapping changes file-permission interpretation.
- Bind mounts and device exposure extend the trust boundary to host resources.
First checks
pct list— containerspct config <ctid>— configurationpct enter <ctid>— shell in container
Commands
pct list- List LXC containers and state.
pct status <ctid>- LXC container running/stopped state.
pct config <ctid>- LXC container configuration.
pct config <vmid>- Display LXC container configuration.
Verify in this order
config → LXC → host kernel namespaces/cgroups
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Proxmox VE → LXC Containers reference map
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Configured state | Expected LXC Containers configuration is present | Configuration alone does not prove runtime behavior |
| Runtime state | Relevant LXC Containers service/object is active and error-free | Runtime state does not prove dependencies |
| Dependency | Backing network, storage, cluster or host dependency is healthy | Local success does not prove end-to-end outcome |
| Acceptance | Original VM/container/workload test succeeds | Required to close the incident |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3722