Cxa 301 1i_i_ewb_spdf

503
-1

Published on

Cxa

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
503
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
27
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cxa 301 1i_i_ewb_spdf

  1. 1. Citrix XenApp 6.5 Advanced Administration Citrix Course CXA-301-1I
  2. 2. 2 © Copyright 2011 Citrix Systems, Inc.
  3. 3. Citrix XenApp 6.5 Advanced Administration Citrix Course CXA-301-1I October 2011 Version 1.0
  4. 4. 4 © Copyright 2011 Citrix Systems, Inc.
  5. 5. Table of Contents ModuleModule 1:1: TroubleshootingTroubleshooting thethe XenAppXenApp EnvironmentEnvironment ...................................................................... 1313 About Coolidge Consolidated Holdings, Ltd. ........................................................................ 15 Lab Scenario ........................................................................................................................ 16 Lab Environment .................................................................................................................. 17 User Credentials ................................................................................................................... 19 Exercise 1-1: Troubleshooting an AppCenter Issue .............................................................. 20 Replicating the Issue with Citrix AppCenter ....................................................................... 20 Fixing an IMA Service Issue .............................................................................................. 22 Fixing a Citrix AppCenter Permission Issue ....................................................................... 23 Exercise 1-2: Troubleshooting Web Interface and XML Issues .............................................. 25 Troubleshooting Web Site Issues ...................................................................................... 25 Troubleshooting XML Service Issues ................................................................................ 26 Verifying the XML Service Fix ............................................................................................ 28 Exercise 1-3: Troubleshooting Launching a Hosted Application ............................................ 29 Troubleshooting an Application Launch Failure ................................................................. 29 Troubleshooting a Network Issue ...................................................................................... 31 Verifying the Connection Changes .................................................................................... 32 Exercise 1-4: Troubleshooting Streaming Applications ......................................................... 34 Investigating Absent Streaming Applications ..................................................................... 34 Implementing and Verifying a Fix for Absent Streaming Applications ................................. 36 Fixing a Published Streaming Profile Path Issue ................................................................ 36 Fixing an AppHub Permissions Issue ................................................................................ 37 ModuleModule 2:2: ScalingScaling thethe XenAppXenApp EnvironmentEnvironment .................................................................................................. 3939 Exercise 2-1: Preparing to Clone a XenApp Server ............................................................... 41 Creating a Sysprep Answer File ........................................................................................ 41 Preparing the XenApp Server for Imaging ......................................................................... 43 Exercise 2-2: Cloning a XenApp Server ................................................................................ 45 Performing Sysprep on XenAppWorker ............................................................................ 45 Viewing the Results .......................................................................................................... 46 Exercise 2-3: Preparing a XenApp Server for Scripted Configuration .................................... 47 Creating the Powershell Configuration Script .................................................................... 47 Creating the Kickoff Batch File .......................................................................................... 48 Modifying a Sysprep Answer File for a Scripted Configuration .......................................... 49 Exercise 2-4: Performing a Scripted Configuration ................................................................ 51 Performing Sysprep on XenAppController-2 ...................................................................... 51 Viewing the Results of the Scripted Configuration ............................................................. 52 ModuleModule 3:3: CreatingCreating FarmFarm RedundancyRedundancy .................................................................................................................. 5353 Exercise 3-1: Load Balancing Web Interface and XML Services Using Citrix NetScaler ........ 55 © Copyright 2011 Citrix Systems, Inc. 5
  6. 6. Setting Up Load Balancing ............................................................................................... 55 Verifying the Load Balancing Configuration ...................................................................... 56 Configuring DNS to the Virtual Servers ............................................................................. 57 Updating the Web Interface Servers to Use the Load-Balanced XML Brokers .................. 58 Exercise 3-2: Testing Load Balancing through Citrix NetScaler ............................................. 59 Testing the Current State .................................................................................................. 59 Simulating Loss of Service to XenAppController-2 and WebInterfaceServer-2 .................. 59 Simulating Complete Loss of the XML Broker and Web Interface Services ....................... 60 Restoring the XML Services .............................................................................................. 61 Exercise 3-3: Installing and Configuring Web Interface on Citrix NetScaler ........................... 63 Installing Web Interface ..................................................................................................... 63 Configuring a XenApp Web Site ........................................................................................ 64 Configuring a XenApp Services Site .................................................................................. 64 Configuring an Auto-Redirect to the Web Interface Site .................................................... 65 Reconfiguring DNS for Web Interface Citrix NetScaler ...................................................... 66 Testing Web Interface on Citrix NetScaler ......................................................................... 67 ModuleModule 4:4: MaintainingMaintaining thethe XenAppXenApp EnvironmentEnvironment .................................................................................... 6969 Exercise 4-1: Updating the Mozilla Firefox Streaming Profile ................................................. 71 Viewing Mozilla Firefox ...................................................................................................... 71 Preparing the Firebug Extension ....................................................................................... 72 Modifying a Streaming Profile ........................................................................................... 72 Verifying the Changes in Mozilla Firefox ............................................................................ 73 Exercise 4-2: Performing Data Store Maintenance Commands ............................................ 75 Performing Data Store Maintenance with DSMaint ........................................................... 75 Recreating the Local Host Cache ..................................................................................... 76 Exercise 4-3: Configuring Power and Capacity Management .............................................. 77 Setting Configuration Details Through Group Policy .......................................................... 77 Joining the Servers to the Farm ........................................................................................ 78 Configuring Server Preference and Capacity Limits ........................................................... 78 Creating a Workload Schedule ......................................................................................... 79 Exercise 4-4: Creating a Restart Schedule for the XenApp Servers ...................................... 80 Implementing a Restart Schedule ..................................................................................... 80 ModuleModule 5:5: OptimizingOptimizing thethe XenAppXenApp EnvironmentEnvironment ........................................................................................ 8383 Exercise 5-1: Enabling Multi-Stream ICA Policies for Specific ICA Traffic .............................. 85 Enabling the Multi-Stream ICA Computer Policy ............................................................... 85 Allowing Users Access to Multi-Stream ICA ...................................................................... 86 Verifying Multi-Stream ICA ................................................................................................ 87 Exercise 5-2: Enabling CPU and Memory Optimization ......................................................... 88 Enabling Memory and CPU Optimization Policies ............................................................. 88 Applying Session Importance to Specific Users ................................................................ 89 ModuleModule 6:6: OptimizingOptimizing thethe UserUser EnvironmentEnvironment .................................................................................................. 9191 6 © Copyright 2011 Citrix Systems, Inc.
  7. 7. Exercise 6-1: Configuring Profile Management ..................................................................... 93 Configuring a Profile Share ............................................................................................... 93 Installing Profile Manager .................................................................................................. 94 Configuring Profile Management ....................................................................................... 94 Testing Profile Management ............................................................................................. 95 Exercise 6-2: Profiling an Application Requiring a Service ..................................................... 97 Profiling an Application with a Service ............................................................................... 97 Publishing Bonjour Print Services as a Streaming Application ........................................... 98 Testing and Implementing Support for Windows Service .................................................. 99 ModuleModule 7:7: OptimizingOptimizing PrintingPrinting .......................................................................................................................................... 103103 Exercise 7-1: Verifying Printer Driver Compatibility with XenApp ......................................... 105 Installing Non-Native Printer Drivers ................................................................................ 105 Testing Non-Native Printer Drivers Using StressPrinters .................................................. 106 Exercise 7-2: Replicating Printer Drivers Using PowerShell ................................................. 108 Manually Replicating a Printer Driver Using PowerShell ................................................... 108 Auto-Replicating a Printer Driver Using PowerShell ......................................................... 109 Exercise 7-3: Troubleshooting a Printer Issue with the Citrix Group Policy Modeling Wizard ................................................................................................................................ 111 Viewing the Existing Policies ........................................................................................... 111 Viewing the Resultant Policy for a User in the Finance Group ......................................... 112 Implementing a Test Fix ................................................................................................. 113 Verifying the Test Fix ....................................................................................................... 113 ModuleModule 8:8: SecuringSecuring XenAppXenApp .............................................................................................................................................. 115115 Exercise 8-1: Creating and Distributing Root CA Certificates .............................................. 117 Installing Active Directory Certificate Services ................................................................. 117 Creating a Root CA on NetScaler ................................................................................... 118 Distributing the Root Certificate ...................................................................................... 119 Exercise 8-2: Encrypting External ICA Traffic Using ICA Proxy ............................................ 121 Creating a Server Certificate ........................................................................................... 121 Creating and Securing a New Web Interface Site ........................................................... 122 Adding a DNS Entry for Access Gateway ....................................................................... 124 Testing ICA Proxy ........................................................................................................... 124 Exercise 8-3: Restricting External Application Access ......................................................... 126 Implementing a Pre-Authentication Policy ....................................................................... 126 Testing the Pre-Authentication Policy .............................................................................. 127 Exercise 8-4: Encrypting XML Traffic With SSL Relay ......................................................... 128 Creating an SSL Relay Certificate Template .................................................................... 128 Creating and Exporting an SSL Relay Certificate From Template .................................... 129 Configuring SSL Relay .................................................................................................... 130 Updating Web Interface to Use SSL Relay ...................................................................... 131 Verifying the SSL Relay Settings ..................................................................................... 131 © Copyright 2011 Citrix Systems, Inc. 7
  8. 8. ModuleModule 9:9: MonitoringMonitoring XenAppXenApp withwith StandardStandard UtilitiesUtilities .................................................................. 133133 Exercise 9-1: Using Desktop Director to View Session Data ............................................... 135 Installing Desktop Director .............................................................................................. 135 Viewing Session Data ..................................................................................................... 136 Exercise 9-2: Monitoring XenApp using Performance Monitor ............................................ 138 Restricting Sessions to Use XenAppController-1 ............................................................. 138 Using Performance Monitor ............................................................................................ 139 Exercise 9-3: Monitoring XenApp Using Command-Line Utilities ....................................... 141 Using the QFarm Command ........................................................................................... 141 Restoring Logons to All XenApp Servers ........................................................................ 143 ModuleModule 10:10: MonitoringMonitoring XenAppXenApp withwith EdgeSightEdgeSight .................................................................................. 145145 Exercise 10-1: Viewing EdgeSight Historical Data ............................................................... 147 Viewing Overall and Specific Category Usage Data ......................................................... 147 Exercise 10-2: Viewing EdgeSight Real-Time Data ............................................................. 148 Measuring Session Logon Times ................................................................................... 148 Monitoring With a Real-Time Dashboard ....................................................................... 148 Creating an EdgeSight E-mail Alert ................................................................................. 149 8 © Copyright 2011 Citrix Systems, Inc.
  9. 9. Notices Citrix Systems, Inc. (Citrix) makes no representations or warranties with respect to the content or use of this publication. Citrix specifically disclaims any expressed or implied warranties, merchantability, or fitness for any particular purpose. Citrix reserves the right to make any changes in specifications and other information contained in this publication without prior notice and without obligation to notify any person or entity of such revisions or changes. © Copyright 2011 Citrix Systems, Inc. All Rights Reserved. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or information storage and retrieval systems, for any purpose other than the purchaser’s personal use, without express written permission of: Citrix Systems, Inc. 851 West Cypress Creek Road Fort Lauderdale, FL 33309 http://www.citrix.com The following marks are service marks, trademarks or registered trademarks of their respective owners in the United States and other countries. Mark Owner Adobe®, Flash®, Acrobat® Adobe Systems Incorporated Apache® Apache Micro Peripherals, Inc. AutoCAD® Autodesk, Inc. Mac® Apple, Inc. Brother™ Brother Industries, Ltd. Branch Repeater™, Citrix®, Citrix Access Citrix Systems, Inc. Gateway™, Citrix Education™, Citrix Receiver™, EdgeSight®, HDX™, ICA®, NetScaler®, MyCitrix™, XenApp™, XenDesktop® , Provisioning Services™, XenCenter™, SecureICA™, SpeedScreen™, Citrix Developer Network™, AppCenter™, IMA®, XenVault™
  10. 10. Mark Owner Active Directory®, Hyper-V™, Internet Explorer®, Microsoft Corporation Microsoft®, SQL Server®, Windows®, Windows Server®, Excel®, Outlook®, PowerPoint®, Office®, Windows 7™, Windows XP™, Windows Vista®, Remote Desktop Services®, PowerShell® Firefox® Mozilla Corporation UNIX® The Open Group Java®, JavaScript®, Oracle® Oracle Corporation Pearson VUE® Pearson Education, Inc. RC5™, RSA™ RSA Data Security, Inc. Secure Computing®, SafeWord® Secure Computing Corporation SecurID® Security Dynamics Technologies, Inc. Toolwire® Toolwire VMWare®, vSphere™ VMware, Inc. Wireshark™ Wireshark Foundation, Inc. Other product and company names mentioned herein might be the service marks, trademarks or registered trademarks of their respective owners in the United States and other countries.
  11. 11. Credits Instructional Designers: Jeremy Boehl, Dustin Clark, Ben Colborn, Lydia Kellman, Karla Stagray Product Specialist: Andrew Garfield Graphic Artist: Joshua Jack, Nathan Jackson Manager: Mike Young Editor: Kathryn Morris Subject Matter Experts: Leo Asencio, Amit Baranwal, Fernando Barbitta, Gary Barton, Jenny Berger, Rob Blincoe, Marcelo Brosiq, Ronald Brown, Blaise Cacciola, Hugh Campbell, Mattie Casper, Victor Cataluna, Ruben Centeno, Hari Chowlur, Mike Connell, Diane Downie, Allen Furmanski, Bill Haberkam, Jo Harder, Ann Harmison, Arnd Kagelmacher, Eric Land, Cris Lau, Fred Liu, Juliano Maldaner, Brad Moczik, Robert Morris, Narender Muthyala, Joseph Nord, Nischay P, Glenn Porter, Elisabeth Reynolds, Andrea Rutherford, William Ryan, Guna Sekhar, Brian Sheppard, Leo Singleton, Mark Simmons, Jay Tomlin, Karthikeyan Vasudevan, Karen Weber, Chris Wright, Norman Wright, Willie Wright, Ning Ye, Andy Zhu
  12. 12. Connect with Citrix Education Become a part of the Citrix Education community today! Stay connected with us, get the latest updates on our offerings, and let us know how we are doing. • Facebook - Become a fan of Citrix Education • Twitter - Follow @citrixeducation • LinkedIn - Join the Citrix Education group Visit www.citrixtraining.com to find more information on training, certifications, and exams.
  13. 13. Module 1 Troubleshooting the XenApp Environment
  14. 14. 14 © Copyright 2011 Citrix Systems, Inc.
  15. 15. About Coolidge Consolidated Holdings, Ltd. Coolidge Consolidated Holdings, Ltd. (CCH) is a large, privately-held financial company that is the parent company to many smaller banking and investment companies that specialize in different services that make up the CCH service portfolio. CCH currently has 300 employees who work directly for the company but has thousands more that work in the child companies. As the parent company, CCH oversees the child companies to provide a broad range of financial and investment services to its clients. It also helps to support each child company with business services, including IT services. The only CCH office is located in San Francisco, California. CCH has been using Citrix XenApp 6 to host several tactically important applications for their employees. To address the increasing technical and business needs for the company, the CTO recently secured funding to upgrade to XenApp 6.5 and expand the XenApp environment to meet strategic needs within the organization. The CTO also purchased licenses for Citrix Netscaler and Citrix Access Gateway to augment the functionality and robustness of the environment. In addition to using XenApp 6.5 for more strategic purposes, CCH management wants to consolidate the IT infrastructure for all of the child companies by the end of next year. At present, each of the child companies host and maintain its own XenApp farm and other key pieces of the IT infrastructure. To lay the foundation for this consolidation, management wants to begin building a XenApp infrastructure that is easily and quickly scalable. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 15
  16. 16. Lab Scenario CCH does not have the expertise to complete the transition from XenApp 6 to XenApp 6.5 within the company so they needed to reach out to you, a XenApp Advanced Administrator, to help bring their environment up to their needs. Due to business needs, CCH needs to get their environment up-to-speed to fit their needs within the next 5 days. CCH has communicated that there may be a few pitfalls along the way, so hopefully you are up to the challenge. CCH’s Citrix team used the Citrix Migration tools to create a copy of their current XenApp 6 production environment into a staging environment running XenApp 6.5. During their migration they encountered a few hiccups that prevented the environment from immediately coming up. Unfortunately, an overzealous member of the team began attempting to troubleshoot the issues and ended up further damaging the environment. They do not know how to recover and need you to help troubleshoot the environment and bring it back to health. 16 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  17. 17. Lab Environment The following table provides descriptions and roles of each virtual machine in the lab environment: The course is designed so that all virtual machines are powered on and remain powered on for the duration of Virtual Machine Role OS Hostname the class. Virtual machine should only be restarted when instructed and should never be shut down. DomainController Windows Server 2008 DC © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 17 • Domain Controller R2 • SQL Server • EdgeSight Server • License Server • Filer • Print Server EndUserSimulator A simulated user Windows 7 EUS desktop for performing XenApp and deployment testing. NetScaler A Netscaler virtual FreeBSD NS appliance. This virtual machine may not be directly visible in your environment. Profiler-Win7 A virtual machine used Windows 7 P-W7 to profile streaming Windows 7 applications. WebInterfaceServer-1 A Web Interface Windows Server 2008 WIS-1 server. R2 WebInterfaceServer-2 A Web Interface Windows Server 2008 WIS-2 server. R2
  18. 18. Virtual Machine Role OS Hostname XenAppController-1 A full XenApp server, Windows Server 2008 XAC-1 with IMA services. It R2 also is the Power and Capacity Management Concentrator. XenAppController-2 A full XenApp server, Windows Server 2008 XAC-2 with IMA services. R2 XenAppWorker A XenApp server Windows Server 2008 XAW-1 configured for Session- R2 host only mode. 18 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  19. 19. User Credentials Please use the following credentials as you complete these exercises: CCHCitrixAdmin • Username: CCHCitrixAdmin • Password: Password1 • Member of: CCHDomain Admins; CCHTestAccounts • Description: This account was created to facilitate the initial phase of deployment for all Citrix administrators. When the environment is launched, it will be replaced by specific accounts for each administrator. This is the account that will be used most often throughout the initial deployment. XAC-1Administrator • Username: XAC-1Administrator • Password: Password1 • Member of: Local Administrators • Description: This account is a local administrator for the XenAppController-1 virtual machine. CCHAdministrator • Username: CCHAdministrator • Password: Password1 • Member of: Administrators; CCHDomain Admins • Description: This account is the main administrator in the CCH domain. CCHTestAdmin • Username: CCHTestAdmin • Password: Password1 • Member of: CCHDomain Admins • Description: This account simulates a another admin in the farm. CCHTestUser • Username: CCHCitrixUser • Password: Password1 • Member of: CCHTestAccounts • Description: This account simulates an account of the average user of the XenApp farm. citrixadmin@cch.local • Username: citrixadmin@cch.local • Password: Password1 • Description: This account is used exclusively to log on to and manage EdgeSight. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 19
  20. 20. Exercise 1-1: Troubleshooting an AppCenter Issue Scenario Other administrators are complaining that they are unable to connect to the farm with Citrix AppCenter. You sense it may have something to do with user permissions. You need to verify and Please remind students to read and familiarize themselves resolve this issue. with the "About Coolidge Consolidated Holdings, Ltd", Estimated time to complete this exercise: 35 minutes"Lab Scenario", and "Lab Environment" sections that precede this page. These pages list important information regarding environment setup, and provide the basis for all scenarios given throughout the book. Replicating the Issue with Citrix AppCenter 20 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc. Use the XenAppController-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Log on to the XenAppController-1 virtual machine as the CCHCitrixAdmin user. 2. Open the Citrix AppCenter and allow for the console to connect to the farm. View any errorsPlease take this time to explain to the students how to that occurred in the discovery process.access the lab environment, and how to perform common tasks within the environment, including: a. Click Start > Administrative Tools > Citrix > Management Consoles > Citrix AppCenter.• How to log on and log off of virtual machines. b. Double-click Errors occurred when using XAC-1 in the discovery process and view the• How to access course virtual machines once inside error details.the environment. c. Click Close and then click OK.• How to attach/detach ISOs to the virtual machines (if required). After several moments an error appears, specifying that an error occurred. It suggests• The password for all log ons throughout the course is checking to make sure that XenApp is installed and that the MFCOM service is running."Password1". The page titled "User Credentials" that lists all credentials and roles for each user, can be ripped from the book for constant use. 3. Navigate to the Uninstall a program control panel and verify that Citrix XenApp 6.5 appears to be installed correctly. a. Click Start > Control Panel and click Uninstall a program. b. Verify that Citrix XenApp 6.5 appears in the list of installed programs. Citrix XenApp 6.5 is listed as installed along with all of the other XenApp components.
  21. 21. 4. Navigate to the Services control panel and ensure that the MFCOM is started. Attempt to restart the service. Issue: The Local Host Cache (imalhc.mdb) file is missing a. Click Start > Administrative Tools > Services. from the "C:Program Files (x86)CitrixIndependent Management Architecture" folder.b. Verify that the Citrix MFCOM Service appears in the list with a Starting status. c. Right-click the Citrix MFCOM Service and attempt to click the Restart option. Resolution: Student will have to recreate the imalhc.mdb file.The option to restart the service is not present. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 21 Because you are unable to start or control the service, check for error logs. 5. Navigate to the Error Viewer console and view the Administrative Events. View the displayed errors. a. Click Start > Administrative Tools > Event Viewer. b. Expand the Custom Views node and click Administrative Events. c. View the General and Details tabs for the errors that appear. With the large volume of errors in the log, you suspect that the issue is much more serious than anticipated. You spot an IMAService error which supports your theory. 6. View one of the IMAService errors from the last several days. a. Find an Error level IMAService event. b. Double-click the IMAService event. c. Read the error listed and click Close. d. Repeat substeps a-c on the nearby IMAService error events. The errors indicate that it may that the IMA Service is not configured correctly or could be otherwise broken. The error events state that an ACCESS.mdb file is missing. Because the IMA Service is integral to the proper functioning of a XenApp farm this issue requires further investigation. 7. Within the Services console, verify whether the Citrix Independent Management Architecture service is started and running correctly. a. Select the Citrix Independent Management Architecture service from the Services console. b. Verify that the Status field is empty and Automatic appears in the Startup Type field. There is an issue with the Citrix Independent Management Architecture. Though it is set to run automatically, the service is not running.
  22. 22. Fixing an IMA Service Issue Use the XenAppController-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Attempt to start the Citrix Independent Management Architecture service in the Services console. a. Right-click the Citrix Independent Management Architecture service and click Start. b. Click OK after viewing the Services error message. An error message appears specifying that the IMA service could not start. 2. View the log on credentials of the Citrix Independent Management Architecture service. a. Right-click the Citrix Independent Management Architecture service and click Properties. b. Click the Log On tab. It appears that all settings are set correctly. c. Click OK to close the Citrix Independent Management Architecture Properties. Because all the settings of the service appear okay, you need to confirm that the local host cache is not corrupt. 3. Access the C:Program Files (x86)CitrixIndependent Management Architecture directory and view the file metadata for the imalhc.mdb file. a. Navigate to the C:Program Files (x86)CitrixIndependent Management Architecture folder. b. View the file information for the imalhc.mdb file. The imalhc.mdb file does not exist! It appears that the other administrator was working in this area and deleted the local host cache database file. 4. Use a command prompt to run the dsmaint command to recreate the Local Host Cache database. a. Click Start > Command Prompt. b. Type dsmaint recreatelhc and press Enter. c. Verify that the "Recreating LHC database finished successfully" message appears. 5. Use the Services console to start the Citrix Independent Management Architecture Service, and Citrix WMI Service services. a. Right-click Citrix Independent Management Architecture Service in the Services console and select Start. b. Right-click Citrix WMI Service and select Start. 6. Restart the XenAppController-1 virtual machine. 22 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  23. 23. 7. Log on to the XenAppController-1 virtual machine as the CCHCitrixAdmin user. 8. Open Citrix AppCenter and allow the console to discover the CCH farm. View any errors that occur. a. Click Start > Administrative Tools > Citrix > Management Consoles > Citrix AppCenter. b. Double-click Errors occurred when using XAC-1 in the discovery process to view the error details. An error occurs stating that this user account is not a member of the farm. The administrator who installed XenApp must have installed it as a local administrator. Fixing a Citrix AppCenter Permission Issue Use the XenAppController-1 virtual machine logged in as the XAC-1Administrator user for this task. 1. Log off from the XenAppController-1 virtual machine and log back on as the XAC- 1Administrator user. 2. Use Citrix AppCenter to proceed through the farm discovery process. Do not enable Single Sign-on. Add the local computer to the discovery. Issue: No domain administrators are set to administer the a. Click Start > Administrative Tools > Citrix > Management Consoles > Citrix XenApp farm. AppCenter. Resolution: Student will have to log on as an account that b. Click Next, clear the Single Sign-On checkbox, and click Next. is a XenApp administrator and add the domain c. Click Add Local Computer and click Next. administrators group back in as XenApp administrators. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 23 d. Click Next and then click Finish. 3. View the administrators configured for the farm and verify if the CCHCitrixAdmin is listed. a. Expand the Citrix Resources > XenApp > CCH nodes. b. Click Administrators and view the current administrators of the farm. The CCHCitrixAdmin user is not an administrator of the farm. The only administrator is the XAC-1Administrator user. 4. Adding the CCHCitrixAdmin user as a new administrator to the farm. a. Right-click Administrators and click Add Administrator. b. Click Add and click Add List of Names. c. Type CCHCitrixAdmin and click Check Names. d. Click OK when all account names have been validated successfully and click OK. 5. Configure the CCHCitrixAdmin user as a full administrator of the farm. a. Click OK and then click Next. b. Select Full Administration, and click Finish.
  24. 24. 6. Log out of the XenAppController-1 virtual machine and log back on as the CCHCitrixAdmin user. 7. Use Citrix AppCenter to verify that the CCHCitrixAdmin user is now able to view the farm. a. Click Start > Administrative Tools > Citrix > Management Consoles > Citrix AppCenter. b. Verify that the discovery process is completed successfully and that the CCH farm appears in the Citrix AppCenter node list. The CCHCitrixAdmin user is able is now able to view the farm in Citrix AppCenter. Just to verify that the farm is working correctly you want to launch an application from Web Interface. 8. Use Internet Explorer to connect to the Web Interface at http://wis-1.cch.local. The Web Interface does not come up. A standard IIS page is displayed indicating issues with the configuration of the Web Interface server. 24 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  25. 25. Exercise 1-2: Troubleshooting Web Interface and XML Issues Scenario You recently fixed issues with the IMA Service and Citrix AppCenter console. But when trying to access applications from Web Interface, you noticed that you could not. You need to troubleshoot and fix the issues to access applications through Web Interface. Estimated time to complete this exercise: 25 minutes Troubleshooting Web Site Issues Use the WebInterfaceServer-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Log on to the WebInterfaceServer-1 virtual machine as the CCHCitrixAdmin user. 2. Use the Citrix Web Interface Management console to verify that a XenApp Web site exists on the server. Issue: The XenApp Web site is not configured as the a. Click Start > All Programs > Citrix > Management Consoles > Citrix Web Interface default IIS site. Management. Resolution: Students will have to configure the XenApp b. Select the XenApp Web Sites node and verify that "XenApp" appears as a site name. Web site to be the default IIS site. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 25 Though it was inaccessible, a XenApp web site does exist. 3. Switch to the EndUserSimulator virtual machine and log on as the CCHCitrixAdmin user. 4. Use Internet Explorer to attempt to access the XenApp Web site directly at http://wis- 1.cch.local/Citrix/XenApp. Verify that the site is available and then close Internet Explorer. The site is accessible when connecting through its direct URL. The issue must be in the redirection page of this site. 5. Switch to the WebInterfaceServer-1 virtual machine. 6. Use the Citrix Web Interface Management console to view the settings summary of the "XenApp" XenApp Web site. Access the site's IIS hosting settings and set the site as the default page for the IIS site. a. Right-click the XenApp site and select Site Maintenance > Manage IIS Hosting. b. Select Set as default page for the IIS site and click OK. 7. Switch to the EndUserSimulator virtual machine. 8. Use Internet Explorer to access the Web Interface server at http://wis-1.cch.local.
  26. 26. The web site displays as intended. 9. Log on to Web Interface using the CCHCitrixAdmin user. If you are unable to log on, verify that the credentials are being typed correctly and try only once more. An error continues to appears asking you to verify your name and password. 10. Attempt a single time to log on to Web Interface as the CCHTestAdmin. An error still appears indicating an incorrect username or password. 11. Close Internet Explorer. Troubleshooting XML Service Issues Use the WebInterfaceServer-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the WebInterfaceServer-1 virtual machine. 2. View the Event Viewer console and review any errors displayed in Administrative Events. a. Click Start > Administrative Tools > Event Viewer.Issue: The XML site supplied in the settings is incorrect. b. Expand the Custom Views node and click Administrative Events.Resolution: Student will have to correctly change the site c. View the General and Details tabs for the most recent Citrix Web Interface errors.name to xac-1.cch.local. 26 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc. Web Interface displays several error messages indicating that the XML Services are failing to respond. 3. Use the Citrix Web Interface Management console to view the farm settings for the "XenApp" XenApp Web site. Verify that all XML settings are correct. a. Right-click the XenApp Web site in the Citrix Web Interface Management console and select Server Farms. b. Verify whether all of the settings appear correct. All of the XML and farm information appears to be correct, except for the server name. No server named "xml.cch.local" exists. 4. Edit the farm information to specify xac-1.cch.local as the server name. a. Select the CCH farm and click Edit. b. Select the xml.cch.local server and click Edit.
  27. 27. c. Type xac-1.cch.local in the Server name field and click OK. d. Click OK in the Edit Farm dialog box and click OK to close the Manage Server Farms dialog box. 5. Switch to the EndUserSimulator virtual machine. 6. Log on to Web Interface using the CCHCitrixAdmin user. If you are unable to log on, verify that the credentials are being typed correctly and try only once more. An error continues to appears asking you to verify your name and password. 7. Switch to the XenAppController-1 virtual machine. 8. Use the Services console to ensure that the Citrix XML Service is started and appears to be configured correctly. Issue: The XML Service is listening on port 8080 when it a. Click Start > Administrative Tools > Services. should be listening on port 80. b. Double-click the Citrix XML Service. Resolution: Students will need to unregister the XML c. Verify that Automatic is selected as the Startup type in the General tab. Service and reregister it to listen on port 80. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 27 d. Select the Log On tab and verify that the Log On account is Network Service. Everything appears to be working correctly. You think it may have to do with the XML port in use. 9. Use the netstat utility from a command line to view the current XML Port. a. Click Start > Commant Prompt. b. Type netstat -nab and press Enter. c. Scroll to the ctxxmlss.exe entry and verify if port 80 is being used. The local address of the port is listed as 0.0.0.0:8080 indicating that 8080 is the port in use. You need to change the port to 80. 10. Stop the Citrix XML Service from the Services console and use the ctxxmlss command line utility to unregister the XML Service. a. Select the General tab in the Services console and click Stop. b. Click OK. c. Type ctxxmlss /u at the command prompt and press Enter. 11. Refresh the Services console to verify that the Citrix XML Service is no longer present. Re- register the Citrix XML Service to run on port 80 using the ctxxmlss command at the command prompt. a. Click Actions > Refresh in the Services console. The Citrix XML Service is no longer present. b. Type ctxxmlss /r80 at the Command Prompt and press Enter.
  28. 28. The Citrix XML Service is now registered on port number 80. 12. Refresh the Services console to verify that the XML Service is present and then start the XML Service. a. Click Actions > Refresh in the Services console. b. Right-click Citrix XML Service and select Start. 13. Use the netstat utility to verify that the Citrix XML Service is now listening on the correct port (80). a. Type netstat -nab in the command prompt and press Enter. b. Scroll to the ctxxmlss.exe entry and verify if port 80 is being used. The local address of the port is listed as 0.0.0.0:80 indicating that 80 is the port in use. 14. Close all open windows. Verifying the XML Service Fix Use the EndUserSimulator virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the EndUserSimulator virtual machine. 2. Use Internet Explorer to access the Web Interface server at http://wis-1.cch.local. Log on with the CCHCitrixAdmin credentials. You are able to log on to Web Interface without any problems. All published resources appear. 3. Attempt to launch Notepad to ensure that the farm is working properly. An error message appears in Web Interface. The application failed to launch. 28 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  29. 29. Exercise 1-3: Troubleshooting Launching a Hosted Application Scenario You recently fixed issues with the IMA Service, Citrix AppCenter, Web Interface, and XML Service, but you are still unable to launch a hosted application from Web Interface. You need to continue troubleshooting the problems as they happen until you can successfully launch an application. Estimated time to complete this exercise: 30 minutes Troubleshooting an Application Launch Failure Use the XenAppController-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the XenAppController-1 virtual machine. 2. Use the Event Viewer console to view any MetaFrame or related error events. a. Click Start > Administrative Tools > Event Viewer. Issue: There is very restrictive load evaluator attached to XAC-1 that is returning a high load level.b. Expand the Custom Views node and click Administrative Events. c. Scan the Source error column for MetaFrameEvents. Resolution: Student will have to remove the load evaluator. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 29 You find several errors from a MetaFrameEvents source. 3. View the first MetaFrameEvents error. a. Double-click the MetaFrameEvents error. b. View the errors listed in the General and Details tabs. The error message indicates that no servers can be found that can launch the application. As a guess, you want to check the server loads of both servers in the farm. 4. Use the qfarm command in a command prompt to view the load values for each server in the farm. a. Click Start > Command Prompt. b. Type qfarm /load and press Enter. The load value of xac-1 is 10000, indicating a very high load. 5. Use Citrix AppCenter to check if any users who are connected to XAC-1 may be causing a high load on the server.
  30. 30. a. Click Start > All Programs > Administrative Tools > Citrix > Management Consoles > Citrix AppCenter. b. Expand the Citrix Resources > XenApp > CCH > Servers node and click XAC-1. c. Click the Users tab and view any connected users. No ICA users are connected to the xac-1 server. There must be another reason why xac-1 is showing a full load. 6. Use the Group Policy Management console to edit the "Old_XA_GPO" policy and view the Unfiltered Citrix Computer Policy. a. Click Start > Administrative Tools > Group Policy Management. b. Expand the Forest: cch.local > Domains > cch.local > Group Policy Objects node. c. Right-click Old_XA_GPO and click Edit. d. Expand the Computer Configuration > Policies nodes and click Citrix Policies. e. View the Summary tab for the Unfiltered policy. The summary suggests that a Load Evaluator is specified. 7. Remove the load evaluator and close all open windows. a. Click Remove for the Load Evaluator Name setting. b. Click Yes to confirm. c. Close all open windows. 8. Use the GPUpdateALL script on the desktop to update the group policy on all XenApp servers. 9. Use the qfarm command line utility to view the load values for each server in the farm. a. Click Start > Command Prompt. b. Type qfarm /load and press Enter. Both servers show normal loads. 10. Switch to the EndUserSimulator virtual machine. 11. Use Internet Explorer to access and log on to the Web Interface at http://wis-1.cch.local using the CCHCitrixAdmin credentials. Launch Notepad. No immediate errors appear, the ICA ticket is issued normally, and Citrix Receiver is launched. The application will not launch and Receiver seems to halt. An error eventually appears indicating that a XenApp server does not exist at the specified address. 12. Close all open windows. 30 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  31. 31. Troubleshooting a Network Issue Use the XenAppController-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the XenAppController-1 virtual machine. 2. Use the Event Viewer console to view any related error events. a. Click Start > Administrative Tools > Event Viewer. Issue: The firewall on XAC-1 is blocking connections on port 1494 and 2598.b. Expand the Custom Views tab and click Administrative Events. c. View the General and Details tabs for the recent errors. Resolution: Student will have to disable the offending firewall settings to allow traffic on these ports to pass through.There are no new error events related that seem to relate to this issue. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 31 3. Use the Services console to verify that the Citrix XTE Server service is started and appears to be running normally. a. Click Start > Administrative Tools > Services. b. Double-click the Citrix XTE Server. c. Verify that the Service status is Started. The service seems to be running normally. It may be a networking issue. 4. Switch to the EndUserSimulator virtual machine. 5. Access the dcfilerSoftware folder and copy the PortCheck folder to the desktop. 6. Use a Command Prompt and access the C:UsersCitrixAdminDesktopPortCheck folder. Use the CtxPrtChk command in this folder to check ports 80, 1494, and 2598 on the XAC-1 server. a. Click Start > Command Prompt. b. Type cd DesktopPortCheck, and press Enter. c. Type CtxPrtChk xac-1 80 and press Enter. d. Type CtxPrtChk xac-1 1494 and press Enter. e. Type CtxPrtChk xac-1 2598 and press Enter. The test for port 80 is successful, but the utility is unable to connect to xac-1 on 1494 and 2598. This indicates that networking is set up correctly, but the utility still cannot connect on either the ICA or Session Reliability ports. This needs further investigation. 7. Switch to the XenAppController-1 virtual machine. 8. Access the dcfilerSoftware folder and copy the PortCheck folder to the desktop.
  32. 32. 9. Use a Command Prompt and access the C:UsersCitrixAdminDesktopPortCheck folder. Use the CtxPrtChk command in this folder to check ports 80,1494, 2598 on the XAC-1 server. a. Type cd DesktopPortCheck in the command prompt and press Enter. b. Type CtxPrtChk xac-1 80 and press Enter. c. Type CtxPrtChk xac-1 1494 and press Enter. d. Type CtxPrtChk xac-1 2598 and press Enter. The CtxPrtChk utility is able to make successful connections to all three ports. Because the ports are accessible locally but not from another machine on the network, the issue might likely be a firewall blocking ports to other machines on the network. 10. Use the Windows Firewall with Advanced Security console and view the inbound rules. Verify that the Citrix ICA and Citrix Session Reliability rules allow traffic. a. Click Start > Administrative Tools > Windows Firewall with Advanced Security. b. Click Inbound Rules. c. View the Action column for the Citrix ICA and Citrix Session Reliability rules. Rules for inbound traffic are configured to block both Citrix ICA and Citrix Session Reliability. 11. View the properties of both rules and allow all connections. a. Right-click the Citrix ICA rule and click Properties. b. Select Allow the connection, click Apply, and then click OK. c. Repeat substeps a and b for the Citrix Session Reliability rule. 12. Close all open windows. Verifying the Connection Changes Use the EndUserSimulator virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the EndUserSimulator virtual machine. 2. Use the command prompt to rerun the CtxPrtChk utility on ports 1494 and 2598. The utility is able to connect to both ports successfully. 3. Use Internet Explorer to access and log on to the XenApp Web site at http://wis-1.cch.local using the CCHCitrixAdmin credentials. Launch Notepad. Notepad launches successfully. Another administrator who is also troubleshooting issues with the farm noticed that an incorrect Group Policy Object linked to the All XenApp Servers OU is responsible for many of the problems. You need to delete this GPO. 32 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  33. 33. 4. Close all open windows. 5. Switch to the XenAppController-1 virtual machine. 6. Access the Group Policy Management console and view the group policy objects attached to the All XenApp Servers organizational unit. Delete the Old_XA_GPO group policy object. a. Click Start > Administrative Tools > Group Policy Management. b. Expand the Forest: cch.local > Domains > cch.local nodes and click the All XenApp Servers node. c. Right-click the Old_XA_GPO group policy and click Delete. d. Click OK to delete the GPO link. 7. Use the GPUpdateALL script on the desktop to update the group policy on all XenApp servers. 8. Close all open windows. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 33
  34. 34. Exercise 1-4: Troubleshooting Streaming Applications Scenario You recently fixed all issues so that hosted applications can be launched through Web Interface. But you noticed another problem: published streamed applications are not being displayed in the Web Interface. You need to troubleshoot this issue and ensure that streamed applications can launch successfully for both administrators and users. Estimated time to complete this exercise: 30 minutes Investigating Absent Streaming Applications Use the EndUserSimulator virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the EndUserSimulator virtual machine. 2. Use Internet Explorer to access and log on to Web Interface at http://wis-1.cch.local using the CCHCitrixAdmin user. Verify whether Firefox is listed in the applications. As expected, Firefox—which is a streamed application—is not listed. You need to verify whether the application is published. 3. Switch to the XenAppController-1 virtual machine. 4. Use Citrix AppCenter console to verify that the Firefox application is published. a. Click Start > All Programs > Administrative Tools > Citrix > Management Consoles >Issue: The Offline Plug-in is not installed. Citrix AppCenter. Resolution: Student will have to install the Offline Plug- b. Click the Citrix Resources > XenApp > CCH > Applications node.in. 34 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc. c. Click Mozilla Firefox. d. Verify that the Mozilla Firefox application is enabled and streamed to client in the information tab. The Firefox application is published as expected. 5. Switch to the EndUserSimulator virtual machine. 6. Access the Citrix Receiver preferences to change the server of the Online Plug-in to http://wis- 1.cch.local. a. Right-click the Citrix Receiver icon in the icon tray and click Preferences. b. Right-click Online Plug-in and click Logon. c. Click I will enter the URL now, type http://wis-1.cch.local, and click Update. d. Click OK.
  35. 35. 7. Log on to Citrix Receiver using the CCHCitrixAdmin and verify if the Firefox application appears in the Start menu. Firefox also does not appear in the Start menu. 8. Navigate to the Uninstall a Program section of the Control Panel and verify that the Offline Plug-in is installed. a. Navigate to Start > Control Panel and click Uninstall a program. b. Scan the list of installed programs for the Offline Plug-in. The Offline Plug-in is not currently installed. You need to install it now. 9. Launch the XenApp installer from the DVD media. a. Click Start > Computer. b. Double-click CD Drive (D:) XA6.5_2008R2_ML and double-click autorun. 10. Follow the prompts to launch the Citrix Offline Plug-in installer common component. a. Click Manually install components and then click Common Components. b. Click Plug-ins and Streaming Profiler and then click Citrix Offline Plug-in. 11. Install the Citrix Offline Plug-in using the default settings. When prompted, restart the virtual machine. a. Click OK and click Next. b. Select I accept the license agreement and click Next. c. Click Install and then click Finish once the wizard completes the installation. Several additional software installation begins. d. Click Yes to restart the virtual machine. 12. Log on to the EndUserSimulator virtual machine as the CCHCitrixAdmin user. 13. Log on to Citrix Receiver using the CCHCitrixAdmin credentials, when prompted. Verify that Firefox is now listed in the Start menu. Firefox now appears in the Start > All Programs menu. 14. Use Internet Explorer to access and log on to Web Interface at http://wis-1.cch.local using the CCHCitrixAdmin user. Verify whether Firefox is listed in the applications. Firefox is still not listed on the XenApp Web site. A streaming application is available on the XenApp Service site but not the XenApp Web site, indicating that something is wrong with the XenApp Web site. 15. Close all open windows. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 35
  36. 36. Implementing and Verifying a Fix for Absent Streaming Applications Use the WebInterfaceServer-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the WebInterfaceServer-1 virtual machine. 2. Use the Citrix Web Interface Management console to view the "XenApp" XenApp Web site's summary information and see if anything looks incorrect in the configuration. Issue: The XenApp Web site is only configured for a. Click Start > All Programs > Citrix > Management Consoles > Citrix Web InterfaceOnline content. Management Console. Resolution: Student will have to change the resource type b. Click XenApp Web Sites node and view the information from the Summary tab.to offer dual mode content. 36 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc. The Resource types for the site specifies only Online content. This could be an issue preventing streaming applications from appearing on the Web Interface site. 3. Change the resource type of the "XenApp" XenApp Web site to dual mode. a. Right-click the XenApp Site Name and select Resource Types. b. Select Dual Mode and click OK. 4. Close all open windows and switch to the EndUserSimulator virtual machine. 5. Use Internet Explorer to access and log on to Web Interface at http://wis-1.cch.local using the CCHCitrixAdmin user. Verify whether Firefox is listed in the applications. The Firefox streaming application shows up as intended within Web Interface. 6. Attempt to launch Firefox and verify if it can be launched correctly. An error occurs stating that the profile path may be incorrect. 7. Attempt to launch Firefox through the Start menu to see if the same error appears. The same error appears as before. There must be an issue with the profile path. 8. Close all open windows. Fixing a Published Streaming Profile Path Issue Use the XenAppController-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the XenAppController-1 virtual machine. 2. Use the Citrix AppCenter console to view the Firefox application location property. Verify whether it looks correct. Issue: The path to the profile was entered as a local path. a. Right-click Mozilla Firefox from the Applications node in Citrix AppCenter and select Resolution: Student will have to modify the profile path Application properties. to be a UNC path. b. Click Location and view the Citrix streaming application profile address.
  37. 37. The profile address is incorrect. The profile address must be a UNC path and not a local path. 3. Change the Z: in the profile address to the share's UNC path dcfiler and select Mozilla Firefox as the application to launch. a. Select Z: from the Citrix streaming application profile address field and type dcfiler. The updated path is now dcfilerAppHubFirefoxFirefox.profile. b. Select Mozilla Firefox from the Application to launch menu. c. Click Apply and then click OK. 4. Close all open windows. 5. Switch to the EndUserSimulator virtual machine. 6. Launch the Firefox streaming application from the Start menu and verify whether it now launches as expected. If it does, specify not to import any data. a. Click Start > All Programs > Mozilla Firefox. b. Select Don't import anything and click Next. Firefox launches correctly for an administrator account. You now need to verify that a non- administrator can access streaming applications. 7. Log off of the EndUserSimulator virtual machine and log back on as the CCHTestUser account. 8. When prompted enter the URL for the Web Interface (http://wis-1.cch.local) and log on to Citrix Receiver using the CCHTestUser credentials. a. Click I will enter the URL now. b. Type http://wis-1.cch.local and click Update. c. Log on to Citrix Receiver using the CCHTestUser credentials. 9. Launch Firefox from the start menu and verify that you are able to launch the application successfully. When prompted, enter the CCHTestUser credentials. Windows Security reports that access is denied. There must be a permissions issue on the dcfiler share. 10. Close all open windows. Fixing an AppHub Permissions Issue Use the DomainController virtual machine logged in as the CCHAdministrator user for this task. 1. Switch to the DomainController virtual machine and log on as the CCHAdministrator user. © Copyright 2011 Citrix Systems, Inc. Module 1: Troubleshooting the XenApp Environment 37
  38. 38. 2. Access the C:Filer folder and view its file sharing permissions. Verify whether everything seems to be correct. Issue: The AppHub folder does not have the correct a. Click Start > Computer and navigate to C:.permissions for regular users to access the profiles. b. Right-click the Filer folder and select Properties.Resolution: Student will have to set the correct c. Select the Sharing tab and click Share.permissions of the AppHub folder for all users. 38 Module 1: Troubleshooting the XenApp Environment © Copyright 2011 Citrix Systems, Inc. d. Verify the file sharing permission levels for each user. e. Click Cancel and then Close to exit File Properties. All permissions seem to be correct. The Domain Users group has permissions to read/write to the share. 3. Access the C:Filer folder and view the AppHub folder file sharing permissions. Verify if everything seems to be correct. a. Double-click the Filer folder, right-click AppHub, and select Properties. b. Select the Sharing tab and click Share. c. Verify the file sharing permission levels for each user. There appears to be an issue. This folder is only available to administrators when it must be available for all Domain users. 4. Add the CCHDomain Users group and give it a read level permission. a. Type CCHDomain Users in the File Sharing and click Add. b. Verify that the Permission level drop-down arrow for CCHDomain Users is Read. c. Click Share, click Done, and then click Close. 5. Close all open windows. 6. Switch to the EndUserSimulator virtual machine. 7. Launch Firefox from the Start menu and verify that it launches correctly. The application launches successfully. 8. Close all windows and log off of the EndUserSimulator virtual machine. 9. Switch to the DomainController virtual machine and restart it.
  39. 39. Module 2 Scaling the XenApp Environment
  40. 40. 40 © Copyright 2011 Citrix Systems, Inc.
  41. 41. Exercise 2-1: Preparing to Clone a XenApp Server Scenario To ensure quick and easy expansion of the farm as the company grows, you decide to create a XenApp template that can be cloned, can be easily brought online into the farm, and can host Remind students to read the scenarios before each applications. exercise. The scenarios provide a lot of additional In order to create a cloned, yet completely unique server, you need to use the Sysprep tool to contextual information on the each exercise task. © Copyright 2011 Citrix Systems, Inc. Module 2: Scaling the XenApp Environment 41 generalize the clone. You must also create a Sysprep answer file using Microsoft System Preparation Tool to be used to automate the restoration process from the Sysprep state into an active member of the Active Directory tree. After you have completed the necessary answer file, a member of your team who is very experienced in scripting and creating answer files will verify your work and return to you a fully tested and fully functioning answer file. Estimated time to complete this exercise: 15 minutes Creating a Sysprep Answer File Use the XenAppWorker virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Log on to the XenAppWorker virtual machine as the CCHCitrixAdmin user. 2. Launch the Windows System Image Manager tool and create a new answer file. a. Click Start > All Programs > Microsoft Windows AIK > Windows System Image Manager. b. Click File > New Answer file and click Yes. 3. Select the "install_Windows Server 2008R2 SERVERENTERPRISE.clg" Windows image file located on the filer at dcfiler share and view all of the Windows Image Components nodes. a. Type dcfiler in the File name text box and press Enter. b. Double-click the install_Windows Server 2008R2 SERVERENTERPRISE.clg Windows image file. c. Expand the Components node in the Windows Image pane to view the component settings. 4. Add the amd64_Microsoft-Windows-UnattendedJoin component to the specialize node and set the JoinDomain setting in the Identification node to "cch.local". a. Right-click the amd64_Microsoft-Windows-UnattendedJoin setting and select Add setting to pass 4 specialize.
  42. 42. b. Expand the amd64_Microsoft-Windows-UnattendedJoin > Identification nodes in the Answer File pane. The Identification properties are displayed in the right pane. c. Click JoinDomain field in the Settings node, type cch.local and press Enter. 5. Specify the Domain as "cch.local," password as "Password1", and username as "CCHAdministrator" within the credentials node. a. Click the Credentials node in the Answer File pane. The Credentials Properties are displayed in the right pane. b. Click the Domain field in the Settings node and type cch.local. c. Click the Password field in the Settings node and type Password1. d. Click the Username field in the Settings node and type CCHAdministrator. This component provides information to automatically join the Active Directory domain during Sysprep. 6. Add the amd64_Microsoft-Windows-Shell-Setup and x86_Microsoft-Windows-Shell-Setup settings to the specialize node. a. Right-click the amd64_Microsoft-Windows-Shell-Setup setting and select Add setting to pass 4 specialize. b. Right-click the x86_Microsoft-Windows-Shell-Setup setting and select Add setting to pass 4 specialize. These settings are required to be added to perform an Unattended Join. 7. Add the amd64_Microsoft-Windows-IE-ESC setting to the specialize node. Specify "false" for both the IEHardenAdmin and IEHardenUser. a. Right-click the amd64_Microsoft-Windows-IE-ESC setting and select Add setting to pass 4 specialize. b. Click the amd64_Microsoft-Windows-IE-ESC node in the Answer File pane. The Microsoft-Windows-IE-ESC properties are displayed in the right pane. c. Click the IEHardenAdmin field in the Settings node and select false. d. Click the IEHardenUser field in the Settings node and select false. This component disables the Internet Explorer enhanced security control that is usually on by default. 8. Repeat the previous step for the x86_Microsoft-Windows-IE-ESC setting. 42 Module 2: Scaling the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  43. 43. 9. Add the amd64_Microsoft-Windows-Shell-Setup setting to the oobeSystem node. Specify "true" on the HideEULAPage setting in the OOBE node. Common Question: Why add the x86 components in a. Right-click the amd64_Microsoft-Windows-Shell-Setup setting and select Add setting to addition to amd64 when Windows Server 2008 R2 is 64- pass 7 oobeSystem. bit only? b. Expand the amd64_Microsoft-Windows-Shell-Setup node in the Answer File pane. Answer: Although Windows Server 2008 R2 is 64-bit, c. Select the OOBE node. many components are still x86. For example, Internet Explorer can be run both in 32-bit and 64-bit modes.The OOBE properties are displayed in the right pane. © Copyright 2011 Citrix Systems, Inc. Module 2: Scaling the XenApp Environment 43 d. Click the HideEULAPage field in the Settings node and select true. This component sets the "oobe" or Out of Box Experience for the system. It is being set to not display the EULA on first startup. 10. Repeat the previous step for the x86_Microsoft-Windows-Shell-Setup setting. 11. Add the x86_Microsoft-Windows-International-Core setting to the oobeSystem node. Specify "en-US" for each of these settings. a. Right-click the x86_Microsoft-Windows-International-Core setting and select Add setting to pass 7 oobeSystem. b. Click the x86_Microsoft-Windows-International-Core node in the Answer File pane. The Microsoft-Windows-International-Core properties are displayed in the right pane. c. Click the InputLocale field in the Settings node and type en-US . d. Click the SystemLocale field in the Settings node and type en-US. e. Click the UILanguage field in the Settings node and type en-US. f. Click the UILanguageFallback field in the Settings node and type en-US. g. Click the UserLocale field in the Settings node and type en-US. This component sets the default language information for the system. By setting this information during Sysprep, it will bypass a prompt for this information during first startup. 12. Save the answer file as unattend_untested.xml on the dcfilerSysprep_files share and close the Windows System Image Manager. a. Click File > Save Answer File As. b. Type dcfilerSysprep_files and press Enter. c. Type unattend_untested.xml and click Save. 13. Close all open windows. Preparing the XenApp Server for Imaging Use the XenAppController-1 virtual machine logged in as the CCHCitrixAdmin user for this task.
  44. 44. 1. Switch to the XenAppController-1 virtual machine. 2. Launch Citrix AppCenter and identify the servers in the CCH farm. a. Click Start > All Programs > Administrative Tools > Citrix > Management Consoles > Citrix AppCenter. b. Expand the CCH > Servers node, click the Servers node, and observe the servers listed. 3. Switch to the XenAppWorker virtual machine. 4. Use the Citrix XenApp Server Role Manager to edit the XenApp configuration. a. Click Start > All Programs > Administrative Tools > Citrix > XenApp Server Role Manager > XenApp Server Role Manager. b. Click Edit Configuration. After a few moments, the Citrix XenApp Server Configuration tool opens. 5. Prepare the server for imaging using the default provisioning options. Do not restart the virtual machine. a. Click Prepare this server for imaging and provisioning. b. Click Next to accept the default provisioning options and click Apply. c. Click Finish to complete the configuration. Do NOT restart the virtual machine. 6. Switch to the XenAppController-1 virtual machine. 7. Use the Citrix AppCenter console to view the current servers in the farm. a. Right-click Servers and click Refresh. b. Verify that the XAW-1 server is no longer present. The XAW-1 virtual machine is no longer present, because it was removed from the farm for provisioning. 8. Switch to the DomainController virtual machine and log on as the CCHAdministrator user. 9. Use the Active Directory Users and Computers console to delete the XAW-1 computer object from the domain. a. Click Start > Administrative Tools > Active Directory Users and Computers. b. Expand the cch.local node and click the Computers node. c. Right-click the XAW-1 server in the right pane. d. Click Delete and click Yes to confirm. 44 Module 2: Scaling the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  45. 45. Exercise 2-2: Cloning a XenApp Server Scenario A member of your team performed testing and troubleshooting on your Microsoft Sysprep answer file and returned to you a verified version of the file. Previously, you prepared the machine for imaging by creating the Sysprep answer file and running the XenApp imaging sequence. Now you must complete the process by performing a Sysprep on the machine. Once completed, you will be able to provision a XenApp server from this template and bring it online with no additional user intervention. Estimated time to complete this exercise: 20 minutes Performing Sysprep on XenAppWorker Use the XenAppWorker virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the XenAppWorker virtual machine. 2. Copy the dcfilerSysprep_filesxaw1_tested.xml file to the C:WindowsSystem32sysprep folder. Please note that any scripts or files created to perform the a. Click Start and type dcfilerSysprep_files. sysprep are not the same files created by students. Because so much can go wrong in the creation of these files, fullyb. Right-click the xaw1_tested.xml file and select Copy. tested pre-provided files are ultimately used in order toc. Browse to the C:WindowsSystem32sysprep folder. ensure consistant outcomes without any issues. d. Click Organize and select Paste. It is optional whether to disclose this fact to our students. © Copyright 2011 Citrix Systems, Inc. Module 2: Scaling the XenApp Environment 45 3. Start a command prompt and change the current directory to the C:WindowsSystem32sysprep folder. a. Click Start > Command Prompt. b. Type cd C:WindowsSystem32sysprep and press Enter to change your current directory. 4. Run the sysprep utility specifying for the utility to generalize the system, set to an out of the box experience, reboot, and to run through an unattended install using the xaw1_tested.xml answer file. a. Type sysprep /generalize /oobe /reboot /unattend:xaw1_tested.xml and press Enter. b. Allow the Sysprep process to complete and restart the system. The restart will simulate bringing up a brand new clone of the system.
  46. 46. To create a template from this virtual machine, specify the /shutdown command instead of the /reboot command. Viewing the Results Use the DomainController virtual machine logged in as the CCHAdministrator user for this task. 1. Switch to the DomainController virtual machine. 2. Periodically refresh the Computers list in the Active Directory Users and Computers console until the XAW-1 computer object is joined back into the domain. Once completed, move the Talking Points: XAW-1 server to the "All XenApp Servers" organizational unit. Explain what is happening during this process and why a. Right-click Computers and click Refresh. the it takes time to complete: b. Drag XAW-1 to the All XenApp Servers node and click Yes. • The sysprep command is being run reverting the virtual machine to the out of box experience. It may take as long as ten minutes for the XenAppWorker to recover from the sysprep • The sysprep process is generalizing the system by and rejoin the domain. removing all guids and unique identifiers. • The process is then restoring the specializations 3. Switch to the XenAppController-1 virtual machine. configuring in the sysprep answer file. 4. Periodically refresh the server list in Citrix AppCenter until the XAW-1 machine appears in the • It is running through scripts to emerge from the out server list. of box experience as a personalized unique server. Explain how this can be useful in conjunction with a It may take several more minutes for the XenAppWorker add itself back into the farm. hypervisors virtual machine template feature to allow for unlimited XenApp server clones to be added to the farm without any additional configuration. 46 Module 2: Scaling the XenApp Environment © Copyright 2011 Citrix Systems, Inc. This technique can be used to add new XenApp servers to the farm without any additional action. If the virtual machine was made into template while in its sysprepped state, a virtually unlimited number of these virtual machines could be provisioned from it and added to the farm quickly and without any OS or networking conflicts.
  47. 47. Exercise 2-3: Preparing a XenApp Server for Scripted Configuration Scenario The Citrix Engineer also wants to create a sysprepped template that uses scripting to configure XenApp on the system so administrators can customize the configuration to perform additional actions as need arises. Another administrator has prepared a virtual machine for this purpose. He has installed Citrix XenApp 6.5 on a Windows Server 2008R2 SP1 virtual machine but has not started the XenApp configuration. You need to perform the steps to prepare an answer file and the PowerShell script to perform the configuration. Then you need to perform a Sysprep so that the virtual machine can become a unique template. Estimated time to complete this exercise: 20 minutes Creating the Powershell Configuration Script Use the XenAppController-2 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Log on to the XenAppController-2 virtual machine as the CCHCitrixAdmin user. 2. Use Notepad to create a new document. Save the file as "scripted_configuration_untested.ps1" in the dcfilerLoginScriptsScripts_untested directory. a. Click Start > All Programs > Accessories > Notepad to open Notepad. b. Click File > Save As . c. Type dcfiler and press Enter. d. Navigate to the LoginScriptsScripts_untested folder. e. Name the file scripted_configuration_untested.psl and click Save. 3. Type the following command on the first line of the Notepad document to change the scripts working directory: cd 'C:Program Files (x86)CitrixXenAppServerConfig' 4. Specify the relative location of the XenAppConfigConsole tool on the next line and add the flags to specify the join execution mode, the farm name as CCH, and the IMA worker mode to false by typing: .XenAppConfigConsole.exe /ExecutionMode:Join /FarmName:CCH /IMAWorkerMode:false © Copyright 2011 Citrix Systems, Inc. Module 2: Scaling the XenApp Environment 47
  48. 48. 5. Continue on the same line, adding flags to specify the database username as CCHAdministrator, password as Password1: /OdbcUserName:CCHAdministrator /odbcPassword:Password1 6. Continue on the same line, adding flags to specify the license server name as dc and the location of the DSN file as C:Scriptsdatabase_info.dsn: /LicenseServerName:dc /DsnFile:'C:Scriptsdatabase_info.dsn' 7. Continue on the same line, adding flags to add all authenticated users to the Remote Desktop User Group but to not add the anonymous users or the users group. Type /AddAuthenticatedUsersToRemoteDesktopUserGroup:true /AddAnonymousUsersToRemoteDesktopUserGroup:false /AddUsersGroupToRemoteDesktopUserGroup:false 8. Type the Restart-computer PowerShell command on the next line to restart the computer and then save the script. a. Type Restart-computer on a new line. b. Click File > Save. The final code should look like the following: cd 'C:Program Files (x86)CitrixXenAppServerConfig' .XenAppConfigConsole.exe /ExecutionMode:Join /FarmName:CCH /IMAWorkerMode:false /odbcUserName:CCHAdministrator /OdbcPassword:Password1 /LicenseServerName:dc /DsnFile:'C:Scriptsdatabase_info.dsn' /AddAuthenticatedusersToRemoteDesktopUserGroup:true /AddAnonymousUsersToRemoteDesktopUserGroup:false /AddUsersGroupToRemoteDesktopUserGroup:false restart-computer 9. Close all open windows. The script above is designed to initiate the XenAppConfigConsole tool and provide the parametersPlease advise students that many of the line breaks above to configure and join the virtual machine to the farm. Once this is completed, the computer musthave auto-wrapped during formatting. Please refer to the be restarted to complete joining the farm.exercise steps to indicate where the appropriate line breaks should be. 48 Module 2: Scaling the XenApp Environment © Copyright 2011 Citrix Systems, Inc. Creating the Kickoff Batch File Use the XenAppController-2 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Use Notepad to create a new document. Save the file as "FirstLogonScript_untested.bat" in the //dc/filer/LoginScripts/Scripts_untested directory.
  49. 49. a. Click Start > All Programs > Accessories > Notepad to open Notepad. b. Click File > Save As. c. Type dcfiler and press Enter. d. Navigate to the LoginScriptsScripts_untested folder. e. Name the file FirstLogonScript_untested.bat and click Save. 2. Type powershell.exe -command "& {Set-ExecutionPolicy unrestricted - Force}" to run a PowerShell command, forcing the initial execution policy to be unrestricted. The PowerShell's default execution mode is set to "Restricted", which prevents all non- Microsoft scripts from running for security reasons. In order to run custom scripts, the execution mode needs to be changed to unrestricted mode first. 3. Type powershell.exe -noexit C:Scriptsscripted_configuration_untested.ps1 on the second line to run the script that was previously created. 4. Save the file and close Notepad. The final code should look like the following: powershell.exe -command "& {Set-ExecutionPolicy unrestricted - Force}" powershell.exe - noexit C:Scriptsscripted_configuration_script_tested.ps1 The script above will be executed by the Sysprep process which will then run the configuration script through PowerShell. Modifying a Sysprep Answer File for a Scripted Configuration Use the XenAppController-2 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Use the Windows System Image Manager tool to open the dcfilerSysprep_filesxaw-1_tested.xml answer file. Save the answer file as xac-2_untested.xml to the same location. a. Click Start > All Programs > Microsoft Windows AIK > Windows System Image Manager. Windows System Image Manager opens. b. Click File > Open Answer File and navigate to the dcfilerSysprep_files folder to open the xaw-1_tested.xml file. The answer file opens. c. Click File > Save Answer File As and save the answer file as xac-2_untested.xml in the same location. © Copyright 2011 Citrix Systems, Inc. Module 2: Scaling the XenApp Environment 49
  50. 50. 2. Add the AutoLogon and FirstLogonCommands nodes from the amd64_Microsoft-Windows- Shell-Setup component to the "7 oobeSystem" pass. a. Expand the Components > amd64_Microsoft-Windows-Shell-Setup node in the Windows Image pane. b. Right-click the AutoLogon and click Add Setting to Pass 7 oobeSystem. c. Right-click FirstLogonCommands and click Add Setting to Pass 7 oobeSystem. 3. Repeat the previous step for the x86_Microsoft-Windows-Shell-Setup component. 4. Specify the domain settings within the AutoLogon node as "CCH.local," and set the username to "CitrixAdmin," and set Enabled to "true." a. Click the AutoLogon node in the Answer file pane. The AutoLogon properties pane appears. b. Click the Domain field and type CCH.local. c. Click the Enabled field and type true. d. Click the Username field and type CitrixAdmin. 5. Specify "Password1" as the setting value for the Password node. a. Expand the Autologon node and click Password. b. Click the Value field in the Settings pane and type Password1. 6. Create a new SynchronousCommand in the FirstLogonCommand node. Specify the script location C:ScriptsFirstLogonScripts.bat as the command line, the order setting as 1, and the RequiresUserInput setting to false. a. Right-click FirstLogonCommands in the Answer File pane and click Insert New Synchronous Command. b. Click Synchronous Command. The Synchronous Command Properties pane appears. c. Click the CommandLine field and type C:ScriptsFirstLogonScript.bat d. Click in the Order field in the Synchronous Command Settings in the right pane and type 1. e. Click in the RequiresUserInput field and type false. 7. Repeat the previous three steps for the x86_Microsoft-Window-Shell-Setup component. 8. Save the file and close all open windows. 50 Module 2: Scaling the XenApp Environment © Copyright 2011 Citrix Systems, Inc.
  51. 51. Exercise 2-4: Performing a Scripted Configuration Scenario A member of your team performed testing and troubleshooting on your batch, PowerShell scripts, and the Sysprep answer file and returned to you tested versions of the files to use. Previously you prepared the machine for imaging by creating the Sysprep answer file, created a PowerShell script to perform the configuration, and created a batch script to initiate the process. Now you must complete the process by performing a Sysprep on the system. Estimated time to complete this exercise: 20 minutes Performing Sysprep on XenAppController-2 Use the DomainController virtual machine logged in as the CCHAdministrator user for this task. 1. Switch to the DomainController virtual machine. 2. Use the Active Directory Users and Computers console to delete the XAC-2 computer object from the domain. a. Click Computers in the cch.local node of the Active Directory Users and Computers console. b. Right-click XAC-2 and select Delete. c. Click Yes to confirm. 3. Switch to the XenAppController-2 virtual machine. 4. Copy the dcfilerSysprep_filesxac2_tested.xml to the C:WindowsSystem32sysprep folder. Please note that any scripts or files created to perform the a. Click Start and type dcfilerSysprep_files. sysprep are not the same files created by students. Because so much can go wrong in the creation of these files, fullyb. Right-click the xac2_tested.xml file and select Copy. tested pre-provided files are ultimately used in order toc. Browse to the C:WindowsSystem32sysprep folder. ensure consistant outcomes without any issues. d. Click Organize and select Paste. It is optional whether to disclose this fact to our students. © Copyright 2011 Citrix Systems, Inc. Module 2: Scaling the XenApp Environment 51 5. Copy the dcfilerLoginScriptsScripts folder to C:. a. Navigate to the dcfilerLoginScripts folder. b. Right-click Scripts and click Copy. c. Browse to C:, click Organize, and select Paste. 6. Start a command prompt and change the current directory to the C:WindowsSystem32sysprep folder. a. Click Start > Command Prompt.
  52. 52. b. Type cd C:WindowsSystem32sysprep and press Enter to change your current directory. 7. Run the sysprep utility specifying for the utility to generalize the system, set to an out of the box experience, reboot, and to run through an unattended install using the xac2_tested.xml answer file. a. Type sysprep /generalize /oobe /reboot /unattend:xac2_tested.xml and press Enter. b. Allow the sysprep process to complete and restart the system. The restart will simulate bringing up a brand new clone of the system. To create a template from this virtual machine, specify the /shutdown command instead of the /restart command. Viewing the Results of the Scripted Configuration Use the DomainController virtual machine logged in as the CCHAdministrator user for this task. 1. Switch to the DomainController virtual machine. 2. Periodically refresh the Computers list in the Active Directory Users and Computers console until the XAC-2 computer object is joined back into the domain. Once completed, move the Talking Points: XAC-2 server to the "All XenApp Servers" organizational unit. Explain what is happening during this process and why a. Right-click Computers and click Refresh. the it takes time to complete: b. Drag XAC-2 to the All XenApp Servers node and click Yes. • The sysprep command is being run reverting the virtual machine to the out of box experience. It may take up to ten minutes for the XenAppController-2 to recover from the sysprep • The sysprep process is generalizing the system by and rejoin the domain. removing all guids and unique identifiers. • The process is then restoring the specializations 3. Switch to the XenAppController-1 virtual machine. configuring in the sysprep answer file. 4. Periodically refresh the server list in Citrix AppCenter until the XAC-2 machine appears in the • The computer boots and runs the kickoff script which server list. runs the XenApp configuration script and then restarts. It may take several more minutes for the XenAppController-2 virtual machine to add Explain how this can be useful in conjunction with a itself back into the farm. hypervisors virtual machine template feature to allow for unlimited XenApp server clones to be added to the farm This technique can be used to add new XenApp servers to the farm without any additional action.without any additional configuration. Using a script can If the virtual machine was made into a template while in its sysprepped state, a virtually unlimitedallow for more specialized behavior of the virtual machine number of these virtual machines could be provisioned from it and added to the farm quickly andin how it joins the farm and configures itself. 52 Module 2: Scaling the XenApp Environment © Copyright 2011 Citrix Systems, Inc. without any OS or networking conflicts.
  53. 53. Module 3 Creating Farm Redundancy
  54. 54. 54 © Copyright 2011 Citrix Systems, Inc.
  55. 55. Exercise 3-1: Load Balancing Web Interface and XML Services Using Citrix NetScaler Scenario CCH has standard 09:00 to 17:00 working hours, which means that traffic dramatically increases at 09:00 as employees come into the office, start up their computers, access the Web Interface, and Remind students to read the scenarios before each launch their applications. To ensure that the request load is spread evenly during this time, you exercise. The scenarios provide a lot of additional decide to load balance the Web Interface servers as well as the XML service. contextual information on the each exercise task. © Copyright 2011 Citrix Systems, Inc. Module 3: Creating Farm Redundancy 55 Another administrator created a domain user account called "HealthMonitor" for you to use in configuring the Health Monitoring feature. Estimated time to complete this exercise: 20 minutes Setting Up Load Balancing Use the XenAppController-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the XenAppController-1 virtual machine. 2. Use Internet Explorer to navigate to http://ns.cch.local and log on with the credentials nsroot/nsroot. a. Click Start > Internet Explorer and navigate to http://ns.cch.local/. b. Log on to the Netscaler VPX Web Interface using the nsroot/nsroot credentials. 3. Use the Load Balancing node to launch the Load Balancing wizard for Citrix XenApp. a. Click the Load Balancing node in the left pane. b. Click the Load Balancing wizard for Citrix XenApp link under Getting Started in the Load Balancing pane. 4. Begin configuring load balancing for the Web Interface servers by adding a new virtual server with the address 192.168.1.180. Specify that the virtual server use port 80 and the HTTP protocol. a. Click Next to proceed to the Load Balance Web Interface servers page. b. Type 192.168.1.180 in the Virtual Server IP Address field, and type 80 in the Virtual Server Port field. c. Select HTTP from the Protocol menu. 5. Add IP addresses for both WebInterfaceServer-1 (192.168.1.130) and WebInterfaceServer-2 (192.168.1.135) virtual machines on port 80. a. Type in 192.168.1.130 in the Web Interface Servers IP Address field, type 80 in the Port field, and click Add. b. Type in 192.168.1.135 in the Web Interface Servers IP Address field and click Add.
  56. 56. 6. Configure Health Monitoring by adding the CCHHealthMonitor/Password1 credentials. Make the site path "/Citrix/XenApp". a. Select Validate Credentials. b. Type HealthMonitor in the User Name field and Password1 in the Password field. c. Type CCH in the Domain Name field. d. Type /Citrix/XenApp/ in the Site Path field. e. Click Next to proceed to the Load Balance XML Broker servers screen. 7. Configure load balancing for the XML Broker servers by creating a new virtual server with the address 192.168.1.185. Specify for the virtual server to use port 80 and the HTTP protocol. a. Type 192.168.1.185 in the Virtual Server IP Address field and type 80 in the Virtual Server Port field. b. Select HTTP from the Protocol menu. 8. Add IP addresses for both XenAppController-1 (192.168.1.110) and XenAppController-2 (192.168.1.115) virtual machines on port 80. a. Type 192.168.1.110 in the XML Broker Servers IP Address field, type 80 in the Port field, and click Add. b. Type 192.168.1.115 in the XML Broker Servers IP Address field and click Add. 9. Ensure that Notepad is listed as the Health Monitoring Application Name and then complete the Load Balancing Wizard for Citrix XenApp. a. Verify that Notepad is present in the Health Monitoring Application Name field. The Health Monitoring feature will verify the existence of this application within the feed from the XML service to determine the health of the XML Broker. b. Click Next to proceed to the Summary page. c. Click Finish and Exit to close the Load Balancing Wizard for Citrix XenApp. Verifying the Load Balancing Configuration Use the XenAppController-1 virtual machine logged on as the CCHCitrixAdmin user for this task. 1. View the Load Balancing virtual servers and verify that the Web Interface and XML entries show green and "up" as their State and Effective State, respectively. a. Expand the Load Balancing node and click on Virtual Servers. b. Verify that the load balancing virtual servers titled XA_WI_EXT_192.168.1.180_80_lbvip and XA_XML_192.168.1.185_80_lbvip appear and show green and "up" as their State and Effective State, respectively. 56 Module 3: Creating Farm Redundancy © Copyright 2011 Citrix Systems, Inc.
  57. 57. These virtual servers will take incoming Web Interface and XML connections and forward the traffic to their respective servers based on state. It may take a few moments for the virtual servers to register as "up." Refresh the Load Balancing Virtual Servers pane after a minute, if they appear to be "down." 2. View the Load Balancing Service Groups and verify that the Web Interface and XML entries show green and "up" as their State and Effective State, respectively. If a student is having trouble with a NetScaler a. Click the Service Groups sub-node in the left-hand pane. configuration at any time try the following: b. Verify that the service groups titled XA_WI_EXT_192.168.1.180_80_svcg and • Close and reopen Internet Explorer and try again to XA_XML_192.168.1.185_80_svcg appear and show "enabled" and "up" as their State and verify the work. Effective State, respectively. • Restart the EndUserSimulator virtual machine and try again to verify the work. These service groups indicate the state of the servers that the NetScalers will forward • Restart the NetScaler virtual machine without savingconnections to for each service. the configuration and ask the student to retry the exercise.This exercise was written so that students test 3. View the network IP addresses of the NetScaler and verify that there are new virtual IP their work to ensure it works before saving the addresses 192.168.1.180 and 192.168.1.185 and that they are listed as "Active" and "Enabled." NetScaler's configuration. a. Expand the Network > IPs node in the left-hand pane. • Replace the ns.conf file located in the /nsconfig directory on the NetScaler with the ns.conf.bak fileb. Verify that virtual IP addresses 192.168.1.180 and 192.168.1.185 appear and that they are within the same directory to reset the NetScaler to thelisted as "Active" and "Enabled." start of class configuration. © Copyright 2011 Citrix Systems, Inc. Module 3: Creating Farm Redundancy 57 Configuring DNS to the Virtual Servers Use the DomainController virtual machine logged in as the CCHAdministrator user for this task. 1. Switch to the DomainController virtual machine. 2. Use the DNS Manager console to add a new host to the cch.local forward lookup zone. a. Click Start > Administrative Tools > DNS. b. Expand the DC > Forward Lookup Zones nodes and click the cch.local node. c. Right-click cch.local and select New Host (A or AAAA). The New Host dialog box appears. 3. Specify xmlbrokers as the name, 192.168.1.185 as the IP address, and add the host. a. Type xmlbrokers in the Name field. b. Type 192.168.1.185 in the IP Address field. c. Click Add Host and click OK to create the new host entry. 4. Add another new host to the cch.local forward lookup zone. Specify "webinterface" as the name and 192.168.1.180 as the IP address. a. Type webinterface in the Name field. b. Type 192.168.1.180 in the IP Address field and click Add Host.
  58. 58. c. Click OK and click Done to close the New Host dialog box. 5. Close all open windows. Updating the Web Interface Servers to Use the Load- Balanced XML Brokers Use the WebInterfaceServer-1 virtual machine logged in as the CCHCitrixAdmin user for this task. 1. Switch to the WebInterfaceServer-1 virtual machine. 2. Use the Citrix Web Interface Management console to view the farm settings of the existing "XenApp" XenApp Web site. a. Click Start > All Programs > Citrix > Management Consoles > Citrix Web Interface Management. b. Click the XenApp Web Sites node. c. Right-click XenApp and click Server Farms. d. Double-click the CCH farm. 3. Update the Server Farms settings to list a single XML server named xmlbrokers.cch.local. a. If present, select the xac-2.cch.local server and click Remove. b. Double-click the xac-1.cch.local server, change the name to xmlbrokers.cch.local, and click OK. c. Click OK and click OK to close the Manage Server Farms dialog box. 4. View the farm settings of the existing PNAgent XenApp Services site. a. Click the XenApp Services Sites node. b. Right-click PNAgent and select Server Farms. c. Double-click the CCH farm. 5. Update the Server Farms settings to list a single XML server named xmlbrokers.cch.local. a. Select the xac-2.cch.local server and click Remove. b. Double-click xac-1.cch.local, change the name to xmlbrokers.cch.local, and click OK. c. Click OK twice to close the Manage Server Farms dialog box. 6. Close all open windows. 7. Repeat steps 2-6 on the WebInterfaceServer-2 virtual machine as the CCHCitrixAdmin user. 58 Module 3: Creating Farm Redundancy © Copyright 2011 Citrix Systems, Inc.
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×