Unable to create a new hosting connection on VMWare

Unable to create a new hosting connection on VMWare

book

Article ID: CTX285156

calendar_today

Updated On:

Description

Error Id: XDDS:D2089BCC Exception: DesktopStudio_PowerShellHistory : TestHypervisorConnectionScript 7/23/2020 11:07:29 AM Get-HypService -AdminAddress "#####.XXX.###.com:80" -BearerToken ******** -MaxRecordCount ### Error Source : Citrix Studio StackTrace: Citrix.Console.Common.CitrixAggregateException One or more parallel operations failed at Citrix.Console.Common.CitrixParallel.InternalForEach[TIn](IEnumerable`1 items, Action`1 operation, Int32 maxSimultaneous) at Citrix.Orchestration.Base.PowerShellSdk.HypervisorService.Scripts.TestHypervisorConnectionScript.RunScript() at Citrix.Orchestration.Base.PowerShellInteraction.PowerShellScript`1.Run() at Citrix.Console.Hypervisors.UI.Pages.HypervisorDetailsPageViewModelBase.ValidatePage() at Citrix.Console.CommonControls.Wizard.PageContainerViewModel.b__0() Inner Exception: DesktopStudio_ErrorId : UnknownError ErrorCategory : ResourceUnavailable Studio_TargetHost : ####.###.com DesktopStudio_PowerShellHistory : SimplePowerShellScript 7/23/2020 11:07:29 AM Set-HypAdminConnection -AdminAddress "####.###.com" -BearerToken ******** New-Item -AdminAddress "###.##.com" -BearerToken ******** -ConnectionType "VCenter" -CustomProperties "" -HypervisorAddress @("https://###.##.##l.com") -Path @("XDHyp:\Connections\#####") -Scope @() -SecurePassword "System.Security.SecureString" -SSLThumbprint @("######") -UserName "####" -ZoneUid "####" New-Item : The hypervisor was not contactable at the supplied address. (Reason = Url invalid) + CategoryInfo : InvalidOperation: (:) [New-Item], InvalidOperationException + FullyQualifiedErrorId : Citrix.XDPowerShell.HostStatus.HypervisorNotContactable,Microsoft.PowerShell.Commands.NewItemCommand New-Item : The hypervisor was not contactable at the supplied address. (Reason = Url invalid) + CategoryInfo : NotSpecified: (:) [New-Item], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.NewItemCommand StackTrace: Citrix.Orchestration.Base.LogicModels.Exceptions.HypervisorNotContactableException The host server cannot be contacted. Check that the connection has a valid host address, and that the host server is powered on and working properly. Url invalid at Citrix.Orchestration.Base.PowerShellSdk.HypervisorService.Scripts.HypervisorConnectionHelpers.CreateNewConnection(ICmdletExecutionHost executionHost, IUnityContainer container, HypervisorConnectionModel hypervisorConnection, Boolean persist, Boolean ignoreHA, String hostServiceAddress) at Citrix.Orchestration.Base.PowerShellSdk.HypervisorService.Scripts.TestHypervisorConnectionScript.b__1(ICmdletExecutionHost host) at Citrix.Orchestration.Base.PowerShellInteraction.SimplePowerShellScript.b__0(ICmdletExecutionHost host) at Citrix.Orchestration.Base.PowerShellInteraction.PowerShellScript`1.Run() at Citrix.Console.Common.CitrixParallel.b__0(Object arg) Inner Exception: DesktopStudio_ErrorId : HypervisorNotContactable Exception : PluginUtilities.Exceptions.HostingInfrastructureCommunicationsFailureException: Url invalid ---> PluginUtilities.Exceptions.WrappedPluginException: Unable to connect to the remote server ---> PluginUtilities.Exceptions.WrappedPluginException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond IP address:443 --- End of inner exception stack trace --- --- End of inner exception stack trace --- Server stack trace: at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.SingleConnectionAttempt() at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.AttemptConnection(Boolean throwExceptions) at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.Start() at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmManager.StartMachineManager() at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareFactory.CreateMachineManagerInternal(IConnectionDetails connectionDetails) at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VMwareHypConnection..ctor(IConnectionDetails details) at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VMwareHypConnection.GetOrCreateConnection(IConnectionDetails details) at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VMwareHypervisor.IsDumSupported(IConnectionDetails connectionDetails) at Citrix.HypervisorCommunicationsLibrary.AddInSideAdapter.IHypervisor_AddInViewToContractAdapter.IsDumSupported(IConnectionDetailsContract connectionDetails) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Citrix.HypervisorCommunicationsLibrary.Contracts.IHypervisorContract.IsDumSupported(IConnectionDetailsContract connectionDetails) at Citrix.HypervisorCommunicationsLibrary.HostSideAdapter.IHypervisor_ContractToHostViewAdapter.IsDumSupported(IConnectionDetails connectionDetails) at Citrix.Host.Logic.HostLogic.ValidateConnectionDetails(HypervisorConnectionInternal connection, Boolean checkAllConnectionAddresses) Reason : HostingInfrastructureCommunicationsFailureException Message : Url invalid Error Source : CitrixHostService Sdk Error Message : The hypervisor was not contactable at the supplied address. (Reason = Url invalid) Sdk Error ID : Citrix.XDPowerShell.HostStatus.HypervisorNotContactable,Microsoft.PowerShell.Commands.NewItemCommand ErrorCategory : ResourceUnavailable DesktopStudio_PowerShellHistory : SimplePowerShellScript 7/23/2020 11:07:29 AM Set-HypAdminConnection -AdminAddress "####.com" -BearerToken ******** New-Item -AdminAddress "####.####.com" -BearerToken ******** -ConnectionType "VCenter" -CustomProperties "" -HypervisorAddress @("https://###.com") -Path @("XDHyp:\Connections\####") -Scope @() -SecurePassword "System.Security.SecureString" -SSLThumbprint @("###") -UserName "###" -ZoneUid "###" New-Item : The hypervisor was not contactable at the supplied address. (Reason = Url invalid) + CategoryInfo : InvalidOperation: (:) [New-Item], InvalidOperationException + FullyQualifiedErrorId : Citrix.XDPowerShell.HostStatus.HypervisorNotContactable,Microsoft.PowerShell.Commands.NewItemCommand New-Item : The hypervisor was not contactable at the supplied address. (Reason = Url invalid) + CategoryInfo : NotSpecified: (:) [New-Item], InvalidOperationException + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.NewItemCommand StackTrace: Citrix.Orchestration.Base.LogicModels.Exceptions.HypervisorNotContactableException The host server cannot be contacted. Check that the connection has a valid host address, and that the host server is powered on and working properly. at Citrix.Orchestration.Base.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ICommonLog logger, ExecutionResults`1 results, ICmdletExecutionHost host) at Citrix.Orchestration.Base.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover) at Citrix.Orchestration.Base.PowerShellSdk.HypervisorService.Scripts.HypervisorConnectionHelpers.CreateNewConnection(ICmdletExecutionHost executionHost, IUnityContainer container, HypervisorConnectionModel hypervisorConnection, Boolean persist, Boolean ignoreHA, String hostServiceAddress) Inner Exception: StackTrace: System.InvalidOperationException The hypervisor was not contactable at the supplied address. (Reason = Url invalid)

Resolution

Refer the following articles:

-- https://support.citrix.com/article/CTX232571

-- https://discussions.citrix.com/topic/400866-ddc-is-not-able-to-contact-the-hypervisor-vsphere/

-- https://support.citrix.com/article/CTX131512

-- https://discussions.citrix.com/topic/384208-host-connection-time-out-during-initial-configuration/

-- https://support.citrix.com/article/CTX226098

-- Check whether TLS 1.0 , 1.1 is enabled on vcenter

-- Ensure that the remote certificate is trusted on the host

--  Ensure that we are able to access the vcenter URL from all DDC 

-- Ensure that the Certificate is issued by CA and not VM Ware default certificate

-- Disable TLS 1.2 on all DDCs and restart the host service

-- Confirm if VMWare CRL's were missing on DDCs in order to validate it's own cert

-- Locate rui.crt on the vCenter server and copy the same to the Delivery Controllers.

-- Install the certificate using following steps:

1. Right clicked the certificate and clicked Install certificate, select Local Machine, and then click Next.

2. Select Place all certificates in the following store, and then click Browse.

3. Select Trusted People, then click OK.

4. Click Next, then click Finish.

Perform the same steps on all the Delivery Controller.

1. Install the rui-ca-cert.pem to the LOCALCOMPUTER/THIRD PARTY ROOT CERTIFICATION Store on all the Delivery Controller 

If you are running vCenter on Windows, you will need the cacert.pem, usually located at C:\ProgramData\VMware\VMware VirtualCenter\SSL\cacert.pem.

•Please refer : https://www.virtuallyghetto.com/2012/04/extracting-ssl-thumbprint-from-esxi.html 


Problem Cause

Issue with the Certificate issued