[SOLVED] Mount points in LXCs

derkeliso

New Member
Dec 15, 2025
2
0
1
Hey there. I searched for this topic beforehand and tried to filter through the results before posting, but there is a lot of data in these threads and I couldn't find something specifically to apply to my scenario. Perhaps I'm not using the right search terms, or maybe this is just a niche scenario.

I'm brand new to Proxmox, like 2 days new. I was previously running an arch linux server, with a zfs pool that I shared to my windows machine via samba, and to my VMs with mountpoints. Basically, I was mounting the zfs array to /str and I'd just add /str as a mount point in each VM and that would allow me to access the same pool. I had things semi-organized on there, like /media, /docs, etc... and so, naturally, as I'm setting up proxmox - I'm adding LXCs to replicate the VM functions I previously had.

I have one node, the server. Under disks/ZFS, I have added a zfs pool.
When I set up my LXC, I go into resources > add > mount point, and select that zfs pool for storage, set my local LXC path and create it. But it ADDs to that zfs pool, creating a sub-volume, meaning that things outside of that directory wouldn't be accessible within that LXC - which defeats the purpose of my use case, since I wanted each of the LXCs to have access to it. I tried editing the mount point through the gui, but that's locked down. I tried editing the conf but then I get a parsing error and the LXC won't start. Surely I'm not the only one who wants to do this?
 
I tried editing the mount point through the gui, but that's locked down.
I did not understand what you mean, but it indeed looks like you cannot do this via the GUI.
I tried editing the conf but then I get a parsing error and the LXC won't start.
Please show the CT configuration file (with your changes) using pct config CT_ID_NUMBER (in CODE-tags please) for help on this.
Surely I'm not the only one who wants to do this?
I usually don't want Proxmox to know about the mount, so I typically use something like lxc.mount.entry: /path/on/host path/inside/ct none bind,noatime 0 0 instead.

EDIT: According to https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_bind_mount_points mp0: /path/on/host,mp=/path/inside/ct should work.
 
Last edited:
EDIT: According to https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_bind_mount_points mp0: /path/on/host,mp=/path/inside/ct should work.

Thanks for the link.

So, creating via the gui, gave me this:
mp0: datafort:subvol-103-disk-0,mp=/datafort,backup=1,size=8G

So when I was originally trying to change it (with both pct and editing the conf) I was following that same kind of format, using datafort: (since that's the proxmox name of the zfs array)...

But, simply changing it to the place on the host where it was mounted seems to have worked.

mp0: /datafort,mp=/datafort

I feel kind of silly now lol. Thanks