Article ID: 119344, created on Dec 26, 2013, last review on Jun 17, 2016

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


In Virtuozzo containers for Linux 4.x, Virtuozzo hypervisor 5.0 and Virtuozzo 6.0, you may run an NFSv3 server inside of container.

Let us assume we have the container #101, based on CentOS OS. The steps outlined below will allow you to start NFS server daemon:

  1. For NFS server to work in container, you must load the module nfsd on the hardware server itself:

    # modprobe nfsd

    Please refer to Red Hat documentation for Persistent Module Loading instructions.

  2. To allow a container to use the NFSD filesystem, you will need to start it with the nfsd feature enabled:

    # vzctl stop 101
    # vzctl set 101 --features nfsd:on --save
    # vzctl start 101

    NOTE: if container had features enabled before - you should mention all previously enabled features anew, comma-separated. Check man vzctl for more info.

  3. Install necessary software inside of container:

    For CentOS 6:

    # vzpkg install 101 -p rpcbind nfs-utils

    For CentOS 5:

    # vzpkg install 101 -p portmap nfs-utils
  4. Make sure that rpcbind service is started before nfs service:

    # vzctl exec 101 "chkconfig rpcbind on; service rpcbind start"
  5. Disable NFSv4 and nfsd module loading warnings:

    Inside of container modify /etc/sysconfig/nfs file, append following lines to the end of file:

  6. Start NFS service:

    # vzctl exec 101 "chkconfig nfs on; service nfs start"

See also

5494 NFS client support inside CentOS containers

Search Words

nfs server

ngf inside container


a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb c62e8726973f80975db0531f1ed5c6a2 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF