Skip to content

Create a ubuntu server iso image with cloud-init autoinstall configuration using nolcoud

Notifications You must be signed in to change notification settings

Sam-R/ubuntu-autoinstall-iso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ubuntu-autoinstall-iso

IMPORTANT: for Ubuntu 20.04, checkout the ubuntu-20.04 branch. This branch only works with Ubuntu 22.04

This script creates a ubuntu server iso image with cloud-init autoinstall configuration (using nolcoud).

An example user-data file is included. You may want to customise this, in particular the passwords! For more information about the user data, see the cloud-init documentation https://cloudinit.readthedocs.io/en/latest/topics/examples.html

usage

download, save or clone the make-iso.sh file from this repo.

set permissions using chmod 775 make-iso.sh and execute ./make-iso.sh

Create or customise the user-data file with your desired settings for the auto-install. It's worth noting that passwords should be hased (but even hashed they they are not totally secure). Use:

mkpasswd --method=SHA-512 --rounds=4096

To generate a hashed password (on debian/ubuntu mkpasswd is installed with the whois package for some reason 🤷)

The script will check for pre-requisite commands, download Ubuntu Server 22.04, copy in any user-data or meta-data files present in the same directory as the script and create a new ISO image prefixed with autoinstall-

example username and password are both ubuntu

Acknowledgements

The 22.04 update is, in part, based on: https://www.pugetsystems.com/labs/hpc/ubuntu-22-04-server-autoinstall-iso/

About

Create a ubuntu server iso image with cloud-init autoinstall configuration using nolcoud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages