Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.65 KB

README.md

File metadata and controls

43 lines (37 loc) · 1.65 KB

Ubuntu Autoinstall Scripts

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

Contents

  • 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.

Build

  1. Customize appropriate user-data-XXXX file as needed
  2. Build cloudinit iso: cloud-localds ./autoinstall.iso ./user-data-XXXX ./meta-data
  3. 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.)
  4. Boot system to Ubuntu server installer and select yes when prompted to start autoinstall
  5. Profit

Notes

  • Generate Crypted Password: python3 -c "import crypt;print(crypt.crypt(input('clear-text pw: '), crypt.mksalt(crypt.METHOD_SHA512)))"

References