Friday, November 6, 2009

Provisioning XenApp Servers with SmartAuditor and MSMQ

A warning about Citrix SmartAuditor and Provisioning: if you have multiple Provisioned XenApp servers running the Agent, you are likely to run into recording issues--segments will be periodically dropped making some recordings seem to be "Live" forever, others will stop in the prematurely, and yet others will simply not play at all. The result depends on which part of the recording is dropped.

We are working on extending the XenApp Prep tool to take care of this.

The issue stems from the fact that the unique identifier for the Message Queuing Service on each Provisioned XenSpp Server is being duplicated --something which Microsoft has indicated is a "no-no." Since there are many servers with the same ID, when the MSMQ on the SmartAuditor Server-side performs a routine clean-up of its cache, what are actually new recording segments will be interpreted as older segments (because all segments bear the same MSMQ ID from the Provisioned XenApp servers, but their counters will be out of order) and will simply discard them.

The workaround is to perform the following steps (and this must be done on the XenApp master image each time before the image is switched back into Standard Image Mode):

On XenApp
1) In Private Image Mode, perform whatever changes to the master image.
2) Before shutting down, stop both the SmartAuditor Agent Service and Message Queuing.
3) Go to HKLM\SOFTWARE\Microsoft\MSMQ\Parameters\Machine Cache and delete the REG_BINARY value QMId.
4) Move up to HKLM\SOFTWARE\Microsoft\MSMQ\Parameters and create a DWORD value called SysPrep and set this value to 1.
5) Shutdown and Switch to Standard Image Mode.

Source: http://blogs.msdn.com/johnbreakwell/archive/2007/02/06/msmq-prefers-to-be-unique.aspx

The SysPrep flag will trigger a regeneration of the QMId REG_BINARY value just before the service starts. This regeneration takes place on start-up across all of the target hosts using the same vDisk thus allowing them to each have their own unique identifier for MSMQ.

The QMId will be different upon each reboot--even for the same target server. If you are just using SmartAuditor, this will NOT be a problem. However, if you are using some other software that utilizes MSMQ that is dependent for some reason on HOST-A and HOST-B having consistent QMId values, then this will present a problem. In which case, I'd wait for the XenApp Prep tool.

For those not using Citrix SmartAuditor or XenApp, but provision Windows member servers which use MSMQ, the solution will be a bit more complicated.

Note: before implementing any solution discussed here, consult the application vendor. The following depicted here is merely a suggestion and Citrix makes no guarantees, warrantees, and so on and so forth... TEST TEST TEST before doing anything to Production!

In Private Image Mode, before shutting down, set the Message Queuing service to Manual. Then deploy a script (via a Local Policy for the Computer or maybe as a GPO in an OU) that does the following:

1) Uses WMI to query for the computer's UUID.
2) Convert the return value to a string while stripping out the dashes "-."
3) Check the Registry for the presence of the QMId value. If it exists, delete it and move on...
4) Create the QMId REG_BINARY value and pass the modified UUID value to it.
5) Start MSMQ

We implemented this workaround using VBScript and it works well. There may be some delays if WMI has issues on start-up. As long as the value put into the QMId REG_BINARY conforms with being a 32-bit hex value, it should work. The result will be that each target device will have a unique but static QMId because whether the target is hardware of a Virtual Machine, the UUID for that host will always remain the same (unless you swap out the CPU of a hardware machine).

http://forums.citrix.com/thread.jspa?threadID=254805

Applications Appear to be Unresponsive During Session Launch because of Inaccessible Print Servers or Orphaned Printers

Symptoms

Applications appear to be unresponsive during session launch because of inaccessible print servers or orphaned printers.

Cause

Most users have Network Printers defined on their computers while at the work place. If the same users now bring their computers home (typically a laptop) these printers although still defined on the user’s machine are no longer available because the print server is not reachable from the user’s home network.

So if the user then makes an ICA connection from home to the workplace XenApp picks up these printers and tries to make them available for their session.

Because these printers are in an offline or unavailable state it can cause the loading of the session to be delayed for 15 seconds or more depending on how many Network Printers are defined on the user’s computer.

http://support.citrix.com/article/CTX122425

How to Enable Tracing for Web Interface Sites

http://support.citrix.com/article/CTX122427

Hotfix CPVS51SP1E002 - For Citrix Provisioning Services 5.1 and 5.1 SP1

Issue Resolved in this Hotfix

This Hotfix addresses the following issue reported against Citrix PVS 5.1 and 5.1 Service Pack 1 (SP1) release:

TR-9084: When using XenServer 5.0 or greater a streamed guest may experience hanging conditions while running a network intensive application. This only effects guests running Windows XP and Windows 2003.

http://support.citrix.com/article/CTX123266

In Windows Vista or in Windows Server 2008, when there are right-aligned tabs, the tabs are misaligned in an application that uses rich edit controls

SYMPTOMS
On a computer that is running Windows Vista or Windows Server 2008, you edit content in an application that uses rich edit controls. However, the tabs in the application are misaligned.

For example, if you change a left-aligned tab to a right-aligned tab, all the tabs after the left-aligned tab are changed to right-aligned tabs.

Note This issue does not affect the tabs that appear before the left-aligned tab.

http://support.microsoft.com/default.aspx?scid=kb;en-us;975848&sd=rss&spid=12925

Tuesday, November 3, 2009

Citrix Printing Tool 3.1

Citrix Printing Tool 3.1 helps configuring and troubleshooting the Citrix Printing subsystem on XenApp, XenApp Online Plugin, and XenDesktop.

Quick list of features :

When run on a XenApp server (4.0,4.5,5.0):

• Configures the advanced features for the Citrix Print Service (DefaultPrnFlags, Citrix Universal Printer properties, font handling, and so on).

• Displays information about the important DLLs and EXE files related to Citrix printing subsystem.

• Displays active policies for the ICA sessions in the farm (Note: on 4.5 and 5.0/2003, it requires fix #218994 currently being validated).

• Re-installs the Citrix Universal Print Driver (UPD) v3 driver (Win2000 and Win2003 systems only).

• Event log review: displays the printing related events from the farm servers’ event logs and links to related Citrix Knowledge Base articles when required.

• With the /passthrough switch, the ICA client tab is available on the server.

• The server list is listed in alphabetical order.

When run on a Desktop Delivery Controller (XenDesktop 3.0):

• Configures the DefaultPrnFlags implemented in the Citrix Print Service for the Virtual Desktop Agent (Virtual Desktop Agent) and pushes them to the VDAs.

When run on machine with XenApp Online Plug-in:

• Clears the retained printer properties.

• Enables client side debug mode for EMF and XPS printing.

• Forces the local printer settings into the ICA session.

• Forces the “old” printing path for 10.x and 11.x clients.

A list of settings for DefaultPrnFlags can be found here: CTX109193



http://support.citrix.com/article/ctx122962

Saturday, October 31, 2009

Remote Desktop Load Simulator

The Remote Desktop Load Simulation toolset is used for server capacity planning and performance/scalability analysis.

In a server-based computing environment, all application execution and data processing occur on the server. Therefore it is extremely interesting to test the scalability and capacity of servers to determine how many client sessions a server can typically support under a variety of different scenarios. One of the most reliable ways to find out the number or users a server can support for a particular scenario is to log on a large number of users on the server simultaneously. The Remote Desktop Load Simulation tools provide the functionality which makes it possible to generate the required user load on the server.
http://www.microsoft.com/downloads/details.aspx?FamilyID=c3f5f040-ab7b-4ec6-9ed3-1698105510ad&displaylang=en

Friday, October 30, 2009

Windows 7, ESX 4, and Citrix XenDesktop

VMware currently does not officially support Windows 7 on ESX 4 (it's experimental). I've seen issues with VMware Tools on Windows 7 VMs.

Since VMware does not support it, Citrix does not support Windows 7 on ESX 4 either. I've experienced several issues related to Provisioning Server 5.1 SP1 and Windows 7 on ESX 4.

VMware will eventually release official support for Windows 7 on ESX 4 but Citrix won't support it immediately. I don't know how much testing time they require before they will eventually support it.

Windows 7 with PvS 5.1 SP1 is supported by Citrix on Hyper-V and XenServer.

Tuesday, October 27, 2009

Remote Desktop Connection 7.0 is now available

RDP Client 7.0 is now available for Windows XP and Windows Vista.

http://support.microsoft.com/kb/969084

Hotfix PSE450R04W2K3035 - For Citrix Presentation Server 4.5 and XenApp 5.0 for Windows Server 2003 x86

This hotfix replaces several older XenApp hotfixes and includes new fixes related to custom administrators. The most important addition is increased reliability for license server connectivity issues.
Users might not be able to connect when there are communication problems between the server and the license server. After applying this fix, the connection to the license server is reinitialized when communication errors occur and the following message is written to the System Event log:

Source: MetaFrame
Event ID: 9031
Description: A Citrix licensing request has timed out. This might be an indication of communication problems between this server and the license server. As a result, the server has reinitialized its connection with the license server. All licenses checked out by this server have been checked back in and attempts will be made to check the licenses out again.

Reinitiating the connection to the license server works around temporary communication problems. However, if the event is logged repeatedly, Citrix recommends that you investigate your network health.

[From PSE450R04W2K3035][#209944]
32-bit = http://support.citrix.com/article/ctx123007
64-bit = http://support.citrix.com/article/ctx123008

Monday, October 26, 2009

EdgeSight for XenApp 5.2.1 and EdgeSight for Endpoints 5.2.1 NEW!

https://www.citrix.com/English/SS/downloads/details.asp?downloadId=1681164&productId=25119

LIMITED RELEASE - Hotfix XAE500W2K8X64032 - For Citrix XenApp 5.0 for Windows Server 2008 x64

There are several additional cpsvc (printer) fixes in this hotfix:

New Fixes in This Release

  1. The ICA Listener setting "By default, connect only the client's main printer" is not honored on Windows Server 2008.

    [From XAE500W2K8X64032][#199378]

  2. The Citrix Print Manager Service (cpsvc.exe) might exit unexpectedly and continue to exit after manually restarting it.

    [From XAE500W2K8X64032][#215074]

http://support.citrix.com/article/CTX122776

Introducing Windows Server 2008 R2 eBook Available as Free Download

http://download.microsoft.com/download/5/C/0/5C0BD0AB-040D-4C56-A60B-661001012DDA/Windows_Server_2008_R2_e-book.pdf

Thursday, October 22, 2009

Windows 7 on ESX 4

The VMware Tools on Windows 7 on ESX 4 seems to have a video issue. After installing the video driver, scrolling in programs like Event Viewer results in a lockup of the console. RDP works but vSphere Client console connections do not.

When installing theVMware Tools, deselect the SVGA driver.

Access Gateway 4.6.1, Standard Edition

What's new in Access Gateway 4.6.1, Standard Edition

Quote:
This release of Access Gateway Standard Edition supports the following:

    • Access Gateway Plug-in support for Microsoft Windows 7 (32-bit and 64-bit)
    • Access Gateway Plug-in support for Microsoft Windows Vista 64-bit
    • Access Gateway Plug-in for Mac OS X
    • Microsoft Internet Explorer 8

    The following new features are included in 4.6.1:

    Access Gateway Plug-in and Citrix Receiver Integraton
    Access Gateway Standard Edition supports Citrix Receiver, Citrix Merchandising Server, and Dazzle, which are components of the Citrix Delivery Center. Citrix Receiver, Citrix Merchandising Server, and Dazzle streamline the installation and management of application delivery to user desktops. For more information, see Integrating the Access Gateway Plug-in with Citrix Receiver.

    Secure Ticket Authority redundancy
    You can configure multiple redundant Secure Ticket Authorities (STAs) for users accessing their resources through the Access Gateway. This enables you to mitigate against the possibility of the STA becoming unavailable midway through a user's session, preventing reconnection to the session. When redundancy is enabled, the Web Interface attempts to obtain and deliver to the Access Gateway two tickets from two different STAs. If one of the STAs cannot be contacted during a user session, the session continues uninterrupted using the second STA. To configure the STA for redundancy, you must be using Web Interface 5.2 and Access Gateway Standard Edition, Version 4.6.1. For more information about configuring the Web Interface, see Configuring Access Gateway Settings in Web Interface 5.2.

    A list of fixed issues is available from this article.

    Wednesday, October 21, 2009

    Web Interface 5.2 New Features

    XenDesktop User Roaming. If a user is in a remote office and accesses the local Web Interface server, Web Interface will redirect the user to the user's home farm instead of the local farm.

    It is configured by modifying webinterface.conf. More info at eDocs.

    Web Interface Disaster Recovery Farms. By default, apps are aggregated across every farm listed in the WI config. This new option allows you to failover to additional farms only if every production farm is inaccessible.

    Another feature only configurable by modifying webinterface.conf. More info at eDocs.

    Web Interface 5.2 STA Redundancy

    Here's a new option in the Web Interface 5.2 console when specifying Secure Gateway Settings. "Request tickets from two STAs, where available". More info at eDocs.

    Using App-V debugging mode for running applications without sequencing

    Replacement for AIE, especially since it's now included for free in the RDS CAL?

    http://gallery.technet.microsoft.com/ScriptCenter/en-us/f632175d-42a5-41b5-be81-67de7b735a02

    EdgeSight 5.2 Agent for virtual desktops

    EdgeSight 5.2 DVD does not include the Agent for virtual desktops.

    XenApp 5.0 Feature Pack 2 for 2008 DVD does not include EdgeSight (Service Monitoring).

    XenApp 5.0 Feature Pack 2 for 2003 DVD does include EdgeSight 5.2 and the agent for virtual desktops but does not include the agent for Endpoints.