[one-users] Mounting on NFS

Rui Esteves m4609 at iscte.pt
Wed May 18 06:49:54 PDT 2011


Hi
I have a test environment with 2 computers and I am having difficulty  
to mount the /srv/cloud directory.
The front-end has Ubuntu server with static IP xx.yy.z.15, and the  
node has Ubuntu Desktop with dynamic IP but at this moment being  
xx.yy.z.100
On Front-end:
1- sudo mkdir -p /srv/cloud/
2- sudo groupadd -g 10000 cloud
3- sudo useradd -u 10000 -g cloud -m oneadmin -d /srv/cloud/one -s /bin/bash
4- sudo passwd oneadmin
5- sudo chown -R oneadmin:cloud /srv/cloud/
6- sudo vi /etc/exports:
           /srv/cloud  
xx.yy.z.0/255.255.255.0(rw,fsid=0,nohide,sync,root_squash,no_subtree_check)
7- sudo /etc/init.d/nfs-kernel-server start
8- su -l oneadmin
9- ssh-keygen
10- cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
11- echo "StrictHostKeyChecking no" > ~/.ssh/config
12- < Installed the Opennebula (2.2) >
13- ./install.sh -u oneadmin -g cloud -d /srv/cloud/one
14- cat ~/.bash_profile
           export ONE_LOCATION=/srv/cloud/one
           export ONE_AUTH=$ONE_LOCATION/.one/one_auth
           export ONE_XMLRPC=http://localhost:2633/RPC2
           export  
PATH=$ONE_LOCATION/bin:/usr/local/bin:/var/lib/gems/1.8/bin/:$PATH
15- source ~/.bash_profile
16- mkdir ~/.one
17- echo "oneadmin:password" > ~/.one/one_auth
18- vi ~/etc/oned.conf
          <commented the KVM related lines and un-commented the XEN  
related lines>
19- one start

At the node:
20-  < Added the following line at the end of /etc/fstab >
           xx.yy.z.15:/srv/cloud /srv/cloud nfs defaults 0 0
21- sudo mkdir -p /srv/cloud

Now I am unable to mount it.
- If I mount from the node (sudo mount /srv/cloud) I get the error:
      mount.nfs: access denied by server while mounting xx.yy.z.15:/srv/cloud
-If I mount from the Front-end (sudo mount -t nfs  
xx.yy.z.100:/srv/cloud /srv/cloud) I get the error:
      mount.nfs: Connection timed out


What might I be missing here?

Thank you.






More information about the Users mailing list