Fully automatic install of Debian KVM-Vms ?

adoII

Renowned Member
Jan 28, 2010
174
17
83
Hi,

i am using proxmox and I would like to implement a fully automatic installation of Debian KVM VMs.

I just want to define a hostname, an ip-adress and a disk size ant the machine should be provisioned automatically.

First part is easy: Find a free vm number, call qm create and then boot up the machine with a debian iso.

The next step is my problem: I have to open console of the debian vm and type in something like

Code:
auto url=http://webserver/path/preseed.cfg

This step is my Problem which I would like to do automagically.

Afterwards everything else is easy, the preseed file is created by ansible and the rest of the configuration is done with ansible after the machine was installed.

I know I could setup a dhcp/pxe Infrastructure but I do not like this.

I also could just copy and edit some already installed images but I do not like this idea too, because machines will have different disk and partition sizes and filesystems.

Another idea is to run another machine with libvirt and run virtinstall there but this is dirty.

I even found a Debian Appliance Builder in Proxmox Wiki but this is only for containers.

Any idea what else I could do to automate Debian Installation ?

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!