XenDesktop 5.6连接vsphere失败:unexpected error

XenDesktop 5.6在配置Host的时候,一直出现位置错误,导致无法连接到vsphere。

 

错误信息: Desktop Studio has detected an unexpected error.

Exception:
    System.Reflection.TargetInvocationException Exception has been thrown by the target of an invocation.
       at Citrix.Console.Common.CallbackEventArguments.OperationCompleteSynchronizer`1.GetResults()
       at Citrix.Console.Common.CallbackEventArguments.OperationCompleteSynchronizer`1.WaitForResults()
       at Citrix.Console.Hypervisors.UI.Pages.HypervisorDetailsPageViewModel.ValidatePage()

Inner exception:
    Citrix.Console.Models.CallbackEventArguments.ScriptException Desktop Studio has detected an unexpected error.
       at Citrix.Console.PowerShellInteraction.XDCommand.EndExecutionAndCheckErrors(ProgressModel progressModel)
       at Citrix.Console.PowerShellInteraction.XDCommand.EndExecutionAndCheckErrors()
       at Citrix.Console.PowerShellSdk.HypervisorService.Scripts.CreateHypervisorConnection.<ExecuteNext>d__7.MoveNext()
       at Citrix.Console.PowerShellInteraction.PowerShellScript`1.<ExecuteNext>d__9.MoveNext()
       at Citrix.Console.InteractionCore.ScriptBase.<ExecuteImplementation>d__1.MoveNext()
       at Citrix.Console.InteractionCore.Scheduler.ExecuteNext(ScriptExecution execution)

    Error data:
        ExceptionThrown\nSystem.InvalidOperationException: An exception occurred.  The associated message was Exception of type 'System.OutOfMemoryException' was thrown.

        Exception : Citrix.ManagedMachineAPI.ManagedMachineException: Exception of type 'System.OutOfMemoryException' was thrown. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
           at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderVimService.Read1_Object(Boolean isNullable, Boolean checkType)
           at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderVimService.Read1546_PropertyChange(Boolean isNullable, Boolean checkType)
           at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderVimService.Read1548_ObjectUpdate(Boolean isNullable, Boolean checkType)
           at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderVimService.Read1550_PropertyFilterUpdate(Boolean isNullable, Boolean checkType)
           at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderVimService.Read1551_UpdateSet(Boolean isNullable, Boolean checkType)
           at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderVimService.Read3172_WaitForUpdatesResponse()
           at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer1797.Deserialize(XmlSerializationReader reader)
           at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
           at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
           at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
           at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
           at VimApi.VimService.WaitForUpdates(ManagedObjectReference _this, String version)
           at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.InventoryCache.InitialiseFiltersAndRetrieveLatestUpdateVersion(VmwareSession session)
           at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.InventoryCache.LoadVMsAndHosts(VmwareSession session)
           at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.SingleConnectionAttempt()
           at HypervisorsCommon.BaseConnector`2.AttemptConnection(Boolean throwExceptions)
           at HypervisorsCommon.BaseConnector`2.Start()
           at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmManager..ctor(String vmmServer, String userName, SecureString password, VMwareConfig config)
           --- End of inner exception stack trace ---
           at Citrix.HostingUnitService.SDK.SDKLogic.HandleException(Exception ex)
           at Citrix.HostingUnitService.SDK.SDKLogic.EstablishHypervisorConnection(HypervisorConnectionInternal connection, IHypervisor& hypervisor, IHypConnection& hclConnection)
           at Citrix.HostingUnitService.SDK.SDKLogic.ValidateConnectionDetails(HypervisorConnectionInternal connection)
           at Citrix.HostingUnitService.SDK.SDKLogic.NewHypervisorConnection(String name, String userName, SecretStringBuffer password, ConnectionType connectionType, String[] addresses, String pluginId, Boolean commit, HypervisorConnection& connection)
           at Citrix.HostingUnitService.SDK.SdkHostingUnitService.<>c__DisplayClass25.<NewHypervisorConnection>b__24()
           at Citrix.XDServiceBase.ServiceBase.CheckedCall[T](String name, Func`1 operation, Func`2 defaultValue, Enum code)
        Reason : ManagedMachineException
        Message : Exception of type 'System.OutOfMemoryException' was thrown.

Message : Exception of type 'System.OutOfMemoryException' was thrown.

仔细查看错误信息我们发现提示内存不足,具体原因不是很确定,也无法做进一步的确认。关机,增加DDC内存,重新配置,解决了该问题。

BTW:

有可能和虚拟内存的配置有关系,该VM经过简单的优化,内存为1.5G,禁用了虚拟内存(分页文件)。

出现问题的时候,增加内存到2G解决问题。可能启用虚拟内存也能解决问题,但是考虑到虚拟机磁盘的压力相对内存来说要大很多,还是选择了增加内存容量。

本文出自 “虚拟化杂谈” 博客,谢绝转载!

你可能感兴趣的:(error,UNEXPECTED,citrix,xendesktop,桌面虚拟话)