<div dir="ltr"><div><div>Hi friends, the same errors:<br><br><span id="result_box" class="" lang="en"><span class="">I have done</span> <span class="">everything</span> <span class="">as described<br><br></span></span></div>
<span id="result_box" class="" lang="en"><span class="">1. I created a cluster, in this one the path by datastore is "/var/lib/datastore", add Openvz node, etc. next displays for onecluster show OpVZclus <br><br>
oneadmin@ubuntuOpNeb:~$ onecluster show OpVZclus<br>CLUSTER 102 INFORMATION <br>ID : 102 <br>NAME : OpVZclus <br>
SYSTEM DS : 110 <br><br>CLUSTER TEMPLATE <br>DATASTORE_LOCATION="/var/lib/datastore"<br><br>HOSTS <br>3 <br>
<br>VNETS <br>4 <br><br>DATASTORES <br>110 <br>111 <br><br></span></span></div><span id="result_box" class="" lang="en"><span class="">2. The datastore created with TM as ssh, next displays onedatastore show<br>
</span></span><div><div><div><div><div class="gmail_extra"><br>oneadmin@ubuntuOpNeb:~$ onedatastore show 110<br>DATASTORE 110 INFORMATION <br>ID : 110 <br>
NAME : ssh_dsOpvz2 <br>USER : oneadmin <br>GROUP : oneadmin <br>CLUSTER : OpVZclus <br>TYPE : SYSTEM <br>DS_MAD : - <br>
TM_MAD : ssh <br>BASE PATH : /var/lib/datastore/110<br>DISK_TYPE : FILE <br><br>DATASTORE CAPACITY <br>TOTAL: : - <br>
USED: : - <br>FREE: : - <br><br>PERMISSIONS <br>OWNER : um- <br>GROUP : u-- <br>
OTHER : --- <br><br>DATASTORE TEMPLATE <br>BRIDGE_LIST="192.168.147.134"<br>TM_MAD="ssh"<br>TYPE="SYSTEM_DS"<br>
<br>IMAGES <br><br><br>oneadmin@ubuntuOpNeb:~$ onedatastore show 111<br>DATASTORE 111 INFORMATION <br>ID : 111 <br>NAME : ssh_diOpvz2 <br>
USER : oneadmin <br>GROUP : oneadmin <br>CLUSTER : OpVZclus <br>TYPE : IMAGE <br>DS_MAD : fs <br>TM_MAD : ssh <br>
BASE PATH : /var/lib/datastore/111<br>DISK_TYPE : FILE <br><br>DATASTORE CAPACITY <br>TOTAL: : 23.6G <br>USED: : 75M <br>
FREE: : 2.2G <br><br>PERMISSIONS <br>OWNER : um- <br>GROUP : u-- <br>OTHER : --- <br>
<br>DATASTORE TEMPLATE <br>BRIDGE_LIST="192.168.147.134"<br>DS_MAD="fs"<br>NO_DECOMPRESS="yes"<br>TM_MAD="ssh"<br>TYPE="IMAGE_DS"<br>
<br>IMAGES <br>21 <br><div class="gmail_quote"><br></div><div class="gmail_quote">3. When I deploy VM with VE_LAYOUT ="ploop" display the same error "...bad file descriptor..."<br>oneadmin@ubuntuOpNeb:~$ cat /var/log/one/72.log<br>
Mon Dec 2 23:07:34 2013 [DiM][I]: New VM state is ACTIVE.<br>Mon Dec 2 23:07:34 2013 [LCM][I]: New VM state is PROLOG.<br>Mon Dec 2 23:07:34 2013 [VM][I]: Virtual Machine has no context<br>Mon Dec 2 23:07:54 2013 [LCM][I]: New VM state is BOOT<br>
Mon Dec 2 23:07:54 2013 [VMM][I]: Generating deployment file: /var/lib/one/vms/72/deployment.0<br>Mon Dec 2 23:07:54 2013 [VMM][I]: ExitCode: 0<br>Mon Dec 2 23:07:54 2013 [VMM][I]: Successfully execute network driver operation: pre.<br>
Mon Dec 2 23:07:58 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/ovz/deploy '/var/lib/datastore/110/72/deployment.0' 'ubuntu' 72 ubuntu<br>Mon Dec 2 23:07:58 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz" "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1386043679" 2> /dev/null; true".<br>
Mon Dec 2 23:07:58 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf "/var/lib/datastore/110/72/disk.0" "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"".<br>Mon Dec 2 23:07:58 2013 [VMM][E]: deploy: Command "/usr/bin/sudo /usr/sbin/vzctl create 1072 --layout ploop --ostemplate "debian-7.0-x64" --private "/var/lib/datastore/110/72/private" --root "/var/lib/datastore/110/72/root"" failed.<br>
Mon Dec 2 23:07:58 2013 [VMM][E]: deploy: Error in do_lock (lock.c:136): Error in flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor<br>Mon Dec 2 23:07:58 2013 [VMM][I]: Failed to create image: Error in do_lock (lock.c:136): Error in flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor [23]<br>
Mon Dec 2 23:07:58 2013 [VMM][I]: Creation of container private area failed<br>Mon Dec 2 23:07:58 2013 [VMM][E]: Error in do_lock (lock.c:136): Error in flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor<br>
Mon Dec 2 23:07:58 2013 [VMM][E]: Failed to create image: Error in do_lock (lock.c:136): Error in flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor [23]<br>Mon Dec 2 23:07:58 2013 [VMM][E]: Creation of container private area failed<br>
Mon Dec 2 23:07:58 2013 [VMM][E]: <br>Mon Dec 2 23:07:58 2013 [VMM][I]: ExitCode: 151<br>Mon Dec 2 23:07:58 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>Mon Dec 2 23:07:58 2013 [VMM][E]: Error deploying virtual machine: Error in do_lock (lock.c:136): Error in flock(/var/lib/datastore/110/72/private.tmp/root.hdd/DiskDescriptor.xml.lck): Bad file descriptor<br>
Mon Dec 2 23:07:58 2013 [DiM][I]: New VM state is FAILED<br><br></div><div class="gmail_quote"><div class="gmail_quote"></div>4. When I deploy VM with VE_LAYOUT ="simfs" display the error "...tar...cannot change ownership to uid0, gid0: Operation not permitted", a little extract of log file:<br>
<br>Mon Dec 2 23:19:04 2013 [VMM][E]: tar: ./usr/sbin: Cannot change ownership to uid 0, gid 0: Operation not permitted<br>Mon Dec 2 23:19:04 2013 [VMM][E]: tar: ./usr: Cannot change ownership to uid 0, gid 0: Operation not permitted<br>
Mon Dec 2 23:19:04 2013 [VMM][E]: tar: .: Cannot change ownership to uid 0, gid 0: Operation not permitted<br>Mon Dec 2 23:19:04 2013 [VMM][E]: tar: Exiting with failure status due to previous errors<br>Mon Dec 2 23:19:04 2013 [VMM][E]: vps-create ERROR: Unpack /var/lib/vz/template/cache/debian-7.0-x64.tar.gz failed<br>
Mon Dec 2 23:19:04 2013 [VMM][E]: Creation of container private area failed<br>Mon Dec 2 23:19:04 2013 [VMM][E]: <br>Mon Dec 2 23:19:04 2013 [VMM][I]: ExitCode: 48<br>Mon Dec 2 23:19:04 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.<br>
Mon Dec 2 23:19:04 2013 [VMM][E]: Error deploying virtual machine: tar: ./usr/local/include: Cannot change ownership to uid 0, gid 50: Operation not permitted<br>Mon Dec 2 23:19:04 2013 [DiM][I]: New VM state is FAILED<br>
<span id="result_box" class="" lang="en"><br></span></div><div class="gmail_quote"><span id="result_box" class="" lang="en">Inside previous mails, I attached the same log files.<br></span></div><div class="gmail_quote"><span id="result_box" class="" lang="en"><br>
<span class="">I do not</span> <span class="">know what to do</span></span>, please help me.<br><br></div><div class="gmail_quote">Regards, Caty.<br></div><div class="gmail_quote"><br><br><br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Date: Mon, 2 Dec 2013 15:35:46 +0400<br>
From: Nikita Balashov <<a href="mailto:balashov.nikita@gmail.com">balashov.nikita@gmail.com</a>><br>
To: Catalina Quinde <<a href="mailto:catalinaquinde@gmail.com">catalinaquinde@gmail.com</a>><br>
Cc: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
Subject: Re: [one-users] VM in Opennebula for OpenVZ failed<br>
Message-ID:<br>
<CADp2OfvxvF20bvcbQAcDDaHcWMa+gbQPK0=<a href="mailto:iR-Sj1T4V5VN7-w@mail.gmail.com">iR-Sj1T4V5VN7-w@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Currently the ovz driver doesn't support shared TM for system and default<br>
datastores - try changing them to ssh<br>
<br>
Regards,<br>
Nikita<br>
<br>
<br>
2013/12/2 Catalina Quinde <<a href="mailto:catalinaquinde@gmail.com">catalinaquinde@gmail.com</a>><br>
<br>
> Hi Nikita,<br>
><br>
> Thanks for your help<br>
><br>
> I do this changes:<br>
><br>
> 1. In the /etc/default/nfs-kernel-server, I inactivated nfsv4 in this line<br>
> RPCMOUNTDOPTS="--manage-gids --no-nfs-version 4"<br>
><br>
> 2. My /etc/exports file contains:<br>
> /var/lib/one/datastores<br>
> <a href="http://192.168.147.0/255.255.255.0(rw,anonuid=1001,anongid=1001)" target="_blank">192.168.147.0/255.255.255.0(rw,anonuid=1001,anongid=1001)</a><br>
><br>
> 3. In /etc/fstab file in openvz node contains:<br>
> 192.168.147.129:/var/lib/one/datastores /var/lib/one/datastores nfs<br>
> _netdev,auto 0 0<br>
><br>
> 4. output onedatastore command is<br>
><br>
> ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS<br>
> TM<br>
> 0 system - - - 0 sys -<br>
> shared<br>
> 1 default 23.6G 10% - 2 img fs<br>
> shared<br>
> 2 files 23.6G 10% - 0 fil fs ssh<br>
> 102 ssh_dsEsxi - - Esxiclus 0 sys - vmfs<br>
> 103 ssh_diEsxi 0M - Esxiclus 0 img vmfs vmfs<br>
> 104 ssh_dsOpvz - - OpenVZclus 0 sys - ssh<br>
> 105 ssh_diOpvz 23.6G 10% OpenVZclus 2 img fs ssh<br>
><br>
> the datastores 104 and 105 are by openvz node.<br>
><br>
> 5. I deploy VM but errors are same:<br>
> oneadmin@ubuntuOpNeb:~$ cat /var/log/one/67.log<br>
> Sun Dec 1 23:52:20 2013 [DiM][I]: New VM state is ACTIVE.<br>
> Sun Dec 1 23:52:20 2013 [LCM][I]: New VM state is PROLOG.<br>
> Sun Dec 1 23:52:20 2013 [VM][I]: Virtual Machine has no context<br>
> Sun Dec 1 23:52:40 2013 [LCM][I]: New VM state is BOOT<br>
> Sun Dec 1 23:52:40 2013 [VMM][I]: Generating deployment file:<br>
> /var/lib/one/vms/67/deployment.0<br>
> Sun Dec 1 23:52:40 2013 [VMM][I]: ExitCode: 0<br>
> Sun Dec 1 23:52:40 2013 [VMM][I]: Successfully execute network driver<br>
> operation: pre.<br>
> Sun Dec 1 23:52:45 2013 [VMM][I]: Command execution fail: cat << EOT |<br>
> /var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/104/67/deployment.0'<br>
> 'ubuntu' 67 ubuntu<br>
> Sun Dec 1 23:52:45 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv<br>
> "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"<br>
> "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz.1385959963" 2> /dev/null;<br>
> true".<br>
> Sun Dec 1 23:52:45 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf<br>
> "/var/lib/one/datastores/104/67/disk.0"<br>
> "/var/lib/vz/template/cache/debian-7.0-x64.tar.gz"".<br>
> Sun Dec 1 23:52:45 2013 [VMM][E]: deploy: Command "/usr/bin/sudo<br>
> /usr/sbin/vzctl create 1067 --layout ploop --ostemplate "debian-7.0-x64"<br>
> --private "/var/lib/one/datastores/104/67/private" --root<br>
> "/var/lib/one/datastores/104/67/root"" failed.<br>
> Sun Dec 1 23:52:45 2013 [VMM][E]: deploy: Error in do_lock (lock.c:136):<br>
> Error in<br>
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):<br>
> Bad file descriptor<br>
> Sun Dec 1 23:52:45 2013 [VMM][I]: Failed to create image: Error in<br>
> do_lock (lock.c:136): Error in<br>
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):<br>
> Bad file descriptor [23]<br>
> Sun Dec 1 23:52:45 2013 [VMM][I]: Creation of container private area<br>
> failed<br>
> Sun Dec 1 23:52:45 2013 [VMM][E]: Error in do_lock (lock.c:136): Error in<br>
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):<br>
> Bad file descriptor<br>
> Sun Dec 1 23:52:45 2013 [VMM][E]: Failed to create image: Error in<br>
> do_lock (lock.c:136): Error in<br>
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):<br>
> Bad file descriptor [23]<br>
> Sun Dec 1 23:52:45 2013 [VMM][E]: Creation of container private area<br>
> failed<br>
> Sun Dec 1 23:52:45 2013 [VMM][E]:<br>
> Sun Dec 1 23:52:45 2013 [VMM][I]: ExitCode: 151<br>
> Sun Dec 1 23:52:45 2013 [VMM][I]: Failed to execute virtualization driver<br>
> operation: deploy.<br>
> Sun Dec 1 23:52:45 2013 [VMM][E]: Error deploying virtual machine: Error<br>
> in do_lock (lock.c:136): Error in<br>
> flock(/var/lib/one/datastores/104/67/private.tmp/root.hdd/DiskDescriptor.xml.lck):<br>
> Bad file descriptor<br>
> Sun Dec 1 23:52:45 2013 [DiM][I]: New VM state is FAILED<br>
><br>
> 6. I used VE_LAYOUT="simfs" in template but the result in state is fail,<br>
> with errors command tar, I attached the 68.log file.<br>
><br>
> I'm doing wrong??<br>
><br>
> Regards, Caty.<br>
><br></blockquote></div><br></div></div></div></div></div></div>