After struggling quite some time with figuring out how preseeding on Ubuntu 18.04 Desktop works, I figured it out. I was hoping that I could use the same procedure for 20.04 Desktop. Can I?
The ubuntu wiki page on Automated Server Installs for 20.04 sounds like it has been removed in favor of a new, and hence different, mode of operation:
The server installer for 20.04 supports a new mode of operation: automated installation, autoinstallation for short. You might also know this feature as unattended or handsoff or preseeded installation. [...]
preseeds are the way to automate an installer based on debian-installer (aka d-i).
autoinstalls for the new server installer differ from preseeds in the following main ways:
- the format is completely different (cloud-init config, usually yaml, vs debconf-set-selections format)
- when the answer to a question is not present in a preseed, d-i stops and asks the user for input. autoinstalls are not like this: by default, if there is any autoinstall config at all, the installer takes the default for any unanswered question (and fails if there is no default). You can designate particular sections in the config as "interactive", which means the installer will still stop and ask about those.
Questions
- Can I use the old procedure of preseeding with a preseed file with
d-i
/ubiquity
directives? - Does this new "autoinstall" work only on Ubuntu 20.04 Server or also on Ubuntu 20.04 Desktop?
- Or if the previous answers are both "No, that doesn't work on Ubuntu 20.04 Desktop.", what is the recommended way to automate an installation of Ubuntu 20.04 Desktop?
The server installer plans states it is end-of-life:
So I would not use it regardless. Link is also a good read about the progress of this.
Only the server.
I myself would use this new method and install the server and then add the desktop as a package to install or as a post installation action. Even though the scope of this will likely be deployment of 100s of machines and not just a single desktop the installation of the desktop is just a single
apt install
command you could add somewhere in there.Related links:
@rinzwind answer worked completely for me. ServerGUI. Just append
ubuntu-desktop
topackages
section ofautoinstall.yaml
and have a desktop build.Snipping storage section, example enables unattended install into VirtualBox and installs extensions
For desktop auto install, this script https://github.com/covertsh/ubuntu-preseed-iso-generator does some automation of the process and works with Ubuntu 20.04.