Optimizing Citrix® XenDesktop® for High Performance - Craig Thomas Ellrod - E-Book

Optimizing Citrix® XenDesktop® for High Performance E-Book

Craig Thomas Ellrod

0,0
39,59 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Citrix XenDesktop is a suite of desktop virtualization tools designed to provide users with fast and convenient access to their Windows desktops and applications through any device. Virtual desktops mean that rather than setting up hundreds or thousands of individual computers in an enterprise, companies can instead opt to create servers with large amounts of memory, disk, and processing resources, and use virtualization to offer these resources to end users. The result of this is that users are provided with an experience that appears to be identical to having an individual desktop PC. Each user has some disk space, processor time, and memory allocated to them, as though it is present on their own physical machine, when in reality, the resources are physically present on a centralized server.
This book starts by answering the basic questions you need to ask when considering XenDesktop, followed by methods of how you can properly size your server infrastructure for XenDesktop. You’ll discover how to optimize the virtual machines used in XenDesktop, how to optimize your network for XenDesktop, and how to optimize the hypervisor and the cloud. You’ll also learn how to monitor XenDesktop to maximize performance.
By the end of the book, you will be able to plan, design, build, and deploy high performance XenDesktop Virtualization systems in enterprises. You will also know how to monitor and maintain your systems to ensure smooth operation.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 251

Veröffentlichungsjahr: 2015

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Optimizing Citrix® XenDesktop® for High Performance
Notice
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. XenDesktop® Architecture
Introduction
Getting started with hypervisors
Architecture
The Clients layer
The Network layer
The Access layer
The Control layer
The Services layer
The Resources layer
The Storage System layer
The Hypervisors layer
Terminology and concepts
Hyperthreading
The server side
The client side
Virtual machine
Server virtual machines
Desktop virtual machines
XenApp®
EdgeSight®
FlexCast®
Components
Citrix Receiver™
Hypervisor
NetScaler®
StoreFront™
Delivery Controller
Studio
Director
The License Server
Database
Active Directory
DHCP
DNS
Desktop
Server
Storage
vDisk
Personal vDisk
Virtual Desktop Agent
Summary
2. Sizing
System requirements
Citrix Receiver™
StoreFront 3.x
Database–Microsoft SQL Server
Studio
The Delivery Controller
Director
License Server 11.x
NetScaler VPX™
CloudBridge VPX™ (WAN Optimization)
Virtual Delivery Agent
Microsoft Active Directory
Microsoft DHCP Server
Microsoft DNS Server
Hypervisor host
XenDesktop® site sizing calculations
Storage calculation
vMem–memory calculation
vCPU–CPU calculation
vNIC–network bandwidth
User type
Small XenDesktop® site
Medium XenDesktop® site
Large XenDesktop® site
Enterprise XenDesktop® site
Summary
3. Hypervisors
VMware rings
XenServer® domains
Hyper-V partitions
Full virtualization
Paravirtualization
Hardware-assisted virtualization
Hypervisor Tools
VMware Tools
XenServer® Tools
Hyper-V Tools
Summary
4. Memory Optimization
XenDesktop® nugget
Hypervisor memory optimization
Memory
VMware
Memory overhead
Transparent page sharing
Ballooning
Hypervisor swapping
Compression
How memory reclamation works
Virtual machine memory allocation
XenServer®
Memory overhead
Memory overhead calculation
Dynamic Memory Control
Dynamic memory mode
Target memory mode
Static Memory Maximum
Hyper-V
Memory overhead
Static memory
Dynamic memory
Summary
5. Network Optimization
XenDesktop® nugget
Network virtualization
Traffic separation
QoS
ICA/HDX virtual channels
Multi-stream and multi-port
Multi-stream policy settings
Multi-stream registry settings
Streams
Virtual Channels
Virtual networking
Virtual Ethernet adapters
Virtual Switches
VMware virtual networking
VM DirectPath I/O
Network I/O Control
VMXNET 3
Large Receive Offload
Port Groups
Virtual Switch VLAN
Virtual Guest VLAN Tagging
External Switch Tagging
NIC Teaming
Load balancing
Link aggregation
Failover protection
VMware networking maximums
VMware networking tweaks
XenServer® networking
XenServer® networking maximums
XenServer® networking tweaks
Hyper-V networking
Hyper-V networking maximums
Hyper-V networking tweaks
Summary
6. Storage Optimization
XenDesktop® nugget
Input/output operations per second
Data de-duplication
Personal vDisk
Storage types
Block versus file
File storage types
Block storage types
Local versus network
Local storage
Network storage
Hyper converged storage
Redundant array of inexpensive disks
Cloud storage technologies
Storage virtualization
VMware virtual storage
Datastores
Virtual machine filesystem
Virtual machine storage
vMotion
VMware storage limits
Virtual machine limits
VMware ESXi host limits
VMware storage tweaks
VSAN
vFRC
CBRC
Storage I/O Control
I/O Analyzer
SCSI Controller
XenServer® virtual storage
Repositories
Blkfront, blkback, blktap, and tapdisk
Tapdisk3
Storage resource pools
IntelliCache
XenMotion®
XenServer® storage limits
Virtual machine limits
XenServer® host limits
XenServer® pool limits
XenMotion® limits
XenServer® storage tweaks
Sanbolic Melio
Workload balancer
Storage buffer
Blkback page pool size
Blktap page pool size
Communication rings
I/O scheduler
Hyper-V virtual storage
Cluster Shared Volumes
Resilient filesystem
Live migration
Storage spaces
Tiered spaces
Disk storage types
Hyper-V storage limits
Hyper-V storage tweaks
SMB Direct
Storage drivers
Unnecessary protocols
Default disk path
Storage controller
Disk storage type
Storage QoS
Summary
7. CPU Optimization
XenDesktop® nugget
Virtual CPUs
Hyperthreading
Non-uniform memory access
Intel VT
AMD-V
CPU virtualization
VMware virtual CPUs
Shares, reservations, and limits
VMware virtual CPU limits
Virtual machine limits
VMware ESXi host limits
VMware vCPU tweaks
Power management
NUMA in VMware
Latency sensitivity
XenServer® virtual CPUs
XenServer® virtual CPU limits
Virtual machine limits
Host limits
XenServer® vCPU tweaks
Disable power management
Caps, pins, and weights
CPU tools
irqbalance
numad
The number of Dom0 vCPUs
Netback threads
Hyper-V virtual CPUs
Hyper-V vCPU limits
Virtual machine limits
Host limits
Hyper-V vCPU tweaks
Integration services and Enlightened I/O
Roles
64 versus 32
1:12 overcommit ratio
Summary
8. Performance Monitoring
XenDesktop® nugget
The ICA protocol
XenDesktop® Director and EdgeSight®
Using HDX Insight™
Third-party tools
eG Innovations
Lakeside software
XenDesktop® performance metrics
VMware monitoring tools
GUI tools
CLI tools
vCLI
PowerCLI
esxtop
Memory
CPU
Network
Storage
XenServer® monitoring tools
GUI tools
CLI tools
Round Robin Databases
xentop
Memory
CPU
Network
Storage
xenmon
xm
Hyper-V monitoring tools
GUI tools
Hyper-V Manager
CLI tools
PowerShell library
Resource metering
Memory
CPU
Network
Storage
Load testing
Summary
9. Acceleration
XenDesktop® nugget
Application Delivery Controllers
Load balancer
Secure ticket authority
ADC caching
ADC compression
WAN Optimization Controllers
WAN caching
WAN compression
WAN de-duplication
WAN latency reduction
WAN quality of service
WAN protocol optimization
Content Delivery Networks
Virtual Desktop Infrastructure Content Delivery Network
Three dimensional graphics and high definition
HDX™
HDX™ 3D
Thin clients
Summary
10. XenDesktop® Component Tweaks
Citrix Receiver™ tweaks
Caching
Compression
Keyboard and mouse
Citrix® Virtual Desktop tweaks
Citrix® StoreFront™ tweaks
HTML5
CRL checking
Disable NetBIOS
Socket pooling
Application Initialization
Citrix® Studio tweaks
Database split
Citrix® Director tweaks
Pre-populate domain
Session timeout
Citrix® Delivery Controller tweaks
SQL mirroring
Connection Leasing
Separate roles
Citrix® License Server tweaks
Active Directory tweaks
Disable forest searching
DHCP and DNS
SQL databases
Citrix Provisioning Services™
Spanning Tree
Large Send Offload
Auto negotiation
Stream service isolation
Summary
Index

Optimizing Citrix® XenDesktop® for High Performance

Optimizing Citrix® XenDesktop® for High Performance

Copyright © 2015 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: December 2015

Production reference: 1181215

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78528-768-8

www.packtpub.com

Notice

"The statements made and opinions expressed herein belong exclusively to the author and reviewers of this publication, and are not shared by or represent the viewpoint of Citrix Systems, Inc. This publication does not constitute an endorsement of any product, service, or point of view. Citrix makes no representations, warranties or assurances of any kind, express or implied, as to the completeness, accuracy, reliability, suitability, availability, or currency of the content contained in this publication or any material related to this publication. Any reliance you place on such content is strictly at your own risk. In no event shall Citrix, its agents, officers, employees, licensees, or affiliates be liable for any damages whatsoever (including, without limitation, damages for loss of profits, business information, or loss of information) arising out of the information or statements contained in the publication, even if Citrix has been advised of the possibility of such loss or damages.

Citrix, Xen, XenApp, XenDesktop, XenMobile, XenServer, XenMotion, XenCenter, NetScaler, MetaFrame, EdgeSight, FlexCast, Citrix Receiver, StoreFront, Citrix Ready, CloudPortal, CloudBridge, ICA, HDX, HDX Insight, Citrix Workspace Cloud, Sanbolic, Melio, and other Citrix marks and brands appearing herein are trademarks of Citrix Systems, Inc. and/or one or more of its subsidiaries, and may be registered in the U.S. Patent and Trademark Office and in other countries."

Some of the images in the chapters are taken from the Citrix website and documentation.

Credits

Author

Craig Thomas Ellrod

Reviewers

Erik Bakker

Rene Lindeboom

Jan Hendrik Meier

Florian Zoller

Commissioning Editor

Zeeyan Pinheiro

Acquisition Editor

Tushar Gupta

Content Development Editor

Zeeyan Pinheiro

Technical Editor

Dhiraj Chandanshive

Copy Editor

Kevin McGowan

Project Coordinator

Suzanne Coutinho

Proofreader

Safis Editing

Indexer

Priya Sane

Graphics

Kirk Rocque D'Penha

Production Coordinator

Nitesh Thakur

Cover Work

Nitesh Thakur

About the Author

Craig Thomas Ellrod has more than 25 years of experience in the computer industry and holds a bachelor's of science degree in computer science from California State University, Chico, and a master's in business administration from Pepperdine University. He has held many positions in the computer industry, including software programmer, support engineer, field and corporate system engineer, technical marketing manager, product marketing manager, and product manager. He has worked for companies such as Celerity Computing, Emulex, Pinnacle Micro, Sync Research, Cisco Systems, Citrix Systems®, Extreme Networks, and other smaller start-up ventures.

Craig currently works for Akamai as a solutions engineer and system architect in the Rockies region of the USA. He has authored patent applications and patent designs and received an innovation award while at Extreme Networks. Craig is passionate about technical marketing. He has written many deployment guides and is well versed in all Citrix® products. He also wrote a book on technical marketing, authored a XenApp® 6.5 video series, and wrote a book on Getting Started with XenDesktop® 7.x, Packt Publishing.

About the Reviewers

Erik Bakker is a freelance consultant/architect based in the Netherlands with a strong focus on Microsoft and Citrix® virtualization technologies (SBC and VDI). He is specialized in designing and troubleshooting large Citrix® and Microsoft environments using the latest available technologies.

He's been adept at Citrix® since the early WinFrame product and has since been certified in the complete Citrix suite up to the latest released products as an CCE-V for XenDesktop® 7.6. Besides working with the product, he's also a subject matter expert for Citrix regarding the Citrix® Virtualization Exams in which he helps to design the final exams.

Next to everything related to Citrix®, he's also an expert in Microsoft technologies. He has a broad knowledge of almost every Microsoft product released and is also certified in all major Microsoft products as an MCSE/MCITP.

Erik can be contacted on Twitter using the @bakker_erik handle or by sending him a message using LinkedIn at https://nl.linkedin.com/in/bakker123.

Rene Lindeboom lives in Almere, Netherlands, together with his wife and two little dogs.

He is (and has been for the last 15 years) a specialist in the fields of server-based computing, Virtual Desktop Infrastructures, and related application delivery technologies. He is also skilled in VMWare View, Horizon, and end user computing technologies such as Citrix® XenMobile®, RES Workspace Manager, and others.

Rene works for Platani Nederland as a senior IT specialist and is experienced in designing, implementing, and troubleshooting or reviewing larger customer environments based upon a sound and pragmatic approach. He likes transferring knowledge to those eager to get acquainted with new technologies and is fascinated by the speed in which technology evolves in this fast-moving world.

Platani Nederland offers specialized knowledge and expertise in all current technologies, delivered to the customer by experienced senior consultants in a quality-driven fashion using lessons learned and common sense. Find out more at http://www.platani.nl.

Follow Rene on Twitter at @renelindeboom or see his LinkedIn profile at http://nl.linkedin.com/in/renelindeboom.

Jan Hendrik Meier has more than 10 years of experience in IT. He started as a trainee for an IT-specialist company. During this time, he had his first contact with products from Microsoft and Citrix®. Now, he is an expert in infrastructure and virtualization solutions. In the Citrix® area, he started to work with an early XenDesktop® (or better XenApp) version—MetaFrame XP. He deepened his knowledge in the following products: Presentation Server, XenApp®, and XenDesktop® and started to expand this with knowledge about various other Citrix® products such as Provisioning Server, NetScaler®, and XenMobile®.

He is currently working as an IT architect for a medium-sized company based in Germany.

Furthermore, he writes books and professional articles on different IT technologies. If he finds interesting problems during his job, he writes description and solutions for them on his blog, which can be found at http://www.jhmeier.de.

I wish my daughter Evi an awesome and wonderful life. May all her wishes be fulfilled.

Florian Zoller works as a lead IT architect at msg services, a consulting company based in Germany. He has several years of experience in designing and implementing Citrix® infrastructures for midsize and large customers. Besides his expert knowledge of XenApp®/XenDesktop®, XenMobile®, and Netscaler®, he focuses on software distribution and automation technologies such as Heat software desktop and server management, PowerShell, and so on.

www.PacktPub.com

Support files, eBooks, discount offers, and more

For support files and downloads related to your book, please visit www.PacktPub.com.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

https://www2.packtpub.com/books/subscription/packtlib

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why subscribe?

Fully searchable across every book published by PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

Free access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.

Preface

Citrix® XenDesktop® is a desktop virtualization and a VDI solution that delivers Windows desktop experience as an on-demand service to any user, anytime, anywhere. It suits all types of workers from task workers and knowledge workers to mobile "work shifting" workers. XenDesktop® delivers complete desktops and applications quickly and in a secure manner while providing a high-definition user experience at the same time.

Instead of managing thousands of static desktop images, you can manage and update the desktop OS and applications once, from a single location. If you can corral all your user resources in the data center, you can get a better grasp of the security and better the policy compliance.

My first book, Getting Started with XenDesktop® 7.x, provides comprehensive details on how to design, implement, and maintain a desktop delivery site using XenDesktop®. It teaches you about management, policies, printing, USB support, storage and backup, the High Definition User Experience (HDX™), application delivery, the XenDesktop® SDK, Citrix Receiver™, security, and running XenDesktop® from the cloud.

If you are reading this book, you have most likely implemented XenDesktop® or are sizing and scoping your deployment. Once you have read the first book and understood how to install XenDesktop®, you will want to dig deeper into the topic of optimizing performance. You can't implement XenDesktop® realistically without understanding performance. The more information you have, the more you will be prepared to design and manage performance issues ahead of time.

You may have installed a previous version of XenDesktop® and found that XenDesktop® 7.x is different than the previous versions. This book will be helpful even if you are a desktop virtualization veteran or new to the game and starting fresh. In this book, we will walk through the architecture of Citrix® XenDesktop® to help you understand where the performance weak points are and how to optimize the product.

What this book covers

Chapter 1, XenDesktop® Architecture, covers the definition of some basic XenDesktop® architectures and the different components involved. We learn about some terminologies and concepts that are important to understand as a baseline before addressing performance.

Chapter 2, Sizing, teaches you to size the different components of XenDesktop® architecture. It provides you with some tools to help you keep your deployment within the bounds of comprehension.

Chapter 3, Hypervisors, examines how the virtual hardware operates in general and how it relates to XenDesktop® and then we continue down that path. Before we do that, we need to have a discussion on how virtualization works in relation to the underlying hardware.

Chapter 4, Memory Optimization, covers all of the weak points or places where we might want to focus on optimization, starting with virtual memory.

Chapter 5, Network Optimization, focuses on how the virtual hardware operates in relation to XenDesktop® with regards to networking.

Chapter 6, Storage Optimization, covers arguably the most important and most talked about topic of virtualization. There are many different types of storage, we review them in this chapter and find out which one is best for XenDesktop® and virtualization. It also includes a discussion on the controversial subject of IOPS.

Chapter 7, CPU Optimization, covers CPU virtualization and some concepts around optimizing performance. A lot of information passes through the CPU whether it's virtualized or not. When you install a hypervisor, it carves up the physical CPU into virtual CPUs and with the advent of hyper-threading, the number of vCPUs doubles conceptually.

Chapter 8, Performance Monitoring, focuses on how to monitor the performance of XenDesktop® and includes some sample tools, both GUI and CLI based.

Chapter 9, Acceleration, discusses performance optimization beyond the XenDesktop® site such as the WAN. You can control performance inside the hypervisors, hardware, and datacenter in which you deploy your XenDesktop® infrastructure.

Chapter 10, XenDesktop® Component Tweaks, covers some additional performance-enhancing tweaks for individual VDI components.

What you need for this book

The following are the software components that are required for this book:

Microsoft Windows Server 2012 R2XenDesktop® 7.xCitrix® NetScaler®Citrix CloudBridge WAN OptimizationHypervisor (Citrix® XenServer® 6.x.x, VMware vSphere (ESX 5.x), Microsoft System Center Virtual Machine Manager 2012 Rollup 1 for Hyper-V)

The following are the license requirements for this book:

Microsoft Windows Server 2012 R2Microsoft Windows XP, 7, and 8Microsoft Terminal ServicesXenDesktop®Citrix® NetScaler®Citrix® CloudBridge™ WAN Optimization product

The following are the hardware requirements for this book:

Hypervisor Host ServersNetwork infrastructureClient devices

The following are the XenDesktop® components used in this book:

StoreFront™Delivery ControllerStudioDirectorLicense ServerDesktopsApplication ServersNetScaler Gateway™:
StoreFront™ frontend
CloudBridge™:
CloudBridge™ ConnectorCloudBridge™ WAN Optimization

The following are the Microsoft products used in combination with Citrix® XenDesktop® components that are used in this book:

Microsoft SQL ServerMicrosoft Active DirectoryMicrosoft DHCPMicrosoft DNS

Who this book is for

If you are a system administrator, architect, consultant, or beginner who has implemented XenDesktop® sites and is looking for tips on performance optimization, then this book is for you. This book will help both new and experienced XenDesktop® professionals to deliver desktops and applications that provide an outstanding user experience.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to <[email protected]>, and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from: http://www.packtpub.com/sites/default/files/downloads/7688OS_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at <[email protected]> with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at <[email protected]> if you are having a problem with any aspect of the book, and we will do our best to address it.

Chapter 1. XenDesktop® Architecture

In this first chapter, we'll start with defining some basic XenDesktop architectures and the different components involved. We'll also visit some terminology and concepts that are important to understand as a baseline before addressing performance. As your XenDesktop sites grow, performance will be impacted, so getting the blueprint right first time is critical. One thing we often say in our business is "measure twice, and cut once". In this chapter, we will cover the following:

IntroductionArchitectureTerminology and conceptsComponents

Introduction

XenDesktop is a desktop virtualization and Virtual Desktop Infrastructure (VDI) solution that delivers a Windows desktop experience as an on-demand service to any user, anytime, anywhere. It suits all types of workers, from task workers or knowledge workers, to mobile workshifting workers. XenDesktop quickly and securely delivers complete desktops or applications while providing a high-definition user experience.

XenDesktop is a desktop virtualization solution that optimizes the delivery of desktops, applications, and data to end users. It includes all the capabilities to deliver desktops, applications, and data securely to every type of user in an enterprise. Instead of managing thousands of static desktop images, you can manage and update the desktop OS and applications once, from one location.

My other book, Getting Started with XenDesktop® 7.x, Packt Publishing, provides comprehensive details on how to design, implement, and maintain a desktop delivery site using XenDesktop. It also includes topics on management, policies, printing, USB support, storage and backup, the High Definition User Experience (HDX), application delivery, the XenDesktop SDK, the Citrix Receiver, and running XenDesktop from the cloud.

If you are reading this book, you have most likely heard of the desktop virtualization concept. You may have done some basic research on the topic or installed a previous version of XenDesktop. If you are a desktop virtualization veteran or new to the game and starting your proof of concept, this book will be helpful. In this book, we will assume you already have a XenDesktop environment or are planning one. We will help you understand the different topics surrounding XenDesktop performance.

Getting started with hypervisors

Before we get started, you will need to understand what a hypervisor is. A hypervisor is a thin operating system that hosts multiple instances of disparate operating systems. It can also be defined as software that can create and run virtual machines. The hypervisor software runs on server hardware that is enabled for virtualization. Once this is installed, you can install several instances of different operating systems onto the hypervisor. The hypervisor was game-changing, because instead of running one operating system per server, you could now run X number of operating systems on one server, saving space and money.

There are several vendors that make hypervisors, such as Citrix XenServer, VMware ESXi, Microsoft Hyper-V, and the Linux open source Kernel Virtual Machine (KVM). There are two types of hypervisors:

Type 1 hypervisors, which run directly on the server hardware. These are also known as "bare-metal" hypervisors.Type 2 hypervisors, which run on top of an operating system, which then run on the server.

As you can imagine, the Type 1 hypervisors have been touted to have better performance as they interact directly with the server hardware resources.

Citrix XenServer and VMware ESXi are Type 1 hypervisors. Microsoft Hyper-V is presumably a Type 1 hypervisor. There has been debate over whether Hyper-V is a Type 1 or Type 2 hypervisor mainly because you first install the Windows server operating system and then turn on the Hyper-V role, giving the perception that Hyper-V is running on top of or with the help of the Windows Server operating system. Obviously, XenDesktop runs on Citrix XenServer, but it can also run on VMware ESXi and Microsoft Hyper-V.

Note

At the time of this writing, XenDesktop does not run on KVM. You could probably make it work. Citrix does not officially support KVM. Tribal Knowledge says you could run XenDesktop on KVM, but you would not be able to use MCS or PVS automation for creating VMs.

The following diagram gives you a visual idea of the differences between the types of hypervisors compared to traditional servers. It also shows how the interaction between these components contends for hardware resources and ultimately affects performance and sizing of hardware resources:

Architecture

Before we can start designing the XenDesktop infrastructure, we need to understand the core components that go into building it. XenDesktop can support all types of workers, from task workers that run Microsoft Office applications, to knowledge users that host business applications, to mobile workshifting users, to high-end 3D application users. XenDesktop scales from a small business supporting five to ten users up to large enterprises supporting thousands of users.

In the XenDesktop architecture, there are several sections called layers that are used to group certain functions together. Each layer is comprised of logical groupings of resources to help you better understand the roles each type of component plays.

The following is a simple diagram to illustrate the components that make up the XenDesktop architecture:

Referring to this diagram, you now have a visual representation of how a simple site will look when finished. Let's take a look at each individual component so you understand the role of each one.

The Clients layer

The Clients layer contains all the clients. It seems simple, and it is. Citrix Receiver is device-agnostic, so it will run on any device. You name it, and it will be capable of connecting to a XenDesktop.

The Network layer

One of the benefits of XenDesktop is that it creates a light network load for the client connections. However, we call out the Network layer because this is a potential pinch point in large XenDesktop deployments—a place where performance can be degraded or bottlenecked. The network layer is a general term and refers to every piece of the network, from the client device, through the wide area network, the cloud, and into the datacenter where XenDesktop is being hosted.

The Access layer

The Access layer is where you place the NetScaler to frontend your XenDesktop site. You can also place the StoreFront servers here. This layer contains resources that provide a portal for your clients to connect to the XenDesktop site. This layer is similar to DMZ computing in traditional network architectures.