Showing posts with label Citrix. Show all posts
Showing posts with label Citrix. Show all posts

Monday, August 22, 2011

Thin Clients Vs Zero Clients

At Citrix Synergy in San Francisco last week, Wyse unveiled a new product called Wyse Xenith, which is based on the newly announced Wyse Zero platform. Similar to a thin client, the Wyse Xenith is being marketed as a "zero client." Let's look at what exactly a so-called zero client is, how it works and why you'd choose one over a more traditional thin client.

The term thin client means different things to different people. We took a deeper look at the various types of thin clients earlier this year, but the one thing they have in common is that they offload most (if not all) of the heavy work to back-end servers, resulting in a client device that is small, light and, most importantly, stateless.

It's that "stateless" attribute that's the center of attention today. Even though thin clients don't do anything without a network or some servers, some software is often still installed and maintained on the thin client itself. Usually taking the form of firmware or installed into flash memory, thin-client devices typically run an operating system such as Windows CE, Windows XP Embedded or Linux.

So what's the big deal? Even though these thin clients run an OS, they're stateless, right? Doesn't that mean there's no management? Unfortunately, that's not always the case.

First of all, thin clients running any OS might need to be patched or updated from time to time. Even though this patching isn't as frequent as the "Patch Tuesdays" we're all accustomed to in the Windows world, there's often a need to update a thin client's software to deliver new features or capabilities. Second, thin clients often need to be managed to deploy new configuration options or settings.

So even though thin clients don't have any real data on them and do most of the work via central servers, they can still be a pain to manage. To solve this problem, a few vendors starting selling what they called "zero clients" -- client devices with literally no configuration and nothing stored on them. From a functional standpoint, zero clients and thin clients are pretty similar, it's just that zero clients have zero device-based management.

The technology has been around for years, but it wasn't until VMware partnered with Teradici to bring the PC-over-IP (PCoIP) remoting protocol to the VMware View product that zero clients really caught on. (Thin-client makers can create zero client devices for VMware View, and VMware had much success selling these against Citrix.)

Wyse's Xenith product is a zero client that's specifically built for Citrix XenDesktop environments and fully supports Citrix's ICA/HDX protocol stack. The Xenith has no OS and no firmware; instead, it connects to a XenDesktop configuration server to download its configuration and the latest HDX engine as soon as it's powered on. (This process only takes a few seconds.) This means that the entire client environment is managed and configured on the server, and there's nothing to update on the client, since the client updates itself automatically whenever it's turned on.

Even though zero clients have been around for a while, you can bet that now that Citrix has joined the zero-client fray -- Wyse already joined since it also makes VMware View-based PCoIP zero clients -- this space will heat up over the next few years.

Main Source - http://searchvirtualdesktop.techtarget.com/news/1512699/What-are-zero-clients-and-how-are-they-different-from-thin-clients

Wednesday, July 27, 2011

Citrix: Logon Optimization

Citrix released another good read on how the logon process in Citrix XenApp and/or XenDesktop works and how to optimize this:

How the Logon Process Works
In order to better understand where time can be shaved from the user logon, we will first review the logon process as shown below: Please note that this diagram focuses on internal users accessing either a XenApp or XenDesktop resource. Additional steps are required based on external access via Access Gateway.

ctx0006

After this the document gives an explanation of the most common causes of logon delays:

  • Logon & Authentication
  • Profile Access Issues
  • GPOs and Startup Procedures
  • Networking Issues
  • Hardware Overutilization
  • Application and Desktop Startup

And it ends with an example of how to monitor this process using Edgesight.

The PDF can be found here

Wednesday, July 20, 2011

Web Interface 4.x - The other How to's

Citrix has published many "How to..." articles about Web Interface 4.x and published also a very good Web Interface SDK (CTX106665) with a lot of details but there are always some "other How to questions". Most people know how to change the header, footer or the welcome area but in this article I will show some of the other Answers to How to questions.

Question like: How to speed-up WI logins? How to set default values? How to use the original multilanguage footer? How to disable right-click? How to redirect to HTTPS and so on.


How to speed-up Web Interface logins

When somebody tries to open the Web Interface login page early in the morning, then it might take some time before the page is loaded. Additional requests are fast and is due to the fact that in the background the worker processes needed to be started. If they are idle for 20min, then they get closed and new logins will again take some time. Now this behaviour can be disabled.

This can be done with the Internet Information Server (IIS) that comes with Windows 2003. Open the IIS Manager | Application Pools | Disable idle timeout for “worker processes” for CitrixWebInterface4.xAppPool

worker processes




How to use the multilanguage footer function


Close any Access Suite Console (ASC) that might be open and enabled the footer manually through the webinterface.conf file that is located by default in /Citrix/MetaFrame/Conf

Change the following lines

# FooterTextDefaultLocale=[language code]
# FooterText_=[Customized footer text in the specified language]


to something like

FooterTextDefaultLocale=en
FooterText_en=This is a example.
FooterText_de=Dies ist ein Beispiel.
FooterText_fr=Cela est un exemple.



How to set per Application settings

Therefore edit the default.ica file loacted by default in /Citrix/MetaFrame/Conf

In the [wfclient] section add the AppDN of your Publish Application, like [notepad] but remember the value is case sensitive to what you have used in the CMC!
Now add any Application specific setting you like. For instance adding TWIMode=Off will result in a none seamless session for the Publish Application notepad

default.ica



How to create a simple website


Sometimes a simple website is needed to launch a Publish Application. The option to create an html file with a linked ica file has been in the CMC since day one.

Open CMC | Applications | Application property | Create html file

create html file




How to change the STA ID when cloning PSE Server


Cloning Presentation Server 4.0 will not change the STA ID that is integrated in the XML service! To change the STA ID edit CtxSta.conf file in %ProgramFiles%\Citrix\system32 and change the STA ID with a value you like.

[GlobalConfig]
UID=STABB4BD26E58F5 <= change this (sample) value

After changing the STA ID, restart the Citrix XML service to pick-up the new ID.



How to disable right mouse click

This is a very old feature from Project Columbia but was never included to any Web Interface version. The following change is the simplest way to do it.

Edit the ayout.ascx file in /Citrix/MetaFrame/auth/include and /Citrix/MetaFrame/include
Search for the html tag and add oncontextmenu="return false"
Like How to Disable "Remember folder location" and start always in the root


Web Interface "remembers" (in a cookie) the folder location by default where users exit Web Interface and at the next login starts automatically in that folder. To overwrite the default of remembering folders and starting always in the root, two things need to be changed.

  1. Start always in the root

    Edit applist.cs in site/serverscripts

    -- find --
    currentFolder = userPrefs.getCurrentFolder();

    -- change to --
    currentFolder = "";

  2. Remove or Disable option from the presentation settings

    Edit presentationSettings.inc in site/include

    -- find --
    value="<%=VAL_ON%>" <%=viewControl.getRememberFolderCheckedStr()%>>

    -- change to --
    value="<%=VAL_ON%>" <%=viewControl.getRememberFolderCheckedStr()%>" disabled>

    before Image after

    To remove the option from the presentation settings

    Edit presentationSettings.cs in site/serverscripts

    -- find --
    bool bCustomizeRememberFolderOption = true;

    -- change to --
    bool bCustomizeRememberFolderOption = false;

    before Image after



How to enable "Show current folder location" for all users and always.

As a default Web Interface doesn't show the current folder location and the user has to set it by him self. To force the setting for all users, again two things need to be changed

  1. Show folder as default

    Edit applist.cs in site/serverscripts

    -- find --
    toolbarControl.setShowCurrentFolder( !java.lang.Boolean.FALSE.Equals( userPrefs.getShowFolder() ) && (currentFolder != null) );

    -- change to --
    toolbarControl.setShowCurrentFolder( currentFolder != null );

  2. Remove or Disable option from the presentation settings

    Edit presentationSettings.inc in site/include

    -- find --
    value="<%=VAL_ON%>" <%=viewControl.getShowFolderCheckedStr()%>>

    -- change to --
    value="<%=VAL_ON%>" <%=viewControl.getShowFolderCheckedStr()%> checked disabled>

    before Image after

    To remove the option from the presentation settings

    Edit presentationSettings.cs in site/serverscripts

    -- find --
    bool bCustomizeFolderDisplayOption = true;

    -- change to --
    bool bCustomizeFolderDisplayOption = false;

    before Image after



How to force the Application details description

Edit applist.cs in site/serverscripts

-- find --
viewControl.setShowAppDetails( !java.lang.Boolean.FALSE.Equals( userPrefs.getShowDetails() ) );

-- change to --
viewControl.setShowAppDetails( true );


How to securely redirect to Web Interface


As default Web Interface should be used with SSL encryption (HTTPS) enabled, since users are sending credentials overt the wire. This is even more important when using WI internally because researches showed that most attacks are coming from inside.

Difficult part is that users are not very familiar with typing httpS...

  1. After the Server certificate was applied to IIS, SSL should be disabled
    IIS Manager | Default Web Site | Directory Security | Edit secure communications | Disable SSL

    SSL Disabled

  2. Next is to enable SSL ONLY for Web Interface and every other site/folder you like.
    IIS Manager | Default Web Site | Citrix | MetaFrame | Directory Security | Edit secure communications | Enable SSL

    SSL Enabled

  3. Redirect user to Web Interface via secure channel
    When Web Interface 3.0/4.x was set as default Web Site, then the file webinterface.htm is placed in the IIS root (default %RootDrive%\Inetpub\wwwroot). Now the following line needs to be changed:

    window.location="Citrix/MetaFrame/";

    to

    window.location="httpS://FQDN_WI_SERVER/Citrix/MetaFrame/";

This way user can connect to FQDN_WI_SERVER using port 80 (HTTP) but they will be redirected to WI using HTTPS. Direct connection to http://FQDN_WI_SERVER/Citrix/MetaFrame/ will fail, since SSL is required. If direct connect should also supported, then a bit more scripting is required.

Citrix Web Interface Hands-On workshop

First see the final Web Interface that has been customized throughout the different Hands-On exercises.


Customized WI 4.x


Troubleshooting exercise


I can't tell you how often I send people to the Citrix Knowledge Base article CTX103673 that explains how to disable the default error message to gain more detail about the error. When you start to customize Web Interface you will get an error message sooner or later.

Project "leagal statement"


This was a real customization request by Rudy. Under the login area there should be a info box for a leagal statement that people accept when they logon to Web Interface and launch applications.

Project "infoCenter"


A friend of mine was asking me how to display the current Web Interface server name when using network loadbalancing. The information is quite important to troubleshoot issues within a NLB Web Interface deployment.

How to do the workshop on your own?

All you need is a working Web Interface 4.2 installation! Within the Hands-On files you find a PDF document with a detailed step-by-step description for each exercise. Also included is the PowerPoint presentation that gives an introduction to the exercises as well.

With all of this it should be easy to do the exercise and learn how to troubleshoot and customize Web Interface.



Have fun,
Thomas


Zip fileDownload the Hands-On workshop

Read More - http://www.thomaskoetzing.de/index.php?option=com_content&task=view&id=191&Itemid=258

Session Management with 2X LoadBalancer

Microsoft Windows Server and the Terminal Services are getting more and more features with every new release and service packs. One key feature missing is a good load balancing solution for RDP sessions. Microsoft does offer load balancing solutions but reaches fast complexity and/or means a big invest for companies. First there is simple DNS Round Robin but not very useful to load balance sessions. A better solution is Micosoft Windows Load Balancing Service (WLBS) with or without terminal services session directory. The sesion directory service comes with the enterprise version of Windows 2003 Server.
To fill the gap with an adequate load balancing solution for terminal services, the Software Company
2X now released their LoadBalancer version 4.02 (formally known as WTSGateway Pro).


Understanding 2X LoadBalancer

The previous name “WTSGateway” had its reason and is the easiest way to understand how the 2X LoadBalancer works. Let’s start with the first two Gateway modes, regular Gateway and SSL Gateway that the 2X LoadBalancer offers.


Regular Gateway mode
In the regular Gateway mode, every standard Microsoft RDP client or 2X Client connects to the 2X LoadBalancer IP Address/DNS where the LoadBalancer acts in the first place as a Gateway. As with any Gateway, all Clients connect through the Gateway (the reason why the RDP port on the 2X Server needs to be changed or disabled) to the configured target Servers. At that point the LoadBalancing part comes in the play.
In a simple deployment the 2X LoadBalancer acts in a DNS Round Robin style but with the advantage that failing servers are ignored. Within this deployment there is neither any software on the terminal servers nor a DNS reconfiguration needed.

Round-Robin mode

To enhance the load balancing solution you have to install the 2X LoadBalancing Agent on ervey terminal server in the farm. The agent enables resource based (CPU, RAM, Sessions) load balancing for each server that is in the farm. The Agent is responsible to send the current server load and is the basis for the 2X LoadBalancer to choose one of the configured servers for the next incoming session. The current load values can be viewed in the LoadBalancer monitor but more on the monitor later on.

Resource based


SSL Gateway mode
The 2X LoadBalancer offers RDP over SSL and therefore easy Firewall transversal across the internet using standard SSL encryption. To use the RDP over SSL feature you have to use the 2X Client that is available for all Windows 32bit platforms.
The SSL part is actually a great feature but at the same time a bit controversially. Great thing’s first. It’s extremely easy to enable the SSL Gateway and you don’t have to worry about the certificates nor does the client need any certificate to be installed! Many people struggle with the way certificates work but 2X made it really “dummy proof”. Reading the last lines will probably get some people suspicious but will be explained later.

To activate SSL, just click on “Create a new certificate” and the “Create cert” Window will come up front. Fill out the “2-Digit country code” and the “Save file to” fields and you are ready to generate the certificate!
2X generates a Private Key and a CA root certificate that resists in the same file. Mainly 2X uses the certificate part only to encrypt RDP and gives them the capability to use port 443 SSL.


enable SSL Gatewaycertificate cration


This gives 2X the advantage that no certificate needs to be installed on the client side. Now wait a minute, what’s with the Common Name (CN)? The 2X Client is developed to not verify the CN name or if the root CA certificate is in the Trusted CA store of the client. This makes the Client vulnerable against man in the middle attacks but on the other hand its very easy and fast to deploy.
Make sure you have considered the man in the middle risk before using the SSL Gateway mode. Also you can use a private or public certificate but will be a waste of time and money, since the 2X Client will act the same way. This behavior is by design.


The only thing that needs to be done on the 2X client is to enable the SSL Gateway option. In addition, the SSL connection is also working via a proxy server.

SSL client option


In the Gateway mode every connection is going through the 2X LoadBalancer and is therefore a single point of failure. Is high availability needed, then Microsoft network load balancing (NLB) can be used to combine two or more 2X LoadBalancer.
The concurrent connection through the LoadBalancer is not unlimited and once the latency gets to high, a second 2X Server is needed.


Direct connection mode
The third mode is “direct connection” and is only available with the 2X Client. In this mode the 2X LoadBalancer acts more like a broker. The Client first connects to the LoadBalancer just to retrieve the last busy server to connect to. Once the Client has the information – the client connects directly to the server. This mode can also be used when connecting through a Firewall with Network Address Translation (NAT) configured. This is the reason why the 2X LoadBalancer configuration field is called “Alternate Address”
The advantage of the direct connection mode is that the LoadBalancer needs only minimum hardware resources and in case of a failure only new connection will fail to connect.


Disconnect / Reconnect

The 2X LoadBalancer supports reconnections to disconnected session when the Client has still the same IP Address. In Gateway mode 2X also supports reconnect only depending on the username regardless if the IP has changed; just make sure you use the right username in the RDP client before you start the reconnection!
When using an Alternate Addresses, then a reconnection is not supported.


LoadBalancer Logging & Monitoring

The latest version of the LoadBalancer comes with a Monitor that shows the current load of each configured server that has the 2X Agend installed. The recourse usage of CPU, Memory, Total session and disconnected session is constantly refreshed to show the current load.


Monitor view


Another nice feature is the capability to send alerts (E-mails or traps) when a defined threshold is reached for each resource; a real resource monitor with an alerting system.

Alerting options


The LoadBalancer logging keeps track of connection made through the LoadBalancer with detailed information about the Client IP, Connection time an date, target server and so on. Only thing missing is the way how the client did connect like using SSL or direct connection with or without using NAT.


Using the ICA Client

The 2X LoadBalancer supports ICA connections but its ICA or RDP and not both at the same time. ICA works only on port 1494 what means no session reliability (port 2598) support is available when connecting through 2X. The question is, does ICA make sense with 2X LoadBalancer? As a reminder, Citrix Access Essentials (CAE) is licensed based on named users and would become quite expensive. The Citrix Presentation Server standard edition would be an option to use load balancing from 2X.


A Load Balancing comparison

Now how does the 2X LoadBalancer perform against the Microsoft solutions to load balance RDP sessions. I created therefore a chart and gave rates for different load balancing options. It's my own opinion but if you have used for instance WNLB you have a frame of reference.
The following table shows a comparison between Windows Network load balancing (WNLB), DNS Round Robin, the session directory service in combination with NLB and the 2X LoadBalancer. There are five criteria’s reconnect, resource load balancing, price value, failover and easy setup. 10 points or 20% is the maximum for each criteria.

LB Chart


The 2X LoadBalancer SSL / NAT support and the resource Monitor are extra features outside the load balancing and is therefore just marked with a plus. When evaluating 2X LoadBalancer these feature and its value should be considered.


Summary

The 2X LoadBalancer is a fast and easy to deploy solution for load balancing RDP/ICA sessions. The RDP over SSL support is simple to configure, no client configuration and no need to buy a public certificate but you have to think about the security risk. The new resource Monitor rounds up the product with an E-mail alerting system where custom thresholds can be set.


Advantages

  • Fast and easy deployment
  • SSL and NAT support for easy firewall transversal
  • No need to buy a public certificate
  • Session reconnect support with username
  • Resource based load balancing
  • Server resource Monitor with E-Mail alerting

Disadvantages

  • SSL Support only with the 2X Client
  • No java Client to use with SSL Gateway or direct mode
  • Security risk when using the SSL Gateway mode


References

2X LoadBalancer product page
http://www.2x.com/loadbalancer/


2X LoadBalancer 30-Day Trial
http://www.2x.com/loadbalancer/download.htm


Windows Server 2003 R2 Pricing
http://www.microsoft.com/windowsserver2003/howtobuy/licensing/pricing.mspx


Overview of the Session Directory Technology in Terminal Services
Q301926


Using Terminal Server with Windows Load Balancing Service
Q243523

Patching Citrix Presentation Server

This article descibes details about updating or patiching a Citrix Presentation Server. Do you know the difference between a general-, limited or private hotfix? What's a Rollup hotfix and how to install multiple hotifxes in one step?

Find the answers and much more in the following article.



Types of Presentation Server Hotfixes
A hotfix is a piece of software updating a Citrix product and each hotfix is product- and language specific, delivered in a self-installing package (.EXE, .MSI, .MSP). With Citrix hotfixes there are four different types of fixes that will be explained next.


General Release hotfix
These hotfixes are available from Citrix support web site http://support.citrix.com/product/ps/v4.0 or http://support.citrix.com/product/ps/v4.5 The issues they resolve are generic in nature and affect many customers. Some hotfixes introduce new registry values, enhancements or include other (previous) hotfixes.

Limited release hotfix
Is a fix that is targeted at a specific end-user issue. This problem is specific to that customer's environment and may not affect other customers. These hotfixes can be supplied to customers by the Citrix Technical Support personal (open a call), since customers don't have access to them via the Citrix website (actually some partner etc. can review the article of the limited hotfix). When Citrix notice many requests for a specific limited hotfix, it will become a general release hotfix.

Private Fix
A private fix is a preliminary code fix that is given to a customer when actively working on resolving a customer problem. It is not possible for a customer to directly get a copy of a private fix. A private fix can only be obtained via the Citrix Escalation team. Customers must contact Technical Support to open an incident.

Rollup hotfix
"Hotfix Rollup Packs (HRPs) are distribution mechanisms that provide a simplified methodology for customers to update their servers quickly and easily by grouping all available problem fixes into a single package."
That means a Rollup hotfix like R01 includes all previous released general- or some or all limited hotfixes to the day the Rollup was published (at least it should). General hotfixes releases after the Rollup get the suffix R01 (see naming convention). Rollup R02 will include all R01 general hotfixes and so on.



Hotfix Naming Convention
Citrix hotfixes are language, product dependants and they all refer to a naming convention. The hotfix name gives all required information on the supported product, platform and language.


AAAB000C11DDDDDDD222
= PSE400R01W2K3X64001

First set of characters (AAA)
Supported Product - Presentation Server (PS), XenApp (XA)


Second set of characters (B)
Product Language - Englisch (E), German (G), French (F), Spanish (S), Japanese (J)


Third set of characters (000)
Product Version - 400 (4.0), 450 (4.5)


Fourth set of characters (C)

Product Rollup - R


Fifth set of characters (11)

Product Rollup version - 01, 02, 03


Sixth set of characters (DDDDDDD)

Operating System - Windows 2000 (W2K), Windows 2003 (W2K3), W2K3 64Bit (W2K3X64)


Seventh set of characters (222)
Hotfix number - 001 up to 999




Hotfix Installation
There are different ways to install a Citrix hotfix or Rollup. The following explains the most common methods to apply Citrix Presentation Server fixes.


Manuall installation process:
(as recommended by Citrix)

  1. Copy the hotfix to an empty folder on the Server
  2. Close all applications and make sure no user is working on the Server
  3. Go to Control Panel, click on Add/Remove software (or use the "change user" command)
  4. Follow the wizard to install the hotfix from the folder created in point 1
  5. Once done, restart the server.


Silent Installation process
The silent Installation is simply a Windows Installer Command-Line option "/qn - no user interaction". Read the Microsoft article "Command-Line Switches for the Microsoft Windows Installer Tool" KB227091 for more details.

Example : Msiexec /p "hotfix.msp" /qn


Citrix Installation Manager (IM)
The Installation Manager is the most secure way to install one or multiple hotfixes. Secure in the meaning of to be 100% sure the package will be installed (see Installation process for multiple hotfixes). This is due to the fact that IM runs a install procedure for each hotfix.


  1. Create a package group in IM
  2. Add any hotfix that you want to install to the package group
  3. Set the install sequence to a numeric order
  4. Apply/Schedule the package to a Server and set "Delay reboot until end of job"




Installation process for multiple Hotfixes
The most complex method to install multiple hotfixes (not using IM, SMS etc.) is the usage of a script. Main problem with a script solution is the timing between hotfix installations. This is due to the fact that some hotfixes using the command line to run scripts or to set registry keys. In some cases process might still run whereas the main hotfix has finished and causes the next hotfix not to install itself! Actually the hotfix will be skipped without any notice.

In a first approach I advised Citrix to use the Windows "start" command to launch hotfixes. Citrix has documented this in the article CTX110104. Later on I noticed that it only worked for about 95% of the script installations. To make it 100% an additional timeout between hotfixes is needed.


Using a script
When using a script to install multiple hotfixes, then make sure you have read the following advice

  • Use the Start /wait command with each hotfix
  • Use the Windows Installer options /qn /norestart
  • Add timeouts between hotfix installations (ping command or sleep utility)
  • Reboot the Server through the Windows shutdown command (shutdown, tsshutdn)


The hotfix installation script
The hotfix installation script that I have published for quite some time in the Presentation section has been evolved over time. I made it quite flexible to install Citrix hotfixes and works as follows:

  1. Copy all hoftixes and rollup (if any) in the folder along with the script
  2. Set three options within the script
    SET CPSV=PSE400 | Presentation Server version
    SET RO=R03 | Rollup version you are installing
    SET IRO=No | Set if the Rollup itself should be installed as well
  3. Execute the script and your done.

CMD Download the script here: CPSUpdate-v1.8.zip



Hotfix Q&A

  • Q: Some hotfixes include other hotfixes that I have already installed!?
    A: That's not a problem, apply them as usual. Just keep in mind that introduced registry keys that come with a hotfix will be re-set to the default value.
  • Q: A hotfix has been released with a lower hotfix number, how do I apply the fix?
    A: Just apply the hotfix as usual. The fix should not be part of another hotfix.
  • Q: The Setup Splash Screen Displays the Highest Hotfix Number Currently Installed?
    A: Therefore see Citrix article
    CTX111783
  • Q: How can I review the installed Hotfixes or even compare fixes between Server?
    A: Hotfix Management is part of the Access Suite Console 4.0 or Access Management Console 4.5. You can also use cpatch.exe to review installed fixes or try out the MFHotfix utility
    CTX106667
  • Q: When installing post Rollup hotfixes, due I have to install the Rollup again?
    A: No.
  • Q: What hotfixes or Rollups should I apply?
    A: Only those, that fix an currently existing issue with your Presentation Server.



References

Understanding the Citrix Logon and Logoff Process

The Windows logon and logoff process is a complex part of a Terminal Server environment, and these processes are complicated even more when Citrix MetaFrame Presentation Server is installed. However, knowing how these processes really work can cut down your troubleshooting time.
This article can’t cover all aspects and every detail of the logon and logoff processes. However, it will take a look at these processes from an administrator’s standpoint (as opposed to taking a developer’s perspective).


The first part of this article covers the session initialization. It covers the steps that take place from the time a client tries to connect until the application shows up on the user’s desktop. (Note that we’re only talking about the actual connection from the client to the server. We are not talking about application enumeration or load balancing since those activities take place before a client connects to a server.)

The second part of this article will cover the disconnection and logoff processes.


Session initialization

No matter how an ICA session is invoked (Program Neighborhood, Web Interface, double-clicking an ICA file, etc.), the ICA client engine (wfica32.exe for Win32 clients) fires up and loads the module.ini file from the root folder of the ICA Client. The module.ini file defines the specific capabilities that the ICA client should or can use. Therefore, when troubleshooting, it’s possible (and useful) to change settings in the module.ini to change the capabilities of the ICA Client. For example, you might chose to disable specific client drives (DisableDrives=A,D,F) or to enable server drives in a pass-through session (NativeDriveMapping=TRUE).

The following screen shot has highlighted the module.ini section where the virtual drivers that get loaded by the ICA client are specified. For testing purposes you could just choose to remove a specific virtual driver all together. This will prevent the client engine of loading the specific virtual driver, for example SmartCard, SpeechMike, ClientAudio etc.

Image

Some virtual drivers (like clipboard functionality) are “built into” the client engine. Removing the word “Clipboard” from that VirtualDriver line will only disable the Clipboard on a client basis (as described in Citrix Knowledge Base article CTX102977.)

Once the ICA client works out which drivers it will use, it starts a connection with the server via port 1494 (even with session reliability enabled). The server responses with “7F7FICA” for an ICA handshake as shown in the next screen shot. During the handshake the client sends its list of capabilities (virtual channels supported by the client) to the server.

Image

Next, (still before anything shows up in any admin console or on the client desktop), the TSCAL license verification is made. If the license cannot be verified then the session just ends (See CTX543560). Even though this is by design it’s still very confusing for most people.


If the client has or gets a valid TSCAL, the server’s WinLogon.exe process calls the GINA (and any linked GINAs, like ctxgina.dll when MetaFrame is installed) and the user is presented with the logon GUI.

Once the user credentials are validated via lsass.exe, WinLogon downloads the user profile. (Here is a nice article about profiles http://www.windowsitpro.com/Windows/Article/ArticleID/41654/41654.html)


The GINA then calls UserInit.exe which is responsible for setting up the user’s environment (restoring net uses, etc.). When Terminal Server is installed, UserInit queries the registry key AppSetup located in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon and executes all the programs listed in that key. By default this is limited to UsrLogon.cmd, although MetaFrame XP adds cmstart.exe to the list and MetaFrame version 3 adds CtxHide UsrLogon.cmd, and CmStart.exe. (Those of you who’ve been using Terminal Server for awhile will remember that UsrLogon.com is a hold-over from the early days when application compatibility scripts were used. See Microsoft article Q195950.)


The last thing UserInit does is launch the user’s shell as specified in the registry. By default this is explorer.exe, although you can change it to whatever you want and have some fun with your colleagues by changing theirs to progman.exe.


Once the shell is fired up the final steps take place, including items listed in the run registry keys and the programs from the Startup folder.

There’s a great utility from SysInternals called “AutoRuns” that you can run on a server to quickly and graphically show you all the things that run automatically when a session is started.

Image



Everything on the server side that we’ve mentioned so far is Microsoft only. It applies if you’re connecting via a standard Terminal Server / RDP session or via a MetaFrame ICA session, (For more detail on WinLogon, UserInit, Csrss, and other Windows processes, take a look at Microsoft Knowledge Base article Q263201.)


Now let’s take a look at what happens when Citrix is thrown in the picture. As we mentioned earler, UserInit also executes the CmStart.exe process. CmStart.exe is the Citrix Client Manager Starting Utility and it’s responsible for two things:

  1. It starts the Citrix seamless windows engine shell called wfshell.exe.
  2. It launches the Citrix Client Manager (cltmgr.exe ) that’s used to keep the ICA client up to date.

The following screenshot is of Systernals’ Process Explorer running during a MetaFrame session start.


Image


Let’s take a closer look at these processes and what they each do.


Citrix Client Manager Starting Utility (CmStart.exe)

CmStart is responsible for launching the seamless engine which means no seamless windows without CmStart.exe in the AppSetup Key! This missing entry will not stop a desktop session from working through.


Citrix Seamless engine (wfshell.exe)

One of the things wfshell is responsible for is to autocreate the client printers. If you are using third party printer drivers (HP, Canon, Lexmark etc.) instead of original printer drivers that come on the Windows CD then you might see some of the following issues:

  • Crashes of wfshell.exe (CTX102634)
  • High CPU spikes of wfshell.exe
  • Slow logons
  • Printer being not mapped

Advice: Don’t use third party printer drivers. Instead, use mappings from the printer matrix at http://www.printingsupport.com and at least don’t use PCL6 Drivers an advice by Stefan.


Citrix Client Manager (cltmgr.exe )

Cltmgr.exe is launched right after wfshell because it uses a virtual channel (VDCM.dll, ClientManagement) to get the client version from the version.dat file. Problems with the retrieving of the ICA client version and the update might have the following effects:

  • Crashes of wfshell.exe
  • Slow logons (without updating the client)

Advice: If the Client Update feature is not used, you should disable the client update database on every Citrix server (Start | Run | cudutil.exe | Database | Properties | uncheck enable).


Session Termination

When closing a published application or logging off from a desktop session, the most important parts are terminating the user processes and unloading the user’s registry hive from the system registry.

In a desktop session the termination of the processes is done by csrss.exe. With published applications the seamless engine is responsible for closing the applications and sending the logoff message to csrss. Under certain circumstances this might not work and ends with a user’s session remaining active on the Citrix Server, although we’ll discuss this more later.

In some cases the user’s registry can not be unloaded during the logoff. This issue is very famous in the community and the solution is to use the Microsoft’s UPHClean service. (Be sure you’re using the most current version.) If the unload process doesn’t work as expected, then the profile gets stuck on the server (a bit different with Windows 2003). This then impacts the logon process, especially with anonymous users.


Summary

This article summarized the important steps and processes you see with Windows 2000/2003 and MetaFrame XP / 3.0. There are additional processes like Ctxhide.exe, but they are not big troublemakers. Unfortunately MPS 4.0 is going to majorly change the Citrix portion of this process, but that’s a story for another day.

What's new in Web Interface 5.0

Microsoft has release Windows Server 2008 in February of 2008 and Citrix will follow with their release of Presentation Server 5.0 (Delaware) that is targeted for the new Windows server generation. With each new full release of Presentation Server, the product components are also updated to support the new version.

After Web Interface 4.0, 4.1, 4.2, 4.5, 4.6 and 4.7 Citrix will release version 5.0 together with the Delaware release of Presentation Server. The new Web Interface version has to run on Server 2008, which means Internet Information Server 7.0, but what else is new with WI 5.0? This article describes the details of the next release.


WARNING
: This review is based on a tech preview and means that functions, features etc. named in the article can change before the RTM release of Web Interface 5.0

Read More - http://www.thomaskoetzing.de/index.php?option=com_content&task=view&id=249&Itemid=277


The evolution of Web Interface
Looking back all the way down to NFuse 1.0 a lot of features and functions were added by the Citrix development team. Web Interface has become more and more important for Citrix customers and for Citrix itself. To quote the Product Architect: "Web Interface is the face of Citrix, and increasingly responsible for providing that crucial first impression which can either make users love us or hate us!". Citrix was taking this for granted and therefore the new version of Web Interface comes with a dramatic change to the look and feel.


The new look and feel
Between the year 2000 and 2007 the default layout of Web Interface has not changed very much. This time everything is new. Changing the design the way Citrix did took a lot of effort. The drawback of that decision is less time for new features. Screen shots of all parts of Web Interface are way too much for the article, but the following will show the important pieces.


The welcome page
First take a look at the new full welcome page.


Welcome page
The new Web Interface (full) Welcome page


Keep an eye on the new elements on the site. The message tab, the switch to low graphics, the inline (error) message, the system message at the bottom and what you can't see is the fly-out menus.


Pre-Logon page
The Pre-Logon page is used to inform user about an upcoming maintenance, to accept a legal notice or what so ever. Point here is the user must click a button to pass the site. This ensures that users read the important message. To show some basic messages Administrators can use the new system messages (see logon page). Pre-Logon and system message are easy configured through the console.


Pre-Logon page
Pre-Logon page for maintenance messages, legal notice etc.




The application set
Again, take a close look and find the new application search box. Your company has hundreds of published applications? Now the user can easily search for their applications even using wildcard characters like "*"
Applications are still launched through scripting (no launch.ica file, for troubleshooting visit CTX111820 and CTX115304) and can also still be bookmarked. The bookmarks are also displayed in the new user "Hint" area that can be customized through the languages files.


Appset
Application set with search, hints, grouping, logon name etc.


The application set is shown in the "icon" mode but can be switched (similar to Windows Explorer) to details, list, tree and group view. The display of the logged on User Name, not from the directory is enabled by default.
New is the grouping feature. When enabled, Web Interface will show in different tabs, Applications (xenApp), Desktops (xenDesktop) and published Content.



The messages tab
The "Message Center" has become the messages tab and displays user specific Web Interface messages. The messages list is sorted from the most important message to message with low priority.


Messages


The low graphics design
The low graphics site is obviously for mobile devices. More and more devices are available on the market and Citrix can't keep up to automatically detect the screen size of those devices. This is the reason why a new Web Interface entry point was created to support the mobile devices. Pointing the browser to http:///Citrix/AccessPlatform/m or http:///Citrix/AccessPlatform/mobile will automatically use the low graphics version of Web Interface.


imageimage



Technologies built on
Windows Server 2008 comes with IIS 7.0 and .NET Framework 3.0 and therefore Web Interface has to support both components. WI will auto detect the Framework 2.0 and 3.0 and set the right version. IIS 7.0 has dramatically changed and many companies are unable to use IIS 7.0 in native mode (including Microsoft with TS Web Access 2008). That's the reason why Citrix requires IIS 6.0 compatibility mode (sub role of IIS 7.0) to work correctly. True 64bit support is the target for the RTM release and will still build on Web Interface Next Generation (WING). The continued building on top of WING will keep most available modification easy adaptable with Web Interface 5.0


PNA site configuration
Not much to say here but finally the "Secure client access" configuration is back! That means using PNA from the outside through Citrix Gateway is fully supported now and no "hacks" are needed anymore.


What else is new?
First of all the conference attendee site was removed from Web Interface. Personally I have never seen conference manager in production. Access Gateway standard is now directly supported and needs just to be selected as the authentication point during the initial site wizard execution.


Auth point


When used with Delaware, Web Interface supports the "Special Folder Redirection" that seamlessly maps special folders (for example the "My Documents" folder of the local client would become My Documents within the Citrix session). WI 5.0 has many options to enable or disable, but with this version finally the Administrator can decide what option is available and if the user can change the option.

Web Interface 4.0 for Unix supported RSA or SafeWord through generic RADIUS. The generic RADIUS support is now available with the Windows version as well. Other features (some of them were already mentioned), are:

  • Application search, message tab
  • User Hints, low graphics, user name display
  • Explorer application view style (icon, details, list, tree)
  • Web Server authentication using Kerberos (see Jay Tomlin’s blog about it)
    http://www.jaytomlin.com/blog/2006/11/federation_reflection_a_better.html
  • GUI customization of the logon and application set welcome message
  • GUI customization of the messages tab
  • Grouping of application types (Desktops, Applications, Content)


Still open to enhance Web Interface
The Citrix development team have a lot of things on their list, but many enhancements will be missing in the final release. I will just summarize some of them here.

  • An application launch history or favorite applications
  • Autolaunch becomes very important with xenDesktop and should be a "must have"!
  • Multi domain support for enterprise environments (WIE)
  • Stateless session, as well for enterprise environments (availability)
  • Application launch tracking for external access (security)
  • Support for Citrix SmartAccess as with the Advanced Edition of Access Gateway
  • Flexible Client naming option without breaking Workspace Control (more flexible)
  • Easy customization through CSS or other technologies
  • Web Interface templates for easy community exchange
  • Export and Import of the whole site, including customizations
  • Domain Group and User access control through enhancing the NFuse protocol
  • Small ICA Web Client less than 2 MB

Tuesday, July 19, 2011

User Profiles Explained topclass Whitepaper - Must Read

Please check I have got this top class updated version of the whitepaper about user profiles. In addition to a general overview of user profile and the challenges involved in managing them, it now includes a section about profile migration.

Enjoy the read! Also, check out all our articles about user profiles.

sepago_-_whitepaper_-_user_profiles.pdf

Four Ways to Increase the Capacity of Your Citrix XenApp Farm

Even with the most meticulous design, the day will come when your farm's capacity is not sufficient any more. User numbers increase, applications become more resource-hungry and the amount of data to be handled increases steadily. So what do you do? Simply more of the same, i.e. buy more servers and add them to the farm? That is one way of increasing capacity, but it is not the only one and therefore may not be the best.

In this article I am assuming that your farm actually is near 100% capacity (with a safety margin, of course). Only then does the following discussion make sense. It may very well be that a farm appears to be fully loaded, but in reality the terminal servers are having a good time idling around. In such cases some other component slows things down. The list of potential sources of trouble is long and includes the network, infrastructure servers (Citrix data store, domain controllers, file servers, application servers, etc.) and even misconfiguration of the virus scanners. Before going out and spending money on new hardware or software, it might be a good idea to have an external consultant review your farm design to make sure you are spending your company's money on the right things.

Identify the Capacity Bottleneck

Once you are sure that you actually have a capacity bottleneck, the obvious first step is to identify it. Just knowing "I cannot get more than x users on each of my servers" is not going to be enough.

A XenApp farm is a very complex thing. Finding a bottleneck may at first sound like looking for a needle in a haystack. So let's simplify. Every terminal server consists of the following main components:

  • Memory
  • CPUs
  • Hard disks
  • Network interfaces

Today's (dual) 1 GBit/s network cards are fast enough for typical XenApp servers. Hard disks are not used much, except for storing temporary and user profile data, and large parts of the profiles are redirected to a file server anyway. CPU management in XenApp works well. That leaves us with memory as the culprit. How fast was that for performance analysis?

I must admit I lied to you. Finding a capacity bottleneck may very well be a really tough job. Every farm is different. No two XenApp customers have the same application set. But still, if we are mostly looking at typical office or task workers and taking a typical network and farm design as a basis, it mostly boils down to memory being short.

There are two kinds of memory shortage on 32-bit systems. The first is exhaustion of kernel memory (see my earlier article on the subject for details). The second simply is lack of enough RAM to satisfy the running applications' demands.

Depending on whether your servers reach the limit of their kernel or application memory pool, one or more of the following scaling options may apply to your situation.

Option 1: Scale out by Adding Servers

As mentioned above, this may seem like the logical solution if every server has reached its capacity limit. The greatest advantage of this approach is that you need not change the way you install and manage your servers. You use the same OS and the same management tools, just on a larger number of machines. The downside is that each additional server reduces your data center's efficiency in terms of power consumption and cooling. Also, rack space is increasingly becoming a scarce resource in many organizations.

Option 2: Scale up by Adding Memory

This also sounds obvious. If more memory is needed, why, put more RAM into the machines! In practice, however, it is not so simple. In order to use more than 4 GB of RAM, you need to move from Windows Server 200x Standard Edition to Enterprise Edition, which is sold at roughly four times the Standard Edition's price. I am told the list price difference is something around 2,000 dollars. Multiply that by your number of servers, and you may quickly come to the conclusion that other options may be more economical. Additionally, adding RAM only helps if your servers are not running out of kernel memory. Still, going from 4 GB to 8 GB RAM per server might be sensible in certain scenarios (see my earlier article on the subject for details).

Option 3: Scale up by Moving to Windows x64

64-bit Windows essentially does away with kernel memory limitations. Install as much RAM as your systems support, and the OS will use it. So is this the perfect solution? In theory, yes. In practice, you need to consider that migrating to Windows x64 is far from trivial (see my article series on the subject for details). And do not forget that you need more RAM. Much more RAM. 20-50% more only to have the system work as fast as it did with 32-bit Windows. But then it scales much better. Double or triple the amount of RAM, and you should be able to significantly increase the number of users per machine.

Option 4: Scale up and out by Virtualizing XenApp

Today's common terminal servers with 4 GB of RAM and Windows Server Standard Edition are easy to manage because everything is well-known and OS licenses are inexpensive. Their main downside is server sprawl, the sheer number of machines required to cope with the workload. From an administration point of view that does not really matter - does it make a difference if you are managing 100, 200 or 500 machines? But server sprawl is an ecological and thus economical nightmare.

The answer to server sprawl may be virtualization. By putting multiple virtual XenApp servers on each physical machine, overall power consumption and rack space can be reduced significantly. And you get two things for free: increased flexibility (just think of VMotion/Live Migration/XenMotion) and increased complexity (another layer to manage).

Now What?

I have presented four options to choose from not only to increase farm capacity but also to improve the general layout of your XenApp servers. But the toughest part is yours - deciding which best fits your organizations needs.

http://blogs.sepago.de/d/helge/2009/06/11/four-ways-to-increase-the-capacity-of-your-citrix-xenapp-farm

Streaming Firefox 3.6 on XenApp 6

This appears to be a surprisingly simple app to stream on XenApp – so far. My one criticism is that its not very obvious how to customise the application, but after a bit of research it wasn’t too hard.

I’m assuming here you want to turn off any updates (its a stream, so you will need to re-stream it to apply any updates – which given the amount of bugs that are discovered in Firefox is a good idea to do on a regular basis) and you probably want to stop it being the default browser on your systems. After all, if you DO want it to be the default browser, you are probably not going to stream it – just install it on your XenApp servers properly.

Preparation – getting the files to configure

Step one is to download the latest installer from http://www.mozilla.org/firefox/. Install it to a PC manually and have it ready to use on your streaming profiler.

Make a copy of this file to edit… C:\Program Files\Mozilla Firefox\defaults\pref\firefox.js
Remember on a 64-bit system this will appear in c:\program files (x86)…

Also get a copy of C:\Program Files\Mozilla Firefox\components\nsBrowserGlue.js

Finally, create a new text file called override.ini.

Put these three text files and the installer together and prepare them before streaming. Use Notepad++ instead of Notepad so it shows the line breaks properly.

Preparation – disabling the default browser check

Open your firefox.js file in Notepad++ – search for the phrase “checkDefaultBrowser” and change “true” to “false”

pref("browser.shell.checkDefaultBrowser", false);

Preparation – disabling updates

Still editing firefox.js in Notepad++, search for “update”. Find these lines and change “true” to “false”

pref("browser.search.update", false);

pref("app.update.enabled", false);

pref("extensions.update.enabled", false);

Preparation – pre-configure Proxy settings

Assuming you want to specify Proxy settings, search for “share_proxy_settings” in firefox.js. Change “true” to “false”

pref("network.proxy.share_proxy_settings", true);

You now should now add in a load of lines (assuming they are not already in the file) for your proxy settings. These are just examples – obviously put in your own settings for proxy server address, port and exceptions:

pref("network.proxy.ftp", "192.168.1.10");
pref("network.proxy.ftp_port", 80);
pref("network.proxy.gopher", "192.168.1.10");
pref("network.proxy.gopher_port", 80);
pref("network.proxy.http", "192.168.1.10");
pref("network.proxy.http_port", 80);
pref("network.proxy.socks", "192.168.1.10");
pref("network.proxy.socks_port", 80);
pref("network.proxy.ssl", "192.168.1.10");
pref("network.proxy.ssl_port", 80);
pref("network.proxy.type", 1);
pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 192.168.0.0/16");

Preparation – prevent the annoying “Welcome to Firefox version 3.6” home page tab for new users.

By default a user in Citrix running Firefox will see an extra tab when they open it for the first time with a page extolling the virtues of the new version they just installed. This is not needed! Add this line to the firefox.js file:

pref("browser.startup.homepage_override.mstone", "ignore");

Preparation – getting rid of the “Do you want to save your tabs” dialog on closing Firefox

You probably want to just want your users to open their home page next time you open the browser, so the functionality to open their old tabs is not needed. Find and amend these lines in firefox.js to stop these messages:

pref("browser.tabs.warnOnClose", false);
pref("browser.tabs.warnOnOpen", false);
pref("browser.warnOnQuit", true);

// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
// The behavior of option 3 is detailed at:
http://wiki.mozilla.org/Session_Restore
pref("browser.startup.page", 1);

Preparation – preventing the “Know your rights” button appearing

By default when you open Firefox it will keep producing a bar under the tabs list with a button called “Know your rights” and some text telling you that this is open source software. Very annoying, but easy to suppress.

Edit C:\Program Files\Mozilla Firefox\components\nsBrowserGlue.js in Notepad++ – remove or comment (with “//”) the line:

var rightsBundle = this._bundleService.createBundle("chrome://global/locale/aboutRights.properties");

Preparation – prevent the “Import your settings data data” wizard

The final annoyance, this wizard is launched the first time you open Firefox and isn’t useful in a Citrix environment. Edit the blank text file called override.ini and add these lines:

[XRE]
EnableProfileMigrator=false

Streaming Firefox

Now you have your installer and your three modified text files (override.ini, firefox.js and nsBrowserGlue.js), install is easy…

  1. Open the Citrix Streaming Profiler on your profiler machine. If you are streaming this to Stream To Server on XenApp 6, this should be a Windows Server 2008 R2 machine
  2. Create a new profile
  3. Click Next until you get to the Quick or Advanced Install option – choose Advanced
  4. Click Next and Next to run an install program
  5. Browse to your Firefox installer and select it. Click next and Launch Installer.
    image
    image
  6. Click Next, Custom, and keep pressing Next until you get to the default web browser checkbox- uncheck it so its not the default.
    image
  7. Click Next to install. Untick the box to Launch Firefox Now and click Finish
  8. Click Next and Perform Additional Installations
  9. Click Select files and folders and click Next
  10. On the left hand side browse to the text files you edited earlier
    image
  11. Copy firefox.js into the profile at “C:\Program Files (x86)\Mozilla Firefox\defaults\pref”, overwriting the existing file
  12. Copy nsBrowserGlue.js into the profile at “C:\Program Files (x86)\Mozilla Firefox\components”, again overwriting the existing file
  13. Copy override.ini into the profile at “C:\Program Files (x86)\Mozilla Firefox\” – this should be a new file
  14. Click Next and Finish Installations
  15. Click Next and run Firefox. You should now be able to check the settings you specified above on updates, default browser, wizards, etc – it should all be pre-configured if the files are right.
  16. Close Firefox and click Next.
  17. You can probably delete the entry for “Mozilla Firefox (Safe Mode)
    image
  18. Click Next and Finish, then save your profile on a network location.
  19. Publish an application to your farm, streamed from the profile you just saved – you should get a nice, clean, pre-configured browser.

Friday, July 8, 2011

XenApp Deployment Strategies

XenApp Servers Explained

Proper farm design is the most important aspect to having a well performing, scalable farm. This post examines the architecture and design of the Citrix XenApp solution as the number of users/servers requiring applications or desktop access scales.

XenApp Server Roles

XenApp farms have two types of servers: infrastructure servers and worker servers. Worker servers are dedicated to the role of hosting published applications and desktop. Infrastructure servers perform specific functions and do not typically host published applications, except in small farms. Infrastructure servers host functionality that supports the farm, such as the data store, data collector, XML Service, license server, and other services.

  • Farm infrastructure services. Data Store, Data Collector, XML Service and Web Interface
  • Access infrastructure services. Access Gateway (optional)
  • Additional services. Streaming File Server, Provisioning Services (optional), Configuration Logging database (optional), EdgeSight database (optional), and SmartAuditor (optional).

XenApp Farm Roles

  • Access Gateway: Provides secure access to Citrix XenApp applications and desktops.
  • Web Interface Server: A Web server running Microsoft’s (IIS) Web server and Citrix’s Web Interface which hosts the Web pages users connect to in order to enumerate and launch published applications.
  • Data Collector: Maintains dynamic farm-wide data, including the list of online and offline servers, as well as the load level of each server.
  • XML Service: Used by the Web Interface to enumerate published applications from the XenApp farm.
  • Database Server (Data Store): Could be another XenApp server (SQL Express) or a server running an enterprise database like Microsoft SQL or Oracle.
  • XenApp Worker Server: Servers that host the applications and desktops.

It is common practice to group one or more of these infrastructure services in small farms. In large deployments, each service runs on one or more dedicated servers for scalability and redundancy. The table below categorizes the XenApp deployment model into groups based on the number of users and servers hosting the applications and desktops.

Farm Size Categories

Farm Size Number of Users Number of XenApp Servers “Workers”
Small (Pilot/Demo)< 1001 – 5
Medium< 1000 5 – 50
Large< 500050 – 250
Enterprise> 5000250 – 1000
Service Provider100 – 100,0001 – 1000

While farm size (small, medium, large, etc…) as determined by the number of servers, can indicate the general category your farm is in, another important factor to consider is the number of user connections. Because applications can scale differently from server to server (some servers might support 100 user connections, others might support only ten), both categories are used to determine the size of the farm.

Small Farm (< 100 Users / < 5 XenApp “Worker” Servers)

For small environments all roles can be placed on a single server. As the number of users increase, it is important to know where the bottlenecks are occurring. Once a bottleneck is identified, move the affected services to their own server.

Medium Farm (< 1000 Users / 5 – 50 XenApp “Worker” Servers)

For medium sized environments dedicating servers for application and desktop hosting presents the best use of computing resources and avoids contention of resources between the users and the infrastructure. As memory or CPU become scarce, more servers supporting applications and desktops can be added easily. At this stage, the resource usage of the infrastructure services, for a farm of this size, is within the bounds of an appropriately sized server.

Large Farm (< 5000 Users / < 50 – 250 XenApp “Worker” Servers)

As the user count increases, the combined overhead of server resolutions and application enumerations (Data Collector), SQL Database resource usage (Data Store) and HTTP requests (Web Interface) will require infrastructure services to be placed on dedicated servers. Administrators should group infrastructure servers and services together when they have similar functions. For example, the XML Server should be grouped with the data collector.

Another benefit of this design is, if the data collector goes down, then the servers hosting published applications would not take on that role, leading to contention. A backup Data Collector is recommended to keep the operations segregated in the event of a DC failure.

Enterprise Farm (> 5000 Users / 250 – 1000 XenApp “Worker” Servers)

In enterprise class deployments, disaster recovery and failover capabilities become critically important, each infrastructure service will be dedicated to one or more servers.

Service Provider Farm (< 100 Users / < 5 XenApp “Worker” Servers)

The CSP XenApp solution provides a scalable and high availability infrastructure designed around multi-tenancy, tenant security and automation. In this module, applications and desktops are virtualized, and subscriber partitions and Active Directory boundaries are defined, which are centrally governed by XenApp systems.

For more information regarding the CSP Reference Architecture see http://www.citrix.com/skb/articles/RDY2524.

For more information on designing and building a scalable XenApp solution for the cloud please reference the following whitepaper. http://www.citrix.com/skb/articles/RDY3028