VMWARE ESXI 6.5/6.7 NFS4.1, CLI update


ESXi 5.1 update via CLI:
- enable ssh on host
vim-cmd /hostsvc/maintenance_mode_enter
esxcli network firewall ruleset set -e true -r httpClient
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-5.5
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.5.0-20180904001-standard
reboot
esxcli network firewall ruleset set -e false -r httpClient
vim-cmd /hostsvc/maintenance_mode_exit



NFS4.1 FreeNAS issue:
https://www.ixsystems.com/community/threads/nfs-4-1-datastore-mounted-as-read-only.69173/

ESX 6.5 NFSv4.1 mounts do not work well, due to what I believe are violations of RFC-5661 and should not be used.
https://redmine.ixsystems.com/projects/freenas/repository/os/revisions/5fb1d5502de565b42474155a4ba4ed73af268b82




NFS on Centos 7

yum install nfs-utils
mkdir /mnt/nfs41
chmod -R 755 /mnt/nfs41
chown nfsnobody:nfsnobody /mnt/nfs41


systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap
systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap

nano /etc/exports
/mnt/nfs41           *(rw,sync,no_root_squash,no_all_squash)

systemctl restart nfs-server


[root@centos7 nfs41]# showmount -e localhost
Export list for localhost:
/mnt/nfs41 *
[root@centos7 nfs41]#