Tuesday, January 29, 2013

How to Configure Citrix client



How to Configure Citrix client

You can download the Citrix client from below link
http://www.gsi.de/informationen/wti/it/service/CitrixOnlinePluginFull.exe

You may need administrator privilege on your PC to install the ICA client software. Former versions will be uninstalled automatically. Save the plugin to your hard drive and follow the installation instructions.
After completing the installation, you will be asked for the Server Address. Please type: http://abc.com and click the Button Update.

Steps2
After that, type your Username, Password and Domain


Now the connection is configured.
You can see the status at the color of the icon in the right side of the taskbar (if you don't
see it, the inactive icons are activated. You can change this, with a right click on the
Taskbar, choose Properties, tab Taskbar and deactivate Hide interactive icons).


To start a desktop or application, click on the icon and choose Desktops → Desktop



How to Create a XenDesktop Desktop Image



How to Create a XenDesktop Desktop Image

Created On: Sep 23, 2011   /   Updated On: May 25, 2012
Average Rating: 4 (1 ratings)
Summary
This article describes how to create a XenDesktop desktop image.
Prerequisites for a Desktop Image Virtual Machine suitable for XenDesktop
This demonstration uses a XenServer host with sufficient memory and CPU resources available to host a Windows 7 Virtual Machine.
Recommended configuration is - 2 Virtual CPUs and 2048 MB of Memory.
A Workstation running XenCenter is needed in order to manage the creation of the Virtual Machine.
Procedure
Create a Pooled Desktop Image Virtual Machine
  1. From a management workstation, start XenCenter and connect to an environment for hosting the pooled desktop virtual machine.
  1. Select the XenServer host to contain the pooled image virtual machine.
  2. Right click and select New VM…
  1. On the Select a VM template screen, scroll through the selections and choose Windows 7 (64-bit).
    Note: The selection in this step varies depending on the operating system for the virtual desktops required by the enterprise.
  1. Click Next to continue.
  1. Provide a Name and Description for the master image virtual machine.
  2. Click Next to continue.
  1. Specify the operating system media location.
  2. For the purposes of this guide, select the button labeled Install from ISO library or DVD drive:
  3. Specify the ISO or media file containing the operating system installation files.
  4. Click Next to continue.
  1. Select Place the VM on this server.
  2. Choose the XenServer to host the virtual machine.
  3. Click Next to continue.
  1. Specify the desired Number of vCPU (virtual CPU) and Memory resources to allocate to this virtual machine.
  2. Click Next to continue.
  1. Select the desired storage location for this virtual machine.
  2. Click Next to continue.
  1. Configure the virtual network interfaces per specific enterprise standards.
  2. Click Next to continue.
  1. Review the summary screen to ensure accuracy of all settings.
  2. Ensure that the checkbox marked Start the new VM automatically is selected.
  3. Once all settings have been validated, click Finish to allow XenServer to create the virtual machine.
  1. In XenCenter, select the XenServer machine specified to host the master image virtual machine.
  2. Navigate to the Logs tab to monitor the progress of the virtual machine creation.
  3. Ensure to select Start the new VM automatically.
  4. Once all settings have been validated, click Finish to allow XenServer to create the virtual machine.
  1. If no errors occur during virtual machine creation, the new virtual machine is viewable in the navigation tree in XenCenter.
  1. Select the new virtual machine and navigate to the Console tab.
  2. Proceed with the installation of the operating system and all required software.
Configuration and Virtual Desktop Agent Software Installation
  1. In XenCenter, select Master Image VM.
  2. In the DVD Drive1 area for the virtual machine, select xs-tools.iso to mount the XenServer Tools media.
  1. Connect and authenticate to the machine being used for the master image.
  1. Open My Computer and navigate to the DVD-ROM.
  2. Right-click the XenServer Tools media and select Open AutoPlay.
  3. Select Run xensetup.exe from the AutoPlay prompt.
  1. Accept the term of the License Agreement by selecting I accept the terms in the License Agreement and clicking Next.
  1. Select the path to install XenServer Tools. The default being C:\Program Files (x86)\Citrix\XenTools
  2. After specifying the installation location, click Install to begin the process of installing XenServer Tools.
  1. Allow the installation program to proceed to completion.
  1. When the installation has completed, select Reboot now and click Finish.
    Note: The Windows 7 workstation automatically reboots upon clicking Finish. Save any unsaved work prior to completing this step.
  1. Once the client virtual machine has fully restarted, in XenCenter, select the master image virtual machine.
  2. In the DVD Drive1, locate and specific the file containing XenDesktop 5 media.
  1. Connect and authenticate to the machine being used for the master image.
  1. Open My Computer and navigate to the DVD-ROM.
  2. Right-click the XenDesktop media and select Open AutoPlay.
  3. Select Run AutoSelect.exe from the AutoPlay prompt.
  1. Select Install Virtual Desktop Agent.
    Note: Ensure that the user account being used to install the XenDesktop Virtual Desktop Agent has elevated privileges.
  1. Select Advanced Install at the screen to select the type of installation.
Note: In this enterprise scenario, all applications are installed locally. Therefore, XenApp Application Delivery plug-ins are not required.
  1. Clear the box marked Support for XenApp Application Delivery.
  2. Verify that the installation location for the Virtual Desktop Agent is appropriate for the environment. The default is C:\Program Files\Citrix
  3. Once the installation location is verified, click Next to begin the Virtual Desktop Agent installation.
Note: In this enterprise scenario, the Desktop Controllers are configured for the Virtual Desktop Agent. This can be done at a later stage by using Group Policy or the setup wizard.
Note: If using XenDesktop 5.6:
Select Virtual Desktop Agent or Virtual Desktop Agent for HDX 3D Pro and click Next.
  1. if you want to install the Citrix Receiver and click Next.
Select Yes if you want to enable personal vDisk and click Next.
  1. Select Manually enter controller location(s).
  2. In the input box, specify the fully qualified domain name (such as controller1.domain.com) of the Desktop Controllers configured earlier in this guide. If there are multiple controllers, enter each controller’s fully qualified domain name separated by a space.
  3. Click Check to allow the setup wizard to validate the network presence of the specified controllers. This option does not validate whether the Fully Qualified Domain Name provided is actually a controller, so ensure that the actual Desktop Controllers is specified and not another server.
  4. Once the Desktop Controllers are verified, click Next to proceed to the next step in the Virtual Desktop Agent installation.
  1. Validate all settings for the Virtual Desktop Agent configuration. Default settings have the following selected (enabled):
    XenDesktop Controller Communications
    Optimze XenDesktop Performance
    User Desktop Shadowing
    Real Time Monitoring
Note: These settings create various exceptions for ports in Windows Firewall. Consult with the Desktop Security team to ensure that settings comply with enterprise standards. Refer to the Knowledge Center article CTX126969 – Virtual Desktop Agent Configuration for more information regarding these settings.
  1. Once all settings have been validated, click Next to proceed to installation Summary validation for the XenDesktop Virtual Desktop Agent.
  1. If using XenDesktop 5.6:
  2. Once all settings have been validated, click Next to proceed to installation Summary validation for the XenDesktop Virtual Desktop Agent.
  1. Review the installation Summary for accuracy of Install Location and Components.
  2. If the Summary is correct, click Install to proceed with the installation.
  1. If using XenDesktop 5.6:
  2. If the Summary is correct, click Install to proceed with the installation.
  1. Allow the wizard to install components and perform Post Install validation.
  1. Upon successful completion of the wizard, a screen appears showing which components were installed. Validate that the XenDesktop Virtual Desktop Agent is presented.
  2. Select Restart Machine (required to complete install) and click Close to end the installation of the XenDesktop Virtual Desktop Agent.
    Note: The Windows 7 workstation automatically restarts upon clicking Close. Ensure that any unsaved work is saved prior to clicking Close.

Troubleshooting Virtual Desktop Agent Registration with Controllers in XenDesktop


Troubleshooting Virtual Desktop Agent Registration with Controllers in XenDesktop

Created On: May 19, 2008 / Updated On: Jun 12, 2012
Average Rating: 3 (19 ratings)
Summary
The Desktop Delivery Controller (DDC) relies upon a software component installed upon each Virtual Desktop Machine (VDM) - the Virtual Desktop Agent (VDA) - being in communication with one of the controllers in your XenDesktop farm. This state of being in communication is referred to the VDA as being registered with the controller. If communication fails for any reason, it means that the VDA has failed to register with a controller and it would not be possible for the DDC to broker a connection to the VDM in question; and the VDM becomes an unusable resource.
The VDA logs issues with registration in the event log, as displayed in the following example:

The following screen shot displays the three most recent event log entries in this example, that is, Information, Warning, and Error:

If the VDM has been added to a desktop group in your DDC farm, you can also see evidence of the VDA failing to register with any controllers in the farm in the Access Management Console's Virtual Desktops view. The Desktop State column provides information about the registration state of the desktop machine; values of Not Registered or Pending indicate that registration has not successfully completed. The following screen shot highlights an example of this (highlighted in yellow):

Troubleshooting Registration Problems
CTX123278 – XDPing Tool is a support diagnostic tool which has been designed to troubleshoot VDA registration issues. It runs through a number of systematic checks to verify and detect a number of common problems typically associated with the VDA registration issues.
Virtual Desktop not added to the correct farm
Whenever you notice VDA event log entries on the worker suggestion registration failure, ensure to that the VDM is properly added to the correct DDC farm. This needs to be done from both the point of view of the virtual desktop system and of the DDC farm itself.
  1. 1. Check in the Access Management Console for the farm that the virtual desktop’s machine name is in one of the desktop groups.
  2. 2. Check that the VDA is a member of the correct farm. You can get this information from the event log entry that gives the Globally Unique Identifier (GUID) of the base Organizational Unit (OU) the VDA uses:

  1. 3. Check in the Access Management Console for the farm that the value of the GUID shown matches with the farm’s read-only properties:

Note: If the GUID on the VDA does not match the GUID in the Access Management Console of the farm, the VDA is configured to be in a different farm. A VDA’s farm membership can be set through group policy (using the ADM template file FarmGUID.adm supplied in the installation media), or during installation (in which case the value is written into the registry string HKLM\SOFTWARE\Citrix\VirtualDesktopAgent\FarmGUID).
  1. Correct the farm setting of the VDA and restart it to see if registration is now possible.
Virtual Desktop Firewall not properly configured
Registration fails if the firewall on the Virtual Desktop Machine has not had the appropriate exclusions configured to enable DDC’s communication. As an experiment, you should try disabling all firewall software on the VDM and restart it. If registration now succeeds, the problem points to misconfiguration of the firewall; reconfigure it as explained in the Knowledge Centre article CTX116843 – Desktop Delivery Controller 2.0 Administrator's Guide and re-enable it.
Note
: It is not advisable to run with the firewall that is permanently disabled on Virtual Desktop Machines.
Domain Name Services (DNS) not properly configured
Registration fails if the VDM or the DDC controller sees an incorrect IP address for the other party. Complete the following experiment to see if this is an issue:
  1. On both machines, start a command shell window and run the following commands:
    ipconfig
    ping <othermachine.domain.com>
  2. Both machines should be able to ping each other successfully by DNS name (this means using the fully qualified domain name (FQDN) including the domain.com bit and not the simple NetBIOS name).
    Crucially, the IP address reported for the remote machine by the ping command in each case should match the IP address reported by the ipconfig command on the relevant machine.
  3. If there is any discrepancy, fix the problem with your DNS configuration and restart either the VDM and or the DDC controller, as appropriate.
Time Synchronization not properly configured
Secure the communication between the VDMs and DDC controllers using Kerberos. This relies upon tickets with a limited life span. If the difference in system time between the two ends of the communication is too great, the tickets will always be considered to have timed out when they are accessed and then the communication fails.
Check that the system time on all systems are within a reasonably small margin (the default domain-wide Kerberos setting is 5 minutes).
XenDesktop 5 Controller VDA Registry Key
Verify that the following registry key has correct information:
(x86) HKEY_Local_Machine\Software\Citrix\VirtualDesktopAgent
(x64) HKEY_Local_Machine \Software\Wow6432Node\Citrix\VirtualDesktopAgent
ListOfDDCs REG_SZ
Also view event log entries from Citrix Desktop Service for related information
Powershell example on local VDA Machine
Get-EventLog -Log Application -Source 'Citrix Desktop Service' | fl
Powershell example on remote computer
Get-WinEvent -Computer <machine-name> -Old -Prov 'Citrix Desktop Service' | fl
Where <machine-name> is the DNS name of the Virtual Machine.
Domain Membership problems
Under some circumstances, it appears that the machine (VDM or DDC controller) is a part of the domain, but in fact, it is not (for various reasons). This can cause problems with the secure communication between the VDMs and the DDC controller.
Try removing the machines in question from their domains (by temporarily moving them into a workgroup, for example) and then subsequently rejoin them to their domains. When the subsequent system restart has completed, check to see if registration is successful.
Service Principal Names (SPNs)
Communication between Virtual Desktop Machines and DDC controllers uses Microsoft’s Windows Communication Foundation (WCF). The services implementing the communication endpoints use the computer’s identity. Thus, WCF’s mutual authentication model uses the SPN associated with the respective computer accounts (by default, HOST/host’s-fully-qualified-domain-name). The DDC determines the virtual desktop’s SPN by inspecting the servicePrincipalName attribute of the associated computer account in Active Directory.
You can inspect the virtual desktop’s computer account using tools such as Active Directory Explorer. If the servicePrincipalName attribute does not include an entry with the computer’s FQDN, try editing it manually and check to see if that fixes registration problems.
Multiple Network Adapters
If the virtual desktops contain multiple network adapters that can be used to communicate with the DDC, this might cause the security negotiation to fail. In that case, try disabling all network adapters except for the one used to communicate with the DDC.
Local Security Policy Settings
In case of some images, especially military images, the restrictive security policy settings might prevent the VDA from registering. See http://helpdeskgeek.com/how-to/reset-local-security-policy/ for details on how to reset security policy settings to their defaults.

Changing a Citrix XenApp farm to use port 8080 for the XML service port



Tuesday, Jan 29 2013

Changing a Citrix XenApp farm to use port 8080 for the XML service port

If you ever do any research on what port to use for the XML service in a Citrix XenApp environment, you’ll notice that there are options to share port 80 with IIS, use port 443 with SSL on IIS and finally port 8080.  I haven’t really found any official documentation on what is best practice but I was able to find forum posts where Citrix engineers recommend the use of port 8080 and not to rely on IIS.
The process of changing the XML service port to 8080 is quite easy but since I know I’m bound to forget after not having to perform the configuration on a regular basis, I thought it would be good to write a blog post so I can reference it in the future.
Begin by logging onto your XenApp server and stop the Citrix XML Service:
clip_image002
image
Once the service has been stopped, proceed with opening up the command prompt as an administrator an executing the following command to unregister the Citrix XML Service port:
ctxxmlss /u
image
Once the command completes successfully, proceed with executing the following command to register the port to 8080:
ctxxmlss /r8080
image
Once the command successfully completes, proceed with starting the Citrix XML Service:
clip_image002[6]
… then open up the registry to confirm that the changes have been applied via the following registry key:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CtxHttp
Name: TcpPort
Type: REG_DWORD
Data: 0x00001f90 (8080)

clip_image002[4]
Once the port change has been confirmed, log onto your Web Interface server and reconfigure the farm settings for your websites:
image