An error occurered during host configuration: Operation failed. diagnostics report: Mount failed: Unable to complete Sysinfo operation. Please see the VMkernel.log file for more details: Permission denied./var/run/log/vmkernel.log has below messages which also indicate lack of permission:WARNING: NFS41: NFS41FSGetRootFH:4480: Lookup <nfs fs name> failed for volume nfs41: Permission deniedWARNING: NFS41: NFS41FSCompleteMount:3976: NFS41FSGetRootFH failed: Permission deniedWARNING: NFS41: NFS41FSDoMount:4645: First attempt to mount the filesystem failed: Permission deniedWARNING: NFS41: NFS41_FSMount:4950: NFS41FSDoMount failed: Permission deniedVMware vSphere ESXi 8.0.x
ESXi host reaches out to NFS4.1 datastore with management ip address instead of the intended NFS vmkernel port ip address.
As permission is only granted to NFS vmkernel port ip address from storage, NFS server denies the mount request from ESXi host.
If there is a vmkernel port ip address that's in the same subnet as NFS server, ESXi host will reach out to NFS server from this vmkernel port by default. So one way to workaround the issue is to configure a vmkernel port ip that's in the same subnet as NFS server and grant permission to this vmkernel port ip.
If it's required to mount NFS4.1 datastore from a different subnet, either of the below configurations can be put in place to make it happen:
NFS server needs to be accessible from the intended vmkernel port ip, this can be confirmed with command:
vmkping -I <vmkX> <NFS server ip address>