Receiving errors: "A server error occurred" and "Unable to connect to MKS: Permission to perform this operation was denied"
vSphere ESXi 7.x
vSphere ESXi 8.x
vCenter Server 7.x
vCenter Server 8.x
Users do not have the proper permissions to remote console to encrypted VMs.
To resolve this issue, add the following permission to the user role:
Cryptographic Operations Privileges
Privilege Name: Cryptographic operations ==> Direct Access
Description : Allows users access to encrypted resources. Users can export virtual machines, have NFC access to virtual machines, and open a console session to an encrypted virtual machine.
More information refer the document : Cryptographic Operations Privileges