Adding an NFS Share on TrueNAS for ESXi
While deploying a new two node cluster in my VCF 9 lab, I decided to use True NAS as the NFS storage solution. Everything looked fine at first, both ESXi hosts mounted the NFS datastore without any issue.
But I saw the workflow for deploying cluster in VCF Operations Manager failed. Clearly, it was a permissions issue, after a bit searching, I found the fix and wanted to share the full process here for anyone hitting the same problem.

1- Go to Shares → Unix (NFS) Shares and click Add. Select your dataset via the path browser or create a new dataset directly.

(Optional) Define Allowed Networks or specific Hosts to lock down who can reach the share.
Then take a look at Advanced Options and configure the following mapping, it ensures ESXi’s root session gets proper permissions.
Maproot User: root
Maproot Group: wheel

Save the share and enable the NFS service—either from the popup box or from System → Services.

I restarted the Task in VCF Operations one more time and this time, a new cluster could successfully create file and folders it needed on the NFS share.

