Packer centos vm for vsphere build returns error

Hello Everyone,
I am currently trying to create a centos7 VM on Vsphere with Packer and I am getting the following permission error:

Error running boot command: error typing a boot command (code, down) 43, false: ServerFaultCode: Permission to perform this operation was denied.
Does anyone could help me please to troubleshoot this issue ?

Hello! This is a permission problem. Are you sure the user is allowed to do that?
Check it out this list of permissions I found in an older vsphere issue: vsphere-iso: Permissions Error · Issue #97 · jetbrains-infra/packer-builder-vsphere · GitHub

I indeed solved this problem by enabling inject usb hid scan code on Vsphere

We had the same problem with a RHEL 8 deploy and can confirm it was the “inject usb hid scan code” permission that was required for RHEL 8 as well

Hello,

As I’m facing the same issue, may you describe how and where you add this “inject usb hid scan code” permission, please?

Thank you.

Forget it, I had no permission issue, as I tried using an “administrator-like” account.
I eventually tried setting longer key intervals (to 2000ms which seemed like crawling in quicksand) but eventually worked.