Packer EFI Vsphere-ISO

I have been using packer to create templates and tested out an EFI version of my templates with CentOS 8. I had a BIOS version work, but the EFI menu requires a Ctrl-x to start the install, but even with x it is only printing the x, not doing the special combo. Anyone see this before?

{

  "CPUs": "{{ user `cpus` }}",

  "RAM": "{{user `memory`}}",

  "RAM_reserve_all": false,

  "boot_command": [

    "<up><wait>e<wait><down><wait><down><wait><end> text inst.sshd inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}} <wait><leftCtrlOn>X<leftCtrlOff>"

  ],

  "boot_wait": "10s",

  "cluster": "{{ user `vcenter_cluster`}}",

  "convert_to_template": "true",

  "datacenter": "{{ user `vcenter_datacenter`}}",

  "datastore": "{{ user `vcenter_datastore`}}",

  "disk_controller_type": "pvscsi",

  "firmware": "efi",

  "folder": "{{ user `vcenter_folder`}}",

  "guest_os_type": "centos7_64Guest",

  "host": "{{ user `vcenter_host`}}",

  "http_directory": "http",

  "insecure_connection": "true",

  "iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",

  "iso_paths": [

    "{{ user `vcenter_isopath`}}/{{ user `iso_name`}}"

  ],

  "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",

  "network_adapters": [

    {

      "network": "{{ user `vcenter_network`}}",

      "network_card": "vmxnet3"

    }

  ],

  "notes": "Built: {{ user `build_timestamp` }}",

  "password": "{{ user `vcenter_password`}}",

  "ssh_password": "vagrant",

  "ssh_username": "vagrant",

  "storage": [

    {

      "disk_size": "{{user `disk_size`}}",

      "disk_thin_provisioned": true

    }

  ],

  "type": "vsphere-iso",

  "username": "{{ user `vcenter_user`}}",

  "vcenter_server": "{{ user `vcenter_server`}}",

  "vm_name": "{{user `template`}}",

  "vm_version": "{{user `vm_version`}}"

}

],

Hey there! This is a bug that it’s already fixed for the next release (1.6.2). Until then you can use the pre-release nightly binaries https://github.com/hashicorp/packer/releases/tag/nightly
the leftCtrl keys should work with these.

@GMAzrael your boot command worked (after I updated Packer) except for the last character “X”. Needs to be lowercase “x”.