1
0

vmware.ipxe.j2 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!ipxe
  2. # VMware ESXi
  3. # https://www.vmware.com
  4. goto ${menu} ||
  5. :vmware
  6. set os VMware ESXi
  7. clear vmware_choice
  8. menu ${os}
  9. item --gap Installers
  10. item vmware_install ${space} ${os} Install
  11. item --gap Options:
  12. item url_set ${space} Base URL [ ${vmware_base_url} ]
  13. choose vmware_choice || goto vmware_exit
  14. goto ${vmware_choice}
  15. :url_set
  16. echo Set the HTTP URL of an extracted VMware ISO without the trailing slash:
  17. echo e.g. http://www.mydomain.com/vmware/esxi7
  18. echo
  19. echo -n URL: ${} && read vmware_base_url
  20. echo
  21. echo The following files will be loaded the following files:
  22. echo
  23. echo For Legacy: ${vmware_base_url}/mboot.c32
  24. echo For EFI: ${vmware_base_url}/efi/boot/bootx64.efi
  25. echo
  26. echo The ESXi modules will be loaded from the following file:
  27. echo ${vmware_base_url}/boot.cfg
  28. echo
  29. echo Ensure you have edited boot.cfg to reflect the prefix of:
  30. echo
  31. echo prefix=${vmware_base_url}
  32. echo kernelopt=runweasel ks=${vmware_base_url}/ks.cfg
  33. echo
  34. echo If you aren't doing kickstart automation, you can leave off the ks option.
  35. echo
  36. echo If the filenames in the kernel= and modules= lines begin with a forward
  37. echo slash (/) character, delete those characters.
  38. echo
  39. prompt Press any key to return to VMware Menu...
  40. goto vmware
  41. :vmware_install
  42. isset ${vmware_base_url} && goto boot_check || echo URL not set... && goto url_set
  43. :boot_check
  44. iseq ${platform} efi && goto efi_boot || goto legacy_boot
  45. :efi_boot
  46. imgfree
  47. kernel ${vmware_base_url}/efi/boot/bootx64.efi -c ${vmware_base_url}/boot.cfg
  48. goto boot
  49. :legacy_boot
  50. imgfree
  51. kernel ${vmware_base_url}/mboot.c32 -c ${vmware_base_url}/boot.cfg
  52. goto boot
  53. :boot
  54. md5sum bootx64.efi
  55. boot
  56. goto vmware
  57. :vmware_exit
  58. exit 0