Pcornel
Virtualization · Proxmox VE

LXC Containers

Cheat sheet · https://pcornel.dk/topic.php?topic=3722

Back to the Topic

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 — containers
  • pct config <ctid> — configuration
  • pct 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

BoundaryWhat to verifyEvidence limit
Configured stateExpected LXC Containers configuration is presentConfiguration alone does not prove runtime behavior
Runtime stateRelevant LXC Containers service/object is active and error-freeRuntime state does not prove dependencies
DependencyBacking network, storage, cluster or host dependency is healthyLocal success does not prove end-to-end outcome
AcceptanceOriginal VM/container/workload test succeedsRequired 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

Confirmation

Confirm action

Continue?