Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

21
A Deep Dive into Supporting XenDesktop May 2014 Kim Ferrie, Mick Glover

description

Supporting a XenDesktop environment is not just about being able to collect and consume detailed log files and traces. The fact is, it is much more than this. A good understanding of the FMA architecture and expected behavior can go a long way to resolving various technical issues. Join Kimberly Ferrie and Mick Glover as they discuss and demonstrate how to apply this knowledge when supporting a XenDesktop environment. What you will learn - How the various FMA services interact with each other and the Site Database - How to check the true state of FMA services and validate site functionality through PowerShell - How to create various types of Service and Database Schema scripts - How to configure Site policies to control access to resources

Transcript of Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

Page 1: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

A Deep Dive into Supporting XenDesktop

May 2014

Kim Ferrie, Mick Glover

Page 2: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.2

AgendaA Deep Dive into Supporting XenDesktop

Architecture

FMA Service States

Service SQL Scripts

Site Policies

Page 3: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

The ArchitectureXenDesktop 7x

Page 4: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.4

XenDesktop 7.x Architecture

Controller

Citrix Studio Citrix Director

WCF [80]

Virtual Desktop (VDA)

Citrix Desktop Service

[5985/5986]

WCF [80]

PoSH PoSH

Citrix ICA Service

(PicaSvc2.exe)

SQL Server SQL Server

Environment Test Service

Configuration Service

Host ServiceMonitor Service

Machine Creation Service

AD Identity Service

Configuration Logging Service

Storefront Service

Broker Service

Delegated Admin Service

SQL Server

Machine CreationServices

InfrastructureServices

BrokerService

Machine CreationServices

Feature & IntegrationServices

SQL Server

Page 5: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

FMA Service States

Page 6: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.6

Viewing service states through Windows only tells half the storyExample: Broker Service

Page 7: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.7

Validating a Service Status

Get-BrokerServiceStatus (Broker)

Get-ConfigServiceStatus (Configuration)

Get-HypServiceStatus (Host Service)

Get-AcctServiceStatus (AD Identity)

Get-ProvServiceStatus (MCS)

Get-MonitorServiceStatus (Monitoring)

Get-AdminServiceStatus (Delegated Admin)

Get-LogServiceStatus (Configuration Logging)

Get-SFServiceStatus (StoreFront)

Get-EnvTestServiceStatus (Test Service)

Page 8: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.8

Get-BrokerServiceStatus - Return Values

Status Meaning

OK The broker is connected to a database that is valid, and the service is running.

DBUnconfigured The broker does not have a database connection configured

DBRejectedConnection The database rejected the logon from the Broker Service. This may be caused by bad credentials, or the database not being installed.

InvalidDBConfigured The database schema is missing (possibly just the stored procedures in it).

DBNotFound The specified database could not be located with the configured connection string.

DBMissingOptionalFeature The broker is connected to a database that is valid, but it does not have the full functionality required for optimal performance. Upgrading the database is advisable.

DBMissingMandatoryFeatureThe broker is connected to a database that is valid, but it does not have the full functionality required so the broker cannot function. Upgrading the database is required.

Page 9: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

DemoFMA Service States

Page 10: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

SQL Service Scripts

Page 11: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.11

SQL Service Scripts4 script types for each FMA service

FullDatabase

Instance

Evict

Login

Page 12: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.12

Examples of when to use each ScriptA Script for every occasion…

FullDatabase• Manually create or script the creation of a new Site

Instance• Manually add a controller to an existing Site

Evict• Manually remove an orphaned Controller from a Site

Login• Create DB Security Logon

Page 13: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.13

Generating Service ScriptsUse the PoSH SDK

Get-<ServiceAlias>DBSchema - DatabaseName -ScriptType • Broker, Config, Hyp, Prov, Acct, SF, Monitor EnvTest, Log & Admin

Examples• Get-BrokerDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -

ScriptType instance | out-file c:\join.sql• Get-ConfigDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -

ScriptType instance | out-file c:\join.sql -append

Page 14: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.14

Generating Service ScriptsUse the PoSH SDK

Get-<ServiceAlias>DBSchema - DatabaseName -ScriptType • Broker, Config, Hyp, Prov, Acct, SF, Monitor EnvTest, Log & Admin

Examples• Get-BrokerDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -

ScriptType instance | out-file c:\join.sql• Get-ConfigDBSchema -DatabaseName CitrixSynergy606 -Adminaddress DC2.training.lab -

ScriptType instance | out-file c:\join.sql -append

Page 15: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.15

Citrix Studio uses the same ScriptsFullDatabase & Login

Page 16: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

DemoManually joining a Controller to an existing Site

Page 17: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

Site Policies

Page 18: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.18

XenDesktop Site PoliciesOverview

Entitlement Policy (Pooled/Shared Desktops)• Get-BrokerEntitlementPolicyRule• Get-BrokerAppEntitlementPolicyRule

Assignment Policy (Dedicated/Private Desktops)• Get-BrokerAssignmentPolicyRule• Get-BrokerAppAssignmentPolicyRule

Access Policy• Get-BrokerAccessPolicyRule

Page 19: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

DemoRestricting access to resources through Site Policies

Page 20: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.20

Tweet Tweet...Stay Informed with the latest XenDesktop Tips

@XDinformer• Kim Ferrie

@XDtipster• Mick Glover

Page 21: Citrix TechEdge 2014 - A Deep Dive Look Into Supporting XenDesktop

© 2014 Citrix. Confidential.22

WORK BETTER. LIVE BETTER.