Introduction to ubuntu installer
debian-installer : Debian system installer, using preseed mechanism for automatic installation.
ubiquity : ubiquity is a live CD graphical installer for Ubuntu, mainly written in Python, using debian-installer (di) as the backend for many of its functions, and also using the preseed mechanism for automatic installation.
This is a simple live CD installer designed to integrate well with Debian- and Ubuntu-based systems, and to reuse code from di for ease of maintenance.
subiquity : The new Ubuntu Server installer, used to replace the classic server installer (ubiquity) based on debian-installer (di) , introduced in Ubuntu Server 17.10, completely eliminated debian-installer in ubuntu server 20.04 LTS, subiquity uses cloud- init for automatic installation.
Use preseed to automate the installation
Official document:
https://help.ubuntu.com/16.04/installation-guide/amd64/apb.html
Usage example:
https://zhangguanzhang.github.io/2019/08/06/preseed/
https://blog .csdn.net/weixin_43424368/article/details/102504109 After creating the
preseed file, modify isolinux.cfg and grub.cfg, and add the path/address of the preseed file in the startup parameters.
Use cloud-init to automate the installation
Official documentation:
https://ubuntu.com/server/docs/install/autoinstall
https://ubuntu.com/server/docs/install/autoinstall-reference
https://ubuntu.com/server/docs/install/autoinstall -quickstart
Usage example:
https://askubuntu.com/questions/1235723/automated-20-04-server-installation-using-pxe-and-live-server-image
https://medium.com/@tlhakhan/ubuntu-server -20-04-autoinstall-2e5f772b655a
Get the configuration file from the network installation steps:
1. Create user-data and meta-data
2. Start the python3 network service, including the 2 files of the first step
python3 -m http.server 3003
3. Modify isolinux.cfg and grub.cfg, and add the file url path in the startup parameters.
linux /casper/vmlinuz quiet autoinstall ds=nocloud-net s=http://<my-laptop-ip>:3003/ ---
Example of user configuration file integrated in iso image:
https://github.com/covertsh/ubuntu-autoinstall-generator