Hi.
Thanks Carlos! I have managed to reproduce the behaviour by xmlrpc calls.
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.
regards
Marco
On 02/09/2011 11:20 AM, Carlos Martín Sánchez wrote:
Hi Marco,
The XML-RPC call requests an image id because the image has to be
created beforehand.
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.
Regards,
Carlos.
--
Carlos Martín, Engineer, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org
http://www.opennebula.org/ | cmar...@opennebula.org
mailto:cmar...@opennebula.org
On 8 February 2011 17:03, Marco Strutz marco.str...@desy.de
mailto:marco.str...@desy.de wrote:
Hello.
What is the best way to map the onevm saveas command [1] to OCCI or
XMLRPC-Request? I need to save vm images but want to avoid using the
command line interface.
I cannot simply use the xmlrpc-call one.vm.savedisk [2] since I
then
would need to know the image id where the disk will be saved.
But this
ID will be dynamically created by the onevm saveas command, right?
Furthermore where should I place the image_name in the XMLRPC-call?
The same problem with OCCI: Are there any attributes (perhaps for the
CONTEXTUALISATION section) I can use for the onevm saveas?
Thanks
Marco
[1]
onevm saveas vm_id disk_id image_name
[2]
one.vm.savedisk
Type Data Type Description
IN String the session string associated to the connected
user. * *
IN Int the virtual machine Id (vid) of the instance.
IN Int disk id of the disk we want to save.
IN Int image id where the disk will be saved.
OUT Boolean true or false whenever is successful or not
OUT String if an error occurs this is error message, otherwise
it does not exist.
___
Users mailing list
Users@lists.opennebula.org mailto:Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org