I need to install a debian system remotely on a server fully automated.
In case I would having access to a debian OS image on this server (by having a DVD Drive or a USB Stick with a Debian OS Image) this would be very easy: I only would have to enter on the "boot/install" prompt the url to the PreSeed file. But I do not have access to a DVD Drive or USB Stick on the server.
In my case I only have access to the server via a rescue system (running a minimal debian). I know I can use
debootstrap. But the problem is, using debootstrap is NOT automated, I have to first format the discs, mount them, execute debootstrap and so on.
What I want to do is, to log into the rescuesystem and call a "program" like debootstrap or the debian installer with preseed file and everything should be done automatically. But debootstrap does not support a preseed file. And I do not know how to call the installer in such a rescue system environment.
How can I achieve this? Is it possible to download in the rescuesystem a full Debian ISO image, extract it in memory and then somehow call the installer of this CD? But how? What command do I have to execute there?
OR is there some small tool that does exactly this that I need to call with a url to the image and preseed information and that then does the installation? As stated above, debootstrap is ok, but I want to use the preseed file from the debian installer without any manual intervention. debootstrap involves to much manual work.
Thanks very much for any help!! jens