SUM408
May 2013 Ramon Scott Lead Escalation Engineer
Presentation Goals
Provide an Understanding of the
Architecture
Database
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
Broker
Setup Process
Single Admin Separate Admins XD Admin XD Console XD Admin
1. Schema
Broker
3. Verify
XD Console
2. Schema
1. Schema
Broker
4. Verify
Database
3. Schema
Database
Database Access
Security Access Model
Network Service Account NT AUTHORITY\NETWORK SERVICE Computer Account DOMAIN\MACHINE$ Controller Controller
Broker Broker Service Service
Controller
Database
Database
Database High-Availability
Broker is critically dependant on Database
Existing connections not impacted Creating new connections and reconnecting to desktops impacted
ADIdentitySchema_ROLE chr_Broker
chr_Controller
Central Configuration Service (Config) Machine Creation Service (PvsVM) Hosting Management Service (Hyp) Machine Identity Service (Prov)
Services
Controller
Host Service Virtual Desktop Agent (VDA)
Broker Service
Broker Service
Configuration Service
Infrastructure Services
SQL Server
Service Status
XenDesktop Service AD Identity Service (Acct) Broker Service (Broker) Central Configuration Service (Config) Machine Creation Service (Prov) Hosting Management Service(Hyp) Machine Identity Service (PvsVM) PowerShell Cmdlet Get-AcctServiceStatus Get-BrokerServiceStatus Get-ConfigServiceStatus Use Get-ProvServiceStatus Get-HypServiceStatus Get-PvsvmServiceStatus
Machine Creation
Pooled
Pooled with personal vDisk
Streamed Image Streamed Base Image Base Image Base Image withImage Apps Base with Apps
Image
Streamed
Streamed with personal vDisk
*Image Streamed from *Image created with *Image created outside of Citrix Provisioning Server Machine Creation Services XenDesktop (PVS) (MCS)
MCS
Pooled Pooled with PvD*
PVS
Dedicated
PreAssigned First Use
Streamed
Virtual Physical
Random Static
* Behaves like pooled-static
Diff Disk
VHD Chain Diff Disk VHD Chain Diff Disk
ID Disk
Virtual Desktop 1
ID Disk
Virtual Desktop 2
ID Disk
Virtual Desktop x
Storage Subsystem
Diff Disk
This part is hidden from user Merged with the Diff Disk Seen by user as Drive C:\ E.g. Installed apps
ID Disk
Virtual Desktop 1 Seen by the user as Drive P:\ USERDATA e.g. My Documents Free space is the split allocation
Personal vDisk
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
Virtual Desktop 1
PVS Stream
Virtual Desktop 2
PVS Stream
Virtual Desktop x
Storage Subsystem
Streamed vDisk
Write Cache
Virtual Desktop 1 Seen by the user as Drive P:\ USERDATA e.g. My Documents Free space is the split allocation
This part is hidden from user Seen by user as Drive C:\ E.g. Installed apps
Personal vDisk
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
PoSH
Broker
Host Service
Broker Service
Broker Service
Configuration Service
Infrastructure Services
SQL Server
Troubleshooting Methodology
Understand issue history Verify configuration, error logs and alerts Gather and review log data of issues Compare data to working environment
23
Case Study 1
Machine Creation Services
Background:
New Deployment Latest Hotfixes
24/04/13 02:37:10.7603 : 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
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.)
Search Terms: [Time of Issue] Fail | Error | Exception | Denied
VDA Registration
Registered VDA
Desktop
WCF
Controller
Broker Service
Service
Database DDC
VDA
LDAP
Controller
Broker Service
Service
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
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
Case Study 2
Startup and Registration
Background: Locked down environment Special configuration needed to manually enable needed services Worked in the Proof of Conference Lab but failed in production
WCF Fault with detail CallbackCommunicationError, message 'Fail worker callback using SPN host/RS2-SynPool01.lab.net and IP address 10.19.196.945'
Register FAILURE: HighAvailabilityActive = False, InHighAvailabilityMode = False, _firstRegistrationAttemptTime = 05/18/2013 13:54:31, HighAvailabilityRegistrationTimout = 00:05:00 Message following Error pattern
37
Could not register with any controllers. Waiting to try again in 9407 ms
38
39
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 cant locate volume/VHD, etc.. ) Customers trying to install unsupported apps Customers trying to move PVDs between VMs
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 users data intact Aka revert to factory default Useful to reset PVDs that become wedged due to users installing broken applications
41
VDA Launch
VDA Launch
VDA
Desktop Service
ICA Service
Idle
Controller #1
Broker Service
VDA
DDC
SQL
Broker signals worker to Prepare Launch Request for a Session User Clicks to launch session
WI
VDA Launch
Active Connected
VDA
Desktop Service
ICA Service WCF
Controller #1
Broker Service
VDA
DDC
SQL
Request to Validate Ticket Ticket is ICA filegets is sent to Portica sent Controller ValidAuthNTicket Endpoint License
1. Validates Ticket 2. Validates License Work State: 3. Policies Work State: Active Connected
WI
Case Study 3
VDA Launch
Search: Prepare
Tools
XD Tools
HDX Monitor CDF Control Citrix Scout Site Checker Desktop Director
HDX Monitor
Thinwire (Graphics) Direct 3D (Graphics) Media Stream (aka RAVE) Flash Audio
USB Devices
HDX Monitor
Mapped Client Drives (CDM) Branch Repeater Printer Client Smart Card
Scanner
System
58
Tip: Use this tool to remotely enable and collect CDF traces when system are non persistent
#CitrixSummit
59
Desktop Director
Web Based Unified view of apps and desktops End-user details empower the help desk
61
Resources discussed
64
65
66
Takeaways
Q&A
Download presentations starting Monday, June 3, from your My Conference Planning tool located within the My Account section
70