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
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
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