Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ramon Scott – Lead Escalation Engineer Configuring & Troubleshooting XenDesktop Sites August 29, 2013 Citrix Support Secrets Webinar Series.

Similar presentations


Presentation on theme: "Ramon Scott – Lead Escalation Engineer Configuring & Troubleshooting XenDesktop Sites August 29, 2013 Citrix Support Secrets Webinar Series."— Presentation transcript:

1 Ramon Scott – Lead Escalation Engineer Configuring & Troubleshooting XenDesktop Sites August 29, 2013 Citrix Support Secrets Webinar Series

2 © 2012 Citrix | Confidential – Do Not Distribute Presenter Bio: Ramon Scott 2 Over 17 Years of Experience in IT Joined Citrix in April 2010 Started directly into the Escalation Team – primary focus on XenApp Assigned as the Dedicated Engineer for a Major Strategic Account from Q Moved to XenDesktop team in July 2011 Additional details Bachelor’s Degree in Information Technology with a specialization in Network Administration Certifications: CCA, CCNA, CCDA, MCSE and MCITP-EA

3 © 2012 Citrix | Confidential – Do Not Distribute Presentation Goals 3  Provide an Understanding of the Architecture  Instruct on How to Configure  Provide Proven Troubleshooting Methodologies and Resources

4 High-Level XenDesktop Database And Services Architecture

5 © 2012 Citrix | Confidential – Do Not Distribute Database

6 © 2012 Citrix | Confidential – Do Not Distribute Supported Databases: SQL Server 2008 SP1 / 2008R2 (including Express) Database Schema Full Relational Schema Tables, Views, Stored Procedures Single Database (for core product) Multiple SQL ‘Schemas’ in Database ‘Schemas’ map onto Windows services running on Broker XenDesktop 5 Database Overview Broker Database

7 © 2012 Citrix | Confidential – Do Not Distribute Setup Process XD Console Single Admin Broker 1. Schema Database 2. Schema XD Admin 3. Verify XD Admin credentials used Separate Admins XD Console Broker 1. Schema Database 3. Schema XD Admin 4. Verify SQL Server Console SQL Admin 2. Schema “Export” (SQL script) SQL Admin credentials used

8 © 2012 Citrix | Confidential – Do Not Distribute Database Access Security Access Model  Network Service Account “ NT AUTHORITY\NETWORK SERVICE”  Computer Account “ DOMAIN\MACHINE$” SQL Login per Broker Restricted permission set  Brokers do not have rights to change schema Controller Database Controller Broker Service Controller Database Controller Broker Service Database

9 © 2012 Citrix | Confidential – Do Not Distribute Broker is critically dependant on Database Existing connections not impacted Creating new connections and reconnecting to desktops impacted Database Failure = Broker Failure Supported Database H/A Options: (expected popularity order) 1.SQL Mirror 2.Virtual Machine H/A 3.SQL Cluster Database High-Availability Citrix Confidential - Do Not Distribute

10 © 2012 Citrix | Confidential – Do Not Distribute Database Schema Roles and Permissions XenDesktop ServiceDatabase Role AD Identity Service (Acct)ADIdentitySchema_ROLE Broker Service (Broker)chr_Broker chr_Controller Central Configuration Service (Config)ConfigurationSchema_ROLE Machine Creation Service (PvsVM)DesktopUpdateManagerSchema_ROLE Hosting Management Service (Hyp)HostingUnitServiceSchema_ROLE Machine Identity Service (Prov)MachinePersonalitySchema_ROLE

11 © 2012 Citrix | Confidential – Do Not Distribute Health Checks: XDDBDiag Provided consistency data check on the data Provides connectivity verification It also provides the following:  Virtual Desktop Agent Information  Hypervisor Connections Information  Policy Information  Controller Information  Desktop Groups Information  SQL Information  Current Connections / Connection Log

12 © 2012 Citrix | Confidential – Do Not Distribute Services

13 © 2012 Citrix | Confidential – Do Not Distribute Machine Creation Services Broker Service Infrastructure Services XenDesktop 5 Services Architecture 13 Controller Broker Service Machine Creation Service Machine Creation Service AD Identity Service Machine Identity Service Host Service Configuration Service Configuration Service Virtual Desktop Agent (VDA) WinRM 2.0 [5985/5986] Desktop Studio WCF [80] PowerShell Desktop Director WCF [80] PowerShell SQL Server Windows Communication Foundation (WCF)

14 © 2012 Citrix | Confidential – Do Not Distribute Service Status XenDesktop ServicePowerShell Cmdlet AD Identity Service (Acct)Get-AcctServiceStatus Broker Service (Broker)Get-BrokerServiceStatus Central Configuration Service (Config)Get-ConfigServiceStatus Machine Creation Service (Prov)Use Get-ProvServiceStatus Hosting Management Service(Hyp)Get-HypServiceStatus Machine Identity Service (PvsVM)Get-PvsvmServiceStatus

15 © 2012 Citrix | Confidential – Do Not Distribute Machine Creation

16 © 2012 Citrix | Confidential – Do Not Distribute Desktop Catalog models Existing Dedicated Pooled Pooled with personal vDisk Streamed Streamed with personal vDisk Base Image App Profile App Profile App Profile PvD Image Profile Base Image with Apps Base Image with Apps Streamed Base Image with Apps Streamed Base Image App Profile App Profile App Profile PvD *Image Streamed from Citrix Provisioning Server (PVS) *Image created with Machine Creation Services (MCS) *Image created outside of XenDesktop

17 © 2012 Citrix | Confidential – Do Not Distribute Desktop Catalog models PVS Streamed Virtual Physical Streamed with PvD Virtual Only MCS Pooled Random Static Pooled with PvD* Dedicated PreAssigned First Use * Behaves like pooled-static

18 © 2012 Citrix | Confidential – Do Not Distribute MCS – ID Disk, Difference Disk, Base VM Virtual Desktop 1 Diff Disk ID Disk VHD Chain Windows 7 Master This is what the user sees as Drive C:\ This is hidden from the users view Virtual Desktop 2 Diff Disk ID Disk VHD Chain Virtual Desktop x Diff Disk ID Disk VHD Chain Storage Subsystem

19 © 2012 Citrix | Confidential – Do Not Distribute MCS with PvD – ID Disk, Diff Disk, Base VM, PVDisk Virtual Desktop 1 VHD Chain Windows 7 Master Diff Disk ID Disk Personal vDisk This part is hidden from user Merged with the Diff Disk Seen by user as Drive C:\ E.g. Installed apps This part is hidden from user Merged with the Diff Disk Seen by user as Drive C:\ E.g. Installed apps Seen by the user as Drive P:\ USERDATA e.g. My Documents Free space is the split allocation Seen by the user as Drive P:\ USERDATA e.g. My Documents Free space is the split allocation PVDisk auto-created during catalog creation by copying PvD template from Base VM 10GB by default with 50 / 50 split for App Data / User Data PVDisk auto-created during catalog creation by copying PvD template from Base VM 10GB by default with 50 / 50 split for App Data / User Data

20 © 2012 Citrix | Confidential – Do Not Distribute PVS – Streamed vDisk, Cache, Base VM Virtual Desktop 1 Streamed vDisk Streamed vDisk Write Cache PVS Stream Windows 7 Master This is what the user sees as Drive C:\ Visible file on another disk, typically D:\ Virtual Desktop 2 Streamed vDisk Streamed vDisk Write Cache PVS Stream Virtual Desktop x Streamed vDisk Streamed vDisk Write Cache PVS Stream Storage Subsystem

21 © 2012 Citrix | Confidential – Do Not Distribute PVS with PvD–Streamed vDisk, Cache, Base PVS with PvD–Streamed vDisk, Cache, Base VM, PvDisk Virtual Desktop 1 PVS Stream Windows 7 Master Streamed vDisk Write Cache Personal vDisk This part is hidden from user Seen by user as Drive C:\ E.g. Installed apps This part is hidden from user Seen by user as Drive C:\ E.g. Installed apps Seen by the user as Drive P:\ USERDATA e.g. My Documents Free space is the split allocation Seen by the user as Drive P:\ USERDATA e.g. My Documents Free space is the split allocation PvDisk auto-created during catalog creation by copying PvD template from Base VM 10GB by default with 50 / 50 split for App Data / User Data PvDisk auto-created during catalog creation by copying PvD template from Base VM 10GB by default with 50 / 50 split for App Data / User Data

22 © 2012 Citrix | Confidential – Do Not Distribute Where are some of the common Issue ? Hypervisor communication Domain permissions Previously failed attempts still present in database Host Connection configured with incorrect storage Naming convention on the host

23 © 2012 Citrix | Confidential – Do Not Distribute What logs do we need for this issue ? 23 Machine Creation Services Broker Service Infrastructure Services Broker Broker Service Machine Creation Service Machine Creation Service AD Identity Service Machine Identity Service Host Service Configuration Service Configuration Service Desktop Studio WCF [80] PoSH SQL Server

24 © 2012 Citrix | Confidential – Do Not Distribute Troubleshooting Methodology 24 Understand issue history Verify configuration, error logs and alerts Gather and review log data of issues Compare data to working environment

25 © 2012 Citrix | Confidential – Do Not Distribute Enabling Log from the Command Line –LogFile Service –LogFile Citrix.ADIdentity.SdkWcfEndpoint.exe -LogFile c:\xdlogs\AD.log Logfile Citrix.MachineCreation.SdkWcfEndpoint.exe -Logfile “c:\xdlogs\MCS-PVSvm.log” Citrix.MachineIdentity.SdkWcfEndpoint.exe -LogFile c:\xdlogs\mi.log

26 Case Study 1 Machine Creation Services

27 © 2012 Citrix | Confidential – Do Not Distribute Case Study Walk Through Case Study Walk Through Background: New Deployment Latest Hotfixes Full Administrator account used Worked before they rebuilt environment Case Study 1: MCS Fails after wizard

28 © 2012 Citrix | Confidential – Do Not Distribute Log Analysis: Desktop Studio Logs Case Study 1: Machine Creation Service fail after wizard 24/04/13 02:37: : DesktopStudio: [6] Script SetActionMetaData(402): [RES] Value: Failed to copy all master images to all of the Hosts. No machines have been added to the Catalog. Search Terms: [Time of Issue] Fail | Error | Exception | Denied Search Terms: [Time of Issue] Fail | Error | Exception | Denied

29 © 2012 Citrix | Confidential – Do Not Distribute Search Terms: [Time of Issue] Fail | Error | Exception | Denied Search Terms: [Time of Issue] Fail | Error | Exception | Denied Case Study 1: Machine Creation Service fail after wizard Log Analysis: Machine Creation Service Logs Failed to copy disk. Reason : SR_HAS_NO_PBDS ManagedMachineException: Failed to copy disk. Reason : SR_HAS_NO_PBDS Concluding job d5ea54c6-b7f1-4d45-ac08-2e2abae39e48 with state DiskConsolidationFailed. WorkflowAddMetadata(, Citrix_DesktopStudio_ExtraWarnings, Failed to copy all master images to all of the Hosts. No machines have been added to the Catalog.)

30 © 2012 Citrix | Confidential – Do Not Distribute Root Cause analysis: Misconfiguration 30 Failed to copy disk Reason : SR_HAS_NO_PBDS Hypervisor Connection’s did not include correct storage for the Master Image Target device disk could not be copied due to this Hypervisor - Storage misconfiguration *Definitions: SR - Storage Repositories PBD - Physical Block Devices *Definitions: SR - Storage Repositories PBD - Physical Block Devices

31 VDA Startup and Registration

32 © 2012 Citrix | Confidential – Do Not Distribute Controller DDC Broker Service VDA Registration VDA D esktop Service VDA Active Directory Controller WCF LDAP Database Registered

33 © 2012 Citrix | Confidential – Do Not Distribute Troubleshooting VDA Startup and Registration XDPing Log Basic Checks Logs:  Workstation Agent Logs  Broker Logs Network Trace Controller Broker Service VDA D esktop Service SSL SSL

34 © 2012 Citrix | Confidential – Do Not Distribute XDPING Can be run on both the DDC and VDA Used to collect data related to basic components Will verify if the components are working correctly  Verify Domain Membership  Network Interfaces  WCF Endpoints  Services  DNS lookup  Time difference between machine and Domain Controller

35 © 2012 Citrix | Confidential – Do Not Distribute Basic Checks Check the Network: Ping, Telnet and NetStat, Firewall Ensure Services started without errors Listening on the correct port Check time Check configured list of DDCs in registry

36 Case Study 2 Startup and Registration

37 © 2012 Citrix | Confidential – Do Not Distribute Case Study Walk Through Case Study Walk Through Background: Locked down environment Special configuration needed to manually enable needed services Worked in the Proof of Conference Lab but failed in production Case Study 2: New Catalog Fail to Register

38 © 2012 Citrix | Confidential – Do Not Distribute Log Analysis: Workstation Agent Service Logs Failed to register with WCF Fault with detail CallbackCommunicationError, message 'Fail worker callback using SPN host/RS2-SynPool01.lab.net and IP address ' Register FAILURE: HighAvailabilityActive = False, InHighAvailabilityMode = False, _firstRegistrationAttemptTime = 05/18/ :54:31, HighAvailabilityRegistrationTimout = 00:05:00 Message following Error pattern Could not register with any controllers. Waiting to try again in 9407 ms 38 Search Terms: [Time of Issue] Fail | Error | Exception | Denied Search Terms: [Time of Issue] Fail | Error | Exception | Denied Case Study 2: New Catalog Fail to Register

39 © 2012 Citrix | Confidential – Do Not Distribute Log Analysis: Broker Service Logs Broker:TestWorkerComms failed for worker S caught exception: System.ServiceModel.Security.SecurityNegotiationException: The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed. 39 Search Terms: [Time of Issue] Fail | Error | Exception | Denied Search Terms: [Time of Issue] Fail | Error | Exception | Denied Case Study 2: New Catalog Fail to Register

40 © 2012 Citrix | Confidential – Do Not Distribute Root Cause analysis: Misconfiguration 40 The DDC was not authorized the initiate a connection to the VDA “Access To Computer From The Network” Computer Policy did not have an entry for the Controlled and the default everyone was removed in production. Resolution: Customer added explicit entry to a Group that included all the Brokers as members

41 © 2012 Citrix | Confidential – Do Not Distribute PVD maintains logs in the base of the volume attached to the VM ◦ (alongside the VHD containing the PVD user-installed applications) These logs contain a wealth of information that should be captured and provided to support/engineering if you experience problems Most frequently seen PVD support cases … ◦ Failure of PVD to start virtualization (PVD can’t locate volume/VHD, etc.. …) ◦ Customers trying to install unsupported apps ◦ Customers trying to move PVDs between VMs

42 © 2012 Citrix | Confidential – Do Not Distribute 42 Desktop Director has helpdesk-facing PVD metrics and support ◦ % of application area in use / total size ◦ % of user profile area in use / total size ◦ PVD reset PVD reset allows the helpdesk to reset the application area while leaving the user’s data intact ◦ Aka “revert to factory default” ◦ Useful to reset PVDs that become wedged due to users installing broken applications

43 VDA Launch

44 © 2012 Citrix | Confidential – Do Not Distribute VDA Launch Controller #1 Broker Service Broker Service DDC VDA Desktop Service VDA WI Idle Launch Request SQL WCF XML broker queries DB for a ready worker Broker signals worker to Prepare for a Session User Clicks to launch session ICA Service Policy Settings Preparing New Session

45 © 2012 Citrix | Confidential – Do Not Distribute Controller #1 Broker Service Broker Service DDC VDA Desktop Service VDA WI SQL WCF Work State: Active Work State: Connected Request to Validate Ticket sent Controller Request to Validate Ticket sent Controller ICA file is sent to Endpoint ICA Service Policy Settings 1.Validates Ticket 2.Validates License 3.Policies 1.Validates Ticket 2.Validates License 3.Policies Ticket is ValidAuthNTicket Connected Portica gets License Active

46 © 2012 Citrix | Confidential – Do Not Distribute

47 Troubleshooting VDA Launch Event Logs (Web Interface, Controller, Storefront) Desktop Studio Broker Logs Workstation Agent Portica Logs Network Packet tracing

48 Case Study 3 VDA Launch

49 © 2012 Citrix | Confidential – Do Not Distribute Case Study Walk Through Case Study Walk Through Background: They recently converted all images to a Citrix PVS image The original image worked All streamed images including the golden image failed to launch Case Study 3: Launch Failure 1030

50 © 2012 Citrix | Confidential – Do Not Distribute Search: Prepare

51 © 2012 Citrix | Confidential – Do Not Distribute Troubleshooting :VDA Launch Search Strings: Checkpoint|connectionaccept|WaitforincomingConnection|sessionicaconnect

52 © 2012 Citrix | Confidential – Do Not Distribute Troubleshooting :VDA Launch Search Strings: Checkpoint|connectionaccept|WaitforincomingConnection|sessionicaconnect

53 © 2012 Citrix | Confidential – Do Not Distribute Root Cause analysis: MFAphook Module Failed to Load 53 Conversion via provisioning server had changes the long name format of the drive mfaphook failed to load and this is needed for interaction with the OS. Resolution: Add back short name to system see CTX for more information

54 Tools

55 © 2012 Citrix | Confidential – Do Not Distribute XD Tools HDX Monitor CDF Control Citrix Scout Site Checker Desktop Director

56 © 2012 Citrix | Confidential – Do Not Distribute HDX Monitor Thinwire (Graphics) Direct 3D (Graphics) Media Stream (aka RAVE) Flash Audio USB Devices

57 © 2012 Citrix | Confidential – Do Not Distribute HDX Monitor Mapped Client Drives (CDM) Branch Repeater Printer Client Smart Card Scanner System

58 © 2012 Citrix | Confidential – Do Not Distribute Citrix Scout / XD Collector (CTX130147) 58 Push button easy data collection system Makes data collection and upload push button easy Integrates data collected by Scout with the Citrix Tools as a Service (TaaS) backend Simplifies data collection & analysis

59 © 2012 Citrix | Confidential – Do Not Distribute #CitrixSummit CDF Control: CTX Tip: Use this tool to remotely enable and collect CDF traces when system are non persistent 59

60 © 2012 Citrix | Confidential – Do Not Distribute Site Checker Tool: CTX Enumerate Environment Checks Services Status Checks service instances registration status Reset Controllers Services instances into Database

61 © 2012 Citrix | Confidential – Do Not Distribute Desktop Director 61 Web Based Unified view of apps and desktops End-user details empower the help desk Includes HDX Monitor Access to personal vDisk tasks

62 Resources discussed

63 © 2012 Citrix | Confidential – Do Not Distribute Optimal deployment recommendations CTX XenDesktop Modular Reference ArchitectureCTX CTX XenDesktop 5 Database Sizing and Mirroring Best PracticesCTX CTX High Availability for Desktop Virtualization - Reference ArchitectureCTX CTX XenDesktop - Design HandbookCTX CTX XenDesktop Planning Guide - XenDesktop ScalabilityCTX Whitepaper - Benchmarking Citrix XenDesktop using Login Consultants VSIWhitepaper 63

64 © 2012 Citrix | Confidential – Do Not Distribute For More Information CTX Worker Unregisters at Session LaunchCTX CTX Citrix ScoutCTX CTX CDFControlCTX CTX How to enable Controller Service Logging in XenDesktop 5CTX CTX XDDBDiag: XenDesktop 5 Database DiagnosticsCTX CTX XenDesktop 5 Logon Process and Communication FlowCTX

65 © 2012 Citrix | Confidential – Do Not Distribute For More Information Vmware – Using VMware with XenDesktopVmware SCVMM Using Microsoft SCVMM 2008 with XenDesktopSCVMM CTX127538: How to Reconfigure a XenDesktop Site to Use a Mirrored DatabaseCTX CTX : Database Access and Permission Model for XenDesktop 5CTX CTX CTX LSQuery - License Server Data Collection Tool CTX127314CTX How to Collect Data for Troubleshooting Licensing Issues 65

66 Takeaways

67 © 2012 Citrix | Confidential – Do Not Distribute Goals Recap Presentation Goals Recap 67 Provide an understanding of the architecture Provide an understanding of the architecture Instruct On How To Configure Instruct On How To Configure Provide Troubleshooting Resources Provide Troubleshooting Resources

68 © 2012 Citrix | Confidential – Do Not Distribute About Citrix Services Citrix Services make sure you succeed with your virtualization programs. How we can help Citrix Education – The fastest, most efficient way to get your team the virtualization skills they need. Online, on-site or in class. citrix.com/training Citrix Consulting – Intensive engagements for complex, critical or just plain massive projects. citrix.com/consulting citrix.com/consulting Citrix Support – Always-on support services that leverage everything we know about best-practice deployment and maintenance. citrix.com/support Educate | Guide | Support | Succeed

69 © 2012 Citrix | Confidential – Do Not Distribute 40 insider troubleshooting tips Covering XenDesktop, XenServer, XenApp and NetScaler Citrix Support top engineers FREE eBook Citrix Auto Support Now available! Secrets of the Citrix Support Ninjas

70 © 2012 Citrix | Confidential – Do Not Distribute Premier Support Calculator Check it out

71 © 2012 Citrix | Confidential – Do Not Distribute Next Webinar: September Title: Troubleshooting a XenDesktop environment using the PowerShell SDK Description: The Citrix XenDesktop PowerShell SDK is the foundation for all interactions with a XenDesktop database and is the same SDK used by Desktop Studio. This deep dive session will include a behind-the-scenes look at several tools used by Citrix Technical Support that utilize the PowerShell SDK, including common configuration cmdlets and scripts. When: Sept 26 th Registration Now!

72 Work better. Live better.


Download ppt "Ramon Scott – Lead Escalation Engineer Configuring & Troubleshooting XenDesktop Sites August 29, 2013 Citrix Support Secrets Webinar Series."

Similar presentations


Ads by Google