Mounting NFS exports on macOS

You can mount an NFS export created in Virtuozzo Hybrid Infrastructure like any other directory exported via NFS. You will need the share IP address (or hostname) and the volume identifier.

You can use the command-line prompt or Finder:

  • In console, run the following commands:

    # mkdir /mnt/nfs
    # mount -t nfs -o vers=4.0 <share_IP>:/<share_name>/ /mnt/nfs
    

    where:

    • -o vers=4.0 is the NFS version to use.

      Virtuozzo Hybrid Infrastructure supports NFS versions 4.0 and 4.1.

    • <share_IP> is the share IP address. You can also use the share hostname.
    • /<share_name>/ is the root export path, like share1. For user exports, specify their full path, for example: /<share_name>/export1.
    • /mnt/nfs is an existing local directory to mount the export to.
  • In Finder, do the following:

    1. Set the NFS version to 4.0. To do this, add the nfs.client.mount.options = vers=4.0 line to the /etc/nfs.conf file.
    2. In the Finder > Go > Connect to server window, specify nfs://192.168.0.51:/<share_name>/

      where:

      • 192.168.0.51 is the share IP address. You can also use the share hostname.
      • /<share_name>/ is the root export path. For user exports, specify their full path, for example: /<share_name>/export1.
    3. Click Connect.

    The Finder will mount the export to /Volumes/<share_name>/.