Hi,<div><br></div><div>It looks like you are using IMAGE/SOURCE instead of IMAGE/PATH, see [1,2].</div><div>Oh, and you need to move your source file somewhere else. If you use that same file path in the PATH attribute, the image creation will fail because /var/lib/one is oneadmin's home, see the note below RESTRICTED_DIRS here [3].</div>
<div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel3.8:img_guide">http://opennebula.org/documentation:rel3.8:img_guide</a></div><div>[2] <a href="http://opennebula.org/documentation:rel3.8:img_template">http://opennebula.org/documentation:rel3.8:img_template</a></div>
<div>[3] <a href="http://opennebula.org/documentation:rel3.8:fs_ds">http://opennebula.org/documentation:rel3.8:fs_ds</a></div><div><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div>
<span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div>
<br><br><div class="gmail_quote">On Wed, Mar 6, 2013 at 6:16 PM, Aridane Jesús Sarrionandia de León <span dir="ltr"><<a href="mailto:ajsarri@gmail.com" target="_blank">ajsarri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, thanks for answering that fast.<br><br>Yes, it says that there's no such file. <br><br>The output of ls -lah /var/lib/one/datastores/<div>ttylinux/ttylinux.img is says that the location can't be accessed, there's no such file or directory.<br>
<br>The thing is that I created the img file with oneimage create image.one –d default<br><br>The output of the commands are:<br><br><div style="margin-left:40px">oneimage list<br> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS<br>
2 oneadmin oneadmin ttylinux default 0M OS No used 1<br><br>oneimage show 2<br>IMAGE 2 INFORMATION <br><div class="im">ID : 2 <br>
NAME : ttylinux <br>USER : oneadmin <br>GROUP : oneadmin <br></div>DATASTORE : default <br>TYPE : OS <br>REGISTER TIME : 03/05 16:23:46 <br>
PERSISTENT : No <br>SOURCE : /var/lib/one/images/ttylinux/ttylinux.img<br>SIZE : 0M <br>STATE : used <br>RUNNING_VMS : 1 <br>
<div class="im">
<br>PERMISSIONS <br>OWNER : um- <br>GROUP : --- <br>OTHER : --- <br><br></div>
IMAGE TEMPLATE <br>
DESCRIPTION="ttylinux image"<br>DEV_PREFIX="hd"<br>PUBLIC="YES"<br><br></div>Thanks for the help.<br><br>Regards<span class="HOEnZb"><font color="#888888"><br>Aridane.<br></font></span></div>
<div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">2013/3/6 Tobias Honacker <span dir="ltr"><<a href="mailto:t.honacker@googlemail.com" target="_blank">t.honacker@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>Hi,</div><div><br></div><div>You have to create an oneimage [1] which will store the image to your path.</div>
<div>Your error tells you that the directory/image doesn't exist? (no spanish skills sorry)</div><div><br></div><div>Do a ls -lah /var/lib/one/datastores/ttylinux/ttylinux.img</div><div><br></div><div>And please provide us the output of these commands:</div>
<div><br></div><div>Oneimage list</div><div>Oneimage show 1 (you have to put the id here u get from oneimage list instead of 1)</div><div><br></div><div><br></div><div>Best regards,</div><div>Tobias</div><div><br></div><div>
[1] <a href="http://opennebula.org/documentation:rel3.8:img_guide" target="_blank">http://opennebula.org/documentation:rel3.8:img_guide</a></div><div><br></div><span><div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">Von: </span> Aridane Jesús Sarrionandia de León <<a href="mailto:ajsarri@gmail.com" target="_blank">ajsarri@gmail.com</a>><br><span style="font-weight:bold">Datum: </span> Mittwoch, 6. März 2013 17:57<br>
<span style="font-weight:bold">An: </span> <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br><span style="font-weight:bold">Betreff: </span> [one-users] Problems instantiating<br>
</div><div><div><div><br></div>Hi all,<br><br>I'm having trouble creating a vm from a template, for some reason I don't know I get the following error when execute "onetemplate instantiate 1" y get this in the log:<br>
<br><div style="margin-left:40px"><br>Wed Mar 6 16:38:50 2013 [TM][D]: Message received: LOG I 7 Command execution fail: /var/lib/one/remot<br>es/tm/shared/clone aridane-PLOCAN:/var/lib/one/images/ttylinux/ttylinux.img host1:/var/lib/one/datasto<br>
res/0/7/disk.0 7 1<br><br>Wed Mar 6 16:38:50 2013 [TM][D]: Message received: LOG I 7 clone: Cloning /var/lib/one/datastores/tty<br>linux/ttylinux.img in host1:/var/lib/one/datastores/0/7/disk.0<br><br>Wed Mar 6 16:38:50 2013 [TM][D]: Message received: LOG E 7 clone: Command "cd /var/lib/one/datastores<br>
/0/7; cp -r /var/lib/one/datastores/ttylinux/ttylinux.img /var/lib/one/datastores/0/7/disk.0" failed: <br>cp: no se puede efectuar `stat' sobre «/var/lib/one/datastores/ttylinux/ttylinux.img»: No existe el ar<br>
chivo o el directorio<br><br>Wed Mar 6 16:38:50 2013 [TM][D]: Message received: LOG E 7 Error copying aridane-PLOCAN:/var/lib/one/<br>images/ttylinux/ttylinux.img to host1:/var/lib/one/datastores/0/7/disk.0<br><br>Wed Mar 6 16:38:50 2013 [TM][D]: Message received: LOG I 7 ExitCode: 1<br>
<br>Wed Mar 6 16:38:50 2013 [TM][D]: Message received: TRANSFER FAILURE 7 Error copying aridane-PLOCAN:/v<br>ar/lib/one/images/ttylinux/ttylinux.img to host1:/var/lib/one/datastores/0/7/disk.0<br><br></div>The template i'm using is:<br>
<div style="margin-left:40px">ID : 1 <br>NAME : ttylinux <br>USER : oneadmin <br>GROUP : oneadmin <br>REGISTER TIME : 03/05 16:51:25 <br>
<br>PERMISSIONS <br>OWNER : um- <br>GROUP : --- <br>OTHER : --- <br><br>TEMPLATE CONTENTS <br>
CPU="1"<br>DISK=[<br> IMAGE="ttylinux" ]<br>GRAPHICS=[<br> LISTEN="0.0.0.0",<br> TYPE="vnc" ]<br>MEMORY="512"<br>NAME="ttylinux"<br>NIC=[<br> NETWORK="testNetwork" ]<br>
TEMPLATE_ID="1"<br><br></div>I'm using the shared driver, and I checked that the folders are correctly mounted, as seen in the result of "mount" in the host:<br><div style="margin-left:40px">192.168.122.1:/var/lib/one on /var/lib/one type nfs (rw,addr=192.168.122.1).<br>
<br></div>So I hope someone can help me, it would be great.<br>Thanks.<br><br>Aridane<br><br><br><br><br></div></div>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</span></div>
</blockquote></div><b><br></b>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>