Skip to content

Unprivileged LXC containers — by Proxmox Server Solutions (Proxmox VE wiki)

advancedpageLink only (©)

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

  1. pct set <ct-id> -mp0 /host/path,mp=/ct/path
  2. Add lxc.idmap u and g lines to /etc/pve/lxc/<ct-id>.conf
  3. 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.

Read the full article on pve.proxmox.com

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

proxmoxlxcbind mountuid mapping

More in Virtual Machines