ESXi 6.5 provides many options for using PXE to boot the installer and using an installation or upgrade script.