Citrix Provisioning – Create Devices – Carl Stalhood (2024)

Navigation

This article applies to all 7.x versions of Citrix Provisioning, including 2402, LTSR 2203 CU4, LTSR 1912 CU8, and LTSR 7.15.45 (aka LTSR 7.15 CU9).

  • Change Log
  • Target Device Template – vSphere
  • Target Device Template – Hyper-V
  • Citrix Virtual Desktops Setup Wizard
  • Target Device Power Operation
  • Update BDM Partition
  • Citrix Studio Machine Catalog of Citrix Provisioning Machines
  • Write Cache Disk

💡 = Recently Updated

Change Log

Target Device Template – vSphere

The hardware of the additional target devices must match the original virtual machine so that the drivers contained in the vDisk continue to function. The easiest way to preserve the hardware configuration is to clone the original virtual machine.

  1. Shut down the original virtual machine.
  2. Edit the Settings of the virtual machine and make sure there is a blank, formatted cache disk.
    Citrix Provisioning – Create Devices – Carl Stalhood (1)
  3. Citrix Provisioning 2311 and newer only support UEFI. See Converting BIOS vDisks to UEFI at Citrix Docs.
  4. In the vSphere Client, right-click the original virtual machine, expandClone, and clickClone to Template. The new machine must be a Template andnot a regular virtual machine.
    Citrix Provisioning – Create Devices – Carl Stalhood (2)
  5. In the Select a name and folder page, enter a name for the template, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (3)
  6. In the Select a compute resource page, select the cluster and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (4)
  7. In the Select storage page, select a datastore for the template and click Next. Note: if you use the Citrix Provisioning wizards to create Target Devices, the new machines will be created on the same datastore as this template.
    Citrix Provisioning – Create Devices – Carl Stalhood (5)
  8. In the Ready to completepage, click Finish.
    Citrix Provisioning – Create Devices – Carl Stalhood (6)

Target Device Template – Hyper-V

If you store the template in the library then you might see the issue described in CTX128750 Hyper-V Synthetic Network Interface Card Reinitializes on New Target Devices. The article recommends cloning a real VM instead of a template VM but this might not work for Citrix Provisioning Citrix Virtual Desktops Setup Wizard.

  1. Edit the Properties of the original virtual machine and make sure there is a blank, formatted cache disk.
    Citrix Provisioning – Create Devices – Carl Stalhood (7)
  2. Right-click the original virtual machine, expand Create and click Create VM Template.
    Citrix Provisioning – Create Devices – Carl Stalhood (8)
  3. Click Yes to acknowledge that the source virtual machine will be destroyed.
    Citrix Provisioning – Create Devices – Carl Stalhood (9)
  4. In the VM Template Identity page, give the template a name and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (10)
  5. In the Configure Hardware page, click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (11)
  6. In the Configure Operating System page, select None – customization not required, and click Next. There is no need to run SysPrep.
    Citrix Provisioning – Create Devices – Carl Stalhood (12)
  7. In the Select Library Server page, select a library server, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (13)
  8. In the Select Path page, click Browse to select a share, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (14)
  9. In the Summary page, click Create.
    Citrix Provisioning – Create Devices – Carl Stalhood (15)

Citrix Virtual Desktops Setup Wizard

The easiest way to create a bunch of Target Devices is to use the Citrix Virtual Desktops Setup Wizard that is built into the Citrix Provisioning Console. This wizard used to be named XenDesktop Setup Wizard.

If you prefer to script much of this wizard, see:

Do the following to launch the Citrix Virtual Desktops Setup Wizard:

  1. The Citrix Virtual Desktops Setup Wizard uses the Hosting Resources defined in Citrix Studio, so configure Citrix Studio > Configuration > Hosting with destination datastores and networks for the new Target Devices. For maximum control over datastore placement, create a separate Hosting Resource per datastore.
    Citrix Provisioning – Create Devices – Carl Stalhood (16)
  2. Make sure the Template Target Device is on the same datastore that you want the new Target Devices to be stored on.
    Citrix Provisioning – Create Devices – Carl Stalhood (17)
  3. If Hyper-V, make sure the VMM Console is installed on the same machine as the Citrix Provisioning Console.
    Citrix Provisioning – Create Devices – Carl Stalhood (18)
  4. In the Citrix Provisioning Console, right-click the site, and click Citrix Virtual Desktops Setup Wizard.
    Citrix Provisioning – Create Devices – Carl Stalhood (19)
  5. In the Welcome to Citrix Virtual Desktopspage, click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (20)
  6. In the Citrix Virtual Desktops Controller page, choose Customer-Managed Control Plane, enter the name of a Delivery Controller, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (21)
  7. In the Citrix Virtual Desktops Host Resources page, select a hosting resource. This list comes from the Hosting Resources created inside Studio. Click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (22)
  8. Use a service account to login to vCenter or SCVMM when prompted. Citrix Provisioning might use these credentials later to power manage the target devices.
    Citrix Provisioning – Create Devices – Carl Stalhood (23)
  9. If you see a message about no available templates, then you need to move your virtual machine template to this datastore.
    Citrix Provisioning – Create Devices – Carl Stalhood (24)
  10. In the Template page, select the Target Device template, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (25)
  11. In the Citrix Virtual Desktops Host Resources Network page, select a network and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (26)
  12. In the vDisk page, select the Standard Image vDisk and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (27)
  13. In the Catalog page, enter a name for a new catalog, and click Next. Or you can add machines to an existing catalog.
    Citrix Provisioning – Create Devices – Carl Stalhood (28)
  14. In the Operating System page, make your selection, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (29)
  15. If you selected Single-session OS, then in the User Experience page, select random or static, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (30)
  16. In the Virtual machines page:
    1. Enter the number of machines you want to create.
    2. Enter the number of vCPUs for each new virtual machine. For RDSH, you usually add between 4 and 8 vCPUs.
    3. Enter the amount of Memory for each new virtual machine.
      • To accommodate the Citrix Provisioning vDisk memory cache, add 256 MB (virtual desktop) or 4 GB of RAM (Remote Desktop Session Host) to theMemory. See Citrix Blog Post Size Matters: PVS RAM Cache Overflow Sizing for more information.
    4. Specify the size of the cache disk: 20-40 GB for session hosts, or 5-10 GB for virtual desktops.
    5. Select BDM disk or PXE boot.
      1. For PXE boot, the Target Devices must be on the same VLAN as the Provisioning servers.
      2. BDM disk burns the boot image into the new virtual machine’s disk. BDM Disk supports target devices on a different subnet than the Provisioning servers. Make sure the Target Device VM template does not have any Boot ISOs configured.
  17. Click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (31)
  18. In the Active Directory page, PVS 2308 and newer let you create computer accounts in untrusted domains. Click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (32)
  19. In the Active Directory accounts and location page
    1. Select an OU.
    2. Enter a naming pattern for the new machines. Use ## to represent numbering.
    3. Select a Starting Index.
  20. Click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (33)
  21. In the Citrix Provisioning server information page, PVS 2308 and newer let you enter boot addresses that work for UEFI targets. Choose or enter your boot PVS servers and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (34)
  22. In the Summary page, click Finish to start creating the machines. The wizard will power on the machines so it can format the cache disk.
    Citrix Provisioning – Create Devices – Carl Stalhood (35)
  23. Then click Done.
    Citrix Provisioning – Create Devices – Carl Stalhood (36)
  24. In Citrix Provisioning Console, if you go to Farm > Sites > mySite > Hosts, you’ll see the Hosting Resource used by the Wizard. If you open the Properties of the Hosting Resource…
    Citrix Provisioning – Create Devices – Carl Stalhood (37)
  25. On theCredentials tab, you can see the credentials you used when running the wizard. You will probably want to change these to a service account.
    Citrix Provisioning – Create Devices – Carl Stalhood (38)
  26. In Citrix Studio, you’ll see a new machine catalog.
    Citrix Provisioning – Create Devices – Carl Stalhood (39)
  27. The Citrix Provisioning Citrix Virtual Desktops Setup Wizard seems to ignore zones, so you’ll have to move it to the correct zone manually.
    Citrix Provisioning – Create Devices – Carl Stalhood (40)
  28. Create a new Delivery Group or add the machines to an existing Delivery Group.
    Citrix Provisioning – Create Devices – Carl Stalhood (41)

Target Device Power Operation

If you used the Citrix Virtual Desktops Setup Wizard to create Target Devices, then the Target Devices are linked to a hosting connection and can be powered on from the Citrix Provisioning Console by right clicking the device and clicking Boot.
Citrix Provisioning – Create Devices – Carl Stalhood (42)

Target Devices created by the Citrix Virtual Desktops Setup Wizard have a VirtualHostingPoolId, which corresponds to the hosting connection listed under Sites > MySite > Hosts. When powering on the VM, Citrix Provisioning searches for a VM with the same name as the Target Device.
Citrix Provisioning – Create Devices – Carl Stalhood (43)
Citrix Provisioning – Create Devices – Carl Stalhood (44)

Boot Disk Manager (BDM) Partition Update

During Citrix Provisioning Citrix Virtual Desktops Setup Wizard, you can configure the Target Devices to use a BDM Partition to boot from Citrix Provisioning servers. This partition contains the IP addresses of the Citrix Provisioning servers. Prior to Citrix Provisioning 7.9, it was not possible to change the BDM Partition configuration.

In Citrix Provisioning 7.9 and newer, it is now possible to update the BDM Partition with the latest bootstrap info:

  1. In Citrix Provisioning Console, go toMyFarm > Sites > MySite > Servers, right-click each Citrix Provisioning server, and clickConfigure Bootstrap. Update the list of Citrix Provisioning servers.
    Citrix Provisioning – Create Devices – Carl Stalhood (45)
  2. Make sure the Target Devices are powered off.
    Citrix Provisioning – Create Devices – Carl Stalhood (46)
  3. Go to MyFarm > Sites > MySite > Device Collections, right-click a collection created by the Citrix Virtual Desktops Setup Wizard, expandTarget Device, and clickUpdate BDM Partitions.
    Citrix Provisioning – Create Devices – Carl Stalhood (47)
  4. Citrix Provisioning 2311 and newer let you specify the Boot Servers.
  5. ClickUpdate Devices.
    Citrix Provisioning – Create Devices – Carl Stalhood (48)
  6. ClickClose when done.
    Citrix Provisioning – Create Devices – Carl Stalhood (49)

Citrix Studio Catalog of Citrix Provisioning Machines

The easiest method to create Citrix Provisioning Target Device machines (i.e. VDAs) and add them to a Machine Catalog is to run the Citrix Virtual Desktops Setup Wizard.

If you’re not able to use the Citrix Virtual Desktops Setup Wizard for any reason, then you can manually create Citrix Provisioning Target Device machines or use the Streamed VM Setup Wizard. Once the machines are created in the Citrix Provisioning Console, you need to Export them to a Delivery Controller.
Citrix Provisioning – Create Devices – Carl Stalhood (50)

In Citrix Provisioning 1906 and newer, to add Target Devices to a Machine Catalog, Citrix recommends that you use the new Export Devices Wizard because it works with both on-premises CVAD and Citrix Cloud. Find the wizard by right-clicking the Site name. See Export Devices Wizard at Citrix Docs. The Export Wizard is very similar to the Citrix Virtual Desktops Setup Wizard.
Citrix Provisioning – Create Devices – Carl Stalhood (51)

For Citrix Provisioning 1903 and older, do the following:

  1. In Citrix Studio, create a new Catalog.
    Citrix Provisioning – Create Devices – Carl Stalhood (52)
  2. On theIntroduction page, clickNext.
  3. In theOperating System page, make a selection that matches the vDisk, and clickNext.
    Citrix Provisioning – Create Devices – Carl Stalhood (53)
  4. In theMachine Management page, change theDeploy machines using selection toCitrix Provisioning, and clickNext.
    Citrix Provisioning – Create Devices – Carl Stalhood (54)
  5. In theDevice Collection page, enter the Provisioning server name, and clickConnect.
    Citrix Provisioning – Create Devices – Carl Stalhood (55)
  6. Select the Citrix ProvisioningDevice Collection, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (56)
  7. In theDevices page, review the list of machines that will be added to the catalog, and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (57)
  8. In theSummary page, give the Catalog a name, and clickFinish. You can now add these machines to a Delivery Group.
    Citrix Provisioning – Create Devices – Carl Stalhood (58)
  9. You can later add more machines to the Device Collection in the Citrix Provisioning Console.
    Citrix Provisioning – Create Devices – Carl Stalhood (59)
  10. To add the new machines to Citrix Studio, right-click the existing Catalog, and clickAdd Machines.
    Citrix Provisioning – Create Devices – Carl Stalhood (60)
  11. In theDevice Collection page, clickConnect.
    Citrix Provisioning – Create Devices – Carl Stalhood (61)
  12. Select the Device Collection containing new machines and click Next.
    Citrix Provisioning – Create Devices – Carl Stalhood (62)
  13. In theDevices page, review the list of new machines, and clickNext.
    Citrix Provisioning – Create Devices – Carl Stalhood (63)
  14. In theSummary page, clickFinish. You can now add these new machines to a Delivery Group.
    Citrix Provisioning – Create Devices – Carl Stalhood (64)

Write Cache Disk

Write Cache Drive Letter

If the Write Cache disk is not mounting with the correct drive letter, seeCTX133476Explaining and Troubleshooting WriteCache Disk Drive Letter Assignment
Citrix Provisioning – Create Devices – Carl Stalhood (65)

Write Cache File Name

Citrix Provisioning has had three different cache names:

  • .vdiskCache is Legacy Ardence format (5 .x and before not supported anymore, you can delete this if your target software is running latest, this cache was optimized for size)
  • .vdiskdif.vhd is legacy hard drive cache (6.0 and above local hard drive cache, used standard 1mb sector size and is larger than the legacy cache but worked better with storage and was incrementally faster than Legacy Ardence format)
  • vdiskdiff.vhdx is Ram cache with overflow (7.1.4 and above RAM cache with overflow, 2 mb sectors larger than vhd but much faster and more compatible with storage)

Write Cache Filling Up Cache Disk

The vdisk cache is basically a difference disk and only contains the blocks that are written to the system drive so you cannot mount it or read the file, it is just block data. Use a tool like Process Monitor from Microsoft (used to be sysinternals) and monitor the system drive. Any write to the system drive is redirected by the Citrix Provisioning software to the cache file. Make sure that any software that is installed on the target image does not have an auto update feature enabled, redirect all user data to a network share and educate your users to make sure they are not doing something that will fill up the cache like downloading a video to the local system drive.

Be aware that the RAM cache with overflow to hard drive can use more space on your local drive, it is important even in the older cache that you perform regular maintenance on your vdisks some recommendations:

  • Merge to a new base disk when you have created 5 or more versions
  • After every merge to the base disk, mount the new base disk and defrag the disk, this is important to reduce sectors used in the local cache, it is very important with the new RAM cache with overflow to local disk but it can have a very positive impact with the legacy local cache. Refer to http://blogs.citrix.com/2015/01/19/size-matters-pvs-ram-cache-overflow-sizing for more information.

Write Cache Size Monitoring

To view the size of Write Cache in RAM with overflow to disk, look in Task Manager for Nonpaged pool.
Citrix Provisioning – Create Devices – Carl Stalhood (66)

Citrix Blog Post Digging into PVS with PoolMon and WPA details how to use Windows Performance Analyzer to view Citrix Provisioning RAM cache and overflow.
Citrix Provisioning – Create Devices – Carl Stalhood (67)

Related Topics

  • Update a vDisk
  • Back to Citrix Provisioning
Citrix Provisioning – Create Devices – Carl Stalhood (2024)

References

Top Articles
Latest Posts
Article information

Author: Van Hayes

Last Updated:

Views: 5437

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Van Hayes

Birthday: 1994-06-07

Address: 2004 Kling Rapid, New Destiny, MT 64658-2367

Phone: +512425013758

Job: National Farming Director

Hobby: Reading, Polo, Genealogy, amateur radio, Scouting, Stand-up comedy, Cryptography

Introduction: My name is Van Hayes, I am a thankful, friendly, smiling, calm, powerful, fine, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.