Build Your Own XenApp 6.0 in the Cloud

I previously posted how to create a XenApp 5.0 server in Amazon EC2. Now that XenApp 6.0 is released, some folks might want to build XA 6.0 in the cloud. We have already built “ready to use” XenApp servers in Amazon EC2. Just search for Citrix in the AMI section and launch them. You can also find the list of AMI’s here, which are built for use with the Citrix C3 Blueprints.

The following are the instructions to create a XenApp 6.0 server in the cloud. The instructions are for the Amazon EC2 Cloud, although they could be adapted for use with any cloud provider.

Creating a XenApp 6.0 Server in the cloud (Amazon EC2 for example):

Windows Prep

  • Sign in to the Amazon Web Services Console
  • Select the Amazon EC2 Tab
  • Select Images –> AMIs
  • View Amazon Images
  • Search for WIndows Platforms –> 2008R2
    • XenApp 6.0 runs on Windows 2008R2
  • Launch the AMI
    • Make sure you launch it in the same Availability Zone as your other AMI’s and volumes
  • Right-Click to Get Administrator Password
  • RDP to the instance (command prompt, mstsc /console)
  • Change password (Administrative Tools –> Computer Management –> Users –> <user> right click –> Set Password.
  • Set Ec2Config Service Settings. Program Files –> Amazon –> Ec2ConfigSetup –> Ec2ConfigServiceSettings.exe.
    • Uncheck (disable) Set Computer Name.
    • Uncheck (disable) Initialize Drives
    • Uncheck (disable) Set Password, both random and feature after sysprep.
  • Set Computer Name. My Computer –> right click –> Properties –> Computer Name –> Change –> <new computer name>.
    • You will use this hostname to apply for a XenApp license, so make note of it.
  • Restart.

XenApp 6.0 Install

Re-register XML service on port 8081

  • Open a Windows Command prompt in Administrator mode
  • ctxxmlss /u
  • ctxxmlss /r8081
  • iisreset

Launch XenApp Delivery Services Console

  • Publish Notepad, IE and Desktop
  • Auto populate the Domain
    • AMC -> Citrix Resources -> Configuration Tools -> Web Interface -> XenApp -> Configure Authenticaiton methods -> Explicit -> Properties -> Authentication Type -> Settings -> Display Domain Box – Prepopulated.
    • Hide Domain Box.

Launch XenApp Web Interface Console

  • Create Web Interface (Set as default for IIS)
  • Create XenApp Service
  • Set Client Secure Access mode to “Alternate” for EC2 Images only (not VPC images)
  • Upload SetAltAddressService.exe to c:\drive
  • Install SetAltAddressService.exe
    • From command prompt: c:\windows\Microsoft.NET\Framework\v2.0.*\installutil.exe c:\setAltAddressService.exe
  • Username/password: <domain>\Administrator, <password>
  • Set the service to start Automatically.

Clone the Server

  • From the Amazon Web Services Console select Instances under navigation
  • Highlight the server you just created
  • Right-Click “Create Image (EBS AMI)”

Make it public

  • When the building of the AMI (cloning) is finished, set permissions to public so others can launch it (unless you want to keep it a secret)

Note: To change the name of the server to eliminate duplicate hostnames & licensing

  • If this is a single server farm you can just rename the server and get a new license file. Removing the server from the farm would have no affect as it’s the only host in the farm.

It’s powerful!