Looki Looki No Hands, Automatic install of Ubuntu server.

Looki Looki No Hands, Automatic install of Ubuntu server.

Extracting all the files from the original ISO

mkdir source-files
xorriso -osirrox on -indev ubuntu-22.04.2-live-server-amd64.iso --extract_boot_images source-files/bootpart -extract / source-files

Edit the boot menu

menuentry "Autoinstall Ubuntu Server" {
    set gfxpayload=keep
    linux   /casper/vmlinuz quiet autoinstall ds=nocloud\;s=/cdrom/nocloud/  ---
    initrd  /casper/initrd
}

Repack the ISO from the files you've edited.

xorriso -as mkisofs -r -V "ubuntu-autoinstall" -J -boot-load-size 4 -boot-info-table -input-charset utf-8 -eltorito-alt-boot -b bootpart/eltorito_img1_bios.img -no-emul-boot -o ../installer.iso .

Similar Posts

4 Comments

  1. Hello!

    Looking to do this soon and I was wondering if you have a github link with your commands available?

    1. Hi Shiyam.

      That works just fine. The ISO should be possible to flash / write to an USB stick. There is a lot of programs for that out there.

      Best regards
      Daniel

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.