Use this when creating LXC containers on Proxmox.
LXC Provisioning
LXC provisioning in Proxmox creates containers from templates with pct create or the API, setting CPU, memory, rootfs, network and SSH keys, much faster than full VMs.
1. LXC provisioning from templates.
2. Unprivileged by default.
3. Features (nesting) only when needed.
4. Resource limits.
5. Automate with Terraform/Ansible.
template → pct create → start → configure
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Privileged containers without need.
- Template names copied from old docs that no longer exist.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- pct create builds containers from templates.
- Containers start much faster than VMs.
- Unprivileged containers are safer.
pct create <id> <storage>:vztmpl/<tmpl> --hostname <n> --unprivileged 1 --net0 name=eth0,bridge=vmbr0,ip=dhcp— createpct start <id>— startpct config <id>— verify
ReferenceWhy it matters1 section · depth on demand
What it is
LXC containers are created with pct from a template, or via API/Terraform.
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
LXC containers share the host kernel and are created from template archives; unprivileged containers map container root to an unprivileged host UID range, which limits the damage of a container escape. Each container gets its own config in /etc/pve/lxc/<id>.conf.
Example
pveam update && pveam available | grep debian
pct create 200 local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst --hostname app01 --net0 name=eth0,bridge=vmbr0,ip=dhcp --unprivileged 1
pct start 200
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Proxmox Automation > LXC Provisioning. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/api-viewer/ · confidence 94%