Unable to connect to the Virtual Machine web console: Permission to perform this operation was denied.Unable to connect to MKS: Permission to perform this operation was denied./var/log/vmware/vpxd/vpxd.log in vCenter Server[YYYY-MM-DDTHH:MM:SS:ZZZ] error vpxd[#####] [Originator@#### sub=Default opID=<OP_ID>] [VpxLRO] -- ERROR lro-######## -- <Session ID>(########-####-####-####-############) -- vm-<VM-ID> -- vim.VirtualMachine.acquireTicket: :vim.fault.NoPermission--> Result:--> (vim.fault.NoPermission) {--> faultCause = (vmodl.MethodFault) null,--> faultMessage = <unset>,--> object = 'vim.VirtualMachine:########-####-####-####-############:vm-<VM-ID>',--> privilegeId = "Cryptographer.Access",--> missingPrivileges = (vim.fault.NoPermission.EntityPrivileges) [--> (vim.fault.NoPermission.EntityPrivileges) {--> entity = 'vim.VirtualMachine:########-####-####-####-############:vm-<VM-ID>',--> privilegeIds = (string) [--> "Cryptographer.Access"--> ]--> }--> ]--> msg = ""--> }--> Args:-->--> Arg ticketType:--> "webmks"The error "Permission to perform this operation was denied" occurs because the user's assigned role is missing the Direct Access privilege under Cryptographic operations. This privilege is mandatory for acquiring a console ticket (webmks) for any encrypted Virtual Machine.
To restore console access, add the required privilege to the user's role:
If the VM is part of a cluster with DRS enabled, you should also ensure the Cryptographic operations > Migrate and Read KMS information privileges are granted to prevent issues during automated migrations
Please refer the following document for more information on cryptographic privileges: Cryptographic Operations Privileges
Additionally, ensure other needed Virtual Machine Interaction privileges are also provided. Reference: Virtual Machine Interaction Privileges