Skip to content

Instantly share code, notes, and snippets.

View JSH32's full-sized avatar
๐Ÿ“Ž
sudo rm -rf /

Josh Rudnik JSH32

๐Ÿ“Ž
sudo rm -rf /
View GitHub Profile
@JSH32
JSH32 / LXCBindMount.md
Created April 13, 2025 21:57 — forked from ajmassi/LXCBindMount.md
Create a bind mount from a Proxmox host on an unprivileged lxc container

Proxmox Assign Bind Mount To Unprivileged Container

In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.

Bind Mount dataset to LXC

Add the following line to /etc/pve/lxc/<CT_ID>.conf

mp0:/mount/point/on/host,mp=/mount/point/on/lxc

Create group on host

In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.