This simple script will create an unattended Ubuntu ISO from start to finish. It will ask you a few questions once, and embed your answers into a remastered ISO file for you to use over and over again.
Source: netson/ubuntu-unattended: Script to create unattended Ubuntu ISO