Hi Experts,
Need your help on one of our requirements. Below ae the details of same:
We are using a web based java application which will be deployed on a linux machine. We are using VMWare 5.1 version API's to perform few of the operations like vm poweron/power off/mounting the floppy on the vm etc...Along with it , we will mount our server as NFS store on the ESXi host using VMWare ApI's.
As per our new requirement, user will enter an input in our application which is some other linux server/sftp server ip, which we need to add as an NFS store on the ESXi host using our application and using VMWare API's.
Can you please let me know if that is possible?
I tried doing it by giving the other server ip instead of ours in the application for addNFSDatastore method. Where it is adding an entry of the server ip on /etc/exports file like below:
<path> <server_ip>(ro,all_squash)
and failing to mount the datastore with below error:
" com.vmware.vim25.PlatformConfigFault"
and I could see that the hostd.log has below error :
2016-11-24T08:44:53.857Z info hostd[4D840B70] [Originator@6876 sub=Solo.Vmomi opID=1556dcf9 user=root] Throw vim.fault.PlatformConfigFault
2016-11-24T08:44:53.857Z info hostd[4D840B70] [Originator@6876 sub=Solo.Vmomi opID=1556dcf9 user=root] Result:
--> (vim.fault.PlatformConfigFault) {
| --> | faultCause = (vmodl.MethodFault) null, |
| --> | faultMessage = (vmodl.LocalizableMessage) [ |
| --> | (vmodl.LocalizableMessage) { |
| --> | key = "vob.vmfs.nfs.mount.error.perm.denied", |
| --> | arg = (vmodl.KeyAnyValue) [ |
| --> | (vmodl.KeyAnyValue) { |
| --> | key = "1", |
| --> | value = "1.1.1.1" |
| --> | }, |
| --> | (vmodl.KeyAnyValue) { |
| --> | key = "2", |
| --> | value = "/" |
| --> | } |
| --> | ], |
| --> | message = "NFS mount 10.126.155.104:/common/adminsftp/fresh_install failed: The mount request was denied by the NFS server. Check that the export exists and that the client is permitted to mount it. |
--> "
| --> | } |
| --> | ], |
Can you please provide your thoughts on the above?
Thanks In Advance
Best Regards,