For VMware ESXi guests that are booted with a BIOS boot firmware it is possible to configure the boot order directly in the .vmx file of the guest, according to this VMware kb article, by specifying these options:
bios.bootOrder = "ethernet5,ethernet2,hdd,cdrom,floppy"
bios.hddOrder = "scsi2:2,scsi0:1,ide1:0"
Q: Is something similar possible if the guest is booted with an EFI firmware?
I know I can change the boot order by accessing the EFI setup screen, but I would like to have something that can be automated.