Bind mounts and storage for LXC containers

Bind mounts and storage choices decide how a Proxmox VE container reaches its data, who owns that data inside the container, and what backup and migration can move. This page explains the trade-offs and what to confirm before you build.

On this page

Bind mounts and storage for LXC containers: when teams need them

A team needs a method for giving an LXC container access to data, and the answer depends on two things: whether the container is privileged or unprivileged, and who owns the data. Proxmox VE offers two ways to do this. A volume mount point is storage the platform creates and attaches to the container, so Proxmox VE manages it as part of the guest. A bind mount points a container path at a directory that already exists on the Proxmox VE host. Both are configured per container, but they behave differently when you back up, migrate or restore the container, and the Proxmox VE administration guide is the right place to confirm the current mechanics before you commit to a design.

Volume mount points are the simpler choice when the data belongs to the container and should travel with it. Because the storage is attached through the platform's storage layer, it is included in the container's configuration and is handled with the guest in backups and migrations, subject to the storage type in use. Bind mounts suit data that lives outside any guest, such as a shared dataset, a media directory or a path that another service writes to. Their contents are not part of the container's own disks, so you must plan separately for backing them up. Ask your team which party owns each dataset before choosing, because that answer usually decides the method.

Privilege level changes the work. In an unprivileged container, UIDs and GIDs inside the container are mapped to different IDs on the host, so a host directory owned by a host user will often appear unwritable to the container's processes. Plan the ownership mapping before the first mount, and test read and write access from inside the container with the same service account the application uses. Confirm with the Proxmox VE administration guide how your installed version handles these mappings, and record which method each path uses so the backup and restore runbook matches the real configuration.

Volume mount points versus bind mounts compared

A volume mount point is a disk allocated from a Proxmox VE storage pool, such as a directory, LVM-thin or ZFS storage, and attached to the container as a mount entry in its configuration. Proxmox VE creates the volume and records it, so the storage layer owns its lifecycle. Inside the container, the volume appears as an ordinary directory at the path you set.

  • Storage ownership: Proxmox VE creates the volume on the storage you select, so the platform can resize, move or delete it through its own tools.
  • What the container sees: A filesystem mounted at the configured path, sized by the volume you created for it.
  • Backups: Container backups normally include volume mount points by default, and a mount entry can be marked to exclude them. Confirm the option and its defaults in the Proxmox VE container documentation for your version.
  • Migration: The data follows the container when the storage is reachable from the target node or when local volumes are copied. Confirm the behavior for your storage type before planning a move.

Before you create the first mount, check the storage type, the backup flags and the migration path for that storage.

Which storage option fits which workload

This table compares volume mount points, bind mounts, shared network storage and a dedicated data disk inside a VM for container data. Read each row as a question you need to answer before choosing, and treat the last row as the main takeaway: the option that keeps data under your control is not always the one that keeps backups and moves simplest.

FactorVolume mount pointBind mountShared network storage or VM data disk
Data ownershipProxmox VE creates and manages the volume on a storage pool, so the platform owns the lifecycle of the data.The data lives in a host directory that the host administrator controls directly, outside the container's storage configuration.Network storage is owned by the storage array or file server; a VM data disk is owned by the VM and managed through the hypervisor.
Backup inclusionUsually included in container backups with the rootfs, so restores carry the data along. Confirm the behavior for your Proxmox VE version.Not included in container backups because it is a host path. Plan a separate backup of the host directory.Network storage is backed up by its own system. A VM data disk is included in VM backups, which may be larger than container backups.
Migration behaviorMoves with the container when the storage is local or shared, so the volume follows the container to another node.Does not move with the container. The target node must already have the same host path, or the container will not see the data.Shared network storage stays reachable from every node that mounts it. A VM data disk moves with the VM when it is on shared storage.
Privilege requirementsNeeds no special host configuration beyond storage access, and works the same for privileged and unprivileged containers.Requires host-side permissions and, for unprivileged containers, UID and GID mapping so files show correct ownership inside the container.Mounts are set up on the host or inside the VM, so the container needs no host path access, though the mount itself needs administrator rights.
Suitability for multi-node clustersWorks well when the storage pool is shared across nodes. Local storage pins the container to one node.Poor fit for clusters unless every node has identical host paths and the data is kept in step across them.Strong fit for clusters, since every node can reach the same data. Confirm the protocol and HA behavior with your storage vendor.
Ownership and permission controlOwnership is set by the container's storage and UID mapping, which can make host-side inspection harder.Files keep their host ownership, so host tools and other services can read and change them directly.Permissions follow the share or disk setup. Confirm how ACLs and UID mapping apply before you rely on them.
Best fitApplication data that should travel with the container and be restored as a unit.Shared media, host-managed datasets or files that other host services must read.Data shared across many workloads or nodes, and large datasets that are managed as their own storage service.

How UID mapping in unprivileged containers changes file ownership

An unprivileged container runs its processes under host user IDs that are shifted into a range the host does not use for real accounts. A process that is UID 1000 inside the container is not UID 1000 on the Proxmox VE host, so the same bind-mounted directory can look completely different from each side. Files written by the container can appear owned by an unexpected host ID, and host-side files owned by your normal administrator accounts can be unreadable inside the container. This is the most common reason a bind mount works in a privileged container and fails after the container is switched to unprivileged.

Plan the mapping before the first write. Choose the host UID and GID range that the container will use, and confirm it does not overlap with users, service accounts or other containers already on the node. Then align the application users: decide which container UID and GID the service runs as, and create the matching ownership on the host directory that backs the mount point, using the shifted host ID for that container UID. Record both values in your change documentation so that a restore or migration to another node uses the same mapping. Confirm the exact ranges and the mapping syntax for your Proxmox VE version in the container documentation of the Proxmox VE administration guide and any version-specific notes you have from your vendor contact.

Test access before go-live, not after users report errors. Run a short check as the application user inside the container: create a file in the mount, read it back, rename it, and confirm that a second service account in the same container can or cannot reach it as intended. Then check the same paths from the host and confirm the owner IDs match your plan. Repeat the test after any change to the mapping, after a restore to different storage, and after a migration to another node, because those steps are where ownership mismatches usually appear.

Quotas and ACLs: what they control and where they break

Quotas and ACLs decide how much data a container can consume and who can touch it once a mount is in place. Each control works on a different layer, and each can fail quietly after a restore, a migration or a change of filesystem. The cards below cover the failure modes to test before a mount goes into production.

Quotas on volume mount points

A size quota on a volume mount point limits how much a container can write to that volume, and it depends on the storage backend enforcing it. Quotas on a directory bind mount are not managed by Proxmox VE, so the host filesystem decides whether a limit exists at all. Verify on your backend that the quota is enforced, that it reports usage correctly in the container, and that growing the volume later does not require downtime you have not planned for. A container that fills its quota can fail writes in ways applications may not handle gracefully.

Proxmox VE docs

Filesystem ACLs on host paths

POSIX ACLs on a host directory extend ownership and mode bits so that specific users or groups can read or write a bind-mounted path. They are set on the host, outside the container configuration, so an administrator can change access without touching the container. The failure mode is an ACL that was never set, was lost during a copy, or was set on a filesystem that does not store it. Confirm on your host that the target filesystem supports ACLs, that the mount option is in place, and that getfacl output matches the intended access model.

Ownership drift after restores

Unprivileged containers map container UIDs and GIDs to a high host range, so files written by the container carry those mapped IDs on the host. A restore or migration onto a host with a different mapping, or a restore that rewrites ownership, can leave files owned by IDs the container no longer recognizes. The application then sees permission denied errors after a successful restore. Test a restore of a container with a bind mount, compare numeric IDs inside and outside the container, and document the mapping used on each node.

Filesystem support differences

The host filesystem under a mount determines which features work: ACLs, extended attributes, quotas, hard links, file locking and case sensitivity can differ between ext4, XFS, ZFS, NFS and CIFS. A share that works for read-only data may fail when an application needs locking or extended attributes. Before committing a design, list the features the application needs, then test each one on the exact storage type and mount options planned for production, including network filesystems.

Shared access from several containers

When two or more containers mount the same path, each container's UID mapping and permissions must agree, or one container can overwrite files another depends on. Shared writable data also breaks the assumption that a single application owns its files, which complicates locking and backup consistency. Confirm which containers write to the path, whether they use the same mapped IDs, and whether the application handles concurrent writers. Where possible, give each container its own directory and share read-only data only.

Audit of who can change mount points

Mount point definitions live in the container configuration, and changing them is a privileged action in Proxmox VE. A user who can edit a container config can point it at a sensitive host path, so mount changes need the same review as firewall or SSH changes. Confirm which roles and API tokens can modify container configs, log those changes, and review the list of host paths currently mounted into containers on a schedule. Track this alongside the permission model documented in the user management wiki.

User management wiki

Setting up mount points and bind mounts in a container

This sequence takes a container from an unassigned data path to a verified mount with correct ownership, a working application user, and a restore test that proves the data survives. Each step ends with a check you can repeat.

  1. Assign the data owner and privilege level

    Before touching any configuration, name the team that owns the data and the application user that will read and write it inside the container. Confirm whether the container is privileged or unprivileged, since that decides how host UIDs and GIDs map to container IDs. Record the application UID and GID from the guest, for example by running id on a test container. The step is done when you have a written note with the data owner, the application user, the UID and GID, and the privilege level, and the owner has approved it.

  2. Create or identify the backing storage

    Decide whether the data lives on a Proxmox VE storage pool, which produces a volume mount point, or on a host directory, which produces a bind mount. Create the directory or dataset on the host and confirm its free space, filesystem type, and whether it is on shared storage if the container may move between nodes. Check the host path permissions with ls -ln so the numeric owner is visible. The step is done when the path exists on every node that could run the container, and you can list it on each node with the expected owner.

  3. Add the mount point in the container configuration

    Add the mount point in the container's options, either through the web interface or by editing the container configuration file on the host. Use a volume mount point when Proxmox VE should manage the storage and include it in backups, or a bind mount when the data must stay at a fixed host path. Set the container path and, where needed, the read-only flag. The step is done when the container configuration lists the new mount entry and the entry shows the intended source and target paths.

  4. Align UID and GID mapping for unprivileged containers

    For an unprivileged container, container UID 0 maps to a high host UID, so a host directory owned by root will appear unwritable inside. Calculate the host ID that corresponds to your application UID and GID, then set the host directory ownership to that value, or use an ID mapping entry in the configuration to map the IDs explicitly. Confirm the mapping range in the configuration against your host's subordinate ID settings. The step is done when a numeric ls on the host shows the mapped owner that corresponds to the application user inside the container.

  5. Start the container and verify access as the application user

    Start the container and run commands as the application user, not root, so the test reflects how the service will behave. Check that the mount appears in the container with df or findmnt, then write a test file, read it back, and remove it. Repeat the check for a read-only mount to confirm writes fail as intended. The step is done when the application user can read and write the expected path, the test file has the correct numeric owner on the host, and the read-only mount refuses writes.

  6. Confirm the mount is included in backup scope

    Check how the mount point is treated by the backup job. Volume mount points are normally part of the container backup, while bind mounts are typically excluded and must be backed up by a separate process. Confirm the setting in the backup job and in the container configuration, and ask the backup owner to confirm that this data is covered by the chosen approach. The step is done when the backup job's include or exclude behavior for this mount is written down and agreed by the data owner.

  7. Run a test backup and restore

    Run a backup of the container, then restore it to a non-production container ID or a separate storage target. Start the restored container and repeat the read and write check from the earlier step, comparing file counts and checksums against the source for a sample of files. Record which mount points came back and whether bind mount data was present, and compare that with the scope you confirmed. The step is done when the restored container shows the same data and ownership, and the result is recorded with the backup and restore dates.

How host storage reaches a container's mount point

The path starts at the host storage backend, where a volume is created on a Proxmox VE storage pool or a host directory already exists. A mount point hands that storage to the container's configuration, while a bind mount points the container directly at a host path. For unprivileged containers, the UID mapping layer decides which host IDs the container's users appear as, so file ownership must be checked on the host side. The backup job then includes or excludes each mount, which is where the choice affects restore and migration. Mark the boundary between host and container as the place where permissions are enforced.

Data path from host storage to a container mount point, with the trust boundary and backup hand-off.

Security and operational risks of shared container data

A bind mount gives a container a direct view of a host path, so the security of shared data depends on who can change the container and on the permissions behind the mount. The cards below cover the main exposure points and the checks that keep them under review. Most of them are decisions your team makes once and then verifies on a schedule.

Host path exposure

A bind mount maps a directory from the Proxmox VE host into the container, so anything the container process can reach under that path is also reachable from the host side. Mounting a broad path such as a parent directory of several datasets widens that exposure. Review each mount and map it to one dataset or subdirectory that the workload needs. Confirm that no sensitive host paths, such as configuration or key directories, sit under a mounted tree.

Proxmox VE docs

Privilege to create bind mounts

Creating a bind mount on a container is a privileged operation on the host, and it is not a routine change a container owner should make alone. Limit who holds the rights to edit container configuration and confirm which Proxmox VE roles and paths grant that access. Record who has the ability to add mount points so that a later change can be traced to a person and a ticket.

Permissions drift over time

Ownership and mode bits on shared directories often change after the first deployment, for example when an application upgrade rewrites files or when an administrator fixes an access error with a broad chmod. The effective UID inside an unprivileged container is also offset from the host UID, so a fix made in one place can silently break another. Compare ownership and modes on the host and in the container after each upgrade and record the expected values.

Access control on shared directories

A directory shared by several containers is a single trust boundary, so one compromised workload can read or change data that belongs to another. Decide which containers may write to each path and avoid one shared writable directory for unrelated services. Use separate directories and separate mapped ownership for each workload where the data classification differs. Verify this with a test in which one container attempts to read another container's path.

Change control for mount points

Mount points should change through the same review path as other infrastructure, with a written reason, an owner, the host path, the container ID, and the rollback steps. An undocumented mount added during troubleshooting often outlives the incident and becomes an unknown data path. Keep a current inventory of every mount point across containers and reconcile it against the change log at each review.

Periodic access reviews

Access to container configuration and shared data needs a scheduled review, not only an approval at deployment. Check who holds administrative roles in the Proxmox VE user and permission model, remove accounts for people who have changed roles, and confirm that second-factor settings still apply to administrators. Review the mount inventory alongside the user list, since a valid account with mount rights is the path to new host exposure. Ask your identity team to confirm how the sign-in realm for these administrators is managed.

User management wiki

How mount choices affect backup and migration

The mount type you choose decides whether a container's data travels with its backup and its move between nodes. A volume mount point is a storage volume that Proxmox VE allocates and tracks as part of the container configuration, so the built-in backup tool and migration process can see it. A bind mount points at a directory on the host, such as /srv/share, and Proxmox VE does not own that path. Before you rely on any mount for recovery, confirm for your Proxmox VE version which mount points are included in container backups, which are excluded, and how the backup tool handles bind mounts. Treat that answer as a configuration fact to verify in your own environment, not as an assumption carried over from another release.

Migration follows the same split. A volume mount point on local storage must be copied to the target node during a migration, which adds time and network load that grows with the size of the data. A bind mount refers to a host path that must already exist on the target node with the same content and permissions, or the container will not start there as expected. Shared storage that every candidate node can reach removes most of the copying, but it does not remove the host path requirement for bind mounts. Map each mount to the node or nodes that can serve it before you plan maintenance moves or HA failover. The Proxmox VE migration guide covers the general migration methods, though container-specific behavior should be checked against the container migration documentation for your release.

Test the path end to end before production data depends on it. Run a backup of a test container that uses each mount type, restore it to a different storage target, and confirm the data, ownership and permissions are intact. Then migrate the container to a second node and check that the bind mount source exists there and that the application reads and writes correctly. Record which paths are not captured by backup jobs and assign an owner to back them up separately. Ask your team to document these results alongside the mount inventory so that a restore or node failure does not depend on memory.

Limits to confirm before you commit to a storage design

Mount behavior depends on the storage underneath, the cluster layout and the Proxmox VE release in use. The cards below list what to verify in your own environment before you fix a design, because a choice that works on one node or one filesystem may not hold across the cluster, in restores or during backups.

ACLs and quotas on your filesystem

Whether a mount point or bind mount keeps POSIX ACLs and project quotas depends on the filesystem and mount options on the host, not on the container. Ask your storage vendor or test on your own hardware which features survive the mount and how they behave for an unprivileged container. Record the results per filesystem type, since ZFS datasets, LVM-thin volumes and NFS exports rarely behave the same way.

Bind mount behavior across nodes

A bind mount points at a path that exists only on one host. If the container can move to another node through migration or HA, the same path must exist with the same content and ownership on every eligible node. Confirm how your cluster keeps those paths consistent, and decide whether a container that depends on a host path is allowed to run on other nodes at all.

Restore behavior for mounts

Restoring a container does not automatically recreate every host path it used. Test a restore on a separate node and check which mount points come back, where they attach, whether ownership and UID mapping still match, and whether the restore fails or silently skips a missing path. Write the result into your runbook before production data depends on it.

Backup coverage for each mount type

Volume mount points are stored with the container and included in its backup by default, while bind mounts usually are not, so data outside the container can be missing from your backup set without any error. Confirm for each mount type what the backup job captures, whether excluded mounts are listed anywhere, and how you will prove that a restore includes the data you expect.

Proxmox VE version requirements

Mount handling, backup options and container features change between major releases, so a design validated on one version may not hold on another. Check the release notes and documentation for the exact Proxmox VE version you run, and plan the test matrix around it. Confirm your upgrade path before you depend on a specific mount or backup behavior.

Proxmox VE FAQ

Questions teams ask before building container storage

Can our own team configure bind mounts for LXC containers?

Yes, a team with Linux and Proxmox VE administration experience can add mount points and bind mounts itself, and the work is well documented in the Proxmox VE documentation. The harder part is deciding what to mount, which user IDs the application runs as, and how the mount behaves under backup and migration. Teams that have not run containers with mapped user IDs before often find the file ownership step takes longer than the configuration step. Ask yourself whether someone on your team can test restores and a node move with real data, because that testing is where mistakes usually surface.

What drives the effort of container storage work?

Four factors shape most of the effort:

  • The privilege model: unprivileged containers need UID and GID mapping, while privileged containers do not, and the mapping changes how files on the host must be owned.
  • The number of mounts: each mount point needs its own path, permissions, backup decision and test.
  • UID alignment: the user IDs inside the container must match the ownership of host or storage paths, which often requires review of each application.
  • Backup and migration testing: mount points that are included or excluded from backups, and volumes that must be copied during a move, each need a restore and migration check.

Fewer mounts with standard ownership usually cost less to design and verify than many mounts with custom ownership.

What do we need to provide before a storage engagement starts?

The work goes faster when you provide an inventory of the data each container needs, including paths, sizes, growth expectations and whether the data is shared between containers. You should also supply the user and group IDs each application runs under, the storage backends available on your nodes, and your backup policy, including retention, restore targets and any off-site requirements. Where the data has compliance or retention obligations, include the owners who can confirm them. Missing inventory items are the most common reason a fixed-scope plan needs to be revised.

Do bind mounts or volume mount points suit a Proxmox VE cluster?

Volume mount points are usually the better fit for clustered deployments because Proxmox VE manages them as storage volumes that the platform can back up, snapshot and move with the container. Bind mounts reference a path on the host, so the same path must exist and carry the same contents on every node where the container may run. That requirement is manageable with shared storage such as NFS or CephFS, but it depends on your storage design. Confirm with your storage architecture which option your cluster supports before you choose.

How do quotas and ACLs affect backup and migration?

Quotas and ACLs are enforced on the filesystem or storage that holds the data, so their behavior depends on the backend your nodes use. Access control entries and quota settings may need to survive a restore or a move to different storage, and this should be tested rather than assumed. Ask your storage team which filesystems support the controls you need, and include a restore test that checks ownership, permissions and limits after recovery.

What does a fixed-scope container storage engagement cover?

A fixed-scope engagement covers the agreed set of containers, mount points and storage paths, and the deliverables named in the written scope. Typically this includes the storage design, configuration of mounts and UID mapping for the in-scope containers, backup and restore verification for those containers, and documentation for your team. Work outside the agreed list, such as additional applications or a new storage backend, is quoted separately. DeployOpen does not publish a price list, so a quote follows from the written scope and the inventory you provide.

Does the Proxmox VE subscription change how storage work is priced?

The software is the same across subscription tiers, and it can be used without a subscription, so a subscription is not required to configure mounts or storage. The tiers differ in support entitlements and access to the enterprise repository, which the Proxmox VE package repositories documentation recommends for production. Community pricing is listed at 120 euros per CPU socket per year, and Premium at 1,100 euros per CPU socket per year, according to the Proxmox VE pricing page. Include the support level you need in your cost model alongside the implementation work.

How DeployOpen scopes container storage work

DeployOpen plans, implements and documents the storage side of LXC containers on your Proxmox VE hosts, inside your own infrastructure, and it agrees the scope in writing before any work starts. For this topic that means deciding which containers need host data, whether each path should be a volume mount point or a bind mount, how UIDs and GIDs map for unprivileged containers, and which quota and ACL rules apply. The written scope lists the containers in question, the host paths and storage pools involved, the backup and migration behavior you accept for each mount, the test cases used to prove access works, and the documentation your operations team receives. Engagements are fixed-scope, so deliverables and timelines are agreed up front, and a quote follows from that document rather than from a price list. DeployOpen does not publish rates, so the scope document is the basis for comparing offers.

Scoping usually starts with an inventory your team can confirm before any quote is requested: each container's ID, its privilege level, the host paths it reads or writes, the file owners those paths expect, and whether the data must survive a node rebuild. Those answers decide the effort. A few mounts on a single node with simple ownership are a different job from dozens of unprivileged containers sharing mounts across a cluster with ACLs and separate backup rules. Ask for the scope to state which checks run on each host and which run on the containers, and whether the mount settings will be reproduced from configuration files so a rebuild can be repeated.

Once the first build is delivered, ongoing support can be covered by a retainer, which typically handles updates, new mount requests, permission changes after a template or application upgrade, and periodic verification of backups that include mount points. Confirm with DeployOpen what the retainer covers, how requests are logged, and how quickly changes are scheduled, since these terms are written into the agreement rather than assumed. Your own team should also confirm which Proxmox VE release line your hosts run, because support windows depend on it and the Proxmox VE FAQ explains how long each release is supported.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.