How to netboot the server installer on amd64

Used for to netboot a jammy server.

The instructions extract the kernel in a vmlinuz file but grub.cfg uses vmlinux (z vs x), so either needs to be fixed.

The signed shim is now in ./usr/lib/shim/shimx64.efi I think - at least ./usr/lib/shim/shimx64.efi.signed doesn’t exist anymore.

Also if you want to run this from the serial console, you’ll have to tweak grub.cfg a bit. This worked for me :

set default="0"
set timeout=-1

if loadfont unicode ; then
  set gfxmode=auto
  set locale_dir=$prefix/locale
  set lang=en_US
fi

serial --unit=0 --speed=115200 --stop=1
terminal_output serial
terminal_input serial

#set menu_color_normal=white/black
#set menu_color_highlight=black/light-gray
#if background_color 44,0,30; then
#  clear
#fi

function gfxmode {
        set gfxpayload="${1}"
        if [ "${1}" = "keep" ]; then
                set vt_handoff=vt.handoff=7
        else
                set vt_handoff=
        fi
}

set linux_gfx_mode=text

export linux_gfx_mode

menuentry 'Ubuntu 22.04' {
        gfxmode $linux_gfx_mode
        linux /vmlinuz console=ttyS0,115200n1 root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://10.1.1.1/jammy-live-server-amd64.iso
        initrd /initrd
}