Article ID: 116652, created on Aug 6, 2013, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux


Let us assume we have the container 101, based on Debian OS. The steps outlined below will allow you to mount the share named /share from the NFS server,, as /mnt from within container 101.

  1. For NFS mounts to work in containers, you must load the module nfs on the Parallels Virtuozzo Containers (PVC) hardware server itself:

    # modprobe nfs
  2. To allow a container to use the NFS filesystem, you will need to start it with the nfs feature enabled:

    # vzctl set 101 --features nfs:on --save
    # vzctl start 101
  3. If the container is running while you set the nfs feature, you will need to restart it:

    # vzctl restart 101
  4. After it is done, you should see nfs in the list of available filesystems inside container 101:

    # vzctl exec 101 cat /proc/filesystems
        nodev    rpc_pipefs
        nodev    autofs
        nodev    proc
        nodev    sysfs
        nodev    tmpfs
        nodev    devpts
        nodev    nfs
  5. For Debian 6 you need to enable portmap service

    # /etc/init.d/portmap start 
    # update-rc.d portmap enable 2

    In case of Debian 7 version rpcbind service should be started instead of portmap.

  6. Install nfs-common package

    # apt-get install nfs-common
  7. Now you may mount the NFS share from within container 101:

    # mount -t nfs /mnt

If you see an error like this:

    mount: mount to NFS server '' failed: RPC Error: Program not registered.

... then make sure that the NFS server is running on the NFS source node:

    # /etc/init.d/nfs status

In case you need to set up NFS for CentOS-based containers - please refer #5494

Search Words


mount.nfs: No such device


nfs client

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f 0dd5b9380c7d4884d77587f3eb0fa8ef c62e8726973f80975db0531f1ed5c6a2

Email subscription for changes to this article
Save as PDF