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 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.0is the NFS version to use.-o sec=krb5is required if your service provider uses Kerberos authentication in NFS shares.share1.example.comis the share hostname. You can also use IP addresses./0200000000000002/export1is the path to export./mnt/nfsis 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.0line to the/etc/nfs.conffile.In the Finder > Go > Connect to server window, specify
nfs://share1.example.com:/0200000000000002/export1where:
share1.example.comis the share hostname. You can also use IP addresses./0200000000000002/export1is the path to export.
Click Connect.
The Finder will mount the export to
/Volumes/0200000000000002/export1.
Version 2.5 — Jun 27, 2018