Auto deploy KVM machines

Florius

Well-Known Member
Jul 2, 2017
35
9
48
57
Hi. We're setting op a Proxmox environment as thusfar Proxmox has worked great for us when deploying single VM's.
We now want to upscale our Proxmox and start using Proxmox 5. However the thing we ran into is that we have to manually deploy the Virtual Machines. Deploy the template, change hostname, IP etc. etc.
What is the easiest way to start deploying VM's automatically?

Thanks in advance!
 
I set my VMs to DHCP and let the network set the IP.. I have a simple Perl script which asks proxmox via API to clone a Template, set network Params and boot it. My script also picks the leased loaded proxmox head on which to migrate and start it.
 
I set my VMs to DHCP and let the network set the IP.. I have a simple Perl script which asks proxmox via API to clone a Template, set network Params and boot it. My script also picks the leased loaded proxmox head on which to migrate and start it.

Are you willing to share your script perhaps? :)

We are using Ansible with PVE KVM module + Preseed/Kickstart: https://morph027.gitlab.io/post/pve-kickseed/

Oh that's pretty nice! This would work with any OS?