Permission denied errors in vCenter when deploying Horizon Instant Clone VMs.
search cancel

Permission denied errors in vCenter when deploying Horizon Instant Clone VMs.

book

Article ID: 423641

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Permission-denied errors are observed in VMware vCenter Server during Horizon Instant Clone deployment operations.
    • Error: Permission-denied errors are observed in VMware vCenter Server during Horizon Instant Clone operations.
    • The user had required permissions, however the operation failed.
  • During a scale-up operation of the VDI environment, the instant Clone VMs are automatically provisioned and immediately deleted.
    • On VPXD logs (/var/log/vmware/vpxd/vpxd.log):
      YYYY-MM-DDTHH:MM:SS.SSSS  info vpxd[3031117] [Originator@6876 sub=vpxLro opID=5f63bb70] [VpxLRO] -- BEGIN lro-236540 -- Se
      ssionManager -- vim.SessionManager.login -- 52d8be09-2a2d-27b1-203e-cXXXXXXX
      YYYY-MM-DDTHH:MM:SS.SSSS info vpxd[3031117] [Originator@6876 sub=SsoClient opID=5f63bb70] Successfully acquired token: SamlToken [subject={Name: Administrator; Domain:VSPHERE.LOCAL}, groups=[{Name: Users; Domain:vsphere.local}, {Name: Administrators; Domain:vsphere.local}, {Name: CAAdmins; Domain:vsphere.local}, {Name: SystemConfiguration.Administrators; Domain:vsphere.local}, {Name: SystemConfiguration.BashShellAdministrators; Domain:vsphere.local}, {Name: SystemConfiguration.ReadOnly; Domain:vsphere.local}, {Name: SystemConfiguration.SupportUsers; Domain:vsphere.local}, {Name: LicenseService.Administrators; Domain:vsphere.local}, {Name: Everyone; Domain:vsphere.local}], delegationChain=[], startTime=YYYY-MM-DDTHH:MM:SS.SSSS, endTime=YYYY-MM-DDTHH:MM:SS.SSSS, renewCount=10, delegableCount=10, isSolution=false, type=Saml_Bearer]
      Session logout:
      YYYY-MM-DDTHH:MM:SS.SSSS info vpxd[3030012] [Originator@6876 sub=vpxLro opID=5842293e] [VpxLRO] -- BEGIN lro-247521 -- SessionManager -- vim.SessionManager.logout -- 52d8be09-2a2d-27b1-203e-cXXXXXXX
      Using invalid session, reconfig task was initiated which failed
      YYYY-MM-DDTHH:MM:SS.SSSS info vpxd[3030116] [Originator@6876 sub=vpxLro opID=7b11aa24] [VpxLRO] -- BEGIN task-24554510 -- vm-3208111 -- vim.VirtualMachine.reconfigure -- 52d8be09-2a2d-27b1-203e-cXXXXXXX
      YYYY-MM-DDTHH:MM:SS.SSSS warning vpxd[3030116] [Originator@6876 sub=CryptoManager opID=7b11aa24-01] The session 52d8be09-2a2d-27b1-203e-cXXXXXXX of user <NULL> does not have privilege Cryptographer.Encrypt on entity [vim.VirtualMachine:vm-32XXXX,XXXX].
      YYYY-MM-DDTHH:MM:SS.SSSS error vpxd[3030116] [Originator@6876 sub=CryptoManager opID=7b11aa24-01] Failure during CryptoManager PreReconfigure: N3Vim5Fault12NoPermission9ExceptionE(Fault cause: vim.fault.NoPermission
      --> )
      --> [context]zKq7AVECAQAAACqAeAEmdnB4ZAAAQxxTbGlidm1hY29yZS5zbwAACBhCACk/QwCWmUqBw40cAXZweGQAgfIBHgGBapMXAoEuIBkCgZojGQKBufw8AoGPAD0CgSd3OAKBHZ81AoFmjz8Cgc6vPwKBYdI/AoGy0IACgf3ggAKB8fN/AoHWUYACgcFsNAKBZW00AoHAVOsBgTxY6wGBzoPrAYJO2jQBbGlidmltLXR5cGVzLnNvAIEzRYICA011HGxpYnZtb21pLnNvAIE4HmACgbLQgAKB/eCAAoHx838CgeDKgAIABOw3ABdFOADFD1EEsI4AbGlicHRocmVhZC5zby4wAAXf+g9saWJjLnNvLjYA[/context]
      YYYY-MM-DDTHH:MM:SS.SSSS warning vpxd[3030116] [Originator@6876 sub=pbm opID=7b11aa24-01] post reconfigure callback is skipped - VM reconfigure failed

Environment

VMware vCenter Server

Cause

The failure occurred because the VM reconfiguration task was initiated using an inactive vCenter session. The session had already been logged out and was no longer associated with any authenticated user. Consequently, vCenter interpreted the request as originating from a <NULL> user and correctly denied the operation, despite the required Cryptographer.Encrypt privilege being assigned.

Resolution

Ensure that the Session stays active until the tasks are completed with the associated authenticated user provided by Horizon. Hence, engage Omnissa Team for further assistance on this issue.