Ubuntu Automatic (Preseed) Installation

Preseeding allows you to install debian/ubuntu from an ISO image with selections already made, setting up specific base packages so that it can be automatically installed on boot and immediately used afterwards. This is great for VM’s and pre-setup of configuration management agents.

Install utitlities to manipulate ISO images, debconf utilities and a password hash utility for /etc/shadow.
apt install debconf-utils whois xorriso
Extract ISO for preseed modification to custom-iso.
xorriso -osirrox on -indev {UBUNTU IMAGE}.iso -extract / custom-iso

Depending on how you would like to preseed the automatic install:

You can create a single disk that supports both EFI and non-EFI machines, just create all files required for each. Ensure that your labels and configs are changed accordingly.

References

  1. Preseed file not found

  2. Automated install using preseed

  3. Unattended installs of ubuntu desktop

  4. Preseeding methods

  5. Create a customized ubuntu server iso