<div>Hello Mohamed,</div><div> </div><div>Maybe you should do the same correction of paths on the DST_PATH, you have on destination path two slashes "//" ->"Error executing image transfer script: Error copying frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa to 157.159.110.193:/var/lib/one//datastores/0/36/disk.0"!<br clear="all">

<br>--<br>André Monteiro<br><br><br>
<br><br></div><div class="gmail_quote">On Fri, Jun 29, 2012 at 2:38 PM, Mohamed Mohamed <span dir="ltr"><<a href="mailto:mohamed.mohamed@telecom-sudparis.eu" target="_blank">mohamed.mohamed@telecom-sudparis.eu</a>></span> wrote:<br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div style="font-family:Times New Roman;font-size:12pt">

Hello André,<br> thank you for your answer, i made the changes that you suggested and still having the same problem.<br>Best.<br><br><hr><div style="font-family:Helvetica,Arial,sans-serif;font-size:12pt;font-style:normal;font-weight:normal;text-decoration:none">

<b>De: </b>"André Monteiro" <<a href="mailto:andre.monteir@gmail.com" target="_blank">andre.monteir@gmail.com</a>><br><b>À: </b>"Mohamed Mohamed" <<a href="mailto:mohamed.mohamed@telecom-sudparis.eu" target="_blank">mohamed.mohamed@telecom-sudparis.eu</a>><br>

<b>Cc: </b>"users" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br><b>Envoyé: </b>Vendredi 29 Juin 2012 13:35:28<br><b>Objet: </b>Re: [one-users] VM Failure<div>

<div class="h5"><br><br><div>Hello Mohamed,</div><div> </div><div>I had the same problem before and have reported it. It's a problem with paths, on the file /opt/opennebula/var/remotes/tm/shared/clone and /opt/opennebula/var/remotes/tm/shared/ln I have made the following:</div>



<div> </div><div>- comment this line:</div><div>#SRC_PATH="../../${SRC_PATH##"$DS_DIR/"}"</div><div> </div><div> </div><div>- add the following lines (replace your correct paths):</div><div>DATASTORE_FOLDER = "/opt/opennebula/var/datastores"</div>



<div> </div><div>if [ -z "${DATASTORE_FOLDER}" ]; then<br>        SRC_PATH="/opt/opennebula/var/datastores/${SRC_PATH##"$DS_DIR/"}"<br>else<br>        SRC_PATH="$DATASTORE_FOLDER/${SRC_PATH##"$DS_DIR/"}"<br>



fi</div><div> </div><div>if [[ "$SRC_PATH" == *//* ]]; then<br>        SRC_PATH="${SRC_PATH##"$DS_DIR/"}"<br>fi</div><div> </div><div>Hoe it helps,<br clear="all"><br>--<br>André Monteiro<br>



<br><br>
<br><br></div><div class="gmail_quote">On Fri, Jun 29, 2012 at 12:19 PM, Mohamed Mohamed <span dir="ltr"><<a href="mailto:mohamed.mohamed@telecom-sudparis.eu" target="_blank">mohamed.mohamed@telecom-sudparis.eu</a>></span> wrote:<br>



<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div style="font-family:Times New Roman;font-size:12pt">



<pre>Hi all,<br>Since i have some problems launching VMs i tried to use the image provided by opennebula marketplace (Ubuntu Server 12.04 (Precise Pangolin) - kvm)<br>But when i try to launch the vm it passes to fail status showing this error:<br>



<br><br><br>Fri Jun 29 11:44:44 2012 [DiM][I]: New VM state is ACTIVE.
Fri Jun 29 11:44:45 2012 [LCM][I]: New VM state is PROLOG.
Fri Jun 29 11:44:45 2012 [VM][I]: Virtual Machine has no context
Fri Jun 29 11:44:45 2012 [TM][I]: Command execution fail: /var/lib/one/remotes/tm/shared/clone frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa 157.159.110.193:/var/lib/one//datastores/0/36/disk.0 36 1
Fri Jun 29 11:44:45 2012 [TM][I]: clone: Cloning ../../1/47d35b54f22dd089065fb9462cb73dfa in 157.159.110.193:/var/lib/one//datastores/0/36/disk.0
<span>Fri Jun 29 11:44:45 2012 [TM][E]: clone: Command "cd /var/lib/one/datastores/0/36; cp -rf ../../1/47d35b54f22dd089065fb9462cb73dfa /var/lib/one/datastores/0/36/disk.0" failed: cp: impossible d'évaluer «../../1/47d35b54f22dd089065fb9462cb73dfa»: Aucun fichier ou dossier de ce type</span>
<span>Fri Jun 29 11:44:45 2012 [TM][E]: Error copying frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa to 157.159.110.193:/var/lib/one//datastores/0/36/disk.0</span>
Fri Jun 29 11:44:45 2012 [TM][I]: ExitCode: 1
<span>Fri Jun 29 11:44:45 2012 [TM][E]: Error executing image transfer script: Error copying frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa to 157.159.110.193:/var/lib/one//datastores/0/36/disk.0</span>
Fri Jun 29 11:44:46 2012 [DiM][I]: New VM state is FAILED<br><br><br><br><br>The description of this vm (template) is the following<br>$onevm show 36<br><br><br>VIRTUAL MACHINE 36 INFORMATION                                                  <br>



ID                  : 36                  <br>NAME                : ubuntuKVM           <br>USER                : oneadmin            <br>GROUP               : oneadmin            <br>STATE               : FAILED              <br>



LCM_STATE           : LCM_INIT            <br>RESCHED             : No                  <br>START TIME          : 06/29 11:29:01      <br>END TIME            : 06/29 11:44:46      <br>DEPLOY ID           : -                   <br>



<br>VIRTUAL MACHINE MONITORING                                                      <br>NET_TX              : 0                   <br>USED CPU            : 0                   <br>USED MEMORY         : 0                   <br>



NET_RX              : 0                   <br><br>PERMISSIONS                                                                     <br>OWNER               : um-                 <br>GROUP               : ---                 <br>



OTHER               : ---                 <br><br>VIRTUAL MACHINE TEMPLATE                                                        <br>CPU="1"<br>DISK=[<br>  CLONE="YES",<br>  DATASTORE="default",<br>



  DATASTORE_ID="1",<br>  DEV_PREFIX="hd",<br>  DISK_ID="0",<br>  IMAGE="Ubuntu Server 12.04 kvm",<br>  IMAGE_ID="10",<br>  IMAGE_UNAME="oneadmin",<br>  READONLY="NO",<br>



  SAVE="NO",<br>  SOURCE="/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa",<br>  TARGET="hda",<br>  TM_MAD="shared",<br>  TYPE="FILE" ]<br>ERROR=[<br>  MESSAGE="Error executing image transfer script: Error copying frontend-Precision-WorkStation-T3500:/var/lib/one/datastores/1/47d35b54f22dd089065fb9462cb73dfa to node:/var/lib/one//datastores/0/36/disk.0",<br>



  TIMESTAMP="Fri Jun 29 11:44:45 2012" ]<br>GRAPHICS=[<br>  LISTEN="0.0.0.0",<br>  PORT="5936",<br>  TYPE="vnc" ]<br>INPUT=[<br>  BUS="usb",<br>  TYPE="mouse" ]<br>



MEMORY="512"<br>NAME="ubuntuKVM"<br>NIC=[<br>  BRIDGE="br0",<br>  IP="10.0.0.2",<br>  MAC="02:00:0a:00:00:02",<br>  NETWORK="Virtual Network 1",<br>  NETWORK_ID="0",<br>



  NETWORK_UNAME="oneadmin",<br>  PHYDEV="eth0",<br>  VLAN="YES" ]<br>OS=[<br>  ARCH="x86_64",<br>  BOOT="hd" ]<br>RAW=[<br>  TYPE="kvm" ]<br>TEMPLATE_ID="10"<br>



VCPU="1"<br>VMID="36"<br><br>Any suggestions?<br>Best;<br>Mohamed<br><br><br></pre></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>
</div></div></div><br></div></div></blockquote></div><br>