Delivery Controller 1912 LTSR Installation and Configuration

Last Updated on December 25, 2020

Citrix Delivery Controller 1912 LTSR Installation and Configuration is the second article in Citrix Virtual Apps and Desktop 7 1912 LTSR Installation and Configuration Series.

Following Topics are covered in this article

  1. Prologue
  2. Preparation
  3. Install SSL Certificate for Citrix Broker Service
  4. Install vSphere Root and vCenter Server Certificate
  5. Installation and Configuration
  6. Binding SSL Certificate with Citrix Broker Service
  7. Add Administrators to the Studio
  8. Add Hosting Connection and Resources
  9. Create Machine Catalogs
  10. Create Delivery Groups

Prologue

The Citrix site I am going to create will be used by users of one region only. There are two Datacenters in two different cities of the same region with a latency of less than 3ms that’s why a single site with its own SQL server site database is enough. If you happen to build a separate Citrix Virtual Apps and Desktops (CVAD) site in each datacenter, you can use StoreFront to aggregate the icons from all sites. And you can use NetScaler GSLB to distribute users to StoreFront.

I am not using Zones as resources are common for users in both Datacenters. From Citrix Docs – “Configuring zones can help users in remote regions connect to resources without necessarily forcing their connections to traverse large segments of the WAN. Using zones allows effective Site management from a single Citrix Studio console, Citrix Director, and the Site database. This saves the costs of deploying, staffing, licensing, and operating additional Sites containing separate databases in remote locations.”. Citrix recommends that when the network latency of your zones is more than 250 ms RTT then you should deploy multiple Sites instead of zones. Citrix also recommends that you limit the number of zones in your Citrix Virtual Apps or Citrix Virtual Desktops Site to no more than 50.

The host layer I am using is VMware vSphere 6.7 on Dell EMC VxRail vSAN streched cluster. It’s a 20 node cluster with cache and data tier on Flash drives. If you are fan of VMware Metro Storage Cluster (vMSC) then you are going to love vSAN streched cluster. The operating system I am using for Citrix Delivery Controller 1912 LTSR Installation and Configuration is Windows Server 2019 Datacenter Edition.

This is a very small Citrix Infrastructure with only 4 business critical and 10 utility applications mostly used by power users and office users. Critical applications have a upgrade life cycle of once in a year. With all these things I don’t see a compelling use case for any provisioning (MCS or PVS) or image management (App Layering) method. That’s the reason I decided to manually build VDAs from a standard template and then manually install applications on those VDAs. For almost same reason, I don’t think profiling, packaging and streaming applications will be beneficial.

I have always been fan of PVS but that doesn’t mean MCS can be looked down upon. Right here at PVS vs MCS , Daniel Feller has listed out all the features that are common or unique in both technologies. It will certainly help you decide which one to choose over other.

If you are looking for Citrix Provisioning 1912 Insallation and Configuration then visit https://www.carlstalhood.com/provisioning-services-server-install/

I am going to secure the XML communication between Storefront and Deliver controller that’s why a SSL certificate is to be issues to the FQDN of the Delivery Controllers 1912 LTSR and bound to the Broker Service. For this purpose I have created a enrollment template for server authentication in Internal Certificate Authority.

Preparation

  1. Download Citrix Virtual Apps and Desktops 7 1912 LTSR from here
  2. Visit System Requirements of Citrix Delivery Controller 1912 LTSR and ensure that minimum hardware requirements, OS requirements, DB requirements, etc. are met
  3. Create a service account in AD. This service account should be a Local Administrators on all Citrix Servers and should have sysadmin permission on the Database server instance. Once the DB schema is created, all run-time access to the central Virtual Apps site database is performed by the services running on each controller. These services gain access to the database through their Active Directory machine accounts (Domain\Machine$). This database access is sufficient to allow full day-to-day operation of the site including use of Desktop Studio, Desktop Director, and the service-specific SDKs. See https://support.citrix.com/article/CTX127998
  4. If for any reason the service account cannot be granted sysadmin rights then Citrix Site creation wizard allows you to generate some *.sql scripts that you can pass to the Database Administrator. The DB admin needs to execute those scripts in SQLCMD command-line utility or SQL Server Management Studio in SQLCMD mode. See scripted setup heading at Citrix Virtual Apps and Desktops 1912 LTSR Databases Technical Overview.
  5. To ensure automatic failover of databases consider using AlwaysOn Availability Groups (including Basic Availability Groups) or SQL Server database mirroring or SQL clustering or hypervisor’s high availability features. See High availability
  6. Create a VMware roles with a set or all of the privileges listed at VMware privileges required by Citrix. Assign that role to the same service account at the DataCenter level at a minimum.
  7. If you plan to use MCS, do not disable the Datastore Browser feature in vCenter Server. If you disable this feature, MCS does not work correctly
  8. Install SSL certificate on all Delivery Controllers to secure XML communication between Storefront and Delivery Controllers. Follow instructions in next topic
  9. Install SSL certificate issued by Certificate Authority to protect vSphere communications. If you are unable to use a digital certificate issued from a certificate authority, and your organization’s security policy permits it, you can use the VMware-installed self-signed certificate Follow instructions in next to next topic
  10. If you are using Azure Resource Manager to provision virtual machines in your deployment then visit How to Grant XenApp and XenDesktop Access to Your Azure Subscription
  11. Verify compatibility with License Server with Citrix Delivery Controller 1912 LTSR by executing LicServVerify.exe from CVAD ISO mount drive\x64\XenDesktop setup\
License Server Verify
  1. Install Group Policy Management, RSAT Tools, Remote Desktop Licensing Tools, Telnet client and DNS Server Tools. If you wish, you can skip this step but I prefer installing them on Citrix Delivery Controller 1912 LTSR
Server Features 1
Server Features 2
Server Feature 3

Certificate for Citrix Delivery Controller 1912 LTSR Broker Service

  1. Open Run / Certlm.msc / Right click on Personal Certificate Store and select All Tasks / Request new Certificate
  2. Click on Next in Before you Begin screen
Certificate Before you begin
  1. Click on the drop down arrow in front of Active Directory Enrollment Policy
Certificate Enrollment Policy
  1. Select the Enrollment Policy and click on Properties
Certificate Enrollment Policy Properties
  1. In General tab, give a Friendly name and a Description. This can be any string defining the purpose of the certificate. If it is a SAN certificate then I prefer to give a descriptive name like “Storefront Server and Base URL”. If the certificate corresponds to a single entity or object then I prefer to give the hostname or the NetBIOS name. Again, this is just a string.
Certificate Properties General Tab
  1. Switch to Subject tab. Under Subject name, select Common name from drop down. Type FQDN of the Delivery Controller Server in Value and then click on Add >. Click on Apply and then OK
Certificate Properties Subject tab
  1. Click on Enroll
Certificate Enrollment Policy Properties
  1. Notice STATUS: Succeeded and click on Finish
Certificate Enrollment Succeeded
  1. The certificate has been issued and installed in the Personal Store
Personal Certificate Store
  1. Repeat the same steps on Second Delivery Controller.

Certificate for vSphere Communication

  1. Login to the server where you will install Delivery Controller
  2. Open vCenter Server URL in the Web-browser
  3. Click on Download trusted root CA certificates
vSphere download Root CA Certificate
  1. Extract the downloaded file.
  2. Go to the win folder and double click on Security Certificate file
vSphere Root Certificate
  1. Click on Install Certificate
  2. Check Local Machine under Store Location and click on Next
vSphere Root Certificate Import Local Machine
  1. Check Place all certificates in the following store, click on Browse, select Trusted Root Certificate Authorities, click on OK and then click on Next
vSphere Root Certificate Place Certificate into Trusted Root Certification Authorities
  1. Click on Finish. Click on OK when Certificate Import Wizard says The import was successful
vSphere Root Certificate Import Finish
vSphere Root Certificate Import Succesful
  1. Open vCenter Server URL again but this time in Google Chrome
  2. Click on Non secure in the address bar and then click on Certificate (Invalid). Even if you see Secure instead of Non secure in the address bar after installing root certificate in previous steps, this step is important to complete
vSphere Self Signed certificate Invalid
  1. Switch to Details tab and click on Copy to File…
vSphere Self Signed certificate Copy to File
  1. Click on Next in Welcome to the Certificate Export Wizard
vSphere Self Signed certificate Export Wizard
  1. Select DER or Base-64 and then click on Next
vSphere Self Signed certificate format
  1. Specify the location to save and click on Next
vSphere Self Signed certificate file name
  1. Click on Finish. Click on OK when Certificate Export wizard says The export was successful
vSphere Self Signed certificate export finish
vSphere Self Signed certificate export was successful
  1. Open Run / Certlm.msc. Right click on Trusted People store, click on All Tasks and then click on Import…
Local Computer Certificate Manager Trusted People Store
  1. Click on Next
vSphere Self Signed certificate import to Local Machine
  1. Browse the certificate that was exported in previous steps and click on Next
vSphere Self Signed certificate browse
  1. Trusted People should be automatically selected in Place all certificate in the following store. Click on Next
vSphere Self Signed certificate install to Trusted People store
  1. Click on Finish
vSphere Self Signed certificate import Finish
  1. Repeat the steps on the second Delivery Controller.

Citrix Delivery Controller 1912 LTSR Installation and Configuration

  1. Login to the Machine where you want to install Delivery Controller software using a service account that is a local administrator and has sysadmin permissions on the SQL database instance
  2. Mount the media once download is complete. Run AutoSelect.exe as an Administrator
Citrix Delivery Controller autoselect.exe
  1. If your license is for Virtual Apps then it does not matter whether you click on Virtual Apps or Virtual Apps and Desktops. Click on Start in front of Virtual Apps and Desktops
Citrix Virtual Apps and Desktops
  1. Citrix Virtual Apps and Desktops 7 1912 LTSR Meta Installer window will show up. Click on Delivery Controller in Get Started
Citrix Delivery Controller Get started
  1. Check I have read, understand, and accept the terms of the license agreement and then click on Next
Citrix Delivery Controller License Agreement
  1. Keep Director, License Server and Storefront unchecked. It is all right to install all core components on one server if it is a small Citrix setup. Click on Next
Citrix Delivery Controller Core Components
  1. Uncheck Install Microsoft SQL Server 2017 Express CU16. Click on Next
Citrix Delivery Controller Install Microsoft SQL Server 2017 Express CU16
  1. Automatically Should already be selected. Click on Next
Citrix Delivery Controller Firewall Port rules
  1. Click on Install
Citrix Delivery Controller Installation Summary
  1. Installation will prompt to reboot the machine multiple times. Click on Close. Machine will reboot
Citrix Delivery Controller Installation Reboot
  1. Once the machine is up, installation wizard will prompt to locate the media. Leave it as it is, open File/Windows Explorer and mount the ISO. Come back to Locate ‘Citrix Virtual Apps and Desktops 7 LTSR’ installation media window, click on This PC in left pane, select DVD drive and click on Select Folder
Citrix Delivery Controller Installation after reboot locate media
Citrix Delivery Controller Installation after reboot Select Folder
  1. Installation will resume from where it left last time before the reboot
  2. If you wish to enable Citrix Call Home then check Collect diagnostic information otherwise click on Next
Citrix Delivery Controller Installation Disagnostics
  1. Uncheck Launch Studio and click on Finish
Citrix Delivery Controller Installation Finished
  1. Install Delivery Controller Software on the second Delivery Controller
  2. Come back to First Delivery Controller and launch Studio
  3. Click on Deliver applications and desktops to your users
Citrix Delivery Controller 1912 LTSR Installation and Configuration
  1. Select An empty, unconfigured site and provide a name to the site. Click on Next
Studio Empty Site and Site name
  1. Select Create and set up databases from studio
    • If the service account that you used to open Studio does not have sysadmin permission on SQL server instance then select Generate scripts to manually setup databases on the database server. This action generates six scripts: two for each of the three databases (one for each principal database and another for each replica). You can indicate where to store the scripts
    • Give those scripts to your database administrator. The site creation wizard stops automatically at this point; you will be prompted when you return later to continue the site creation.
    • The database administrator then creates the databases. Each database must Use a collation that ends with “_CI_AS_KS”. Citrix recommends using a collation that ends with “_100_CI_AS_KS
    • The database administrator then uses the SQLCMD command-line utility or SQL Server Management Studio in SQLCMD mode to run each of the *.sql script
    • When all the scripts complete successfully, the database administrator gives the Citrix administrator the three database addresses
    • In Studio, you are prompted to continue the site creation, and are returned to the Databases page. Enter the addresses.
    • For graphical representation of all these steps, visit Carl Stalhood’s Database setup using SQL Scripts.
Studio Site Setup create and setup Databases
  1. Click on Select in front of Specify additional Delivery Controllers for this site
  2. Click on Add; provide the FQDN of the second Delivery Controller. Click on OK and then click on Save
Studio Site Setup Select Delivery Controller Database setup
  1. Provide SQL Server\Instance in three Location fields. Click on Next
Studio Site Setup create and setup Databases SQL Server instance
  1. Studio will start validating database details. If everything goes well, wizard will move forward to Licensing
Studio Validating database details
  1. Provide License Server address and click on Connect
Studio License Server address
  1. On Certificate Authentication window, select Connect me and then click on Confirm
Studio License Server Connect me
  1. Select Use an existing license and choose the correct license and model. Click on Next. Since I have imported 90 days Evaluation Licenses that’s why concurrent and user/device licenses for all three editions show up
Studio Select License Product and Model
  1. During Database validation, Studio detected that databases are not highly available. If you are using Always on/FA cluster/Mirroring then studio will detect that and show the secondary/replica/mirror database information
  2. Click on Finish
Citrix Delivery Controller Site set up finished
  1. Site creation process will start with configuring the services first and then creating the databases. This process might take some time
Citrix Delivery Controller site creation started
Citrix Delivery Controller 1912 LTSR Installation
  1. Once the site is created, go the second Delivery Controller and refresh Studio if it already opened. Expand Configuration and click on Controllers. You should see both Controllers with status as updated 0 minutes ago. If you did not add the second Delivery Controller while providing database details during the Site creation process on First Delivery Controller then click on Connect this Delivery Controller to an existing site
Connect this Delivery Controller to an existing site
  1. Provide the name of the First Delivery Controller and click on OK
Connect this Delivery Controller to an existing site specify Delivery Controller
  1. Click on yes if you are running Studio with the service account that has sysadmin rights on SQL server instance, otherwise click on No
    • If you clicked on Yes, Studio will update the database and Second Delivery Controller will be added to the site
    • If you click on No, Studio will prompt you to Generate scripts that you need to pass on to the Database Administrator
    • For graphical representation of all these steps, visit Carl Stalhood’s Second Delivery Controller configuration.
Would you like Studio to update the database automatically
Generate the database scripts for execution by a database administrator
  1. Verifying databases, DDC machine accounts and Database role assigned to the machine accounts inside SSMS
SQL Server Management Studio 1
SQL Server Management Studio 2
SQL Server Management Studio 3

Binding SSL Certificate with Citrix Broker Service

  1. Open Notepad on First Delivery Controller and paste below command
Binding SSL Certificate to Citrix Broker Service 1
  1. Go to Run / Certlm.msc / personal / Certificates. Double click on the Certificate that we installed earlier in this article. Switch to Details tab, scroll down to Thumbprint and copy the value
Binding SSL Certificate to Citrix Broker Service Thumbprint
  1. Paste the value after certhash= in the notepad
Binding SSL Certificate to Citrix Broker Service 2
  1. Add appid= to the command in Notepad
Binding SSL Certificate to Citrix Broker Service 3
  1. Open PowerShell as an Administrator and execute below command
Get-WmiObject -Class Win32_Product | Select-String -Pattern "broker service"
Binding SSL Certificate to Citrix Broker Service 4
  1. Copy IdentifyingNumber (GUID) and paste it after appid= in Notepad
Binding SSL Certificate to Citrix Broker Service 5
  1. Copy the whole command and execute it in Command prompt as an Administrator
Binding SSL Certificate to Citrix Broker Service 6
  1. You will get SSL Certificate successfully added. It means the binding of SSL certificate with Citrix Broker Service is completed
  2. Repeat same steps on Second Delivery Controller.

Adding Administrators to the Studio

  1. By default the user account that creates the site is assigned Full Administrator role
  2. To add more Administrators, expand Configuration and select Administrators. Click on Create Administrators on the left under Action Menu
  3. Browse a security group or an individual user account. Select All Scope and click on Next. You can create additional scopes as per your requirement
Studio Add Administrator
  1. Select the role and click on Next. In-built roles are enough for all type of administrative tasks; however, you can create a custom role by clicking on Create role.
Studio Add Administrator select Role
  1. Check Enable Administrator and click on Finish
Studio Add Administrator Finish
  1. Use Help Desk Administrator role for servicedesk or helpdesk executives. It gives them permission (among others) to log off a user session from Citrix Director and enable Maintenance mode on a server or desktop from Studio. Use Read only Administrator role for employees who should only have view access
  2. Below screenshot shows different roles assigned to different Security groups
Studio Administrators List

Adding Hosting Connection and Resources to Citrix Delivery Controller 1912 LTSR

  1. Since we have already installed SSL Root and Server certificate of vCenter server on both Delivery Controllers, we are good to establish a connection with the Hypervisor, VMware vSphere in our case.
  2. Expand Configuration, right click on Hosting and select Add Connection and Resources
Add Hosting Connection and Resources
  1. Select VMware vSphere in Connection type
  2. Provide URL for the FQDN of vCenter Server
  3. Provide User name and password of the service account that appropriate role assigned to it at a Datacenter level in vCenter (Look at preparation topic of this article)
  4. Provide a Connection name of your choice
  5. Select Other tools under Create virtual machine using:. Click on Next
    • If you are going to use MCS then select Studio tools (Machine Creation Service) under Create virtual machines using:. Click on Next
    • On Storage Management screen, browse the vSphere cluster. Select Use storage shared by hypervisors and optionally check Optimize temporary data on available local storage. Click on Next
    • Optimize temporary data on available local storage is similar to PVS’s(Citrix Provisioning) Cache in RAM with overflow to disk
    • On Storage Selection screen, select the datastore you want to use for the placement of VMs. Click on Next
    • On Network screen, provide a name to the Network and select a Network for the Virtual Machines. Click on Next
    • For a graphical presentation of these steps, visit Hosting resources by Carl Stalhood
Add Hosting Connection and Resources Details
  1. Studio will start establishing a connection with vCenter
Studio Establishing a connection with VMware vSphere
  1. Once completed, click on Finish
Connection to VMware vSphere is established

Machine Catalogs

  1. Right click on Machine Catalog and select Create Machine Catalog
  2. Click on Next
Citrix Delivery Controller 1912 LTSR Installation
  1. Select Multi-session OS and click on Next
    • For Desktop OS choose Single-session OS. For allowing users to connect to their physical PCs, select Remote PC Access
Machine Catalog Operating System
  1. Select Machines that are power managed under This machine Catalog will use:. Select Another service on technology under Deploy machines using:. Click on Next
Machine Catalog Machine Management
  • If you chose, Remote PC Access in previous screen, Power Manages option will be greyed out on this screen
  • Notice that MCS is greyed out under Deploy machine using:. This is because I did not add any Hosting resource (Storage and Network). If you happen to do that, Machine Management screen will look like below screen where from drop down you can select the resource to place the VMs
MCS Machine Management
  • If you select MCS, next screen will look this where you choose between persistent (static) and non-persistent (random) desktops
MCS Desktop Experience 1
MCS Desktop Experience 2
  • On next screen, you can select the Master image
MCS Master Image
  1. Click on Add VMs, expand the cluster and select the Servers you want to add to the Machine Catalog
Machine catalog Virtual Machines
  1. Click three dots (…) in front of each VM and add the computer account
Machine catalog Virtual Machines add Computer account
  1. Click on Next
Machine catalog Virtual Machines added
  1. Provide a name to the Machine Catalog and click on Finish
Machine Catalog Summary
  1. Create more Machine Catalogs as per requirement using the same process
Machine Catalog Multiple

Delivery Groups

  1. Right click on Delivery Groups and select Create Delivery Group
  2. Click on Next on Getting started with Delivery Groups
Delivery Group Getting started
  1. Select the Machine Catalog to add the Virtual Machines to the Delivery Group. Choose the number of Machines you want to add and click on Next
Delivey Group select a Machine Catalog
  1. Select Restrict use of this Delivery group to the following users. Click on Add and add the user groups who should have access to the applications and Desktops published from this Delivery group. Later you can when you add the applications or desktops (hosted, pooled or dedicated), you can limit the visibility of each application and desktop by further restricting the access to only certain user groups. Click on Next
    • If you check Session must launch in user’s home zone, if configure then user’s session will fail if VDA is not present in user’s home zone
    • You create zones by right clicking on Zones and selecting Create Zone under Configuration in Studio
    • By default all the resources are in Primary zone
    • When you create a new zone, you can add Hypervisor connection, machine catalogs, etc. into that zone from the same window
    • If you have created multiple zones already then you will get the option to choose the zone while creating a Hypervisor connection and adding Virtual Machines in the Machine Catalog
    • Users are added to a zone by right clicking on zone and selecting Add users to Zone
    • A user can be a part of just one home zone
    • Applications are added to a zone by right clicking on zone and selecting Add Application To Zone
    • Inside Zone of Published application’s properties, you can select a preferred zone for the application and restrict it to launch only in the selected zone. In the same window, you can choose not to configure any home zone for this application (Default option) and ignore the user’s home zone when launching the application
    • There are three forms of zone preference. You might prefer to use a VDA in a particular zone, based on:
      • Where the application’s data is stored. This is referred to as the application home
      • The location of the user’s home data, such as a profile or home share. This is referred to as the user home.
      • The user’s current location (where the Citrix Workspace app is running). This is referred to as the user location.
    • How Zones work in Citrix Virtual Apps and Desktops 7 1912 LTSR from Citrix Docs is a must read
Delivery Group users
  1. Add applications by clicking on Add and selecting either of the option. Click on Next
Delivery Group add applications 1
Delivery Group add applications 2
  1. Here you can publish server’s desktop for only admins or for end-users depending upon the requirement. Click on Add, give a Display Name and Restrict desktop use to certain user groups or Allow everyone with access to this Delivery Group to use a desktop. Ensure Enable desktop is checked. Click on Next
    • Users will see a Desktop icon by the name Test Desktops (Display name) and when user clicks on it,  Delivery Controller will load balance sessions between all the Machines that are part of the Delivery Group
    • Suppose you have 10 machines in the Delivery Group and you only want to publish the desktop of only 5 of them or you want to publish 5 server’s desktop to a particular user group and remaining 5 to another user group then you can assign tags to Machines and Restrict launches to machines with certain tags
    • Tags are very useful. They can also be used to publish applications from particular servers in a Delivery Group. Check out Publishing Applications From Individual Servers In XenApp 7.X. This article also explains how to create Tags and assign them to machines
Delivery Group Desktops 1
Delivery Group Desktops 2
Delivery Group Desktops 3
  1. Give Delivery Group a Name and Description and click on Finish
Delivery Group Summary

One thought on “Delivery Controller 1912 LTSR Installation and Configuration

  1. Hello Gupta, I was tasked to deploy our new Citrix VDI environment. I had not touched Citrix for a while much less build it from scratch. Your article was so helpful as you didn’t miss a step and I was able to build it in one shot. This was a HUGE accomplishment for me and you were my reason of achieving it.

    We stood up a new Citrix VDI environment with your guidance. Thank you so much for sharing empowering, encouraging and inspiring. I have used your Delivery Controller, StoreFront and Director. I will be adding this post to all three as you have been such a crucial part of our build out.

    With gratitude and appreciation,
    Mustafa

Leave a Reply