Skip to content

Instantly share code, notes, and snippets.

@yashodhank
Forked from bunchc/custom.ipxe
Created April 22, 2023 05:11
Show Gist options
  • Select an option

  • Save yashodhank/ac32b871680b447dbdd4c1e117c71ace to your computer and use it in GitHub Desktop.

Select an option

Save yashodhank/ac32b871680b447dbdd4c1e117c71ace to your computer and use it in GitHub Desktop.

Revisions

  1. @bunchc bunchc created this gist May 5, 2021.
    32 changes: 32 additions & 0 deletions custom.ipxe
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    #!ipxe
    ###
    ### codybunch.lab custom menu example
    ###

    :custom
    clear custom_choice
    menu ESXi
    item --gap Boot ESXi Installer
    item esxi_70_kickstart ${space} 7.0 Automated Install
    item esxi_70_install ${space} 7.0 Installer
    item esxi_70_iso ${space} 7.0 ISO
    choose custom_choice || goto custom_exit
    echo ${cls}
    goto ${custom_choice}
    goto custom_exit

    :esxi_70_iso
    sanboot --no-describe --drive 0x80 http://boot.codybunch.lab/ISO/VMware/ESXi/v7.0.0U1d/ESXi-7.0U1d-17551050-standard-customized.iso || goto custom_exit
    boot || goto custom_exit

    :esxi_70_install
    kernel http://boot.codybunch.lab/VMware/ESXi/v7.0.0U1d/mboot.c32 -c http://boot.codybunch.lab/VMware/ESXi/v7.0.0U1d/boot-70.cfg
    boot || goto custom_exit

    :esxi_70_kickstart
    kernel http://boot.codybunch.lab/VMware/ESXi/v7.0.0U1d/mboot.c32 -c http://boot.codybunch.lab/VMware/ESXi/v7.0.0U1d/boot-70-ks.cfg
    boot || goto custom_exit

    :custom_exit
    echo Boot failed. Returning to menu
    clear menu