How to Troubleshoot the XenDesktop VDA

30
How to Troubleshoot the XenDesktop VDA Karen Sciberras Escalation Engineer

description

How to Troubleshoot the XenDesktop VDA. Karen Sciberras Escalation Engineer. Agenda. How to troubleshoot effectively XenDesktop Architecture Troubleshooting VDA Connectivity Tools Case Studies. Effective Troubleshooting. Narrowing down the faulting component - PowerPoint PPT Presentation

Transcript of How to Troubleshoot the XenDesktop VDA

Page 1: How to Troubleshoot the XenDesktop VDA

How to Troubleshoot the XenDesktop VDAKaren SciberrasEscalation Engineer

Page 2: How to Troubleshoot the XenDesktop VDA

• How to troubleshoot effectively

• XenDesktop Architecture

• Troubleshooting VDA Connectivity

• Tools

• Case Studies

Agenda

Page 3: How to Troubleshoot the XenDesktop VDA

• Narrowing down the faulting component

• Collect further information for rapid debugging

• Avoids different root causes treated as same issue

• Avoids issue being handed around the teams

• Helps resolving the root cause instead of the symptoms

Effective Troubleshooting

Page 4: How to Troubleshoot the XenDesktop VDA

• Understand the architecture

• Learn the shortcuts and tips

• Preserve the VDA state

How to effectively troubleshoot issues?

Page 5: How to Troubleshoot the XenDesktop VDA

XenDesktop Broker System Architecture

WIDDC Servers

VDAs(VMs, Blade PCs)

AD

ICA

Web Service

Web

Ser

vice

LDAP

VM Host(XenServer, Hyper-V, VMware)

LDAP

Licensing

User

• Desktop Delivery Controller (Broker) Farm

• Uses core XenApp technology

• IMA, licensing, Web Interface, XML

• Delivers and controls access to virtual desktops

• VDA technology independent

• User authentication / single sign on

• VM power management

• ICA policy decision

Page 6: How to Troubleshoot the XenDesktop VDA

DDCDDC

XenDesktop Architecture

Workstation(VM or blade PC)

Workstation(VM or blade PC)

Workstation(VM or blade PC)

Workstation(VM or blade PC)

VDAVDA

DriversDrivers

Citrix ICA Svc

Citrix ICA Svc

Citrix Desktop Svc

Citrix Desktop Svc

“XTE” Svc“XTE” Svc

IMAProxy IMAProxy Pool ManagerPool Manager

Controller SvcController Svc

IMAIMA

WCFXML SvcXML Svc

Page 7: How to Troubleshoot the XenDesktop VDA
Page 8: How to Troubleshoot the XenDesktop VDA

VDAVDA

VDA Registration

VDA DDC

AD

WCF

DDC ServerDDC Server

Controller Service

Controller Service

IMAIMA Service starts, looks up farm OU Service queries DC for all SCPs in that OU

DDC service receives connection OS retrieves Kerberos ticket for DDC and initiates a connection through WCF

Service looks up VDA computer account

Service selects one DDC at random, looks up DDC computer account

DDC checks that computer account (SID) is in published group in IMA Service initiates WCF connection to VDA and sends XML blob

Call succeeds, VDA marked registered

Service validates that caller is member of “Controllers” group, and sets configuration from XML Blob

LDAP

Desktop ServiceDesktop Service

XML Blob

Page 9: How to Troubleshoot the XenDesktop VDA
Page 10: How to Troubleshoot the XenDesktop VDA

Troubleshooting VDA Connectivity

Page 11: How to Troubleshoot the XenDesktop VDA

Desktop SvcICA Svc

(PicaSvc)

ICA Stack

XenDesktop Brokering

Clicks on desktop group

Web Interface

Request for brokering

DDC

VDA

StartListening()

(Listening)

StartListening()

Launch.icaEnd user

Page 12: How to Troubleshoot the XenDesktop VDA

Desktop Svc

ICA Svc (PicaSvc)

ICA Stack

XenDesktop ICA ConnectionVDAEnd user

TcpIp.sys

CGPService

Authentication

PicaDisplayMgr

Thinwire

Lock()

ConnectionAccept()

SetRemotePushPrelogonData()

To DDC: Exchange Ticket

Logon

ICA Connection

Page 13: How to Troubleshoot the XenDesktop VDA

• Orchestrates ICA connection, components, and features

• Event driven (Connect, Disconnect, Logon, Logoff, etc.)

• State machine per session to handle events

ICA Service (PicaSvc)

Page 14: How to Troubleshoot the XenDesktop VDA
Page 15: How to Troubleshoot the XenDesktop VDA

• Most important log file in the VDA

• Allows us to narrow down the faulting component

• How to configure: KB Article CTX118837

• Use trace level 5

• Level 9 is excessive for initial troubleshooting

ICA Service Log File

Page 16: How to Troubleshoot the XenDesktop VDA
Page 17: How to Troubleshoot the XenDesktop VDA

• Thread ID

• Entry/Exits

• State Machines Traces

• Session IDs

• PicaSvc log file common pitfalls• Search terms that need to be avoided. (error, exception, broken)• Instead search for “fail”

• Filtering the trace messages

Anatomy of the PicaSvc log file

Page 18: How to Troubleshoot the XenDesktop VDA

Troubleshooting Tools

Page 19: How to Troubleshoot the XenDesktop VDA

• XDPing

• Clear-text CDF Tracing•Log files: Workstation Agent log, PortICA log

• CDF Control

• CDF Marker• PerfMon, PsExec,

Troubleshooting Tools

Page 20: How to Troubleshoot the XenDesktop VDA
Page 21: How to Troubleshoot the XenDesktop VDA

• RPC_S_INVALID_BINDING is not a real error

• “ConnectAccept failed” is an ICA stack problem

• Next step: CDF• MF_Driver_Wdica• Portica_Driver_Picadd• Portica_Driver_Td

• Provide the CDF log with the PicaSvc log for further analysis

Case 1

Page 22: How to Troubleshoot the XenDesktop VDA
Page 23: How to Troubleshoot the XenDesktop VDA

• First few SwitchDisplayToLocal failure is not fatal. State machine shows success.

• No issues found on the VDA

• Next step:•Collect traces from DDC and Workstation Agent•Collect network trace from client to verify if ICA Connection attempt

Case 2

Page 24: How to Troubleshoot the XenDesktop VDA

• Enable Clear-Text CDF tracing

• Read through Log file using Session Parser•Historical usage•Detailed Session data•Connection tracking per user or per workstation

Desktop Delivery Controller Log

Page 25: How to Troubleshoot the XenDesktop VDA
Page 26: How to Troubleshoot the XenDesktop VDA

• XDPing – CTX123278

• DDC and WorkStation Agent Logs – CTX117453

• ICA Service (PortICA Log) – CTX118837

• CDF Marker – CTX124577

• CDF Marker and PSExec – CTX125345

• Session Parser – CTX124012

KB Articles

Page 27: How to Troubleshoot the XenDesktop VDA

• CDFMarker may not send a CDF Trace Message from the Command Line - CTX125346

• How to Use CDFMarker and PerfMon when a Process Intermittently Spikes - CTX125347

• How to Use CDFMarker to Add CDF Tracing to Batch Files and Scripts - CTX125486

• How to Use CDFMarker to Mark an Intermittent End User Issue in a CDF Trace - CTX125503

• How to Use CDFMarker and PerfMon to Identify Large LHC Writes - CTX125634

• How to Mark High Bandwidth in a CDF Trace using CDFMarker and PerfMon - CTX125724

• How to Mark a Service Termination in a CDF Trace using CDFMarker - CTX125736

• How to Mark when a Process Crash Occurs in a CDF Trace using CDFMarker - CTX125750

CDFMarker

Page 28: How to Troubleshoot the XenDesktop VDA

Importance of troubleshooting effectively

XenDesktop Architecture and Logon Process

XdPing

Log file on the DDC Controller Svc and VDA Desktop Svc

Log file on the ICA Service

Remote tracing – CDF Control, CDF Marker and PSExec

Session parser to read DDC log file

Takeaways

Page 29: How to Troubleshoot the XenDesktop VDA

Before you leave…

• Recommended related breakout sessions: • Debugging XenApp and XenDesktop Issues by Lalit Kaushal.

• Session surveys are available online at www.citrixsummit.com starting Thursday, 7 October• Provide your feedback and pick up a complimentary gift card at the registration desk

• Download presentations starting Friday, 15 October, from your My Organiser Tool located in your My Synergy Microsite event account

Page 30: How to Troubleshoot the XenDesktop VDA