- Upload IMG (cloud-init image file) with API endpoint
- Import IMG as disk with API endpoint
- Upload snippet (cloud-init) to datastore with API endpoint
- Support for nocloud v2 to enable ens NIC names
- Use phone-home feature of cloud-init (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#phone-home) to get done status of cloud-init provisioning available with API endpoint. Its also possible to check `cloud-init status --wait` or use /run/cloud-init/result.json or /run/cloud-init/status.json I guess, but this is probably available only for qemu guest agent which is not installed at provisioning time with read-file API endpoint
- I want to spin VM with API only ( more cloud native approach )
- I dont want to prepare own ISO with baked cloud-init ( very hard to do versioning of this ISO )
- I dont want to use ssh to do some hacks ( users will not have root access )
Any other ideas?
EDIT:
BTW, if I will use qemu/config endpoint everytime with same cipassword, it will be (probably)be always hashed differently, this will cause that cloud-init needs to regenerate ci image and VM must be restarted for applying changes.
EDIT2: Is there any API endpoint for Regenerate Image functionality ?
Last edited: