[one-users] 'onevm saveas' via XMLRPC or OCCI???

Carlos Martín Sánchez cmartin at opennebula.org
Wed Feb 9 02:20:16 PST 2011


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/> | cmartin at opennebula.org


On 8 February 2011 17:03, Marco Strutz <marco.strutz at 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 at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110209/b1a78143/attachment-0003.htm>


More information about the Users mailing list