vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
791 stars 266 forks source link

Add support for CloudInit for cloned VM #4388

Open elialum opened 5 years ago

elialum commented 5 years ago

Hi All,

cloud-init is a great tool. Currently, it's supported through XO only via templates.

For bare OS installation only, templates are fine, but creating application templates needs you to maintain one live VM that is constantly being updated, then just clone it when needed.

Inside Digital Ocean, for example, I can clone a VM and from the newly cloned VM I can choose to use cloud-init commands.

I am guessing it should be a rather simple implementation given that most of the work being done already.

Thanks!

olivierlambert commented 5 years ago

Hi,

I'm not sure to get it. You want to clone a VM and display a cloud init panel for this new cloned VM so you can pass a configuration? So it's the same as today but not only for templates but for an existing VM right?

elialum commented 5 years ago

Yes, exactly :) Just make sure it will be accessible via xo-cli as well as the whole point here is automation & API

olivierlambert commented 5 years ago

Hmm that's not trivial because we probably need to think how to insert the cloud init step there (maybe create a new API call in XO?) Assigning @julien-f as an architecture decision