<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sorry for the delayed reply, I was out on vacation last week.</div><div><br></div><div>I'll send you my oned.log directly, don't want to spam the list with it.  When I run the "onevm saveas" command only one line is logged:</div><div><br></div><div><div>Wed Sep  8 01:07:28 2010 [ReM][D]: VirtualMachineInfo method invoked</div></div><div><br></div><div>Jason</div><div><br></div><div><div>On Aug 31, 2010, at 8:35 AM, Carlos Martín Sánchez wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I'm still unable to replicate the error here...</div><div><br></div><div>Could you check (or send) oned.log file? The problem may be related to the DB initialization.</div><br clear="all">Carlos Martín, Cloud Technology Engineer/Researcher<br>
DSA Research Group: web <a href="http://dsa-research.org/" target="_blank">http://dsa-research.org</a> and blog <a href="http://blog.dsa-research.org/" target="_blank">http://blog.dsa-research.org</a><br>OpenNebula Open Source Toolkit for Cloud Computing: <a href="http://www.OpenNebula.org/" target="_blank">http://www.OpenNebula.org</a><br>

<br><br><div class="gmail_quote">2010/8/28 Jason Heiss <span dir="ltr"><<a href="mailto:jheiss@aput.net">jheiss@aput.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">I'm using 2.0 beta 1.  I'm using the mysql backend in case it is relevant.<div><br></div><div>Here's the complete "onevm show" output.  Note that in doing some other work I reinstalled OpenNebula, so the VM has a different ID.  However saveas is still failing in the same way.</div>
<div><br></div><div><div># onevm show 2</div><div>VIRTUAL MACHINE 2 INFORMATION                                                   </div><div>ID             : 2                   </div><div>NAME           : vm1                 </div>
<div>STATE          : ACTIVE              </div><div>LCM_STATE      : RUNNING             </div><div>START TIME     : 08/26 05:36:54      </div><div>END TIME       : -                   </div><div>DEPLOY ID:     : one-2               </div>
<div><br></div><div>VIRTUAL MACHINE TEMPLATE                                                        </div><div>CPU=1</div><div>DISK=[</div><div>  CLONE=YES,</div><div>  DISK_ID=0,</div><div>  IMAGE=CentOS-5.5-x86_64-netinstall.iso,</div>
<div>  IMAGE_ID=0,</div><div>  READONLY=YES,</div><div>  SAVE=NO,</div><div>  SOURCE=/opt/tpkg/one/var/images/8b44d66b02ea1c28f94b2d44c87aabc8fa37b1c0,</div><div>  TARGET=hdc,</div><div>  TYPE=CDROM ]</div><div>DISK=[</div>
<div>  CLONE=YES,</div><div>  DISK_ID=1,</div><div>  IMAGE=blank20G,</div><div>  IMAGE_ID=1,</div><div>  READONLY=NO,</div><div>  SAVE=NO,</div><div>  SOURCE=/opt/tpkg/one/var/images/5464c818cfc6c8072800330bd2089af6a22ec477,</div>
<div>  TARGET=hda,</div><div class="im"><div>  TYPE=DISK ]</div><div>DISK=[</div><div>  DISK_ID=2,</div></div><div>  SIZE=1024,</div><div>  TARGET=hdd,</div><div>  TYPE=swap ]</div><div>GRAPHICS=[</div><div>  LISTEN=0.0.0.0,</div>
<div>  PASSWD=vncpass,</div><div>  PORT=5002,</div><div>  TYPE=vnc ]</div><div>MEMORY=1024</div><div>NAME=vm1</div><div>NIC=[</div><div>  BRIDGE=br0 ]</div><div>OS=[</div><div>  BOOT=cdrom ]</div><div>VMID=2</div></div><div>
<div></div><div class="h5"><div><br></div><div><br><div><div>On Aug 26, 2010, at 10:00 AM, Carlos Martín Sánchez wrote:</div><br><blockquote type="cite">Hi again Jason,<br><br>I've tried to replicate the error, but it works for the current git code, in both master and one-2.0 branches, and the code in one-2.0-beta1.tar.gz<br>
What OpenNebula version are you using?<br><br>
The only thing we could use to find the bug is the complete "onevm show 8" output. Maybe OpenNebula didn't write the IMAGE_ID variables for each disk.<br><br>Regards,<br>Carlos.<br><br clear="all">Carlos Martín, Cloud Technology Engineer/Researcher<br>

DSA Research Group: web <a href="http://dsa-research.org/" target="_blank">http://dsa-research.org</a> and blog <a href="http://blog.dsa-research.org/" target="_blank">http://blog.dsa-research.org</a><br>OpenNebula Open Source Toolkit for Cloud Computing: <a href="http://www.OpenNebula.org/" target="_blank">http://www.OpenNebula.org</a><br>


<br><br><div class="gmail_quote">2010/8/26 Jason Heiss <span dir="ltr"><<a href="mailto:jheiss@aput.net" target="_blank">jheiss@aput.net</a>></span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div style="word-wrap:break-word"><div>The disk was an image from the repository.  Here's the VM template:</div><div><br></div><div><div># cat vm1.template </div><div>NAME = vm1</div><div>CPU = 1</div><div>MEMORY = 1024</div>

<div>DISK = [ image = "CentOS-5.5-x86_64-netinstall.iso" ]</div><div>DISK = [ image = "blank20G" ]</div><div>DISK = [ type = "swap", size = 1024 ]</div><div>OS = [ boot = "cdrom" ]</div>

<div>NIC = [ bridge = "br0" ]</div><div>GRAPHICS = [ type = "vnc", listen = "0.0.0.0", passwd = "vncpass" ]</div></div><div><br></div><div><div>And here's my image list:</div><div>

<br></div><div><div># oneimage list</div><div>  ID     USER                 NAME TYPE              REGTIME PUB STAT  #VMS</div><div>   0 oneadmin CentOS-5.5-x86_64-ne   CD   Aug 09, 2010 05:28 Yes used     1</div><div>   1 oneadmin             blank20G   OS   Aug 09, 2010 05:29 Yes used     1</div>

<div>   2 oneadmin              blank5G   OS   Aug 17, 2010 16:22 Yes  rdy     0</div></div><div><div></div><div><div><br></div><div><br></div><div>On Aug 24, 2010, at 7:54 AM, Carlos Martín Sánchez wrote:</div>
<br><blockquote type="cite">Hi Jason,<br><br>Could you send your VM template?<br><br>If I'm guessing right, disk 1 wasn't created from an image in the repository.<br>The error you are getting is because the onevm command can't find the IMAGE_ID inside your DISK attribute. The reason why it tries to find the source image is because it wants to specify the type for the new image, and it wasn't provided with the -t option.<br>


<br>I have opened a ticket [1], but meanwhile you could just add the "-t OS" option.<br><br>Regards,<br>Carlos<br><br>[1] <a href="http://dev.opennebula.org/issues/327" target="_blank">http://dev.opennebula.org/issues/327</a><br>


<br clear="all">Carlos Martín, Cloud Technology Engineer/Researcher<br>DSA Research Group: web <a href="http://dsa-research.org/" target="_blank">http://dsa-research.org</a> and blog <a href="http://blog.dsa-research.org/" target="_blank">http://blog.dsa-research.org</a><br>


OpenNebula Open Source Toolkit for Cloud Computing: <a href="http://www.OpenNebula.org/" target="_blank">http://www.OpenNebula.org</a><br>
<br><br><div class="gmail_quote">On 22 August 2010 20:47, Jason Heiss <span dir="ltr"><<a href="mailto:jheiss@aput.net" target="_blank">jheiss@aput.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">


I'm trying to use the onevm saveas functionality in 2.0 beta 1, but it doesn't seem to like me:<br>
<br>
# onevm saveas 8 1 myimage<br>
ID not defined<br>
<br>
I've deleted and recreated the VM with no luck.  Still fiddling around to see if I can figure it out, but I thought I'd throw it out and see if anyone had an idea.<br>
<br>
The VM ID should be fine:<br>
<br>
# onevm list<br>
   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME<br>
    8 oneadmin      vm1 runn   0 1048576       10.0.0.73 00 00:29:22<br>
<br>
The disk ID as well:<br>
<br>
# onevm show 8 | egrep 'DISK|DISK_ID|TYPE'<br>
DISK=[<br>
  DISK_ID=0,<br>
  TYPE=CDROM ]<br>
DISK=[<br>
  DISK_ID=1,<br>
  TYPE=DISK ]<br>
DISK=[<br>
  DISK_ID=2,<br>
  TYPE=swap ]<br>
<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>
</blockquote></div><br>
</blockquote></div></div></div><br></div></blockquote></div><br>
</blockquote></div><br></div></div></div></div></blockquote></div><br>
</blockquote></div><br></body></html>