<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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><br></div><div><br></div><div>On Aug 24, 2010, at 7:54 AM, Carlos Martín Sánchez wrote:</div><br class="Apple-interchange-newline"><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">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">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">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><br></body></html>