installer icon indicating copy to clipboard operation
installer copied to clipboard

Make preseed/kickstart/unattended install possible

Open swirly opened this issue 3 years ago • 6 comments

I'm in a team that deploy linux in large academic environnement. As of today, we're using essentially Debian because of the real ease of automated install : you can preseed the installer with even an http remote file ! There are others types of methods to do this, named kickstart or unattended. Even Microsoft Windows installer can be fully automated !

We'd like to deploy elementary OS, but we need that the installation can be fully automated. When you have just one person and one day to deploy 100 to 250 desktop computers for pupils, you can't seat in front of each computer : pxe boot, preseeded installation and voila !

The addition of this use case would be a real killer feature. Indeed for us it would be necessary :)

TIA for your consideration

swirly avatar Mar 24 '21 14:03 swirly

Thank you. If I can be of any help in the design process, I will gladly participate

swirly avatar Mar 26 '21 15:03 swirly

I have implemented a minimal prototype ^

It works based on a JSON configuration file.

@swirly Could you please explain a bit more how your current setup works with Debian. Do you have to modify the ISO file or how does it work?

meisenzahl avatar Apr 03 '21 10:04 meisenzahl

In debian, there is a pressed file that can be combined with the iso without modifying the iso. If you use a USB key, the preseed file can be on the usb key But, far more interessant, the preseed file can be accessed through http with a kernel parameter at startup. For pxe installation, you just have to :

  • boot on pxe
  • in pxe, select via menu "debian installation"
  • and in the pxe configuration, the preseed file is mentionned.

It can even be created server side on the fly, so you can have different setup for different machines.

The complete description of this brilliant mechanism is here : Debian preseed

possible preseed source are file, floppy, http, https and tftp

The preseed format is really a flat file, simple to understand and write example preseed file

Note that the preseed file allow to automate installation not only of the installer but also give pre-recorded answer for all debian packages.

Hope this helps

swirly avatar Apr 06 '21 11:04 swirly

This is also true with kickstart (which can be used with Debian systems with kickseed). The inst.ks kernel parameter can be read by the installer to load the kickstart from anywhere.

Kickstart support also means that most provisioning systems can deploy elementary OS with existing code (cobbler, spacewalk/uyuni, foreman, etc.).

Conan-Kudo avatar Sep 22 '21 18:09 Conan-Kudo

Almost two years since report. Any news on this ?

swirly avatar Mar 16 '23 08:03 swirly