Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Best Practices to Get the Most Out of Your Citrix VIrtual Apps and Desktops Deployments

243 views

Published on

Over the years, Citrix Virtual Apps and Desktops environments have become more sophisticated. New features and functionalities have been added to the Citrix stack, many new technologies are supported now, and there are new deployment options such as Citrix Cloud.

We at eG Innovations are bringing together 3 distinguished Citrix CTPs – George Spiers, David Wilkinson and Dennis Span – to talk about some of the most common questions heard in the field regarding Citrix Virtual Apps and Desktops implementation and management. Learn about:

• How to configure Profile Management policies
• How to support Office 365 users in Cached Exchange Mode
• Optimization tips for Windows 10 and Windows Server 2016
• Tips for using App Layering, WEM, Office 365, Google Chrome, and more

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Best Practices to Get the Most Out of Your Citrix VIrtual Apps and Desktops Deployments

  1. 1. 1 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com Best Practices to Get the Most Out of Your Citrix Virtual Apps and Desktops Deployments ─ An eG Innovations Webinar ─ Lessons From The Field. Wisdom from Citrix Gurus.
  2. 2. 2 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com Webinar Logistics • Moderator: Vinod Mohan – Sr. Product Marketing Manager, eG Innovations • Questions are welcome through the course of the webinar – Use the questions panel on the GoToWebinar chat client to type in your queries • This webinar is being recorded – You will receive a link to the recording in a few days
  3. 3. 3 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com Know Your Speakers George Spiers David Wilkinson Dennis Span Three Eminent Citrix Technology Professionals @WilkyIT@JGSpiers @DennisSpan
  4. 4. 4 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com Agenda GS Office 365 Profile Management Optimization & Sealing Google Chrome App Layering WEM
  5. 5. 5 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com eG Innovations and Citrix • Leading provider of Citrix performance monitoring solutions – Purpose-built for Citrix environments – Helps diagnose & troubleshoot performance problems – Used in some of the largest Citrix deployments in the world • Citrix technology partner since 2003 • Certified Citrix Ready for all products in the Citrix stack • Citrix itself uses eG for monitoring their global tradeshow event infrastructures
  6. 6. 6 © 2019 Citrix 1. Tips & Best Practices Office 365 DW
  7. 7. 7 © 2019 Citrix Office 365 – 3 Main Challenges 1.Outlook Cache OST DW 2.OneDrive for Business 3.Outlook Search
  8. 8. 8 © 2019 Citrix Office 365 – Products • Choose the right product! • Citrix App Layering • Office 365 User Layer • User Layer • Citrix User Profile Management (7.18 or above) • Other 3rd Party solutions • Microsoft/FSLogix, Ivanti Workspace, Liquidware, Vmware UEM etc.. • Understand the limitations of each! DW
  9. 9. 9 © 2019 Citrix Office 365 – Outlook (Cached Exchange Mode) • Limit OST Size • Reduce the Sync Period • Reduces the Local storage required DW
  10. 10. 10 © 2019 Citrix Office 365 – Outlook (Cached Exchange Mode) • Network / Storage Impact • Field test show 300+ IOPS required for initial cache creation • Average of 5 Write IOPS / 8 Read IOPS per User! DW • Permissions • Ensure appropriate access is granted to VHD(x) directory as this may be above and beyond the normal permissions required for Citrix UPM.
  11. 11. 11 © 2019 Citrix Office 365 – Outlook (Search) • Why? • End User Experience is key! • Rebuilding your search index takes time and resources from your VDA DW • Search Service • Ensure Windows Search Service is started, and set to automatic (Not Enabled by Default in WS2012) • Provisioning Services Device Optimization Tool disables this service, remember to re-enable Before After
  12. 12. 12 © 2019 Citrix Office 365 – OneDrive for Business • Enable Files on Demand • 1TB per user, usually more than that • Only sync’s the files used • Citrix Files Personal Cloud Connector • Enable Files on Demand DW
  13. 13. 13 © 2019 Citrix 2. Tips & Best Practices Profile Management GS
  14. 14. 14 © 2019 Citrix Profile Management – General Tips • Keep the profile as small as possible. Exclude, exclude, exclude! • Folder Redirection • Exclude AppDataLocal • Enable default exclusion lists Logon impact: 1000 logons per week + 10sec increase = 2.7hrs per week GS
  15. 15. 15 © 2019 Citrix Profile Management – General Tips • Container based technologies (VHDX) • Captures your complete profile through profile disk • Microsoft acquisition of FSLogix & WVD • Monitor your profile servers closely • A logon is a sensitive process – lack of resource will slow logons GS
  16. 16. 16 © 2019 Citrix Profile Management – General Tips • Start Menu Tile. Understand it! • Default layout, allow change or not, partial changes! • Capturing Profile changes • Windows Server 2016 • Windows 10 1803 onwards • (captured by default in latest CPM version) GS
  17. 17. 17 © 2019 Citrix Profile Management - Large File Handling/Profile Containers • No need to cache large files/folders to the VDA, CPM creates a symbolic link • Avoids caching or streaming the file/folder to the desktop • Large Files supported in CVAD 7.16 and above • Profile Container supported in CVAD 1903 and above GS
  18. 18. 18 © 2019 Citrix Profile Management – Logon Exclusion Check • Exclude unwanted files and folders from caching to the desktop ever again • Reduce profile bloat after initial deployment • Proactively keep on top of user profile size to combat logon time increases GS
  19. 19. 19 © 2019 Citrix 3. Tips & Best Practices Optimizations & Image Sealing DS
  20. 20. 20 © 2019 Citrix Operating System Citrix VDA Anti-Virus Visual C++ Runtimes Applications SealingOptimization .Net Framework Citrix Receiver Citrix UPM Citrix Target Device Image Preparation – The Different Phases DS
  21. 21. 21 © 2019 Citrix Optimizations – Why do It!  Better performing desktops  Lower logon times  Lower RAM, CPU, IOPS consumption  Increased user density GS
  22. 22. 22 © 2019 Citrix Optimizations – The Result! Before After 30 Second Reduction on Logon times! GS
  23. 23. 23 © 2019 Citrix 3. Optimizations – Under the Hood Services Scheduled Tasks UWP Apps Registry Tweaks BrancheCache Location Notifications Zune Video Disable First Logon Animation Fax Scheduled Defrag Windows Alarm Change Power Plan to High Performance Xbox Live Game Save RegIdleBackup Zune Music Hide hard error messages Offline Files XblGameSaveTask Xbox App Disable crash dump creation “The act of making an operating system as effective as it can possibly be”. GS Miscellaneous Optimizations Disable Active Setup Run NGEN.exe Disable System Recovery Disable Data Execution Prevention (DEP)
  24. 24. 24 © 2019 Citrix Optimizations – Available Methods Optimizations Citrix Optimizer v2 Scripts by George Spiers OS Supported URL WS2012 R2 https://www.jgspiers.com/windows-server-2012-r2-optimisation-script/ WS2016 https://www.jgspiers.com/windows-server-2016-optimisation-script/ W10 1709 https://www.jgspiers.com/windows-10-1709-optimisation-script/ W10 1803 https://www.jgspiers.com/windows-10-1803-optimisation-script/ Scripts by David Wilkinson OS Supported URL WS2012 R2 WS2016 WS2019 W10 1607 -> 1809 https://support.citrix.com/article/CTX224676 https://dennisspan.com/creating-a-custom-template-for-citrix-optimizer/ https://dennisspan.com/citrix-optimizer-custom-template-windows- server-2016/ OS Supported URL WS2016 https://wilkyit.com/2017/04/28/citrix-xenapp-and-windows-server-2016- optimisation-script/ W10 1607/1703 https://wilkyit.com/2017/05/08/citrix-xendesktop-and-windows-10- optimisation-script-2/ Templates by Dennis Span GS
  25. 25. © 2019 Citrix Outside the Image Additional (logon) Optimizations DS
  26. 26. 26 © 2019 Citrix • Use as few as possible • Avoid duplicate settings in multiple policies • Try to avoid WMI filters and LDAP-based Item-Level Targeting filters • (Optional) Use a different product to manage your user settings, such as (WEM) DS Other Recommended Optimizations Group Policies
  27. 27. 27 © 2019 Citrix Computer Configuration / Policies / Administrative Templates / System / Group Policy Group Policies – Speed Up Logons Computer Configuration / Policies / Administrative Templates / System / Logon DS
  28. 28. 28 © 2019 Citrix Computer Configuration / Policies / Administrative Templates / System / Scripts Group Policies – Logon Scripts Computer Configuration / Policies / Administrative Templates / System / Group Policy DS
  29. 29. 29 © 2019 Citrix Scripts, Drive Mappings, Anti-Virus & More… Scripts for end-users (logon scripts, scheduled tasks, run keys, AD) • Scripts have a negative impact on user logon times • Keep your scripts to a minimum or avoid scripts by moving functions to other tools (e.g. move drive mapping to Workspace Environment Manager or Group Policy Preferences) • Refactor existing scripts (e.g. use “if” statements, “where” clauses, avoid LDAP queries, etc.) Anti-virus exclusions (on TechZone) https://docs.citrix.com/en-us/tech-zone/build/tech-papers/antivirus-best-practices.html Go easy on drive & printer mapping. Make them persistent if possible. Optimize your profile solution DS
  30. 30. 30 © 2019 Citrix Sealing… …is about de-personalizing and cleaning the image in order to create a generic image suitable for deployment to multiple machines DS
  31. 31. • Reset Windows Update ID • Reset Performance Counters • Reset anti-virus settingsDelete ghost devices • Delete locally cached profiles • Delete Windows Update software distribution folder • Delete Windows event logs • Flush DNS / clear ARP cache • Rearm operating system once • Rearm Microsoft Office once Base Image Script Framework (BIS-F) Main author and developer: Matthias Schlimm (CTP) - @MatthiasSchlimm Download: https://eucweb.com/download-bis-f Documentation: https://eucweb.com/docs DS
  32. 32. 32 © 2019 Citrix 4. Tips & Best Practices App Layering GS
  33. 33. 33 © 2019 Citrix App Layering – General Tips • Machine OS Tools do not need to be upgraded in the OS Layer after upgrades. • Use the Export/Import feature to export and import layers to a secondary ELM, for example a testing or backup ELM appliance. • If running ngen /update before finalizing a layer, you may run into bug. • Modifying NTUSER.DAT in multiple layers will NOT work. • Do not create users or groups in any layer other than the OS layer. GS
  34. 34. 34 © 2019 Citrix App Layering – General Tips • When creating a Directory Junction, under Server Address, enter the domain name. • When upgrading the ELM, use Snapshots as a roll back option. GS
  35. 35. 35 © 2019 Citrix App Layering – Elastic Layers Elastic Layers are mapped to a users session at logon. • Citrix recommend that the Elastic Layer file share runs off a file server with a 10GB network connection VDA, and uses SMB3. • Make sure the share is highly available. • App Layering 4.14 loads Elastic Layers after logon by default. GS
  36. 36. 36 © 2019 Citrix App Layering – Elastic Layers Elastic Layers are mapped to a users session at logon. • Don’t depend on the Elastic Fit feature – perform your own testing! • Office 2016 cannot be used as an Elastic Layer. • You can re-use Application layers with a new OS Layer, but it comes with risk! GS
  37. 37. 37 © 2019 Citrix 5. Tips & Best Practices Google Chrome DW
  38. 38. 38 © 2019 Citrix Is Google Chrome Supported on Citrix? Yes! DW
  39. 39. 39 © 2019 Citrix Publishing Chrome "C:Program Files (x86)GoogleChromeApplicationchrome.exe" --allow- no-sandbox-job --disable-gpu-sandbox No longer required since Chrome version 58 "C:Program Files (x86)GoogleChromeApplicationchrome.exe" DW
  40. 40. 40 © 2019 Citrix Publishing Chrome Disabling Citrix API hooks (for 32-bit Chrome on 64-bit Windows only) Key: HKEY_LOCAL_MACHINESOFTWARECitrixCtxHook Value: ExcludedImageNames (REG_SZ) Data: chrome.exe,nacl64.exe How to Disable Citrix API Hooks on a Per-application Basis https://support.citrix.com/article/CTX107825 DW
  41. 41. 41 © 2019 Citrix Disable Chrome Cleanup to Prevent Server Crashes Google Chrome Software Reporting Tool (Cleanup Tool): C:Users%UserName%AppDataLocalGoogleChromeUser DataSwReporter%ToolVersion%software_report_tool.exe DS
  42. 42. 42 © 2019 Citrix Deploying Chrome Extensions Using Group Policy Download the Chrome bundle for Windows (https://cloud.google.com/chrome- enterprise/browser/download/) and copy the ADMX files to the Group Policy central repository (%logonserver%sysvol%domain%PoliciesPolicyDefinitions). https://clients2.google.com/service/update2/crx DS
  43. 43. 43 © 2019 Citrix Deploying Chrome Extensions Using Group Policy manifest.json DS
  44. 44. 44 © 2019 Citrix Reducing Chrome Resource Consumption DS
  45. 45. 45 © 2019 Citrix • Add a GPU to your physical server Reducing Chrome Resource Consumption • Citrix Workspace Environment Manager’s CPU and Memory management • Using an extension that suspends inactive tabs (such as “The Great Suspender”) DS
  46. 46. 47 © 2019 Citrix Reducing Chrome Resource Consumption • Citrix Browser Content Redirection (BCR) DS • On the VDA • Chrome version 66 + • CVAD 7.15 CU3 (LTSR) or CVAD 7.16 (CR) and higher • On the local client • Citrix Workspace app 1808 and higher
  47. 47. 48 © 2019 Citrix 6. Tips & Best Practices Workspace Environment Manager (WEM) WEM Logo? GS
  48. 48. 49 © 2019 Citrix WEM – The Purpose Group Policies Logon Scripts Drive Mapping Printer Mapping 40 – 80 seconds Without WEM GS
  49. 49. 50 © 2019 Citrix WEM – The Purpose 15 – 25 seconds WEM Agent With WEM GS
  50. 50. 51 © 2019 Citrix WEM – CPU Management • Enable CPU Spikes Protection & Enable Intelligent CPU Optimization • Helps protect the user experience by lowering the priority of process if it exceeds the CPU Usage limit. • Repeat offenders are penalized by less CPU priority GS
  51. 51. 52 © 2019 Citrix WEM – Memory Management Idle Session without WEM Idle Session with WEM GS
  52. 52. 53 © 2019 Citrix Summary: Key Takeaways GS Understand the technologies that are available to help with your Office 365 deployments Design your user profile solution with profile size and logon times in mind. Understand the settings that can help deliver an optimised profile solution Perform optimisations and sealing on your gold images to benefit from lower hypervisor resource consumption and a better user experience For a successful App Layering deployment, understand the best practices and limitations of the product When deploying Google Chrome, there are several best practices to reduce resource consumption, manage extensions and reduce crashes WEM can lower CPU/RAM resource and offer lower logon times by shifting Group Policy processing to an after-logon set of tasks
  53. 53. 54 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com Synthetic and Real User Experience Citrix and Supporting Infrastructure End-to-End Performance Correlation Reports, Analytics, Machine Learning Monitor Every Layer, Every Tier For End-to-End Visibility Pinpoint Root Cause of Problems for Troubleshooting Right-size & Optimize for Maximum Performance Measure All Aspects of Citrix User Experience 1 2 3 4 How eG Innovations Helps Citrix Customers
  54. 54. 55 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com
  55. 55. 56 © 2019 Citrix© eG Innovations, Inc. | www.eginnovations.com Thank You! Contact eG Innovations for more information on Citrix monitoring: www.eginnovations.com info@eginnovations.com George Spiers David Wilkinson Dennis Span @WilkyIT@JGSpiers @DennisSpan

×