Friday, January 7, 2011

Tricks of integrating XenDesktop DDC with VMWare vCenter

My environment:  VMWare vCenter 4.1 on Windows 2008 server, ESXi 4.1, Citrix XenDesktop DDC 4

Citrix XenDesktop is the VDI products from Citrix, and it is flexible that the desktop client VM can run on Citrix XenServer and VMWare ESXi.  You can choose your preferred hypervisor for your client VMs.  In my testing I am using ESXi as the hypervisor for the client VMs. 

Integration is needed between Citrix DDC and VMWare vCenter because you need to know which VMs on your ESXi server hosting the client VMs.  During my integration work I have got the following error message in the Create Desktop Group wizard in DDC:

‘Invalid Address – The hosting infrastructure could not be reached at the specified address.’

The workaround is to allow both HTTP and HTTPS for SDK access on vCenter, to do this you can:

1. Edit C:\ProgramData\VMware\VMware VirtualCenter\proxy.xml with your wordpad, and change the access mode of /sdk from httpsWithRedirect to httpAndHttps

<e id="5">
      <_type>vim.ProxyService.LocalServiceSpec</_type>
      <accessMode>httpAndHttps</accessMode>
      <port>8085</port>
      <serverNamespace>/sdk</serverNamespace>
    </e>

2. In DDC, when you are creating integration with vCenter, you can use the URL http://1.2.3.4/sdk where 1.2.3.4 is your vCenter IP address.  You can now allow HTTP access to your vCenter SDK.

Have fun!

No comments: