To share a Proxmox host folder into an LXC container, first mount the desired host folder to a temporary location on the PVE host, then use the pct.set command or modify the LXC's configuration file to bind-mount this temporary directory into the container. Ensure the container's user has the correct permissions for the mounted folder, adjusting User ID (UID) and Group ID (GID) as necessary, which can be done in the container's configuration file.
-
- Ensure you have the necessary network share (NFS or SMB/CIFS) mounted on your PVE host.
- Create a directory on the host to serve as a temporary mount point for your shared folder.
mkdir /mnt/my-shared-folder