Hi,
I have some python scripts which use debootstrap and qemu-img to generate a debian image in various formats, such as VMDK. I then stick an OVF with the VMDK and can programmatically upload the whole thing to vmware ESXi as a template VM.
I want to implement the same thing for proxmox. AFAIK proxmox does not support OVA upload in this way. What strategy would you recommend to me assuming I want this to be fully automated and usable from a debian host?
I see two possibilities as a proxmox noob:
To me the "correct" way seems to be to teach my code how to generate an openvz template, but I am new to proxmox. Am I on the right track? Does anyone here know what's needed to get proxmox to accept a .tar.gz over the API?
I have some python scripts which use debootstrap and qemu-img to generate a debian image in various formats, such as VMDK. I then stick an OVF with the VMDK and can programmatically upload the whole thing to vmware ESXi as a template VM.
I want to implement the same thing for proxmox. AFAIK proxmox does not support OVA upload in this way. What strategy would you recommend to me assuming I want this to be fully automated and usable from a debian host?
I see two possibilities as a proxmox noob:
- Use the API via ansible to make an empty VM, then replace its disk with a qcow2 file. Seems hacky but easy.
- Generate a format that proxmox supports.
To me the "correct" way seems to be to teach my code how to generate an openvz template, but I am new to proxmox. Am I on the right track? Does anyone here know what's needed to get proxmox to accept a .tar.gz over the API?