Tips and Best Practices For Getting The Best From Your Virtual Apps and Desktops
Tips and Best Practices For Getting The Best From Your Virtual Apps and Desktops
Tips and Best Practices For Getting The Best From Your Virtual Apps and Desktops
#CitrixSynergy
#SYN214
#CitrixCTP #CitrixSynergy
1 © 2019 Citrix
Dennis Span
Citrix Technology Professional
@dennisspan
https://dennisspan.com
Speakers https://wilkyit.com
George Spiers
Citrix Technology Professional
@JGSpiers
https://jgspiers.com
#CitrixSynergy
#SYN214
#CitrixCTP
2 © 2019 Citrix
What's on the Agenda for the Session?
Profile
Management App Layering
Office 365
Google
Optimization Chrome
&
Sealing WEM
GS
3 © 2019 Citrix
1. Tips & Best Practices
Office 365
DW
4 © 2019 Citrix
Office 365 – 3 Main Challenges
1.Outlook Cache OST
3.Outlook Search
DW
5 © 2019 Citrix
Office 365 – Products
• Choose the right product!
• Citrix App Layering
• Office 365 User Layer
• User Layer
DW
6 © 2019 Citrix
Office 365 – Outlook (Cached Exchange Mode)
DW
7 © 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!
• Permissions
• Ensure appropriate access is granted to VHD(x) directory as this may be above and beyond the normal
permissions required for Citrix UPM.
DW
8 © 2019 Citrix
Office 365 – Outlook (Search)
• Why?
• End User Experience is key!
• Rebuilding your search index takes time and resources from your VDA
• 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
DW
9 © 2019 Citrix
Office 365 – OneDrive for Business
• Enable Files on Demand
• 1TB per user, usually more than that
• Only sync’s the files used
DW
10 © 2019 Citrix
2. Tips & Best Practices
Profile Management
GS
11 © 2019 Citrix
Profile Management – General Tips
Logon impact: 1000 logons per week + 10sec increase = 2.7hrs per week
GS
12 © 2019 Citrix
Profile Management – General Tips
GS
13 © 2019 Citrix
Profile Management – General Tips
GS
14 © 2019 Citrix
Profile Management - Large File Handling/Profile Containers
• No need to cache large files/folders
to the VDA, CPM creates a symbolic
link
GS
16 © 2019 Citrix
3. Tips & Best Practices
DS
17 © 2019 Citrix
Image Preparation – The Different Phases
Optimization Sealing
Applications
Operating System
DS
18 © 2019 Citrix
Optimizations – Why do It!
ü Better performing ü Lower logon times ü Lower RAM, CPU, ü Increased user
desktops IOPS consumption density
GS
19 © 2019 Citrix
Optimizations – The Result!
Before After
GS
20 © 2019 Citrix
3. Optimizations – Under the Hood
“The act of making an operating system as effective as it can possibly be”.
GS
21 © 2019 Citrix
Optimizations – Available Methods
Citrix Optimizer OS Supported URL
v2 WS2012 R2
https://support.citrix.com/article/CTX224676
WS2016
Templates by WS2019 https://dennisspan.com/creating-a-custom-template-for-citrix-optimizer/
https://dennisspan.com/citrix-optimizer-custom-template-windows-
Dennis Span W10 1607 -> 1809
server-2016/
Optimizations
OS Supported URL
Scripts by WS2016 https://wilkyit.com/2017/04/28/citrix-xenapp-and-windows-server-2016-
David Wilkinson optimisation-script/
W10 1607/1703 https://wilkyit.com/2017/05/08/citrix-xendesktop-and-windows-10-
optimisation-script-2/
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/
Scripts by W10 1709 https://www.jgspiers.com/windows-10-1709-optimisation-script/
GS
George Spiers W10 1803 https://www.jgspiers.com/windows-10-1803-optimisation-script/
22 © 2019 Citrix
Outside the Image
Additional (logon) Optimizations
DS
© 2019 Citrix
• Use as few as possible
• Avoid duplicate settings in
Other Recommended
multiple policies Optimizations
• Try to avoid WMI filters and
LDAP-based Item-Level
Targeting filters Group Policies
• (Optional) Use a different
product to manage your
user settings, such as (WEM)
DS
24 © 2019 Citrix
Group Policies – Speed Up Logons
Computer Configuration / Policies / Administrative Computer Configuration / Policies / Administrative
Templates / System / Group Policy Templates / System / Logon
DS
25 © 2019 Citrix
Group Policies – Logon Scripts
Computer Configuration / Policies / Computer Configuration / Policies / Administrative
Administrative Templates / System / Scripts Templates / System / Group Policy
DS
26 © 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.)
DS
28 © 2019 Citrix
Base Image Script Framework
(BIS-F)
• 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
Download: https://eucweb.com/download-bis-f
Documentation: https://eucweb.com/docs
Main author and developer:
DS Matthias Schlimm (CTP) - @MatthiasSchlimm
4. Tips & Best Practices
App Layering
GS
30 © 2019 Citrix
App Layering – General Tips
• 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.
• Do not create users or groups in any layer other than the OS layer.
GS
31 © 2019 Citrix
App Layering – General Tips
GS
32 © 2019 Citrix
App Layering – Elastic Layers
Elastic Layers are mapped to a users session at logon.
GS
33 © 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!
• You can re-use Application layers with a new OS Layer, but it comes with risk!
GS
34 © 2019 Citrix
5. Tips & Best Practices
Google Chrome
DW
35 © 2019 Citrix
Is Google Chrome Supported on Citrix? Yes!
DW
36 © 2019 Citrix
Publishing Chrome
DW
37 © 2019 Citrix
Publishing Chrome
Disabling Citrix API hooks (for 32-bit Chrome on 64-bit Windows only)
Key: HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\CtxHook
Value: ExcludedImageNames (REG_SZ)
Data: chrome.exe,nacl64.exe
DS
39 © 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%\Policies\PolicyDefinitions).
ndjpnladcallmjemlbaebfadecfhkepb;https://clients2.google.com/service/update2/crx
DS
40 © 2019 Citrix
Deploying Chrome Extensions Using Group Policy
manifest.json
DS
41 © 2019 Citrix
Reducing Chrome Resource Consumption
DS
42 © 2019 Citrix
Reducing Chrome Resource Consumption
• Add a GPU to your physical server
• Using an extension that suspends inactive tabs (such as “The Great Suspender”)
DS
43 © 2019 Citrix
Reducing Chrome Resource Consumption
• Citrix Browser Content Redirection (BCR)
Workspace Environment
Manager (WEM)
WEM Logo?
GS
46 © 2019 Citrix
WEM – The Purpose
40 – 80 seconds
GS
47 © 2019 Citrix
WEM – The Purpose
With WEM
GS
48 © 2019 Citrix
WEM – CPU Management
GS
49 © 2019 Citrix
WEM – Memory Management
GS
50 © 2019 Citrix
Don’t forget to Tweet about
this session with hashtags
© 2019 Citrix
Thank you for your
attention!