Unprivileged LXC containers — by Proxmox Server Solutions (Proxmox VE wiki)
Explains how container UIDs/GIDs are shifted by 100000 on the host, why bind-mounted files appear as nobody inside the container, and how to fix it with lxc.idmap lines, matching /etc/subuid and /etc/subgid entries, and host ownership changes.
Quick steps
- pct set <ct-id> -mp0 /host/path,mp=/ct/path
- Add lxc.idmap u and g lines to /etc/pve/lxc/<ct-id>.conf
- Add root:<uid>:1 (the ID you pass through, e.g. 1005) to /etc/subuid and /etc/subgid, then chown the host path to that ID
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: Unprivileged LXC containers by Proxmox Server Solutions (Proxmox VE wiki). Licence: Link only (©).
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me