Moreover, I could successfully run simfs VM on NFS shared system DS.
My settings was the following:
1) on NFS server /etc/exports has the line
/var/lib/one/datastores <network/mask>(rw,no_subtree_check,no_root_squash)

2) NFS directory on the cluster node was mounted as
mount -t nfs -o vers=3 <nfs-server IP address>:/var/lib/one/datastores /vz/one/datastores/
mount |grep datastores
<nfs-server IP>:/var/lib/one/datastores on /vz/one/datastores type nfs (rw,vers=3,addr=<nfs-server IP address>)

Directories permissions on cluster node are as below:
$ ll /vz|grep one
drwxr-xr-x 4 oneadmin oneadmin 4096 Dec 14 10:36 one

$ ll /vz/one
total 8
drwxr-x--- 7 oneadmin oneadmin 4096 Dec 14 11:56 datastores
drwxr-x--- 9 oneadmin oneadmin 4096 Dec 14 10:36 scripts

$ ll /vz/one/datastores/
total 16
drwxr-x--- 4 oneadmin oneadmin 4096 Dec 14 12:52 0
drwxr-x--- 3 oneadmin oneadmin 4096 Dec 14 10:38 1
drwxrwxr-x 2 oneadmin oneadmin 4096 Aug  5 17:21 2
drwxr-xr-x 2 root     root     4096 Dec 14 11:59 vztmp

$ ll /vz/one/datastores/0/
total 8
drwxrwxr-x 3 oneadmin oneadmin 4096 Dec 14 12:48 1
drwxrwxr-x 4 oneadmin oneadmin 4096 Dec 14 13:40 2

Hope it  helps.
Regards,
Nikolay.


On 12/14/2013 11:52 AM, knawnd wrote:
Hi Caty,

Sorry for the long delay in reply (a lot of urgent things to do before the end of the year).

So according to info you provided now your system DS is ssh-based and not shared (NFS) anymore, right?

> oneadmin@ubuntuOpNeb:~$ onedatastore list
> ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS       TM
> 0 system                 - -     -                 0 sys -        ssh

We have the following directory permissions on cluster nodes:
$ ll /vz/ |grep one
drwx------ 5 oneadmin oneadmin  4096 Nov 21 12:01 one

$ll /vz/one/
drwxrwxr-x 3 oneadmin oneadmin 4096 Nov 25 13:02 datastores
drwxr-x--- 9 oneadmin oneadmin 4096 Nov 21 12:01 scripts

$ll /vz/one/datastores/
total 4
drwxrwxr-x 5 oneadmin oneadmin 4096 Dec  4 20:51 0

$ ll /vz/one/datastores/0/
drwxrwxr-x 4 oneadmin oneadmin 4096 Nov 29 12:53 24
drwxrwxr-x 4 oneadmin oneadmin 4096 Dec  2 13:10 35
drwxrwxr-x 4 oneadmin oneadmin 4096 Dec  4 20:53 46


Hope it helps.
Nikolay.


On 12/13/2013 10:52 AM, Catalina Quinde wrote:
Hi friends,

1.I created a VM in Opennebula for OpenVZ but this is failed, this is your log:

oneadmin@ubuntuOpNeb:~$ cat /var/log/one/1.log
Fri Dec 13 01:45:56 2013 [DiM][I]: New VM state is ACTIVE.
Fri Dec 13 01:45:56 2013 [LCM][I]: New VM state is PROLOG.
Fri Dec 13 01:46:15 2013 [LCM][I]: New VM state is BOOT
Fri Dec 13 01:46:15 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/1/deployment.0
Fri Dec 13 01:46:16 2013 [VMM][I]: ExitCode: 0
Fri Dec 13 01:46:16 2013 [VMM][I]: Successfully execute network driver operation: pre. Fri Dec 13 01:46:21 2013 [VMM][I]: Command execution fail: cat << EOT | /vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/1/deployment.0' 'ubuntu' 1 ubuntu Fri Dec 13 01:46:21 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz" "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1386917185" 2> /dev/null; true". Fri Dec 13 01:46:21 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf "/vz/one/datastores/0/1/disk.0" "/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"". Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Command "/usr/bin/sudo /usr/sbin/vzctl create 1001 --layout ploop --ostemplate "debian-7.0-x86_64" --private "/vz/one/datastores/0/1/private" --root "/vz/one/datastores/0/1/root"" failed. Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Can't create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][I]: Unable to create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][I]: Creation of container private area failed Fri Dec 13 01:46:21 2013 [VMM][E]: Can't create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][E]: Unable to create directory /vz/one/datastores/0/1/private.tmp: Permission denied Fri Dec 13 01:46:21 2013 [VMM][E]: Creation of container private area failed
Fri Dec 13 01:46:21 2013 [VMM][E]:
Fri Dec 13 01:46:21 2013 [VMM][I]: ExitCode: 48
Fri Dec 13 01:46:21 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy. Fri Dec 13 01:46:21 2013 [VMM][E]: Error deploying virtual machine: Can't create directory /vz/one/datastores/0/1/private.tmp: Permission denied
Fri Dec 13 01:46:21 2013 [DiM][I]: New VM state is FAILED

2. My template file contains:

NIC=[NETWORK_ID="0"]
OSTEMPLATE="debian-7.0-x86_64"
DISK=[IMAGE_ID="0"]
DISK=[SIZE="512",TYPE="swap"]
CPU="0.01"
VE_LAYOUT="ploop"
RCLOCAL="rc.local"
OS=[ARCH="x86_64"]
CLUSTER_100="100"
VCPU="1"
REQUIREMENTS="CLUSTER_ID=\"100\""
MEMORY="512"
CONTEXT=[SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",NETWORK="YES"]

3. My datastores list contains:

oneadmin@ubuntuOpNeb:~$ onedatastore list
  ID NAME                SIZE AVAIL CLUSTER      IMAGES TYPE DS       TM
   0 system                 - -     -                 0 sys  -        ssh
   1 default            15.6G 62%   ovz_x64           1 img  fs       ssh
   2 files              15.6G 62%   -                 0 fil  fs       ssh

Please help me solve this, is very important
Thanks, Caty.


_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to