4.2. Mounting NFS Exports on MacOS

You can mount an NFS export created in Virtuozzo Infrastructure Platform 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 a command like the following:

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

    where:

    • -o vers=4.0 is the NFS version to use.
    • 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.
    • /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>/.