Bobcares

Mount NFS – Operation Not Permitted In Proxmox container | Resolved

by | Jul 8, 2023

The error message “Mount NFS – operation not permitted in Proxmox container” denotes that we ran into a permission-related problem when attempting to mount an NFS share inside a Proxmox container. At Bobcares, with our Proxmox Support, we can handle your related issues.

Fixing “Mount NFS – operation not permitted in Proxmox container”

We may sometimes run into a permission-related problem when attempting to mount an NFS share inside a Proxmox container. This is because Proxmox containers do not by default have the rights necessary to directly mount NFS shares, this error occurs.

Mount NFS - operation not permitted in Proxmox container

LXC (Linux Containers) technology, which offers a lightweight and isolated environment, is the foundation upon which Proxmox containers are built. LXC containers can’t mount NFS shares by default and have limited access to other system resources. However, we can modify the container’s setup and permissions to enable NFS mounting.

Steps to fix the error

In order to fix the error, we need to follow the below steps:

  • Firstly, we need to enable the NFS mounting in the container. So modify the container’s configuration file located in “/etc/pve/lxc/”.
  • Include the following lines to allow NFS mounting:

    bash

    lxc.mount.entry = /path/on/host nfs path/in/container none bind 0 0
  • Now replace “/path/on/host” with the actual path on the Proxmox host where the NFS share is mounted.
  • Then replace “path/in/container” with the desired path within the container where we want to mount the NFS share.
  • After these changes, we need to restart the container for the new configuration to take effect using below code:

    bash

    pct stop <container ID>
    
    pct start <container ID>
  • Now we can try mounting the NFS share inside the container using the typical mount command after the container has restarted. Here, = IP address or hostname of the NFS server, = path of the NFS share on the server, and = the desired mount point path within the container.

    bash

    mount -t nfs <NFS server IP or hostname>:<NFS share path> <mount point within container>

These instructions should help us fix the “Mount NFS – operation not permitted in Proxmox container” error and mount the NFS share inside the container. It’s important to keep in mind that the configuration and permissions may need to be changed as necessary to guarantee proper access to the NFS resources within the container environment.

[Need help with fixing another issue? We are just a click away.]

Conclusion

To conclude, the article provides the steps from our Support team to fix the “Mount NFS – operation not permitted in Proxmox container” error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.