# NFS sharing problem, cant migrate the VMs

**URL:** <https://forum.opennebula.io/t/nfs-sharing-problem-cant-migrate-the-vms/6927>\
**Category:** Operations\
**Created:** [February 22, 2019, 5:58am UTC](https://forum.opennebula.io/t/nfs-sharing-problem-cant-migrate-the-vms/6927 "2019-02-22T05:58:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinesh\_Ks](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jinesh_ks/32/5924_2.png) [@Jinesh\_Ks](https://forum.opennebula.io/u/Jinesh_Ks)\
**Post date:** [February 22, 2019, 5:58am UTC](https://forum.opennebula.io/t/nfs-sharing-problem-cant-migrate-the-vms/6927/1 "2019-02-22T05:58:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [February 22, 2019, 9:36am UTC](https://forum.opennebula.io/t/nfs-sharing-problem-cant-migrate-the-vms/6927/2 "2019-02-22T09:36:59Z")

</div>

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](https://docs.opennebula.org/5.6/deployment/open_cloud_storage_setup/fs_ds.html) can help you.
