T.S.XenDeskTop 架设在 ESX上的问题

      
    虽然咱目前不专职做的citrix的实施工作了.但咱依然有一颗citrix的实施的心.最近看到很多朋友搞xendesktop 架设在vm的在esx上问题多多,很多求助这方面的事情.于是今天没事,就找了一下这方面资料分享出来.请大牛多做指点 阿东就是理解加翻译咯,摸着石头过河费死尽咯..见笑咯大家.
    原文地址如下:

XenDesktop Error: The hosting infrastructure could not be reached at the specified address

http://support.citrix.com/article/CTX125578
   
   
使用XenDesktop Setup Wizard 最后安装配置pvs的时候会出现这个问题,
识别不到esx宿主地址. 
根据服务器报错.log
CSystem.Net.WebException: The request failed with the error message: itrix.PoolManagement.MachineManager.MachineManagementApi.HostingInfrastructureCommunicationsFailureException: Url invalid ---> -- <HTML><BODY><H1>301 Moved Permanently</H1></BODY></HTML>
--.
   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.RetrieveServiceContent(ManagedObjectReference _this)
   at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VcServiceWrapper.Login(VmwareVmConnection connection, String url, String userName, String password)
   --- End of inner exception stack trace ---
   at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VcServiceWrapper.Login(VmwareVmConnection connection, String url, String userName, String password)
   at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.LoginVc(String url, String userName, String password)
   at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.Connect(String url, String userName, String password)
   at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.ConnectionPool.MakeConnection(String login, String url, String password)
   at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmManager..ctor(String vmmServer, String userName, SecureString password)
阿东的思路
A.个人猜测vmware和citrix 没有完美兼容.sdk阿.引导方式啊.权限啊.
B.咱晓得ESX有三种访问机制.而citrix的xendesktop 想用esx做位vm的宿主.只能通过https这种方法和VCserver重新注册引导完毕.
C找方法去解决.去citrix.vmware的support.国外同行的解决方法
A.在vc里添加一个新的认证: http://www.vmware.com/files/pdf/vsp_4_vcserver_certificates.pdf



B.通过web访问 修改sdk
http://vmware.com/support/developer/vc-sdk/visdk400pubs/sdk40setupguide.pdf 


http://www.vmware.com/support/developer/vc-sdk/下载sdk和安装文档.

To modify the Web proxy service on ESX to support HTTP: ESX开启http服务
  1. Log on to the service console as the root user.
  2. Change directories to /etc/vmware/hostd.
  3. Use a text editor to open the proxy.xml file.
  4. Navigate to the list of endpoints in the file (identified by the <EndpointList> tag) that contains settings for the Web service supporting the SDK. The nested tags may look something like this:
...
<e id=”1”>
  <_type>vim.ProxyService.NamedPipeServiceSpec</_type>
  <accessMode>httpsWithRedirect</accessMode>
  <pipeName>/var/run/vmware/proxy-sdk</pipeName>
  <serverNamespace>/sdk</serverNamespace>
</e>


It should look like this 注意要修改的东西
...
<e id=”1”>
  <_type>vim.ProxyService.NamedPipeServiceSpec</_type>
  <accessMode>httpAndHttps</accessMode>
  <pipeName>/var/run/vmware/proxy-sdk</pipeName>
  <serverNamespace>/sdk</serverNamespace>
</e>

  1. Save your settings and close the file.
  2. Restart the vmware-hostd process by entering the following command:
    service mgmt-vmware restart
To modify the Web proxy service on vCenter Server to support HTTP 修改vc支持http服务
  1. Log on to the vCenter Server system as the Windows Administrator of the machine.
  2. Change to the directory containing the proxy.xml file:
    c:\Documents and Settings\AllUsers\Application Data\VMware VirtualCenter
  3. Use a text editor to open the proxy.xml file.
  4. Find the section of the file associated with the /sdk.
  5. Change the accessMode to httpAndHttps.  看好要修改的东西!!
  6. Restart the service from a command line or from the Windows Services control panel.
If you have the latest hotfixes for XenDesktop, then you can use the default https SSL certificate installed with vSphere by using the following procedure:
To use the VMware installed, self-signed certificate on vSphere
这些操作在pvs上进行 就是set up xendesktop 那个工具里 的服务器进行

  1. Add the fully qualified domain name for the vSphere server to c:\windows\drivers\etc\hosts if not present in DNS. 
  2. Using Internet Explorer - enter https://<FQDN of vSphere server>  ESX 地址
  3. Accept the security warnings.
  4. Click on the Certificate Error part of the address bar and select View Certificates.
  5. Click Install Certificate.
  6. Click Next.
  7. Click Place all certificates in the following store.
  8. Click Browse.
  9. Click Show physical stores.
  10. Expand Trusted People.
  11. Select Local Computer.
  12. Click OK.
  13. Click Next.
  14. Click Finish.

相信看完大家应该没问题了.
不过xendesktop5 要出来了.不晓得 真的能10分钟快速部署结束做位poc吗?
hoho 大家等待12月的结果.
期待 xendesktop 5给大家的惊喜
不懂的留言..阿东最近没环境..有环境弄个截图的方便大家.
102017387 qq  群 方便交流 citrix vmware ms 等等一起虚拟化


你可能感兴趣的:(vmware,职场,休闲,citrix,xendesktop)