Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

48
Best Practices for Implementing, Administering, and Troubleshooting XenDesktop 7.5 Shaun Wendland, Senior Escalation Engineer Citrix Support Webinar – June 24 & 25, 2014

description

Recording from this webinar can be found here: http://www.citrix.com/tv/#videos/11549 Citrix XenDesktop introduced a number of new concepts and processes for Desktop Administrators. Understanding these advancements and their effect on is key to a stable XenDesktop environment. This session will discuss core deployment and configuration concepts and considerations and provide proven practices for troubleshooting the top three XenDesktop issues. What you will learn - Concepts for successful deployment of a XenDesktop site - Configuring a typical site and understanding the common challenges - Troubleshooting registration, connection, and machine creation issues - Citrix Quick Launch

Transcript of Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

Page 1: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

Best Practices for Implementing, Administering, and Troubleshooting XenDesktop 7.5

Shaun Wendland, Senior Escalation EngineerCitrix Support Webinar – June 24 & 25, 2014

Page 2: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.2

Architecture and design considerations for a successful deployment

Administration habits to help maintain and support a XenDesktop 7.5 site

Troubleshooting tips and the top three problem types

Resources discussed, Q&A

Agenda

Page 3: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

Best Practices for ImplementingThe XenDesktop 7.5 architecture and considerations for successful deployment

Page 4: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.4

XenDesktop 7.5 architecture

Virtual DesktopAgent

Delivery Controller

SQL Database

Page 5: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.5

XenDesktop 7.5 architectureThe XenDesktop Delivery Controller

Facilitates distribution of applications and desktops

Coordinates with hypervisor

Manages the desktop states

Authenticates and manages user access

Brokers connections between users and target resources

Page 6: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.6

XenDesktop 7.5 architectureThe XenDesktop Delivery Controller

Delivery Controller ServicesAD Identity Service

Machine Creation Service

Configuration Service

BrokerService

Host Service

Delegated Admin Service

Configuration Logging Service

Citrix Environment Test Service

Monitoring Service

NEW (7.x)NEW (7.x)

NEW (7.x)NEW (7.x)

NEW (7.x)

Page 7: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.7

XenDesktop 7.5 architectureThe XenDesktop Database

Stores Site configuration, Configuration Logging, and Monitoring data

Persistent DB availability is required

High-Availability and Fault Tolerance options• Mirroring • Clustering• Leveraging hypervisor H/A features• Support for SQL 2012 AlwaysOn Availability Groups

Page 8: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.8

XenDesktop 7.5 architectureThe XenDesktop Database

Security• Each controller has its own SQL login to

the database- Machine account – DOMAIN\MACHINE$

• Controller permissions are restricted

• No rights to change the schemas

Use this box as a guideline for proper image placement. Place your image on top and align to box.

Page 9: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.9

XenDesktop 7.5 architectureThe XenDesktop Database

Support for assigning your site, configuration logging, and monitoring schemas into separate databases

Page 10: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.10

XenDesktop 7.5 architectureThe XenDesktop Virtual Desktop Agents

Performs controller registration and manages the HDX connection

VDA types

• Workstation VDA- Single-user

• Server VDA- Multi-user- Remote Desktop Services (RDS) coordinates connections

Page 11: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.11

Sites?

Users?

From where?External access?

Internal access?

Resources? Hypervisor?

Storage? Bandwidth?

How many images?Dedicated?

Pooled?

PvD?

Updates?

Images?

Maintenance?

Thin clients?

How frequently?

Mobile devices?

Random or static?

Security restrictions?

Which users?

“It depends…”

CGP?

Page 12: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.12

Design Best Practices

Understand the product design and basic how-tos• XenDesktop 7.5 eDocs

Understand the factors within your environment that influence the design• Citrix Virtual Desktop Handbook 7.x• Citrix XenDesktop 7.5 Blueprint Whitepaper

Leverage Citrix design resources• Project Accelerator

Page 13: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.13

Project Accelerator http://project.citrix.com

Design

Assess

Page 14: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

Administration Best PracticesHabits and pointers for maintaining a XenDesktop 7.5 environment

Page 15: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.15

Administrative Best Practices

Take care of your XenDesktop database!

Establish a regular backup schedule

Occasionally review the size XenDesktop database transaction logs• DB growth due to VDA communication CTX139508• May be preferable to use Simple recovery mode

Do a dry run of a failover scenario

Page 16: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.16

Manually redirecting your XenDesktop site to a failover database location• XenDesktop SDK PowerShell cmdlets:

Administrative Best PracticesManual failover

1. Load XenDesktop snap-ins.

2. Get the existing database connection strings.

Add-PSSnapin Citrix*

Get-LogDataStoreGet-MonitorDataStore

Page 17: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.17

Manually redirecting your XenDesktop site to a failover database location• XenDesktop SDK PowerShell cmdlets:

Administrative Best PracticesManual failover

3. Set a variable for the new connection string.

4. Disable configuration logging.

$cs = "Server=sqlsrvr2012b;Initial Catalog=XD75Site;Integrated Security=True“

Set-LogSite -State Disabled

Page 18: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.18

Manually redirecting your XenDesktop site to a failover database location• XenDesktop SDK PowerShell cmdlets:

Administrative Best PracticesManual failover

5. Remove all the current database connections

Page 19: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.19

Set-LogDBConnection -DataStore Logging -DBConnection $nullSet-MonitorDBConnection -DataStore Monitor -DBConnection $nullSet-MonitorDBConnection -DBConnection $nullSet-AcctDBConnection -DBConnection $nullSet-ProvDBConnection -DBConnection $nullSet-BrokerDBConnection -DBConnection $nullSet-EnvTestDBConnection -DBConnection $nullSet-SfDBConnection -DBConnection $null Set-HypDBConnection -DBConnection $nullSet-ConfigDBConnection -DBConnection $null -forceSet-LogDBConnection -DBConnection $null -forceSet-AdminDBConnection -DBConnection $null -force

Administrative Best PracticesRemoving current database connections

Page 20: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.20

Manually redirecting your XenDesktop site to a failover database location• XenDesktop SDK PowerShell cmdlets:

Administrative Best PracticesManual failover

5. Remove all the current database connections

6. Set all the database connections to the new connection string

Page 21: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.21

Set-ConfigDBconnection -DBConnection $csSet-AdminDBconnection -DBConnection $csSet-LogDBconnection -DBConnection $csSet-AcctDBconnection -DBConnection $csSet-BrokerDBconnection -DBConnection $csSet-EnvTestDBconnection -DBConnection $csSet-HypDBconnection -DBConnection $csSet-MonitorDBconnection -DBConnection $csSet-ProvDBconnection -DBConnection $csSet-SfDBconnection -DBConnection $csSet-LogDBConnection -DataStore Logging -DBConnection $csSet-MonitorDBConnection -DataStore Monitor -DBConnection $cs

Administrative Best PracticesSetting the database connections

Page 22: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.22

Manually redirecting your XenDesktop site to a failover database location• XenDesktop SDK PowerShell cmdlets:

Administrative Best PracticesManual failover

7. Re-enable configuration logging

8. For confirmation, test Broker Service connectivity

Set-LogSite -State Enabled

Test-BrokerDBConnection $(Get-BrokerDBConnection)

Page 23: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.23

Administrative Best Practices

Director offers real-time assessment of a XenDesktop environment

Provides details regarding the health of the various XenDesktop components

Offers functionality for troubleshooting machines, sessions, and connections

Page 24: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.24

Administrative Best PracticesPerformance Monitoring Using Director

Infrastructure health overview• Hosting alerts• Delivery Controller service,

database, & license statuses

VDA health• Failed start-ups and boots• Unregistered machines• Current load (Server OS)• Connected systems• Logon times

Page 25: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.25

Administrative Best PracticesPerformance Monitoring Using Director

Page 26: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.26

Administrative Best PracticesPerformance Monitoring Using Director

Session and connection health• Activity manager• Session details• Machine details

Page 27: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

Troubleshooting Best PracticesTechniques for troubleshooting XenDesktop 7.5 and the top three problem types

Page 28: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.28

Troubleshooting Best PracticesWhen bad things happen to good environments

This is the first I’ve tried this and it’s not working.

Something changed and I didn’t do it.

Something changed and I’m the one that caused it.

Page 29: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.29

Troubleshooting Best PracticesMethodology

Investigate

Analyze

Implement

Page 30: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.30

Troubleshooting Best PracticesGathering data

XenDesktop data collection • Deliver Controller Logging

- Event logs- Controller service logging

• VDA Logging- Event logs- BrokerAgent logging- PortICA logging

• Scout- Environmental data- XDPing- CDF Tracing

Page 31: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.31

Troubleshooting – Machine creationCase study: Catalog creation fails with an “unknown error” exception

Page 32: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.32

Troubleshooting – Machine creationCase study: Catalog creation fails with an “unknown error” exception

Page 33: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.33

Troubleshooting – Machine creationCase study: Catalog creation fails with an “unknown error” exception

New-ProvScheme -AdminAddress 'sw-xd75-ddc-01.get.services.citrite.net:80' -HostingUnitName 'Synergy Demo Resources' -IdentityPoolName 'Synergy Demo' -LoggingId 85ed5a85-28a4-48f6-80b9-816a6585ef45 -MasterImageVM 'XDHyp:\HostingUnits\Synergy Demo Resources\SW-VDA-W7x64-01.vm\Old Base.snapshot\Base.snapshot\VDA 7.1 RTM (Build 4033).snapshot\Citrix_XD_Synergy Demo.snapshot' -NetworkMapping @{'0'='XDHyp:\HostingUnits\Synergy Demo Resources\Happy Little VDA Network.network'} -ProvisioningSchemeName 'Synergy Demo' -RunAsynchronously -Scope @() -VMCpuCount 2 -VMMemoryMB 2048

Page 34: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.34

Troubleshooting – Machine creationCase study: Catalog creation fails with an “unknown error” exception

Page 35: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.35

Troubleshooting – RegistrationCase study: Recently-booted pooled VDAs are intermittently not registering

Test VDA -> Controller communication• Ping the FQDN of the Controller• Telnet to the IP address of the Controller on port 80• Review port usage on the Controller using Netstat

Test Controller -> VDA communication• Ping the FQDN of the VDA• Telnet to the IP address of the VDA on port 80• Review port usage on the VDA using Netstat

Confirm the time on both the Controller and the VDA

Page 36: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.36

Troubleshooting – RegistrationCase study: Recently-booted pooled VDAs are intermittently not registering

Verify ListOfDDCs value in the registry

Page 37: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.37

Troubleshooting – RegistrationCase study: Recently-booted pooled VDAs are intermittently not registering

Verify ListOfDDCs value in the registry

Use Scout / XDPing to identify issues between the VDA and Controller

Enable VDA logging / Capture CDF traces

Page 38: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.38

Troubleshooting – ConnectionCase study: Workstation VDA connection fails with no error

Desktop Viewer is loading• Request is made to the Delivery Controller• ICA file is received• Connection attempt to the VDA is being made

Gathered VDA CDF traces to review for potential cause

Page 39: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.39

Troubleshooting – ConnectionCase study: Workstation VDA connection fails with no error

Page 40: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.40

Troubleshooting – ConnectionCase study: Workstation VDA connection fails with no error

Dynamic memory settings• Hyper-V Startup memory

- 32-bit: ≥1.5 GB- 64-bit: ≥2.5 GB

Page 41: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

Next StepsBest Practices for Implementing, Administering, and Troubleshooting XenDesktop 7.5

Page 42: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.42

Resources XenDesktop 7.5 eDocs – http://

support.citrix.com/proddocs/topic/xenapp-xendesktop/cds-xenapp-xendesktop-75-landing.html

Virtual Desktop Handbook 7.x – http://support.citrix.com/article/CTX139331

XenDesktop 7.5 Blueprint Whitepaper – http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/xendesktop-deployment-blueprint.pdf

Project Accelerator – http://project.citrix.com/

XenDesktop 7.x Database Sizing – http://support.citrix.com/article/CTX139508

Citrix Blog: “New” Citrix Best Practices – http://blogs.citrix.com/2014/01/02/new-citrix-best-practices/

Page 43: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.43

Webinar Series Landing Page

Page 44: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.44

Next Webinar: July 2014 Title: How to Protect Against top Web Security Issues With Citrix NetScaler

Description: This session will cover some of the industry-standard OWASP Top 10, a list describing the most prevalent security attacks on production environments.

We will cover the Citrix NetScaler appliance and its role in shutting down these common vulnerabilities, and how to effectively do so through the use of the Application Firewall and protection features.

When: July 29th & 30th

June 29th – Register NowJune 30th – Register Now

Page 45: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.45

Fuel your talent with continuous learning.

Citrix Education offers the following technical training for Virtualization professionals:

CXD-203: Managing App and Desktop Solutions with Citrix XenDesktop 7

CXD-300: Deploying App and Desktop Solutions with Citrix XenApp and XenDesktop 7.5

Visit (bit.ly/05Webinar) to save 10% off through July 30*

*Not valid with any other promotions, packages, discounts or practice exams.. Applies only to new purchases. Regional limitations may apply.

Page 46: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.46

New Citrix Practice ExamsAccelerate Your Path to Certification

Available on training.citrix.com ($39 each):

CPE-350 – Citrix NetScaler 10 Essentials and Networking Practice Exam

CPE-300 – Deploying XenDesktop 7 Solutions Practice Exam

CPE-A22 – Citrix XenApp 6.5 Advanced Administration Practice Exam

http://bit.ly/CitrixPracticeExams

Page 47: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

Q&ABest Practices for Implementing, Administering, and Troubleshooting XenDesktop 7.5

Page 48: Best practices for implementing, administering, and troubleshooting XenDesktop 7.5

© 2014 Citrix. Confidential.48

WORK BETTER. LIVE BETTER.