cloud-init: Upload IMG and import it with API?

muhaha

New Member
May 17, 2018
8
1
1
36
Is possible to import IMG cloud-init ready image with API?
I am able to upload IMG (extension must be changed to ISO) with API, but then .. I am screwed.
I have no ssh access to proxmox host and I want to upload cloud-init IMG and create VM from it with API.

According to this https://pve.proxmox.com/wiki/Cloud-Init_Support, -> I need to convert/import IMG to qcow2 disk, but its not possible for me.

Assumptions:
- No SSH access
- No template uploaded
- No root access
- I have only my own pool, pve user and datastores

Is there a way how to achieve this with API only?
Thanks


EDIT:
Does not seem that px6 will handle this eihter...
https://git.proxmox.com/?p=pve-manager.git;a=blob;f=debian/changelog;hb=HEAD

EDIT2:
Can execute API endpoint help?
 
Last edited:
It's currently not possible to upload raw disk images via the GUI. You need SSH access (or at least scp/sftp/ftp/...) for that.

What you can do, is upload a regular Debain or Ubuntu ISO and install a VM from that. Then, simply install cloud-init via apt.

You can clone your VM (or even make it a template) once it has been installed to create multiple machines, that can each have a different cloud-init configuration.