Skip to content

asayler/ubuntu_autoinstall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ubuntu Autoinstall Scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published