By Andy Sayler
Feburary 2022
- Ubuntu Server Version: 22.04 (previously tested with 20.04)
- Default Username:
setup
- Default Password:
setup
- Default Encryption Key:
setup
- user-data-base: Basic autoinstall file that configures a server for SSH and used the default partition scheme.
- user-data-storage: Builds on
user-data-basic
to define a custom partition scheme for the first NVMe device on the system. - user-data-encrypted: Builds on
user-data-storage
to add LUKS full disk encryption to the partition scheme. NOTE: Please change the LUKS password after first boot. Default LUKS password is above.
- Customize appropriate
user-data-XXXX
file as needed - Build cloudinit iso:
cloud-localds ./autoinstall.iso ./user-data-XXXX ./meta-data
- Mount both
autoinstall.iso
and Ubuntu 22.04 server.iso (I tend to use the IPMI console to do this on headless servers, but doing it via VM commands or actual media on a physical server should all work as well.) - Boot system to Ubuntu server installer and select
yes
when prompted to start autoinstall - Profit
- Generate Crypted Password:
python3 -c "import crypt;print(crypt.crypt(input('clear-text pw: '), crypt.mksalt(crypt.METHOD_SHA512)))"