citrix xenapp 50 for windows 2008 - a hands-on guide
TRANSCRIPT
You may distribute this eBook freely, and/or bundle it as a free bonus with other products, as long as it is left
completely intact, unaltered and delivered via this PDF file. You may also republish excerpts as long as they
are accompanied by an attribution link back to http://www.xenappblog.com.
This eBook contains affiliate links. Enjoy.
Copyright © 2010 Trond Eirik Haavarstein. Some rights reserved.
Trond Eirik Haavarstein Revision 1.0 March 6, 2010
Trond Eirik Haavarstein Revision 1.1 – Added Rackspace October 12, 2010
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 2
Table of Contents Introduction ......................................................................................................................................... 4
Configure lab on Rackspace Cloud ...................................................................................................... 4
Introduction to Rackspace ............................................................................................................... 4
Getting started with Rackspace Cloud ............................................................................................ 4
Sign in to your account .................................................................................................................... 5
Setting up your iPhone/iPad with the Rackspace Cloud App .......................................................... 8
Some Rackspace Cloud App Screenshots ........................................................................................ 9
Configure lab on Citrix XenServer ....................................................................................................... 9
How to Install Citrix XenServer from USB ....................................................................................... 9
Install Citrix XenServer 5.5 ............................................................................................................ 10
Install Citrix XenCenter 5.5 ............................................................................................................ 13
Update XenServer & XenCenter .................................................................................................... 15
Configure ISO repository ............................................................................................................... 18
Create a XenServer Windows 2008 x32 template ......................................................................... 20
Citrix Lab Configuration Information................................................................................................. 27
Configure Domain Controller – DC01 ................................................................................................ 28
Install Active Directory .................................................................................................................. 28
Install DHCP Server ........................................................................................................................ 33
Create File Share and System Environment Variable .................................................................... 37
Install Remote Desktop Licensing Pre Req’s for Citrix Licensing / Web Interface ........................ 46
Install Citrix License Server ............................................................................................................ 47
Install Citrix Web Interface ............................................................................................................ 50
Install Microsoft SQL Server Express ............................................................................................. 52
Configure Terminal Server – XA01 .................................................................................................... 53
Install Microsoft Terminal Services ............................................................................................... 53
Install and Configure Com+ Network Access................................................................................. 59
Optimize Virtual Machine for Citrix XenApp ................................................................................. 59
Install Citrix XenApp 50 for Windows 2008 x32 ............................................................................ 60
Install Citrix Profile Management .................................................................................................. 69
Install free Core Applications on the Citrix XenApp Server ........................................................... 70
Publish Applications with Citrix Access Management Console ..................................................... 70
Configure Citrix Web Interface - DC01 .............................................................................................. 75
Configure Group Policies – DC01....................................................................................................... 78
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 3
Configure Group Policy Central Store ........................................................................................... 78
Import Group Policy from backup ................................................................................................. 79
Create Active Directory test users ................................................................................................. 83
How to Clone a Citrix Server.............................................................................................................. 84
Online Resources used in this lab ...................................................................................................... 86
Acknowledgements ........................................................................................................................... 87
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 4
Introduction The content in this guide assumes that the reader is familiar with Citrix and Microsoft technology,
and is planning or evaluating the use of Citrix XenApp on Terminal Services.
A picture speaks a thousand words and this guide uses mainly picture to take you through the steps
to setup your lab environment. Please note that this guide is provided “as is” and that using this is at
your own risk.
Configure lab on Rackspace Cloud
Introduction to Rackspace
If you don’t have access to your own lab environment you could create your own in the cloud. The
process is very simple, fast and cheap. For those of you that have the proper hardware to install
XenServer on could jump to the next chapter “Configure lab on XenServer”.
The advantages of a cloud based lab are many, but I would like to highlight some.
Pro:
Fast download speed – I got 8 mb/s from Microsoft
Fast deployment – Server up and running in less than 2 minutes
You pay per hour – Set up your lab on a weekend to minimize the cost
Cons:
No access to the XenServer
Not possible to setup a XenDesktop / Provisioning Services lab
Getting started with Rackspace Cloud
Head over to www.RackSpace.com and Click Order Now in the Cloud Servers section.
Select Cloud Server and fill in your desire username & password and billing information.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 5
After you have placed your order you’ll receive a phone call within 15 minutes to verify your account.
Once the account has been verified you’ll receive an email from Rackspace Cloud.
Sign in to your account
Select the Windows tab and the image you would want to provision.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 6
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 7
When the server is finished you’ll receive an email from Rackspace.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 8
Setting up your iPhone/iPad with the Rackspace Cloud App
To enable API access you’ll need to find the API key from the Account page. Select “Show Key”
I recommend copy & pasting the API key into a mail and sending it to an email account you can
access from your iPhone / iPad. It’s pretty long so it’s much easier to copy & paste it into the
application.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 9
Some Rackspace Cloud App Screenshots
You can even create new virtual machines from the application.
Configure lab on Citrix XenServer
How to Install Citrix XenServer from USB
Download Citrix XenServer ISO from http://www.citrix.com/xenserver/download and UNetbootin
from http://unetbootin.sourceforge.net. Format your USB drive with FAT32 and start the UNetbootin
program. Select “Disk image” and browse your computer for the XenServer ISO image.
To install XenServer you will need to enable Virtualization support in BIOS as well as setting the USB
drive as the first boot device or simply use the proper hotkey to select boot device.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 10
Install Citrix XenServer 5.5
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 11
Select No to install Linux Pack
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 12
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 13
Install Citrix XenCenter 5.5
Download the latest version of Citrix XenCenter from http://www.citrix.com/xenserver/download
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 14
Start Citrix XenCenter – Server – Add
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 15
Follow the wizard to activate your XenServer license.
Update XenServer & XenCenter
From the XenCenter menu select Help – Check for Updates
Download and install available updates.
To install XenServer updates simply double click the .xsupdate file.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 16
When the patching is finished you will need to reboot your XenServer. Select the Console tab and
type “xsconsole”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 17
Select Reboot or Shutdown
Select Reboot Server and type your credentials
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 18
Press F8 to reboot
Configure ISO repository
From XenCenter select Storage –New Storage Repository – Windows File Sharing (CIFS)
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 19
You now have access to the ISO share from all your Virtual Machines. The ISO share is not part of this
Hands-On Guide setup, but you could create a share on your local computer.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 20
Create a XenServer Windows 2008 x32 template
From the Citrix XenCenter Console select VM – New – Windows Server 2008
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 21
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 22
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 23
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 24
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 25
From the XenCenter menu select VM – Install XenServer Tools
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 26
Download and install Windows 2008 Service Pack 2 and all available Windows Updates. It will require
a couple of reboots to get all the updates installed.
We are now ready to convert this Virtual Machine to template.
Start - Run – Sysprep
Select Generalize and Shutdown - OK
After the machine has shutdown, right click the VM and select Convert to Template.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 27
Now you have a Windows 2008 template. To create a new machine simply double click the template
and the new VM wizard will appear.
Citrix Lab Configuration Information DC01 Operation System Windows 2008 x32 IP address 10.0.10.10 Roles Active Directory / DNS / DHCP / Licensing Server / Citrix Web Interface / SQL XA01 Operation System Windows 2008 x32 IP address 10.0.10.11 Role Terminal Services / Citrix XenApp 5.0 FP2 XA02 Operation System Windows 2008 x32 IP address 10.0.10.12 Role Terminal Services / Citrix XenApp 5.0 FP2
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 28
Configure Domain Controller – DC01
Install Active Directory
Click ”View Network Connections” and “Properties” on your network card to set your IP address
Remove TCP/IPv6 and select Properties on TCP/IPv4
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 29
Click ”Add Roles”
Select ”Active Directory Domain Services”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 30
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 31
Start - Run - dcpromo
Type “ctxlab.local” as the domain name
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 32
Type your preferred password
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 33
Install DHCP Server
Click ”Add Roles”
Select “DHCP Server”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 34
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 35
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 36
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 37
Create File Share and System Environment Variable
Start – Administrative Tools – Share and Storage Management
Create two shares, one called XA (XenApp) and UserHome.
Select Provision Share and create C:\XA
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 38
Click Advanced and select “Enable access-based enumeration” and disable caching
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 39
Change the SMB permissions
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 40
Select Provision Share and create C:\UserHome
Select “Yes, change NTFS permissions” – “Edit Permissions”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 41
Select “Advanced”
Deselect “Include inheritable permissions from this object’s parent” – “Copy”
Then Select Users – Remove - Apply
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 42
Add Authenticate User and select Edit
Set as show below and change Apply to : This Folder Only
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 43
Click Advanced and select “Enable access-based enumeration” and disable caching
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 44
Select “Users and groups have custom share permissions" – “Permissions”
Remove Everyone and set Administrators and Authenticated Users to Full Control
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 45
We are now going to make a System Environment Variable for the share we just created.
Start Server Manager – Change System Properties – Advanced – Environment Variables
Click new under System variables
Now you always have easy access to your XenApp share and makes scripting much easier.
Create the following catalogs
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 46
Download the Core Applications ScriptFrameWork from http://www.xenappblog.com/downloads
and extract into the Applications folder. Follow the instructions in each \Source folder to download
the source files for each application.
Go to www.mycitrix.com and log in with your account to get access to XenApp 5.0 media under the
Downloads section.
Select Citrix XenApp – XenApp 5.0 Feature Pack 2 Platinum Edition
Download and copy the content of XA50W2K8.iso to %XA%\Applications\XA50WS08ENFP2. Then
extract the content of XA50W2K8FP2.zip and overwrite existing files in
%XA%\Applications\XA50WS08ENFP2
Install Remote Desktop Licensing Pre Req’s for Citrix Licensing / Web Interface
Start – Run – Cmd
Copy and paste into Command prompt :
ServerManagerCmd.exe -i TS-Licensing
ServerManagerCmd.exe -i Web-WebServer
ServerManagerCmd.exe -i Web-Metabase
ServerManagerCmd.exe -i Web-Asp-Net
ServerManagerCmd.exe -i Web-Windows-Auth
ServerManagerCmd.exe -i Web-WMI
ServerManagerCmd.exe -i Web-Client-Auth
ServerManagerCmd.exe -i Web-Lgcy-Scripting
ServerManagerCmd.exe -i Web-Lgcy-Mgmt-Console
ServerManagerCmd.exe -i Application-Server
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 47
To view installed Roles & Features type “ServerManagerCmd.exe –q”
Install Citrix License Server
Start – Run - %XA%\Applications\Sun Java 1.6.0.16\Scripts\Install.cmd Start – Run - %XA%\Applications\XA50WS08ENFP2\Licensing\CTX_Licensing.msi
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 48
Start Citrix Licensing Console and Upload your license file
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 49
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 50
Install Citrix Web Interface
Start – Run - %XA%\Applications\XA50WS08ENFP2\Support\JSharp20_SE\vjredist.exe Start – Run - %XA%\Applications\XA50WS08ENFP2\Web Interface\WebInterface.exe
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 51
Deselect “Start creating sites now”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 52
Install Microsoft SQL Server Express
Start – Run -
%XA%\Applications\XA50WS08ENFP2\Support\SqlExpress_2005_SP2\SetupSqlExpressForCPS.cmd
Start – Run – Firewall.cpl
Select “Change settings” – “Exceptions”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 53
Select “Add program” - C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe
Configure Terminal Server – XA01
Install Microsoft Terminal Services
Click ”View Network Connections” and “Properties” on your network card to set your IP address
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 54
Remove TCP/IPv6 and select Properties on TCP/IPv4
Click “Change System Properties” and join the CTXLAB.local domain
Join the CTXLAB.local domain
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 55
Select Restart Now
Click “Switch User” to log on to the CTXLAB domain – “Other User”
Click “Configure IE ESC” in Server Manager and set to off for both Administrators and Users
Click ”Add Roles” and select Terminal Services
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 56
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 57
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 58
Add Domain Users
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 59
Install and Configure Com+ Network Access
Start – Run – Cmd
Copy and paste into Command prompt :
ServerManagerCmd.exe -i Application-Server ServerManagerCmd.exe -i AS-Ent-Services
Start – Programs – Administrative Tools - Computer Management – Local Users & Groups – Groups
Open “Distributed COM Users Properties” and add Domain Admins
Optimize Virtual Machine for Citrix XenApp
From XenCenter select Properties on the Virtual Machine – XA01
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 60
Select “Advanced Options” and select “Optimized for XenApp”
Install Citrix XenApp 50 for Windows 2008 x32
Start Server Manager – Change System Properties – Advanced – Environment Variables
Click new under System variables
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 61
Start – Run - %XA%\Applications\Sun Java 1.6.0.16\Scripts\Install.cmd Start – Run - %XA%\Applications\XA50WS08ENFP2\Citrix Receiver and Plug-ins\Windows\Online
Plug-in\CitrixOnlinePluginFull.exe
Start – Run - %XA%\Applications\XA50WS08ENFP2\Citrix Receiver and Plug-ins\Windows\Offline
Plug-in\CitrixOfflinePlugin.exe
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 62
Start – Run - %XA%\Applications\XA50WS08ENFP2\autorun.exe
Select “Application Virtualization”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 63
Click “OK” to Continue and ignore the message box
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 64
Type DC01
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 65
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 66
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 67
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 68
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 69
Restart the server
Install Citrix Profile Management
Start – Run - %XA%\Applications\XA50WS08ENFP2\Profile Management\profilemgt2.1.0_x86.msi
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 70
Install free Core Applications on the Citrix XenApp Server
Start – Run - %XA%\Applications\Adobe Flash Player 10.0.32.18\Scripts\Install.cmd Start – Run - %XA%\Applications\Adobe ShockWave Player 11.0\Scripts\Install.cmd Start – Run - %XA%\Applications\CutePDF Writer 2.71\Scripts\Install.cmd Start – Run - %XA%\Applications\Foxit Reader 3.0\Scripts\Install.cmd Start – Run - %XA%\Applications\Microsoft Silverlight 20\Scripts\Install.cmd Start – Run - %XA%\Applications\Mozilla FireFox 3.5.3\Scripts\Install.cmd
Publish Applications with Citrix Access Management Console
Start - Programs – Citrix – Management Consoles - Access Management Console
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 71
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 72
Select the Application Node – New – Publish application
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 73
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 74
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 75
Configure Citrix Web Interface - DC01 Start – Programs – Citrix – Management Consoles - Citrix Web Interface Management
Select XenApp Web Sites – Create Site
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 76
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 77
Select XenApp Services Sites – Create Site
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 78
Configure Group Policies – DC01
Configure Group Policy Central Store
In earlier operating systems, all the default Administrative Template files is added to the ADM folder
of a Group Policy object (GPO) on a domain controller. The GPOs are stored in the SYSVOL folder. The
SYSVOL folder is automatically replicated to other domain controllers in the same domain. A policy
file uses approximately 2 megabytes (MB) of hard disk space. Because each domain controller stores
a distinct version of a policy, replication traffic is increased.
Windows 2008 and Vista uses a Central Store to store Administrative Template files. Copy the folder
“C:\Windows\PolicyDefinitions” to \\ctxlab.local\SYSVOL\ctxlab.local\Policies.
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 79
Once this has been completed, the GPMC on Windows Vista and Windows Server 2008 machines will
immediately begin using the templates within the central store.
Import Group Policy from backup
Start – Programs – Administrative Tools – Active Directory Users and Computers
Create two Organizational Units : Servers and XA50WS08
Move the XA01 Computer object into XA50WS08
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 80
Download and extract “XenApp 5.0 Server Tuning Policy” from
http://www.xenappblog.com/downloads and extract it to %XA%\Group Policy
Start – Programs – Administrative Tools – Group Policy Management
Select “Create a GPO in this domain, and Link it here…”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 81
Select “XenApp50 Server - Tuning Policy” from Group Policy Objects
Select Details and set GPO Status to “User configuration settings disabled”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 82
Right click the policy and select “Import settings”
Create and link a new policy with User Configuration Disabled. Configure the policy as shown below :
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 83
Create Active Directory test users
The create home folder for the user and set permissions
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 84
Check the permissions on User1’s home folder to verify that the permissions are set correctly
How to Clone a Citrix Server Download and install Citrix XenApp Cloning Tools from http://www.citrixtools.net
Start – Run – CitrixTools.Net - XenApp Cloning Tool - Cloning Tool
Select “Standard Cloning”
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 85
Start - Run – Sysprep
Select Generalize
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 86
Change the IP address
Join the CTXlab.local domain
Move the Computer object to the proper OU
Restart the server
Online Resources used in this lab Rackspace Cloud http://www.rackspacecloud.com Citrix XenServer / XenCenter http://www.citrix.com/xenserver/download Citrix XenApp Media and Eval License http://www.mycitrix.com UNetbootin http://unetbootin.sourceforge.net Core Applications http://www.xenappblog.com/downloads XenApp 5.0 Server Tuning Policy http://www.xenappblog.com/downloads Thin Client PC http://www.xenappblog.com/downloads XenApp Cloning Tool http://www.citrixtools.net
http://www.xenappblog.com – Follow us on Twitter – Facebook - YouTube Page 87
Acknowledgements In principle, this guide should be about 10 - 15 pages but ended up at 87. I had so much stuff to put
in, but I really had to stop now to get the guide distributed. If this guide gets popular we would
probably see an expanded payable version in the future with more Citrix products, Best Practices and
deployment scripts.
I would really appreciate your feedback, please send me and email: [email protected]
Thanks
Trond Eirik Haavarstein xenappblog.com