Skip to content

Quick scaffolding for running an Ubuntu install from PXE

License

Notifications You must be signed in to change notification settings

zxaos/ubuntu-pxe-netboot-scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo provides a scaffolding for performing a fully automated network install of Ubuntu 22.04.

IF YOU RUN THE AUTOINSTALL OPTION, IT WILL OVERWRITE ANY DATA ON THE TARGET DISK WITH NO FURTHER PROMPT

Setup

  1. Download an Ubuntu 22.04 Server Live-CD ISO and place it in srv/images/ubuntu-22.04.2-live-server-amd64.iso
  2. Download a copy of grubnetx64.efi and place it in srv/boot/grubx64.efi
  3. Edit line 13 of tftp.plist to be the full directory path to the srv directory
  4. Edit srv/grub/grub.cfg and replace all references to your-host-or-ip with the host or IP that will be running the server (your current ip usually)
  5. If you wish to do an interactive install instead of an automated one, skip to step 8
  6. Copy srv/autoinstall/user-data-template to srv/autoinstall/user-data
  7. Update srv/autoinstall/user-data to include your desired details. Pay particular attention to lines:
    • 27-31 for your user details and hostname
      • Generating a crypted password is surprisingly irritating to do on macos. The easiest way to get one is probably to run:
        • docker run -it quay.io/coreos/mkpasswd -m sha512crypt -s
    • 43, if you require a different locale than en_US
    • 40, 53 should contain your ssh public key (yes, twice, once on each line)
    • 59: The desired unlock passphrase for full-disk encryption, in plaintext
    • 43: Add any additional desired packages here
  8. Be sure you're ready for your target machine to be completely wiped
  9. Set your DHCP server supply PXE boot settings:
    • Option 66 / Server IP: point at the current machine (the one with the repo)
    • Option 67: boot/bootx64.efi
  10. Start the server: sudo ./run.sh
  11. On the target machine, invoke network boot (On an Intel NUC, F12 during POST)
  12. Select automatic or manual install, as desired
  13. When finished, press enter in the shell where you ran run.sh to shut down the image server

About

Quick scaffolding for running an Ubuntu install from PXE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages