SUM408-Configuring and Troubleshooting XenDesktop Sites
SUM408-Configuring and Troubleshooting XenDesktop Sites
SUM408-Configuring and Troubleshooting XenDesktop Sites
XenDesktop Sites
SUM408
May 2013
Presentation Goals
Provide an Understanding of the
Architecture
Instruct on How to Configure
Provide Proven Troubleshooting
Methodologies and Resources
2
Database
Broker
(including Express)
Database
Broker
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
Setup Process
Single Admin
Separate Admins
XD Admin
XD Admin
credentials
used
ch
e
XD
Console
Database
SQL Server
Console
1.
Schema
Export
(SQL script)
3.
Schema
SQL Admin
SQL Admin
credentials
used
Broker
4. Verify
2.
S
Broker
2.
Schema
XD Admin
1.
Schema
3. Verify
XD
Console
Database
Database Access
Security Access Model
Network Service Account
Controller Controller
NT AUTHORITY\NETWORK SERVICE
Broker
Broker
Service
Service
Computer Account
DOMAIN\MACHINE$
Controller
Database
Database
Database High-Availability
Broker is critically dependant on Database
Existing connections not impacted
Creating new connections and reconnecting to desktops
impacted
(expected popularity
order)
1.SQL Mirror
2.Virtual Machine H/A
3.SQL Cluster
Citrix Confidential - Do Not Distribute
Database Role
ADIdentitySchema_ROLE
chr_Broker
chr_Controller
ConfigurationSchema_ROLE
DesktopUpdateManagerSchema_
ROLE
HostingUnitServiceSchema_ROLE
MachinePersonalitySchema_ROLE
Services
PowerSh
ell
Controller
Machine
Creation
Service
AD Identity
Service
PowerSh
ell
Machine
Identity
Service
Machine Creation
Services
Desktop
Director
WCF
[80]
[5985/5986]
Host
Service
Broker
Service
Configurati
on
Service
Broker
Service
Infrastructure
Services
SQL Server
WinRM 2.0
Virtual
Desktop
Agent
(VDA)
Windows
Windows Communication
Communication
Foundation
Foundation (WCF)
(WCF)
12
Service Status
XenDesktop Service
PowerShell Cmdlet
Get-AcctServiceStatus
Get-BrokerServiceStatus
Get-ConfigServiceStatus
Use Get-ProvServiceStatus
Get-HypServiceStatus
Get-PvsvmServiceStatus
Machine Creation
Existing
Profile
PvD
Profile
PvD
PvD
PvD
Dedicated
Pooled
Pooled with personal vDisk
Streamed
Streamed with personal vDisk
Image
Image
Profile
Profile
App
App
Base Image
BaseApps
Image
with
with Apps
Profile
Profile
Streamed
Image
Streamed
Streamed
Base
Image
Image
Base
Image
Streamed
Base
Image
Base
Image
Base
Image
withImage
Apps
Base
Image
Base
withImage
Apps
Base
with
Apps
with Apps
App
App
Image
Image
Profile
PvD
PvD
Profile
PvD
PvD
Profile
PvD
PvD
Profile
PvD
PvD
Profile
Profile
*Image
Streamed
from
*Image
created
with
*Image
Streamed
from
*Image
created
with
*Image
created
outside
of
*Image
created
outside
of
Citrix
Provisioning
Server
Machine
Creation
Services
Citrix Provisioning
Server
Machine
Creation Services
XenDesktop
XenDesktop
(PVS)
(MCS)
(PVS)
(MCS)
** Behaves
Behaves like
like
pooled-static
pooled-static
VHD Chain
VHD Chain
Diff Disk
ID Disk
Virtual Desktop 1
Diff Disk
ID Disk
Virtual Desktop 2
Diff Disk
ID Disk
Virtual Desktop x
Storage Subsystem
ID Disk
Personal vDisk
Virtual Desktop 1
Seen by the user as Drive
P:\
USERDATA e.g. My
Documents
Free space is the split
allocation
Visible file on
another disk,
typically D:\
PVS Stream
Streame
d
vDisk
Write
Cache
Virtual Desktop 1
PVS Stream
Streame
d
vDisk
Write
Cache
Virtual Desktop 2
PVS Stream
Streame
d
vDisk
Write
Cache
Virtual Desktop x
Storage Subsystem
Streame
d vDisk
Write
Cache
Personal vDisk
Virtual Desktop 1
Seen by the user as Drive
P:\
USERDATA e.g. My
Documents
Free space is the split
allocation
Hypervisor communication
Domain permissions
Previously failed attempts still present
in database
Host Connection configured with
incorrect storage
Naming convention on the host
PoSH
WCF
[80]
Broker
Machine
Creation
Service
AD Identity
Service
Machine
Identity
Service
Machine Creation
Services
Host
Service
Broker
Service
Configurati
on
Service
Broker
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
Citrix.MachineIdentity.SdkWcfEndpoint.exe -LogFile
c:\xdlogs\mi.log
Case Study 1
Machine Creation Services
Case Study
Walk Through
Background:
New Deployment
Latest Hotfixes
Full Administrator account used
Worked before they rebuilt environment
VDA Registration
Registered
VDA
WCF
Desktop
Broker
Service
Service
VDA
Controller
LDAP
Active
Directory
Controller
Database
DDC
Service
Controller
1011011010 SSL 1011011010 SSL 101101
Broker
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
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
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
Search
Search Terms:
Terms:
[Time
[Time of
of Issue]
Issue]
Fail
|
Error
Fail | Error || Exception
Exception ||
Denied
Denied
38
41
VDA Launch
VDA Launch
VDA
Desktop
Service
VDA
Idle
Preparing
New Session
WCF
Polic
Setti y
ngs
ICA
Service
Controller #1
Broker
Service
DDC
Broker signals
worker to Prepare
Launch Request
for a Session
User Clicks to
launch session
SQL
WI
Active
Connected
VDA
Desktop
Service
VDA
WCF
Polic
Setti y
ngs
Controller #1
Broker
Service
DDC
ICA
Service
Request to
Validate Ticket
Ticket
is
ICA
filegets
is sent to
Portica
sent Controller
ValidAuthNTicket
Endpoint
License
1.
2.
3.
WI
SQL
Validates Ticket
Validates License
Work State:
Policies
Work State: Active
Connected
Case Study 3
VDA Launch
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
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
#CitrixSummit
Desktop Director
Web Based
Unified view of apps and
desktops
End-user details empower
the help desk
Includes HDX Monitor
Access to personal vDisk
tasks
61
Resources discussed
64
65
66
Takeaways
Q&A
70