.. _Mounting NFS Exports on MacOS:

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 hostname (or IP address) and the volume identifier. You can mount the export either via a command-line prompt or in Finder:

- In the command-line prompt, run the following command:

   ::

      # mount -t nfs -o vers=4.0 -o sec=krb5 share1.example.com:/0200000000000002/export1 /mnt/nfs

   where:

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

   - ``-o sec=krb5`` is required if your service provider uses Kerberos authentication in NFS shares.

   - ``share1.example.com`` is the share hostname. You can also use IP addresses.

   - ``/0200000000000002/export1`` is the path to export.

   - ``/mnt/nfs`` is an existing local directory to mount the export to.

- In Finder, do the following:

  #. 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.

  #. In the **Finder** > **Go** > **Connect to server** window, specify ``nfs://share1.example.com:/0200000000000002/export1``

     where:

     - ``share1.example.com`` is the share hostname. You can also use IP addresses.

     - ``/0200000000000002/export1`` is the path to export.

  #. Click **Connect**.

     The Finder will mount the export to ``/Volumes/0200000000000002/export1``.
