<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi.<br>
<br>
Thanks Carlos! I have managed to reproduce the behaviour by xmlrpc
calls.<br>
But for the long term it would be very handy to access the "saveas"
feature in one single xmlrpc call too so that it won't be necessary
to duplicate (onevm ruby) source code and validate it for each new
Opennebula release.<br>
<br>
<br>
regards<br>
Marco<br>
<br>
On 02/09/2011 11:20 AM, Carlos Martín Sánchez wrote:
<blockquote
cite="mid:AANLkTimXtzRG5OhE61uw7gPbgk2p=swx9O0d0NPEPOuj@mail.gmail.com"
type="cite">Hi Marco,
<div><br>
</div>
<div>The XML-RPC call requests an image id because the image has
to be created beforehand.</div>
<div>You can check how it is done in the oneimage command (it's a
straight forward ruby script), and then replicate the same steps
in your code.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Carlos.</div>
<div><span style="border-collapse: collapse; color: rgb(136, 136,
136); font-family: arial,sans-serif; font-size: 13px;">--<br>
Carlos Martín, Engineer, MSc<br>
Project Major Contributor<br>
<span style="background-color: rgb(255, 255, 204); color:
rgb(34, 34, 34);">OpenNebula</span> - The Open Source
Toolkit for Cloud Computing<br>
<a moz-do-not-send="true" href="http://www.opennebula.org/"
style="color: rgb(42, 93, 176);" target="_blank">www.<span
style="background-color: rgb(255, 255, 204); color:
rgb(34, 34, 34);">OpenNebula</span>.org</a> | <a
moz-do-not-send="true" href="mailto:cmartin@opennebula.org"
style="color: rgb(42, 93, 176);" target="_blank">cmartin@<span
style="background-color: rgb(255, 255, 204); color:
rgb(34, 34, 34);">opennebula</span>.org</a></span><br>
<br>
<br>
<div class="gmail_quote">On 8 February 2011 17:03, Marco Strutz
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:marco.strutz@desy.de">marco.strutz@desy.de</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;">
Hello.<br>
<br>
What is the best way to map the "onevm saveas" command [1]
to OCCI or<br>
XMLRPC-Request? I need to save vm images but want to avoid
using the<br>
command line interface.<br>
<br>
I cannot simply use the xmlrpc-call "one.vm.savedisk" [2]
since I then<br>
would need to know the "image id where the disk will be
saved". But this<br>
ID will be dynamically created by the "onevm saveas"
command, right?<br>
Furthermore where should I place the <image_name> in
the XMLRPC-call?<br>
The same problem with OCCI: Are there any attributes
(perhaps for the<br>
<CONTEXTUALISATION> section) I can use for the "onevm
saveas"?<br>
<br>
<br>
<br>
Thanks<br>
Marco<br>
<br>
<br>
[1]<br>
onevm saveas <vm_id> <disk_id>
<image_name><br>
<br>
<br>
[2]<br>
one.vm.savedisk<br>
****************<br>
Type Data Type Description<br>
IN String the session string associated to the
connected user. * *<br>
IN Int the virtual machine Id (vid) of the instance.<br>
IN Int disk id of the disk we want to save.<br>
IN Int image id where the disk will be saved.<br>
OUT Boolean true or false whenever is successful or
not<br>
OUT String if an error occurs this is error message,
otherwise<br>
it does not exist.<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
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>
</div>
</blockquote>
<br>
</body>
</html>