NFS sharing problem, cant migrate the VMs

It would be better anybody can provide the steps to setup NFS shared datastore.

Error on creating vm

error: Cannot access storage file ‘/var/lib/one//datastores/125/31/disk.1’: Permission denied

We mounted the NFS share from opennebula frontend server to all open nebula nodes. I’m not sure how to setup NFS share in open nebula as shared datastore and how VMs can be migrated without any fail.

Mounted NFS volume like below,

mount -t nfs 192.168.207.20:/var/lib/one/ /var/lib/one/

Once mounted, /var/lib/one/ will be readonly. " permission denied’’

[oneadmin@open ~]$ onedatastore list
ID NAME SIZE AVAIL CLUSTERS IMAGES TYPE DS TM STAT
117 nfs_system 3.6T 95% 0 0 sys - shared on
118 nfs_images 3.6T 95% 0 0 img fs qcow2 on

Hi @Jinesh_Ks

It seems that you don’t have write permissions on /var/lib/one. Check your exports (/etc/exports) and see if you have rw permissions on that directory. Also, maybe this guide https://docs.opennebula.org/5.6/deployment/open_cloud_storage_setup/fs_ds.html can help you.