Skip to content
Skip to Archives
Skip to Search

P2Vme Blog

Virtually Everything: CItrix, VMware and more...

Virtually Everything: CItrix, VMware and more...

Shrunk Expand

Primary Navigation

  • Home
  • Citrix
  • VMware
  • Microsoft
  • AWS
  • Cisco
  • About Me

Citrix on vSphere – User Profiles not removed at Logoff

Posted on November 29, 2012 4:02 pm by Phillip Jones Comment

Many companies out in the wild deploy their Citrix environment on VMware vSphere, its a very common configuration as they are both best of breed at what they do. These products work well together.

However many customers are now deploying vShield (which is being replaced by VMware vCloud® Networking and Security 5.1) into their environments More and more vendors are leveraging these capabilities such as Trend Micro, McAfee for their antivirus, security and application needs.

I have encountered an issue for environments that have deployed Citrix User Profile Manager and did the Full installation of VMware Tools. There is a conflict with the Shared Folder component of VMware tools that prevents the user profile from being deleted at logoff, this can lead to multiple user profiles on a server, sometimes even resulting in temp profile usage and rarely in profile corruption.

An additional profile is created on the local system for each user who logs in. The profiles folders name is first appended with the domain name and then continues to increment with 000, 001, 002, and so on. An example of this is displayed in the following screenshot:


I have seen this lead to thousands, even tens of thousands of small folders clogging up the User profile directory locally on the server.

If you have set up Profile management to delete cached local profiles when users log off from their virtual machines created with VMware (in your XenDesktop or XenApp deployment, say) but the profiles are not deleted, you can use this workaround to overcome the issue.

This issue has been shown to occur when roaming profiles are used on virtual machines created with VMware ESX 3.5 and the Profile management setting Delete locally cached profiles on logoff is enabled.

The issue occurs because the Shared Folders option in VMware Tools adds a file to the profiles, and the file is locked by a running process thereby preventing profiles being deleted at logoff. The file is C:Documents and SettingsuseridApplication DataVMwarehgfs.dat.

If you have verbose logging enabled in Profile management, the log file may detect this problem with an entry such as:
2009-06-03;11:44:31.456;ERROR;PCNAME;JohnSmith4;3;3640;DeleteDirectory: Deleting the directory <C:Documents and Settings<user name>Local SettingsApplication DataVMware> failed with: The directory is not empty.

* In PVS environments running in Standard mode vDisks, this issue is less apparent as the profiles are not accumulated through a reboot.

 Resolution: The resolution is to either uninstall VMware tools or modify the installation not to include Shared Folders 

More information:

  • Citrix Support Article : http://support.citrix.com/article/CTX122501
  • VMware KB Article : http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1317 

** I suspect but have not confirmed that should apply to any roaming profile solution


📂This entry was posted in Citrix hgfs.dat User Profile Manager VMware vShield vSphere

Related Posts

  • November 26, 2012 Phillip Jones

    Cyber Monday : Free VCP 5 Study Guide

    It has been a while since I have posted anything (expect more soon) but in the tradition of Cyber Mo...
  • April 23, 2012 Phillip Jones

    RVTools 3.3 Released

    RVTools is one of my favorite VMware community tools that every VMware admin should be using. T...
« Cyber Monday : Free VCP 5 Study Guide XenServer Guest VM time issue »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

( optional )

  • Archives

    • September 2020
    • August 2016
    • May 2016
    • April 2016
    • August 2015
    • March 2015
    • January 2015
    • December 2014
    • October 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • December 2013
    • October 2013
    • September 2013
    • July 2013
    • June 2013
    • May 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013
    • December 2012
    • November 2012
    • October 2012
    • September 2012
    • August 2012
    • June 2012
    • May 2012
    • April 2012
    • March 2012
    • December 2011
    • November 2011
    • October 2011
  • Recent Posts

    • Is this thing still on? September 25, 2020
    • NVIDIA Community Advisors (NCA) August 9, 2016
    • Nvidia Grid M10 Released: All about the density May 18, 2016
    • Updating Synology DSM May 11, 2016
    • VM Display Resolution Issue April 30, 2016
    • Citrix Synergy 2016 – Join me at Tech Talk Tables & E2EVC April 29, 2016
    • Back in the Saddle April 24, 2016
    • Dell DRAC Java Console SSL Socket Connection Error August 14, 2015
    • ESXi Customizer and Windows 10 Fix August 14, 2015
    • Load Balancing AD FS 2012 R2 3.0 and Web Application Proxy With Netscaler March 25, 2015
  • Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

©2025 raindrops Entries RSS and Comments RSS Raindrops Theme
Show Buttons
Hide Buttons