Current system configuration:
- VM with Windows 2008 R2 x64
- XenApp 6.5 Enterprise installation
- Running on a whitebox EXSi 4.1 u 1
When launching Citrix AppCenter and run discovery it will error out with:
Errors occurred when using SERVERNAME in the discovery process.
An unexpected error occurred. Check that the server name is correct, that the server is on, that Citrix XenApp is installed on this server, and that the Citrix MFCOM Service is running.
Part of the issue is Citrix MFCOM Service is stuck in starting status, and Citrix IMA (aka Citrix Independent Management Architecture) is not started. Citrix IMA will also fail to start.
Step to resove this issue:
While researching and testing I found out that there are several different steps that will lead you a solution. I used different approaches to fix the same problem on two different setup. Make sure you test this on a non production system first. Note: My issue was with fresh VM loaded Windows Server 2008 R2 and XenApp 6.5, I believe this will help with Xenapp 5 and 6 as well. The key is to get MFCOM service properly started
Step 1a – Try to fix the IMA Service Fails to Start and MFCOM Service Hangs in a Starting State. Issue possibly caused by corrupted Imalhc.dsn and RadeOffline.dsn file (both file are located under C:\Program Files (x86)\Citrix\Independent Management Architecture\)
Verify the content of the files:
Imalhc.dsn - file content
Start command prompt with admin elevated access and perform run these commands(exclude comments):
sc stop mfcom < stop mfcom service
sc stop CitrixWMIService < stop CTX WMI service
sc stop imaservice < stop IMA serice
taskkill /IM imasrv.exe /F < kill IMA process
taskkill /IM IMAAdvanceSrv.exe /F < kill IMA process
taskkill /IM mfcom.exe /F < kill mfcom process
dsmaint recreatelhc < recreate database
reboot the machine. Check if the services are up and running. Got to step 2 and launch the XenAppServerRoleManager and try to reconfigure the farm. If this fails move to step 1b.
Step 1b - IMA Service and SMA Service Fail to Start and the MFCOM Service is Unresponsive during the Start State
- Stop the mfcom.exe service by using the Task Manager.
- Set the IPSEC Service to Automatic and restart it.
- Start the IMA Service and the MFCOM Service
- Reboot and try Step 2
Step 1c – Install Update for Root Certificates from MFST
Download and install Update for Root Certificates [June 2011] (KB931125)
After successfully installing the root certificate and rebooting the PC, the discovery process will still fail with the same error because now the Citrix IMA and MFCOM is stuck in starting status. On a previous setup the root certificate did resolve my problem. Try step 2 again, launching XenAppServerRoleManager will recycle the IMA services and might work. If this fails try step 1c.
Step 1d Check for missing or bad XenApp patches and hotfixes for your version of XenAPP.
There are several post in Citrix Forum instructing to update patches and hotfixes to fix the MFCOM issue. You can google "XenApp Hotfix for MFCOM" there are a lot of information. XenApp a tool call Intallation Manager you can use to distribute hot fixes, patches, and file/registry updates. If you search for XenApp 6.5 you should see a download link for "Intallation Manager for Windows 2008 R2". I personally haven't had the chance to play with it yet but will when I get more involved with XenApp.
Where to find? Log into Citrix | Download | XenAPP | as of today XenApp 6.5 is available but the Intstallation Manager for Windows Server 2008 R2 is only available in the XenApp 6.0 version.
Step 2 Launch XenAppServerRoleManager to Reconfigure the XA Server.
Next thing to do is launch XenAppServerRoleManager (located in C:\Program Files (x86)\Citrix\XenApp\XenAppRoleManager\) and reconfigure the farm.
Once the Citrix XenApp Server Role Manager window comes up click on Edit Edit Configuration under XenApp.
Step 3 - XenApp Server user account password changed. (Credit goes to commentor)
If the account used to configure your XA server had password change issue command to reconfigure the data store:
dsmaint config /user:supernova\satya /pwd:Passw0rd101
/dsn:"C:\Program Files (x86)\Citrix\Independent Management Architecture\mf20.dsn"
Good luck. Go back to step 1 if this fails.