Home Cloud & Networking Troubleshooting Citrix Xendesktop

Troubleshooting Citrix Xendesktop

By Gurpinder Singh
books-svg-icon Book
eBook $43.99 $29.99
Print $54.99
Subscription $15.99 $10 p/m for three months
$10 p/m for first 3 months. $15.99 p/m after that. Cancel Anytime!
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
BUY NOW $10 p/m for first 3 months. $15.99 p/m after that. Cancel Anytime!
eBook $43.99 $29.99
Print $54.99
Subscription $15.99 $10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook + Subscription?
Download this book in EPUB and PDF formats, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
  1. Free Chapter
    Getting Started – Understanding Citrix XenDesktop and its Architecture
About this book
Publication date:
October 2015
Publisher
Packt
Pages
274
ISBN
9781785280139

 

Chapter 1. Getting Started – Understanding Citrix XenDesktop® and its Architecture

Before we get involved in learning the tools and concepts required for troubleshooting the Citrix XenDesktop environment, it's always a good idea to start from the basics. So, let's take a look at the basic concepts of XenDesktop and its architecture. Citrix XenDesktop is an Enterprise-grade application and desktop virtualization solution that gives Citrix administrators the ability to centrally manage and host applications and virtual machines in a datacenter while delivering to endusers a complete desktop high-definition (HDX) experience.

Note

HDX technology provides users with a high-definition experience for virtual apps and desktops, on any device or network with enhancements to work with voice, video, and 3D-graphics applications.

In a traditional desktop environment, system administrators often tend to restrict certain users from having administrative privileges to install and uninstall personal sets of software on the office desktops. To centrally manage the environment and enterprise applications, many system administrators often choose a terminal server environment to provide a stable and lockdown desktop environment using Citrix XenApp.

Desktop virtualization provides many advantages that are similar to the terminal server environment with additional features and the flexibility to lock down images using the shared image concept and persistent desktops for users who like to have administrative rights on their desktops.

In this chapter, we will cover:

  • Desktop virtualization

  • Hosted Shared Desktop versus Hosted Virtual Desktop

  • The Citrix FlexCast delivery technology

  • The modular framework architecture

  • Machine creation services versus provisioning services

  • What's new in XenDesktop 7.x?

 

Desktop virtualization


Wikipedia describes desktop virtualization as follows:

Desktop virtualization is a technology that separates the desktop environment hosted on a physical server in a Data Center from the client machine that is used by an end user to access it.

In traditional desktop environments, computers run an operating system where applications are executed and the user interface is displayed on the computer screen. By introducing desktop virtualization, you can set up the desktop environment in such a way that it doesn't have any direct link between the physical layer, operating system, application software, and display.

Desktop virtualization based on Citrix XenDesktop works on a client-server model where users access virtual desktops hosted on a centrally managed physical host in a datacenter, as shown in the following diagram:

Desktop virtualization based on XenDesktop provides multiple benefits that are listed as follows:

  • Anywhere, any-device access is available, for example, running the work environment on your home PC, Internet kiosk, tablet, mobile devices among others

  • Multiple applications and operating systems can be supported without any conflicts among them

  • Centralized management and provisioning

  • Deliver data securely for your clients with data and network encryption

There are several vendors available to choose a desktop virtualization solution from, depending upon the organizational evaluation, needs, and requirements. Citrix is the market leader in application and desktop virtualization and has been in this area for almost the last two decades and is ruling it with its well-known product XenDesktop for desktop virtualization, which was officially released in the year 2007 as XenDesktop 2.0.

 

Hosted Shared Desktops (HSD) versus Hosted Virtual Desktops (HVD)


Instead of going through the XenDesktop architecture, we would like to explain the difference between the two desktop delivery platforms HSD and HVD. This is a common question that is asked by every system administrator whenever there is a discussion on the most suitable desktop delivery platform for the enterprises.

The selection of the desktop delivery platform depends on the requirements of the enterprise. Some choose Hosted Shared Desktops or server-based computing (XenApp) over Hosted Virtual Desktop (XenDesktop), where a single server desktop is shared between multiple users and the environment is locked using Active Directory GPOs.

XenApp is a cost-effective platform as compared to XenDesktop and many small to mid-sized enterprises prefer to choose XenApp due to its cost benefits and less complexity.

However, the preceding model does pose some risks to the environment as the same server is being shared by multiple users and a proper design plan is required to configure a proper HSD or XenApp published desktop environment.

Many enterprises have security and other user-level dependencies where they prefer to go with Hosted Virtual Desktop solutions. Hosted Virtual Desktop or XenDesktop runs on the Windows 7 or Windows 8 operating system as a virtual machine hosted on a datacenter. In this model, a single user connects to a single desktop and, therefore, there is a very low risk of the desktop configuration getting impacted for all users.

Note

XenDesktop 7.x and the preceding versions also enable you to deliver server-based desktops (HSD) along with HVD in one product suite. XenDesktop also provides HVD pooled desktops that work on a shared OS image concept that is similar to the HSD desktops with a difference of running a desktop operating system instead of a server operating system.

Let's take a look at the following table that will provide you with a fair idea of the requirements and recommendations of both the delivery platforms for your enterprise:

Customer Requirement

Delivery Platform

The user base needs to work on one or two applications and often need not do any updates or installations on their own.

Hosted Shared Desktop

The user base works on their own core set of applications for which they need to change system-level settings, installations, and so on.

Hosted Virtual Desktops (dedicated)

The user base works on MS Office and other content creation tools.

Hosted Shared Desktop

The user base needs to work on CPU and graphic-intensive applications that requires video rendering.

Hosted Virtual Desktop (Blade PCs)

The user base needs to have admin privileges to work on specific sets of applications.

Hosted Virtual Desktop (pooled)

You can always have a mixed set of desktop delivery platforms in your environment focused on the customer requirements.

 

The Citrix FlexCast® delivery technology


Citrix FlexCast is a delivery technology that allows the Citrix administrator to personalize virtual desktops to meet the performance, security, and flexibility requirements of endusers.

There are different types of user requirements; some need standard desktops with a standard set of apps while others require high-performance personalized desktops. Citrix has come up with a solution to meet these demands with the Citrix FlexCast technology.

You can deliver any kind of virtual desktop with the FlexCast technology; there are five different categories in which FlexCast models are available:

  • Hosted Shared Desktop or HSD

  • Hosted Virtual Desktop or HVD

  • Streamed VHD

  • Local VMs

  • On-demand apps

Note

A detailed discussion on these models is beyond the scope of this book. However, I have explained the difference between the Hosted Shared versus Hosted Virtual Desktop models in the last section. To read more about the FlexCast models, visit http://support.citrix.com/article/CTX139331.

 

The modular framework architecture


To understand the XenDesktop architecture, it's better to break it down into discrete independent modules, rather than visualizing it as a single integrated big piece. Citrix provides this modularized approach to design and architect XenDesktop to meet the end customer's set of requirements and objectives. This modularized approach solves the customer requirements by providing a platform that is highly resilient, flexible, and scalable.

This reference architecture is based on the information gathered by multiple Citrix consultants working on a wide range of XenDesktop implementations. You should take a look at the basic components of the XenDesktop architecture that everyone should be aware of before getting involved with troubleshooting:

© Citrix Systems, Inc.

We will not spend much time on understanding each component of the reference architecture; you can refer to http://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/xendesktop-deployment-blueprint.pdf for more information, as this is out of the scope of this book. We will just go through each component quickly.

 

XenDesktop® and its architectural components


XenDesktop provides us with a desktop delivery platform by integrating several distributed components to deliver the best user experience for the VDI infrastructure.

The high level XenDesktop architecture includes the following key components:

  • Receiver: The Citrix Receiver is a replacement of the Citrix ICA client, which you will have been using from the MetaFrame times. This was transformed from Program Neighborhood Agent to the Citrix Online plugin to the now so called Citrix Receiver.

  • HDX technology: This provides the user with a high-definition experience for virtual apps and desktops on any devices and networks with enhancements to work with voice, video, and 3D graphic applications.

  • NetScaler Gateway: Citrix NetScaler Gateway provides a secure remote access to users accessing the Citrix published apps and desktops from anywhere and on any device by connecting to Citrix Receiver.

  • Database: Microsoft SQL Server is the only supported database.

  • License server: You must already have been aware of this component for a long time. To work with the Citrix range of products, you must have at least one Citrix License server in your environment, to provide you with the Citrix licenses.

  • Virtual Delivery Agent (VDA): The Virtual Desktop Agent needs to be installed on the virtual machines to which all the users will be connected. It enables the machines to register themselves with the controllers and manage the HDX connection between the machines and the user devices. There are two types of VDA agents available:

    • VDA agent for the Windows Server OS

    • VDA agent for the Windows Desktop OS

  • StoreFront: Citrix StoreFront is the replacement of the Citrix Web Interface product. It provides a similar functionality with some enhancements that provide access to published apps or desktops as per user needs.

  • XenDesktop Controller: Access to all the apps and desktops are centrally managed by the Controller server.

  • Citrix Director: The Director provides a real-time dashboard supplying diagnostic information for users, applications, and desktops. This is commonly used as the first level of troubleshooting.

  • EdgeSight: If you require historical trending data for analysis and performance, then EdgeSight is the tool for you provided by Citrix, free of cost, with the Platinum license. You can also look at the more capable tool provided by Citrix, until recently called Citrix Insight, which succeeded EdgeSight.

  • Citrix Studio: It's one of the management consoles that provide a simple GUI interface to create and manage desktops and apps.

Note

For detailed information on the XenDesktop architecture, please read Getting Started with XenDesktop 7.x, Craig Thomas Ellrod, Packt Publishing.

 

MCS versus PVS™


Anyone who has worked on XenDesktop will have definitely heard the terms: MCS and PVS. You have to choose either MCS or PVS to deploy VDI in an Enterprise environment. This is one of the major concerns for every organization, which they would like to be answered by a Citrix solution architect while working on a desktop virtualization project:

Which delivery technology is better, MCS or PVS?

Now, let's start by learning some basics about these two technologies.

Machine Creation Service (MCS) provides the simplest functionality for the creation and maintenance of desktop catalogs. A step-by-step walkthrough on how to create/configure this feature can be found in the XenDesktop 7.x install guide. You can easily download this guide from http://www.citrix.com.

MCS-based deployment will have the following characteristics:

  • A master image is prepared from a standard VM with all the customized apps and software that an admin wants in his virtual desktop.

  • A master image file (.vmdk or .vhd depending on the supported hypervisors Hyper-V, XenServer, or VMware ESXi) is stored in the central datastores attached to the hypervisor pool.

  • The admin provides custom settings for vCPU, memory, HDD, and many more.

  • VMs are created as linked clones with at least two disks attached to them; a base OS disk and a personality disk containing the machine-related information.

  • One difference disk will be attached to the VMs that are used to store and write the information to the VM. The disk used is as thin as provisioned (it needs to be checked for storage compatibility, if it is supported) and the disk size will grow along with your base disk to the maximum if required.

  • A personal vDisk can also be attached to each VM to store persistent changes for users.

There are four types of resource catalog that MCS offers:

  • Pooled-Random: This is most commonly used for standard users. Here, the desktops are assigned randomly. When the user logs off, the desktop becomes free and is available for another user. Any changes made to the desktops are undone on reboot.

  • Pooled-Static: These desktops are for task workers who need the same desktop every time they log on. These desktops are assigned to a single user and on user logoff this desktop is not free for other users. On rebooting, any changes made to these desktops are undone like Pooled-Random.

  • Dedicated or personal desktops: These desktops are meant to provide persistence to users and are recommended for task workers who need their own set of apps and control on their desktops. These are permanently assigned to a single user. When the user logs off, these desktops are not available in the pool for other users. All the changes made remain intact with subsequent reboots.

  • XenApp based Shared Desktops: You have been using these desktops since the old MetaFrame Presentation server model. These are the hosted server-based published desktops where the server desktop is made available to the users to be shared with a set of users simultaneously.

    Tip

    You can also club pooled desktops with a personal vDisk to provide persistency to user-level changes.

The following diagram outlines the basic architecture of MCS:

Provisioning Service (PVS) infrastructure is a result of Citrix acquiring Ardence, which is based out of Virginia, US. Ardence developed a boot program called the Ardence boot program that works on the PXE TFTP technology on which PVS streaming works. If you have worked on PVS previously, you must have heard of the major component ARDBP32.BIN being used for streaming in PVS, it still has the first three initials from Ardence.

PVS is a software streaming technology that Citrix uses to provide on-demand streaming of operating system content in real time from a single shared-disk residing anywhere on the network. Apart from the on-demand streaming, PVS simplifies image management as you don't have to manage images separately. Single-image management simplifies everything and you don't need to purchase any desktop deployment tools to manage this image.

Provisioning Services manages all writes to the vDisks with PVS write cache when using a vDisk in Standard mode (it is often called the read-only mode). You can configure the location of your write cache as follows:

  • Cache on provisioning server (with or without persistence)

  • Cache on target device RAM

  • Cache on target device RAM with overflow to HDD

  • Cache on target device hard drive (with or without persistence)

One of the most commonly used methods to store a write cache is to store it in the target device hard drive. There is a very good reason to follow this approach as it keeps the write location close to the target device, which actually minimizes the additional load on the PVS servers and also minimizes the load on the network.

Refer to the following diagram for the basic PVS architecture:

PVS architecture

Refer to the following diagram for the basic PVS communication flow:

PVS communication flow

A PVS-based device can have three types of disks attached to it:

  • The base OS shared disk is placed at the central PVS vDisk store and is streamed on each VM using PXE boot or BDM. You won't find this disk on the VM configuration on hypervisor, as this is streamed to VM either via PXE boot using either TFTP from a vDisk store or using BDM ISO.

    Note

    Boot device manager (BDM) is a utility that provides an optional method for providing IP and boot information to target devices. With this method, when the target device is booted, it fetches the boot information directly from the boot device. So, the target device would use this information to locate and boot from the required provisioning server.

  • The write cache disk, unless you have set the write cache on the PVS server or the device RAM.

  • A personal vDisk.

XenDesktop offers four types of resource catalog with PVS. The first three are the same as the first three resource catalogs that MCS offers, which we covered earlier in this section; that is, Pooled-Random, Pooled-Static, and XenApp-based Shared Desktops. The last one is Remote PC Access, which is a regular Windows desktop that is assigned to a single user which can be accessed locally or remotely.

Note

We can utilize a personal vDisk or persistent cache to permanently store the changes made by users. The changes remain permanent after reboot as well.

 

What's new in XenDesktop® 7.x?


With the release of Citrix XenDesktop 7, Citrix has introduced a lot of improvements over the previous releases. With every new product release, there is a lot of information published and sometimes it becomes very difficult to get the key information that all the system administrators will be looking for in order to understand what has been changed and what are the key benefits of the new release.

The purpose of this section is to highlight the new key features that XenDesktop 7.x brings to the fore for all Citrix administrators.

Note

This section does not provide you with all the details regarding the new features and changes that XenDesktop 7.x has introduced but highlights the key points that every Citrix administrator should be aware of while administrating XenDesktop 7.

The key highlights of XenDesktop 7.x are as follows:

  • XenApp and XenDesktop are now a part of a single setup

  • Cloud integration to support desktop deployments on the cloud

  • The IMA database doesn't exist anymore

  • The IMA is replaced by FlexCast Management Architecture (FMA)

  • Zone concept—there are no more zones or ZDC (data collectors)

  • Database support—Microsoft SQL is the only supported database

  • Sites are used instead of farms

  • Console integration—XenApp and XenDesktop can now share consoles; Citrix Studio and Desktop Director are used for both products

  • Shadowing feature is deprecated; Citrix recommends Microsoft Remote Assistance for use

  • Locally installed applications integrated to be used with server-based desktops

  • HDX and mobility features

  • Profile management is included

  • MCS can now be leveraged for both server and desktop OS

  • MCS now works with KMS

  • Storefront replaces Web Interface

  • Remote PC access

  • No more Citrix streaming Profile Manager; Citrix recommends that you use MS App-V

  • XenApp installation—core component is replaced by a VDA agent

 

Summary


We now have a basic understanding of desktop virtualization concepts, architecture, new features in XenDesktop 7.x, and XenDesktop delivery models based on the FlexCast technology that involve Machine Creation Services and Provisioning Services.

Our next chapter will focus on introducing the troubleshooting toolkit that is a must for every Citrix administrator who wants to learn to troubleshoot XenDesktop.

About the Author
Latest Reviews (3 reviews total)
Great book, always interesting reads from Packtpub, probably have over 50 titles from them now!
Troubleshooting Citrix Xendesktop
Unlock this book and the full library FREE for 7 days
Start now