Spawn VM instances in OpenNebula Cloud Computing platform

Hi,

Is there a way to spawn any new VM instances using OpenNebula API’s something like AWS CLI

$aws ec2 start-instances for example?

Regards,

Kaushal

Hi kaushalshriyan,

I dont know if im understanding your question correctly, Opennebula has the CLI Interface so i think it’s the most similar way.

I will give you an example:

$ ~ onetemplate list
ID USER GROUP NAME REGTIME
0 oneadmin oneadmin ec2_machine 06/12 12:52:49

This show me the ONE template that stores information about the ec2-instance that i will manipulate.

to spawn a ec2 machine u simply do:

$ ~ onetemplate instantiate 0

this will power on your new ec2 instance.

Please read our ec2 documentation http://docs.opennebula.org/5.2/advanced_components/cloud_bursting/ec2g.html?highlight=ec2 and ask if u have any troube.

Regards.

Hi Semedi,

Thanks for the reply. My question was regarding spawning of VM instance in OpenNebula IAAS Cloud computing platform and not AWS EC2 instance. Also can i use Ansible https://www.ansible.com/ to spawn OpenNebula VM instances?

Any help will be highly appreciable. Thanks in Advance.

Regards,

Kaushal

Hi,

I will appreciate if somebody can pitch in here for my earlier post to this forum.

Thanks and Regards,

Kaushal

MM im not an expert of Ansible but if im not wrong Ansible uses Python as the main language so it’s not possible to communicate one <=> Ansible.

However it will be possible to create an addon to communicate the two parts but its an extra work.
Anyways if you’re interested in this kind of work you can check the development portal and the documentation.

Cheers.