hello, i solved this problem.


 
For all that have this problem with read only file system and nfs.
For me , the problem was the NFS configuration (/etc/exports).
I just need to put no_root_squash in NFS option like above:
/var/lib/one/datastores       192.168.0.5(rw,sync,no_subtree_check,no_root_squash)



De: kenny.ke...@bol.com.br
Enviada: Sábado, 21 de Setembro de 2013 01:44
Para: users@lists.opennebula.org < users@lists.opennebula.org >
Assunto: [one-users] Opennebula read only VM root file system

Hello.
 
I´m using opennebula 4.2 and xen 4.2 with shared datastore. It´s all ok, but the vm file system is mounted iwth readonly.
I try the same image used by opennebula just with xen , and it works ok.
 
The NFS is all ok in client (xen) and server (opennebula).
 
But i saw some thing: my opennebula datastores is rwx for all (777) , but when opennebula create the vm image, it is 422 like above:
Does anybody knows how can i change this permissions in opennebula ?

root@ubuntu:/# ls -l /var/lib/one/datastores/
total 20
drwxrwsrwx 2 oneadmin oneadmin 4096 Sep 21 01:16 0
drwxrwsrwx 2 oneadmin oneadmin 4096 Sep 13 15:06 1
drwxrwxrwx 2 oneadmin cloud    4096 Sep 21 00:08 100
drwxrwxrwx 2 oneadmin cloud    4096 Sep  1 17:59 101
drwxrwxrwx 2 oneadmin cloud    4096 Aug 10 19:05 2
root@ubuntu:/# ls -l /var/lib/one/datastores/0/
total 4
drwxrwsr-x 2 9869 oneadmin 4096 Sep 21 01:19 118
root@ubuntu:/# ls -l /var/lib/one/datastores/0/118/
total 3145736
-rw-rw-r-- 1 9869 oneadmin        256 Sep 21 01:19 deployment.0
-rw-r--r-- 1 9869 oneadmin 3221225472 Sep 21 01:19 disk.0
root@ubuntu:/#

 
_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to