7.0

Table Of Contents
5 Modify the boot.cfg file in both /esxi_cdrom/efi/boot/boot.cfg (for UEFI boot) and /
esxi_cdrom/boot.cfg (for legacy BIOS boot) to specify the location of the installation or
upgrade script by using the kernelopt option.
You must use uppercase characters to provide the path of the script, for example,
kernelopt=runweasel ks=cdrom:/KS_CUST.CFG
The installation or upgrade becomes completely automatic, without the need to specify the
kickstart file during the installation or upgrade.
6 Recreate the ISO image using the mkisofs or the genisoimage command.
Command Syntax
mkisofs mkisofs -relaxed-filenames -J -R -o custom_esxi.iso -b
ISOLINUX.BIN -c BOOT.CAT -no-emul-boot -boot-load-size 4
-boot-info-table -eltorito-alt-boot -eltorito-platform efi -b
EFIBOOT.IMG -no-emul-boot /esxi_cdrom
genisoimage genisoimage -relaxed-filenames -J -R -o custom_esxi.iso -b
ISOLINUX.BIN -c BOOT.CAT -no-emul-boot -boot-load-size 4
-boot-info-table -eltorito-alt-boot -e EFIBOOT.IMG -no-emul-
boot /esxi_cdrom
You can use this ISO installer image for regular boot or UEFI secure boot. However, the
vSphere Lifecycle Manager cannot verify the checksum of such an ISO image and you cannot
use it for upgrades by using vSphere Lifecycle Manager workflows.
Results
The ISO image includes your custom installation or upgrade script.
What to do next
Install ESXi from the ISO image.
Network Booting the ESXi Installer
You can use preboot execution environment (PXE) to boot an ESXi host from a network device, if
your host uses legacy BIOS or UEFI. Alternatively, if your ESXi host supports native UEFI HTTP,
you can use hypertext transfer protocol (HTTP) to boot the host from a network device.
ESXi is distributed in an ISO format that is used to install to flash memory or to a local hard drive.
You can extract the files and boot them over a network interface.
PXE uses Dynamic Host Configuration Protocol (DHCP) and Trivial File Transfer Protocol (TFTP) to
boot an operating system over a network.
PXE booting requires some network infrastructure and a machine with a PXE-capable network
adapter. Most machines that can run ESXi have network adapters that can PXE boot.
VMware ESXi Installation and Setup
VMware, Inc. 29