Is there a way to choose wether to connect with reod-only or not from the ESX using the esxcfg-nas command?
The help doesn't list any suitable switches.
The GUI in VC-client however, has an option to mount read-only.
I know you can limit the permision from the NAS altogeter but I would like to have a choice.
/usr/bin/vimsh -n -e "hostsvc/datastore/nas_create +label+ +ip+ +mountpoint+ readonly"
The command mounts the NFS on my ESX 3.5, but still not as readonly.
Did you ever find a way to do this? I am currently trying to perform the same action.
Robert
It does work. I used the following syntax:
/usr/bin/vimsh -n -e "hostsvc/datastore/nas_create testimages testhost.test.co.uk /home/share/images 1"