Contact Info

XenDesktop

Category Archives

Auto-fill XenDesktop Director Domain Field

  • Log on to the XenDesktop Director server
  • Open Notepad as an Adminstrator

Screenshot - 12_18_2013 , 6_12_09 PM

  • Open C:\inetpub\wwwroot\Director\LogOn.aspx

 Screenshot - 12_18_2013 , 6_14_24 PM

  • Hit CTRL+F and search for <asp:TextBox ID=”Domain”
  • Once located, add this text after “Domain”
    • Text=”yourDomainHere” readonly=”true”
  • The entire line of code should now look something similar to this
    • <asp:TextBox ID=”Domain” Text=”yourDomainHere” readonly=”true” runat=”server” CssClass=”text-box” onfocus=”showIndicator(this);” onblur=”hideIndicator(this);”></asp:TextBox> <br/>
  • Save the file, exit Notepad, and refresh the browser to test the change
  • If you are load balancing the XenDesktop Director site, copy this file to the same location on the second server

Configure and deploy for XenDesktop 7.1

This entry is part 6 of 6 in the series Convert PVS images from XenServer to VMware

 

  1. Log into one of the Provisioning Server 7.1 hosts
  2. Change the newly created vDisk from Private mode to Standard and select the preferred method for Cache type

Screenshot - 12_13_2013 , 2_16_49 PM

  1. Select the target device created earlier and modify the type to Maintenance and change to boot from vDisk

Screenshot - 12_13_2013 , 1_59_55 PM

  1. Right-click the target device and select Active Directory – Reset Machine Account Password…

Screenshot - 12_13_2013 , 2_02_36 PM

  1. Select the OU where the AD object exists and click Reset Account and Close

Screenshot - 12_13_2013 , 2_05_15 PM

  1. Add a vDisk version to the vDisk and add a property/description

Screenshot - 12_13_2013 , 2_21_11 PM

  1. Boot the VM
  2. Log in and install XenDesktop 7.1 Delivery Agent
    • Select the appropriate Virtual Delivery Agent installation based on the OS type (Desktop or Server)
    • Select Enable Remote PC Access

Screenshot - 12_13_2013 , 2_27_54 PM

    • Select the appropriate version of the VDA

Screenshot - 12_13_2013 , 2_28_56 PM

    • Select the Citrix Receiver if you plan on delivering hosted apps to the VMs created from this image

Screenshot - 12_13_2013 , 2_30_09 PM

    • Add the Delivery Controller(s)

Screenshot - 12_13_2013 , 2_31_34 PM

    • Select Personal vDisk if you are allowing some users to install their own applications

NOTE: This option is only available for Windows Desktop OS VDAs

Screenshot - 12_13_2013 , 2_32_42 PM

    • Accept remaining defaults and click Finish when complete and reboot

Screenshot - 12_13_2013 , 2_37_47 PM

    • Once the VM has rebooted, shut it down (update the Personal vDisk inventory if prompted)
  1. Create a VMware template from the VM used to create the image

NOTE: This step will ensure all target devices you create from this template will have identical virtual hardware.  This should prevent BSOD and any potential performance issues

    • Right-click the VM and select Clone to Template…

Screenshot - 12_13_2013 , 3_00_31 PM

    • Convert the newly created template back to a Virtual Machine

Screenshot - 12_13_2013 , 3_06_49 PM

    • Make any necessary modifications to the VM to match your preferred target device configurations

NOTE: You can remove local disks if you are using local disk write cache.  The XenDesktop Wizard in Provisioning Server 7.1 will perform this task as part of the target device creation.

Screenshot - 12_13_2013 , 3_07_58 PM

    • Right-click the modified VM and convert back to a template to prepare for Provisioning Server 7.1 target device creation

Screenshot - 12_13_2013 , 3_10_47 PM

  1. Log into the Provisioning Server 7.1 console and perform the following:
    • Promote the vDisk version to Production

 Screenshot - 12_13_2013 , 2_50_55 PM

    •  Right-click on the site and select XenDesktop Setup Wizard…

NOTE: If it hasn’t been done already, configure the XenDesktop 7.1 farm to point to the vCenter server and specify a datastore for write cache and personal vDisks

Screenshot - 12_13_2013 , 2_53_53 PM

    •  Enter the XenDesktop Controller address and click Next

Screenshot - 12_13_2013 , 2_55_18 PM

    • When prompted, enter the XenDesktop Host Resources username and password

Screenshot - 12_13_2013 , 3_17_06 PM

    • Select the template created in step 9, click Next

Screenshot - 12_13_2013 , 3_19_14 PM

    • Select the vDisk, click Next
    • Create a new catalog or use an existing catalog, click Next
    • Select the appropriate OS type, click Next
    • Select a random or static desktop, click Next
    • Modify the virtual machine preferences as necessary, click Next

NOTE: Since we created the PVS 7.1 target devices on the same subnet as the PVS 6.1 target devices, we used a BDM disk which provides the Provisioning Server host information to the target device at boot.  It creates an 8 MB disk local to each VM and eliminates the PXE service requirement on the subnet.  This also eliminates the need to mount a boot ISO to each VM.

Screenshot - 12_13_2013 , 3_24_14 PM

    • Select Create new accounts, click Next
    • Specify the AD OU container and provide an account naming scheme, click Next
    • Click Finish

After the target devices were created, we checked XenDesktop and vCenter to confirm the devices came online, registered, and were configured correctly.  We then repeated these steps for each of the images we needed to convert.  If you have any questions about the process or run into issues while working through your project, please feel free to reach out to us via our Contact page.

 


Update VM for Provisioning Server 7.1

This entry is part 5 of 6 in the series Convert PVS images from XenServer to VMware

 

  1. Right-click on the newly created VM and select Power On

update-vm_1

  1. For XenApp 6.x VMs, log in, and perform the following:
    • Uninstall Citrix Tools for Virtual Machines
    • Uninstall Provisioning Server target device software
    • Uninstall XenApp via the command line

update-vm_9

    • Uninstall any remaining XenApp 6.5 specific features.
    • Move the XenApp AD computer object to an OU that does not contain XenApp 6.5 specific policy settings
    • Reboot when complete.

NOTE: If you have difficulty logging in via RDP after the uninstall of XenApp 6.5, try deleting and recreating the RDP-Tcp connection in Remote Desktop Host Configuration

  1. For XenDesktop 5.x VMs, log in, and perform the following:
    • Uninstall Citrix Tools for Virtual Machines
    • Uninstall Provisioning Server target device software
    • Uninstall Citrix Virtual Desktop Agent
    • Uninstall Citrix Virtual Desktop Agent Core Services
    • Uninstall Personal vDisk
    • Uninstall Citrix Profile Management and any remaining XenDesktop 5.6 specific features
    • Reboot when complete

NOTE: After the uninstall is complete, check the services to ensure all Citrix related services are uninstalled from the system.  You may need to manually remove using the sc delete command.

update-vm_20

  1. After the VM has been rebooted, log in, and install VMware Tools.  Select defaults and reboot when the install is completed.

update-vm_4

update-vm_5

  1. After the reboot, log in to the VM and perform the following:
    • Disable IPv6 if enabled on the ethernet adapter
    • For Windows 2008 R2 and Windows 7 SP1, install KB2550978, reboot when complete
    • For Windows 2008 and Windows 7, install KB2344941, reboot when complete
    • Install Provisioning Server Target Device software 7.1, uncheck Launch Imaging Wizard, click Finish and reboot when complete
  2.  After the reboot, log in to the VM and perform the following to create the new VHD for Provisioning Server 7.1:
    • Run the Imaging Wizard

Screenshot - 12_13_2013 , 11_35_03 AM

    • Enter a Provisioning Server 7.1 IP or Hostname, click Next

Screenshot - 12_13_2013 , 11_39_32 AM

    • Select Create new vDisk, click Next

Screenshot - 12_13_2013 , 11_39_50 AM

    • Enter the info requested, click Next

Screenshot - 12_13_2013 , 12_42_25 PM

    • If you plan on using KMS or MAK activation, select that here and click Next

Screenshot - 12_13_2013 , 12_45_00 PM

    • Review/modify image volumes, click Next

Screenshot - 12_13_2013 , 12_45_35 PM

    • Enter the info requested, click Next

Screenshot - 12_13_2013 , 12_49_28 PM

    • Select Optimize for Provisioning Services, click Finish

Screenshot - 12_13_2013 , 12_52_52 PM

    • If you receive this message, click No

Screenshot - 12_13_2013 , 12_54_46 PM

NOTE: For our project, the Provisioning Server 7.1 environment was on the same subnet as the existing Provisioning Server 6.1 environment so we decided to use Boot Device Manager to create a Provisioning Server 7.1 boot ISO and boot this VM from CD.  This allowed us to continue to use the same subnet but avoid causing disruptions to the Provisioning Server 6.1 environment.  We also stopped and disabled the PXE service on the Provisioning Server 7.1 hosts.

      • If you decided to create a Boot ISO, perform the following:
        • Shutdown the VM
        • Mount the boot ISO to the VM in vCenter
        • Boot to the VMware BIOS
        • Update the VM BIOs boot order to boot from CD-ROM
        • Start the VM
        • At login, the Provisioning Server Imaging Wizard should begin creating the VHD file from the existing VMDK

 Screenshot - 12_13_2013 , 1_15_59 PM

      • If you are using a separate subnet for Provisioning Server 7.1, perform the following:
        • Ensure your VM is on the same subnet as the Provisioning Server 7.1 host(s)
        • Ensure the PXE services are started on the Provisioning Server 7.1 host(s)
        • Shutdown the VM
        • Boot the VM to the VMware BIOs
        • Update the BIOs to boot from Network
        • Reboot the VM
        • At login, the Provisioning Server Imaging Wizard should begin creating the VHD file from the existing VMDK

Screenshot - 12_13_2013 , 1_15_59 PM

    • Once the image is created, shutdown the VM

Error “Cannot connect to the vCenter server due to a certificate error” Appears During Host Connection

When configuring XenDesktop 7 to connect to vCenter, you may receive the error displayed in the screenshot below.

error-cannot-connect-to-vcenter_2

There are a few different methods to resolve or workaround the issue.  Ideally, you should replace the vCenter certificate with a trusted certificate.  We’ll discuss that method in a future blog post.  You can also visit Derek Seaman’s blog for some excellent documentation.

As a workaround, you can perform the following on each of your XenDesktop 7 controllers.

  1. Open Internet Explorer: Right-click and Run as Administrator

 error-cannot-connect-to-vcenter_3

  1. Enter the https://URL for your vCenter server an select Continue to this website

error-cannot-connect-to-vcenter_4

  1. Click the Certificate Error message and select View Certificates

error-cannot-connect-to-vcenter_5

  1. Select the Details tab and select Copy to File…

error-cannot-connect-to-vcenter_6

  1. Click Next

error-cannot-connect-to-vcenter_7

  1. Select Base-64 encoded X.509 and click Next

error-cannot-connect-to-vcenter_8

  1. Save the certificate to a file server you can get to from each XenDesktop 7 controller, click Next

error-cannot-connect-to-vcenter_11

  1. Click Finish

error-cannot-connect-to-vcenter_12

  1. On each XenDesktop 7 controller, open the MMC snap-in for Certificates (Local Computer)
  2. Right-click Trusted People, select All Tasks  and Import…

error-cannot-connect-to-vcenter_13

  1. Browse to the certificate created in Step 7 and click Next

error-cannot-connect-to-vcenter_16

  1. Click Finish.  Return to XenDesktop Studio and connect to vCenter

error-cannot-connect-to-vcenter_19


Create a new VMware VM with the converted VMDK

This entry is part 4 of 6 in the series Convert PVS images from XenServer to VMware

 

  1. Right-click an ESXi host that has access to the VMDK-NFS NFS Datastore created earlier and select New Virtual Machines…

create-a-new-vmware-vm-with-the-converted-vmdk_1

  1. Select Custom, click Next

create-a-new-vmware-vm-with-the-converted-vmdk_2

  1. Enter Name and Location, click Next

create-a-new-vmware-vm-with-the-converted-vmdk_3

  1. Select the VMDK-NFS NFS Datastore create earlier, click Next

create-a-new-vmware-vm-with-the-converted-vmdk_4

  1. Modify the Virtual Machine Version, Guest Operating System, CPUs, and Memory as necessary.  Proceed to the Network step.
  2. Select the appropriate Network and select the VMXNET3 adapter, click Next

create-a-new-vmware-vm-with-the-converted-vmdk_1_6

  1. Select LSI Logic SAS, click Next

create-a-new-vmware-vm-with-the-converted-vmdk_1_6.2

  1. Select Use an existing virtual disk, click Next

create-a-new-vmware-vm-with-the-converted-vmdk_1_6.3

  1. Browse to the converted VMDK file within the VMDK-NFS NFS Datastore, click OK

create-a-new-vmware-vm-with-the-converted-vmdk_1_7

  1. Select remaining defaults, click Finish

Create a Windows Server 2008 R2 NFS share for vSphere 5.1

This entry is part 2 of 6 in the series Convert PVS images from XenServer to VMware

Install Network File Services on one of the PVS hosts

  1. Select Add Roles from Server Manager

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_1

  1. Select File Services, click Next

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_2

  1. Select Services for Network File System, click Next

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_3

  1. Select Install

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_4

Once installed, create an NFS Share on the PVS host

  1. Create a folder on a drive that has adequate disk space and name it VMDKs
  2. Open the properties of the new folder, select the NFS Sharing tab, and select Manage NFS Sharing…

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_5

  1. Configure the settings as displayed, and click Apply

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_6

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_7

Add NFS Storage to a VMware ESXi host

  1. Open vCenter and select one of the ESXi hosts
  2. Select the Configuration tab and select Storage under the Hardware section
  3. Select Add Storage…

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_10

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_9

  1. Select Network File System, click Next

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_11

  1. Enter the PVS hostname and NFS share name created earlier, click Next

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_12

  1. Select Finish

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_13

  1. Once the NFS share has mounted check the Datastores to confirm its available to the host

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_14

create-windows-server-2008-r2-nfs-share-for-vsphere-5-1_15