You can configure the boot options of a virtual machine by using the setBoot(CreateSpec boot) method of the CreateSpec class.

The method takes as argument the BootTypes.CreateSpec class. You can select one of the following settings when booting the virtual machine:
  • Delay - Indicates a delay in milliseconds before starting the firmware boot process when the virtual machine is powered on.
  • Retry - Indicates whether the virtual machine automatically retries to boot after a failure.
  • Retry delay - Indicates a delay in milliseconds before retrying the boot process after a failure.
  • Enter setup mode - If set to true, indicates that the firmware boot process automatically enters BIOS setup mode the next time the virtual machine boots. The virtual machine resets this flag to false once it enters setup mode.
  • EFI legacy boot - If set to true, indicates that the EFI legacy boot mode is used.