How to store data and retrieve from sunstone

Hello, I am trying to store files on a datablock and retrieve them With any of the one command. How can I achieve this. Or should I create a datablock for each instance.

You can use one datablock for all VMs if it is persistent AND the VMs do not access it simultaneously (you’ll have to attach/detach it). Otherwise, you’ll need to use a different datablock per VM.

In order to download the datablock, you can use the HTTP marketplace:

http://docs.opennebula.org/5.2/advanced_components/marketplace/market_http.html