Citrix Provisioning 1909 – Server Install

Last Modified: Oct 23, 2019 @ 5:43 am

Navigation

This article applies to all 7.x versions of Citrix Provisioning, including Current Release 1909, LTSR 7.15.21 (aka 7.15 LTSR CU5), and LTSR 7.6.9 (aka 7.6 LTSR CU8).

đź’ˇ = Recently Updated

Change Log

Planning and Versions

CTX220651 Best Practices for deploying PVS in multi-geo environments: ensure that Provisioning farms do not span data centers with a network latency that can affect communications between the Provisioning Servers and the SQL database

Citrix Provisioning Firewall Rules

The most recent Current Release version of Citrix Provisioning is 1909. Current Release is only supported for 6 months from release date, and you are expected to upgrade it every 3-6 months.

For a longer support term, deploy 7.15.21 (7.15 LTSR Update 5) instead. 7.15.21 is the version included in XenApp/XenDesktop LTSR 7.15 Cumulative Update 5. Yes, it’s confusing.

If you are running XenApp/XenDesktop 7.6 LTSR, then you’ll want Provisioning Services 7.6.9 instead of Provisioning Services 7.15 LTSR. The install instructions are essentially the same as 7.15 or 1909.

Citrix License Server Version

Make sure the Citrix Licensing server is 11.16.3.0 build 28000 or newer.

Upgrade

If you are upgrading from an older version of Citrix Provisioning, do the following:

  1. In-place upgrade the Citrix License Server.
  2. In-place upgrade the Provisioning Console.
    1. Re-register the Citrix.PVS.snapin.dll snap-in:
      "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe" "c:\program files\citrix\provisioning services console\Citrix.PVS.snapin.dll"
    2. If upgrading from 7.15.3000 to 7.15.4000, then manually upgrade the snap-ins. See CTX256773 Powershell SnapIns are not upgraded from PVS 7.15 LTSR CU3 to 7.15 LTSR CU4 after the upgrade is complete
  3. In-place upgrade the Provisioning Server. If you have two or more Provisioning servers, upgrade one, and then the other. If High Availability is configured correctly, then the Target Devices should move to a different Provisioning Server while a Provisioning server is being upgraded.
    1. After the first Provisioning server is upgraded, run the Configuration Wizard. You can generally just click Next through the wizard. At the end, you’ll be prompted to upgrade the database. Then upgrade the remaining Provisioning servers, and run the Config Wizard on each of them too.
  4. Upgrade the Target Device Software inside each vDisk. Don’t do this until the Provisioning servers are upgraded (Target Device Software must be same version or older than the Provisioning Servers).
    1. If your Target Devices are 7.6.1 or newer, you can create a Maintenance version, boot an Updater Target Device, and in-place upgrade the Target Device Software.
    2. If your Target Devices are older, then you must reverse image.

vDisk Storage

Do the following on both Provisioning Servers. The vDisks will be stored locally on both servers. You must synchronize the files on the two servers: either manually (e.g. Robocopy), or automatically (e.g. DFS Replication).

Create D: Drive

  1. In the vSphere Web Client, edit the settings for each of the Provisioning server virtual machines.
  2. On the bottom, use the drop-down list to select New Hard Disk, and click Add.
  3. Expand the New Hard disk by clicking the arrow next to it.
  4. Change the disk size to 500 GB or higher. It needs to be large enough to store the vDisks. Each full vDisk is 40 GB plus a chain of snapshots. Additional space is needed to merge the chain.
  5. Feel free to select Thin provision, if desired. Click OK when done.
  6. Login to the session host. Right-click the Start Button, and click Disk Management.
  7. In the Action menu, click Rescan Disks.
  8. On the bottom right, right-click the CD-ROM partition, and click Change Drive Letters and Paths.

  9. Click Change.
  10. Change the drive letter to E:, and click OK.
  11. Click Yes when asked to continue.
  12. Right-click Disk 1 and click Online.
  13. Right-click Disk 1 and click Initialize Disk.
  14. Click OK to initialize the disk.
  15. Right-click the Unallocated space, and click New Simple Volume.
  16. In the Welcome to the New Simple Volume Wizard page, click Next.
  17. In the Specify Volume Size page, click Next.
  18. In the Assign Drive Letter or Path page, select D: and click Next.
  19. In the Format Partition page, change the Volume label to vDisks and click Next.
  20. In the Completing the New Simple Volume Wizard page, click Finish.
  21. If you see a pop-up asking you to format the disk, click Cancel since Disk Management is already doing that.

vDisk Folders

On the new D: partition, create one folder per Delivery Group. For example, create one called Win10Common, and create another folder called Win10SAP. Each vDisk is composed of several files, so its best to place each vDisk in a separate folder. Each Delivery Group is usually a different vDisk.

Robocopy Script

Here is a sample robocopy statement to copy vDisk files from one Provisioning server to another. It excludes .lok files and excludes the WriteCache folders.

REM Robocopy from PVS01 to PVS02
REM Deletes files from other server if not present on local server
Robocopy D:\vDisks \\pvs02\d$\vDisks *.vhd *.vhdx *.avhd *.avhdx *.pvp /b /mir /xf *.lok /xd WriteCache /xo

Citrix Blog Post vDisk Replicator Utility has a GUI utility script that can replicate vDisks between Provisioning Sites and between Provisioning Farms.

Service Account

Provisioning Services should run as a domain account that is in the local administrators group on both Provisioning servers. This is required for KMS Licensing.

From Considerations: Provisioning Services for Personal vDisk at Citrix Docs: The Provisioning Services Soap Service account must be added to the Administrator node of Citrix Studio and must have the Machine Administrator or higher role. This ensures that the PvD desktops are put into the Preparing state when the Provisioning vDisk is promoted to production.

.NET Framework 3.5 SP1 & 4.5 – 2008 R2 Only

Provisioning Server on Windows Server 2008 R2 requires .NET Framework 3.5 SP1 to be installed prior to installing Provisioning Server.

  1. On each Provisioning Server, in Server Manager, right-click Features and click Add Features.
  2. In the Select Features page, check the box next to .NET Framework 3.5.1 and click Next.
  3. In the Confirm Installation Selections page, click Install.
  4. In the Installation Results page, click Close.

.NET Framework 4.0 has bug. Upgrade to 4.5. More information at All the target devices are not selected when using shift select within the PVS console to select a number of target devices.

.NET Framework 4.5.1 can be installed from Windows Update or you can download it from Microsoft.

Provisioning Console Install/Upgrade

The installation and administration of Citrix Provisioning 1909 and older (including LTSR versions 7.15.21 and 7.6.9) are essentially identical.

If you want to automate the installation and configuration of Citrix Provisioning, see Dennis Span Citrix Provisioning Server unattended installation.

Dennis Smith at Citrix Provisioning Services automated/unattended installation guide also details how to script the installation and configuration of Microsoft DHCP Server.

To manually install Provisioning Console, or in-place upgrade to Provisioning Console:

  1. Go to the downloaded Citrix Provisioning, and in the Console folder, run PVS_Console_x64.exe.
  2. Click Install.

    1. If upgrading, and if you get an error about a newer version of Citrix Diagnostics Facility is already installed…
    2. Then you might have to uninstall the existing Citrix Diagnostics Facility installation and try the upgrade again.
  3. If you see the .NET Framework 4.7.1 Setup page:
    1. Check the box next to I have read and accept the license terms, and click Install.
    2. In the Installation Is Complete page, click Finish.
    3. Click Restart Now.
  4. Restart the PVS_Console_x64.exe installer.
  5. Click Install.
  6. In the Welcome to the InstallShield Wizard for Citrix Provisioning Console x64 page, click Next.
  7. In the License Agreement page, select I accept the terms, and click Next.
  8. In the Customer Information page, click Next.
  9. In the Destination Folder page, click Next.
  10. In the Ready to Install the Program page, click Install.
  11. In the InstallShield Wizard Completed page, click Finish.
  12. Click Yes if you are prompted to restart.
  13. If you are upgrading from 7.15.3000 to 7.15.4000, then manually upgrade the snap-ins. See CTX256773 Powershell SnapIns are not upgraded from PVS 7.15 LTSR CU3 to 7.15 LTSR CU4 after the upgrade is complete

After upgrading the Console, re-register the PowerShell snap-in. This is required for the Citrix App Layering Agent.

"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe" "c:\program files\citrix\provisioning services console\Citrix.PVS.snapin.dll"

Provisioning Server – Install/Upgrade

The installation and administration of Citrix Provisioning 1909, 1906, 7.15.21, 7.6.9 and other 7.x versions are essentially identical.

You can in-place upgrade Provisioning Server. The Servers must be upgraded before the vDisks are upgraded. While upgrading one Provisioning Server, all Target Devices are moved to the other Provisioning Server.

To install/upgrade Provisioning server:

  1. If vSphere, make sure the Provisioning server virtual machine Network Adapter Type is VMXNET 3.
  2. Go to the downloaded Provisioning ISO, and in the Server folder, run PVS_Server_x64.exe.
  3. Click Install when asked to install prerequisites.
  4. Note: there’s a long delay before the installation wizard appears.
  5. If you are upgrading, then you might be prompted to uninstall an older version of Provisioning Server before you can upgrade to this version. Then restart installation.

  6. In the Welcome to the Installation Wizard for Citrix Provisioning Server x64 page, click Next.
  7. In the License Agreement page, select I accept the terms, and click Next.
  8. In Citrix Provisioning 1811 and newer, you’ll see a Default Firewall Ports page. You can optionally select Automatically open all Citrix Provisioning ports in Windows Firewall. If you later use the Citrix Provisioning Console to change the ports, then the Windows Firewall rules needs to be adjusted manually since the Citrix Provisioning Console won’t do it for you.
  9. In the Customer Information page, select Anyone who users this computer, and click Next.
  10. In the Destination Folder page, click Next.
  11. In the Ready to Install the Program page, click Install.
  12. In the Installation Wizard Completed page, click Finish.

Database Script

By default, the Citrix Provisioning Configuration Wizard will try to create the database using the credentials of the person that is running the Wizard. This isn’t always feasible. An alternative is to create a script that a DBA can run on the SQL server.

  1. Go to C:\Program Files\Citrix\Provisioning Services, and run DBScript.exe.
  2. Change the selection to New database for 2012 or higher.
  3. Enter a path to save the script file.
  4. Fill in the other fields.
  5. Select an Active Directory group containing your Citrix administrators, and click OK.
  6. In SQL Server Management Studio, open the SQL script.

  7. Execute the script to create the database.

  8. The person that runs the Citrix Provisioning Configuration Wizard will need db_owner permission to the new Citrix Provisioning database.
  9. Create a Windows service account that will run the services on the Citrix Provisioning server. This account must have a SQL login on the SQL server containing the Citrix Provisioning database. The Citrix Provisioning Configuration Wizard will grant this account the correct permissions in the database.

Configuration Wizard – New Farm

  1. If you used DBScript.exe to pre-create the database, skip to Configuration Wizard – Join Farm.
  2. For SQL AlwaysOn Availability Group, see CTX201203 SQL Server AlwaysOn Configuration for PVS 7.6. In summary: Use the wizard to create the database instance. In SQL, create the Availability Group. Then reconfigure Citrix Provisioning Server to point to the SQL AlwaysOn listener.
  3. The Citrix Provisioning Configuration Wizard launches automatically. If the database wasn’t pre-created, then the person running the wizard must have dbcreator and securityadmin roles on the SQL Server. If true, click Next. If not true, then cancel the wizard and launch it as somebody that does have those roles.

  4. The DHCP Services page appears. DHCP is typically hosted on a different server so select The service that runs on another computer. It is also possible to install DHCP on the Provisioning Servers. Click Next.
  5. In the PXE Services page, if you intend to use Boot Device Manager (BDM or ISO) instead of PXE, then change the selection to The service that runs on another computer, which disables the PXE service.
  6. If your Target Devices and Provisioning Servers are on the same broadcast network, then change the selection to Citrix Provisioning PXE service on this computer.
  7. Click Next.

  8. In the Farm Configuration page, choose Create Farm, and click Next.
  9. In the Database Server page, enter the name of the SQL server. Provisioning 7.11 and newer has a new option for MultiSubnetFailover. Click Next.
  10. In the New Farm page, enter the following:
    • Enter a descriptive Database name. Put the word Citrix in the database name so the DBA knows what it is for.
    • Enter a descriptive Farm name.
    • Enter a descriptive Site name.
    • Enter a descriptive Collection name. All of these names can be changed later.
    • Select the Active Directory group that will have administrator permissions to Citrix Provisioning, and click Next. If you don’t see your group here, select any group you belong to, and you can fix it later in the console.
  11. In the New Store page, browse to one of the vDisk folders, and give the store a name. Then click Next.
  12. In the License Server page, enter the name of your Citrix license server, check the box next to Validate license server communication, and click Next.
  13. In the User account page, notice it defaults to Network service account. This won’t work with KMS licensing so change it to Specified user account. Enter credentials for an account that is a local administrator on all Provisioning servers, and click Next. Note: Provisioning 7.16 and newer support Group Managed Service Accounts.

  14. In the Active Directory Computer Account Password page, check the box, and click Next.
  15. In the Network Communications page, click Next.
  16. In the TFTP Option and Bootstrap Location page, check the box, and click Next.
  17. In the Stream Servers Boot List page, click Advanced.
  18. Check the box next to Verbose mode, click OK, and then click Next.
  19. If Provisioning 7.12 or newer, in the Soap SSL Configuration page, click Next.
  20. If Provisioning 7.11 or newer, in the Problem Report Configuration page, enter your MyCitrix credentials, and click Next.
  21. In the Finish page, click Finish.
  22. If you are upgrading, then you might be asked to upgrade the database. Click Yes.
  23. Click OK if you see the firewall message.
  24. In the Finish page, click Done.

From Running the Configuration Wizard silently at Citrix Docs: Now that you have a configured server, you can run "C:\Program Files\Citrix\Provisioning Services\ConfigWizard.exe" /s to produce an .ans file at "C:\ProgramData\Citrix\Provisioning Services\ConfigWizard.ans". This .ans file can be modified and copied to additional Provisioning servers. "C:\Program Files\Citrix\Provisioning Services\ConfigWizard.exe" /a reads the .ans file and applies the configuration silently.

Configuration Wizard – Join Farm

  1. The Configuration Wizard launches automatically.
  2. There are two methods of handling SQL permissions:
    1. The person running the wizard must have db_owner on the database and securityadmin role on the SQL Server. This allows the wizard to add the service account to SQL logins and grant it access to the database.
    2. Or the person running the wizard can be limited to just db_owner permission to the database. The service account must be added manually to SQL logins by a DBA.
  3. The DHCP Services page appears. DHCP is typically hosted on a different server so select The service that runs on another computer. It is also possible to install DHCP on the Provisioning Servers. Click Next.
  4. In the PXE Services page, if you intend to use Boot Device Manager (BDM or ISO) instead of PXE, then change the selection to The service that runs on another computer, which disables the PXE service.
  5. If your Target Devices and Provisioning Servers are on the same broadcast network, then change the selection to Citrix Provisioning PXE service on this computer.
  6. Click Next.

  7. In the Farm Configuration page, click Join existing farm.
  8. In the Database Server page, enter the name of the SQL server, and click Next.
  9. In the Existing Farm page, select the database, and click Next.
  10. In the Site page, select an existing site, and click Next.
  11. If you used the script to create the database, then there probably are no stores defined. Do so now.
  12. Otherwise, in the New Store page, select the existing store, and click Next.
  13. In the License Server page, click Next.
  14. In the User account page, notice it defaults to Network service account. This won’t work with KMS licensing so change it to Specified user account. Enter credentials for an account that is a local administrator on all Provisioning servers, and click Next. Note: Provisioning 7.16 and newer support Group Managed Service Accounts.
  15. In the Active Directory Computer Account Password page, check the box, and click Next.
  16. In the Network Communications page, click Next.
  17. In the TFTP Option and Bootstrap Location page, check the box, and click Next.
  18. In the Stream Servers Boot List page, click Advanced.
  19. Check the box next to Verbose mode, click OK, and then click Next.
  20. If Provisioning 7.12 or newer, in the Soap SSL Configuration page, click Next.
  21. If Provisioning 7.11 or newer, in the Problem Report Configuration page, enter your MyCitrix credentials, and click Next.
  22. In the Finish page, click Finish.
  23. Click OK if you see the firewall message.
  24. In the Finish page, click Done.

Troubleshooting – Networking Services Don’t Work After Reboot

If your PXE service or TFTP service does not work after a reboot of the Provisioning server, do the following:

  1. One option is to set the Citrix PVS PXE Service, Citrix PVS TFTP Service, and Citrix PVS Two-stage boot Service to Automatic (Delayed Start).
  2. The TFTP and Two-stage Boot services can be delayed by setting registry keys. From Carl Fallis at Citrix Discussions:
    • Keys = HKLM\System\CurrentControlSet\services\BNTFTP (and PVSTSB)\Parameters
    • Value = InitTimeoutSec (DWORD). 1 – 4 seconds. Default is 1.
    • Value = MaxBindRetry (DWORD). 5 – 20 retries. Default is 5.

Disable Firewall

Disable the Windows Firewall to allow communication to all Citrix Provisioning Server ports. Or, see Citrix Provisioning Firewall Rules and manually open all required ports. If you change the ports in the Citrix Provisioning Console, then you’ll need to adjust the Windows Firewall rules accordingly.

  1. In Server Manager, click Tools, and click Windows Firewall with Advanced Security.
  2. Click Windows Firewall Properties.
  3. On the Domain Profile tab, change the Firewall state to Off.

Disable BIOS Boot Menu

The versioning process in Citrix Provisioning will present a boot menu when booting any version except Production.

  1. To avoid this, create the DWORD registry value HKLM\Software\Citrix\ProvisioningServices\StreamProcess\SkipBootMenu on both Provisioning Servers and set it to 1. Note: the location of this key changed in Provisioning Services 7.0 and newer.
  2. Then restart the Citrix PVS Stream Service.

Private Mode vDisk – No Servers Available for vDisk

Citrix CTX200233 – Error: “No servers available for disk”: When you set a vDisk to Private Image mode (or new Maintenance version), if the Target Device is not connected to the server that contains the vDisk then you might see a message saying “No Servers Available for vDisk”.

  1. To avoid this, create the DWORD registry value HKLM\Software\Citrix\ProvisioningServices\StreamProcess\SkipRIMSForPrivate on both Provisioning Servers and set it to 1. Note: the location of this key changed in Provisioning Services 7.0.
  2. Then restart the Citrix PVS Stream Service.

Multi-Homed Provisioning Server

From slide 20 of http://www.slideshare.net/davidmcg/implementing-and-troubleshooting-pvs:, Multi-homed Provisioning server is not recommended but if you insist, and if running Provisioning 6.1 or older, configure the following. Provisioning 7.7 configuration wizard should have asked you for the management NIC.

  • HKLM\Software\Citrix\ProvisioningServices\IPC
    • New Reg_Sz (string) named IPv4Address with the IP of the NIC for IPC
  • HKLM\Software\Citrix\ProvisioningServices\Manager
    • New Reg_Sz (string) named GeneralInetAddr with the IP of the NIC and port
    • e.g. 10.1.1.2:6909

Citrix 133877 Timeout Error 4002 in Provisioning Server Console after Clicking “Show Connected Devices: when there are multiple streaming NICs assigned to the Provisioning Server, when Show Connected Devices was clicked in the Provisioning console, the following symptoms might be experienced: Server timeout error 4002, unusual delay of 3 to 4 minutes to list the connected devices, or Provisioning console stops responding. Complete the following to resolve the issue:

  1. On the Provisioning Server machine, under HKLM\software\citrix\provisioningServices\Manager key, create registry DWORD RelayedRequestReplyTimeoutMilliseconds, and set it to 50 ms (Decimal).
  2. Create a DWORD RelayedRequestTryTimes, and set it to 1.
  3. Open the Provisioning Server console and test by selecting the Show Connected Devices command.

Antivirus Exclusions

Citrix’s Recommended Antivirus Exclusions

Endpoint Security and Antivirus Best Practices at Citrix Docs TechZone contains a list of recommended exclusions for Citrix Provisioning.

 

Citrix Blog Post Citrix Recommended Antivirus Exclusions: the goal here is to provide you with a consolidated list of recommended antivirus exclusions for your Citrix virtualization environment focused on the key processes, folders, and files that we have seen cause issues in the field:

  • Set real-time scanning to scan local drives only and not network drives
  • Disable scan on boot
  • Remove any unnecessary antivirus related entries from the Run key
  • Exclude the pagefile(s) from being scanned
  • Exclude Windows event logs from being scanned
  • Exclude IIS log files from being scanned

See the Blog Post for exclusions for each Citrix component/product including: StoreFront, VDA, Controller, and Provisioning. The Blog Post also has links to additional KB articles on antivirus.

Microsoft’s virus scanning recommendations

(e.g. exclude group policy files) – http://support.microsoft.com/kb/822158.

TFTP High Availability

If your Target Devices are not on the same VLAN as the Provisioning Servers, you will need to load balance TFTP.

NetScaler 10.1 and newer has native support for TFTP protocol. Older versions of NetScaler are more difficult to configure.

DHCP Failover

The DHCP infrastructure must be highly available. And session hosts should be configured with DHCP Reservations. With multiple DHCP servers, any reservation should be created on all DHCP servers hosting the same DHCP scope. The easiest way to accomplish this is with the new DHCP Failover feature in Windows Server 2012.

  1. Build two DHCP servers on Windows Server 2012 or newer.
  2. Create a scope for the Provisioning Target Devices.
  3. Right-click the existing scope, and click Configure Failover.
  4. In the Introduction to DHCP Failover page, click Next.
  5. In the Specify the partner server to use for failover page, enter the name of the other DHCP server, and click Next.
  6. In the Create a new failover relationship page, enter a Shared Secret, and click Next.
  7. Click Finish.
  8. Click Close.

Health Check

Sacha T. – Citrix PVS HealthCheck: PowerShell script to view the health/status of the Provisioning environment. Emails an HTML Report. For Provisioning 7.7, see http://blog.appcloud.ch/happy-new-script-pvs-7-7-healthcheck/. For Provisioning 7.6, http://blog.sachathomet.ch/happy-new-script-pvs-7-7-healthcheck/.

Related Pages

226 thoughts on “Citrix Provisioning 1909 – Server Install”

  1. Carl, we have an initiative to move our 4 load balanced PVS servers over to a new larger network. Both networks are in the same DMZ, so firewall should not be an issue. Currently we have target devices in both the old and new network streaming from these PVS servers. We also have the current IP addresses of these 4 PVS servers listed in option 11 of the DHCP scope for both the old and new networks. Do you have a list of steps or a Citrix article that outline how to change the IP addresses of these PVS servers while still allowing all of our target devices to remain functional? Thank you in advance for any guidance you can provide.

    1. Same subnet? Or different subnet?

      If different subnet, you can change the DHCP scope option for the subnet. If same subnet, then you create DHCP reservations and configure DHCP Options for the reservation.

      1. We are looking to change the IP address of the PVS servers from one subnet to another (not to an IP address in the same subnet).For example, they would be going from (10.10.1.100 though 10.10.1.103) to (10.10.20.100 through 10.10.20.103). It is a different subnet and VLAN where we would like to get these PVS servers to.

        1. Are you taking an outage? If not, then you can build new PVS servers on the new IPs, change DHCP, and the Targets will boot to the new PVS servers. Once all are rebooted, then remove the old PVS servers.

          1. We aren’t looking to take an outage. Is it not possible to change the IP of the current PVS server from the old subnet over to the new subnet (even if it is done over a couple of days)? Since we have 4 PVS server, can we change the IP address of the PVS servers over to the new network one at a time since they all host the same vDisks and are load balanced?

          2. In regards to the DHCP options, I imagine we would change the DHCP options for the scope of the new subnet to have the IP addresses of the PVS servers in the new subnet once they have been moved. Do you happen to have the steps for changing the IP address of a PVS server to an address in the new network or a Citrix article that would outline that? Thank you for all of the information you have provided!

          3. You should be able to change the NIC address and then re-run the Citrix Provisioning Config Wizard. If you’re using the built-in BIOS Bootstrap, then you’ll need to update that too (right-click server > Configure Bootstrap).

  2. Carl
    I have been tasked to setup PVS in a HA configuration. If you have a link or some doco. to point me to that would be great. If you could also answer a couple of questions. Does the HA for PVS require windows clustering to make it work and is there a preference for installing PVS on a virtual machine or a physical machine? In regards to the HA do you have to oversize the machines so if one of the machines go down the other machine can handle the entire load?

    1. No clustering needed. The Target Devices can stream the same vDisk from multiple Citrix Provisioning servers.

      Multiple PVS servers share a SQL database.

      Multiple PVS servers must be able to open identical vDisk files. Commonly the vDisk files are replicated to each PVS server. Or you can store them in a UNC share.

      Inside Citrix Provisioning Console, make sure Load Balancing is enabled on the vDisks.

      Make sure the Target Devices are caching to the local memory/disk and are not caching to the Citrix Provisioning servers.

      Make sure the Target Device bootstrap contains multiple PVS server addresses.

      Dedicating a physical server to just PVS is probably overkill. PVS sizing depends on the number of Target Devices and the number of actively streamed vDisks.

    1. PVS has a convenient checkbox for MultiSubnetFailover. The other products do not. WEM is probably the worst for AlwaysOn setup.

  3. Hi Carl,

    one of our master image computer object deleted from AD, after that trust relationship failed.
    We have restored computer object but issue still persist. we need to patch the master image and we are unable to login into it. could you please suggest us.

    1. Is your master image booting from PVS? If so, right-click on your powered off Target Device, expand Active Directory, and there’s an option to reset the account.

      You don’t know the local administrator password? If not, then I think there are ways of booting from an ISO that lets you reset the local password.

  4. Hi Carl, currently we have both DHCP and PVS on same server , now we have to configure different DHCP server. how can we do that ?

    1. Are you moving DHCP to a different subnet?

      If same subnet, build your new DHCP servers with scope, activate the scope, and then disable DHCP on the PVS servers.

      If different subnet, build your new DHCP servers, configure scope and activate it, in your router for the target devices configure the router to forward DHCP requests to the new DHCP servers, and then disable DHCP on the PVS servers.

      1. yes , we are moving DHCP to different subnet. And also while configuring PVS , we selected DHCP services as The service that runs on this computer. so do we want to change that now ? if yes , how to do that ? because we are changing DHCP to other server.

        1. In Services, one of the services is DHCP. Just stop it and disable it.

          Or, run the Citrix Provisioning Wizard, and change DHCP to disabled.

  5. Hi Carl,

    This is regarding newly built PVS environment with following details;

    Windows 2016 Standard Edition (No windows patches applied yet)
    Citrix 7.15 LTSR CU3 Provisioning services
    Windows 10 build 1809

    After creating PVS disk and target devices when pool of 10 VDI’s gets started out of which 5 may gets hung at PVS disk found or windows logo and further nothing happens till force reboot performed over hung target devices.

    There is one point under your documentation is to remove SATA drive (SATA controller for my CD/DVD drive removed and switched to IDE) for PVS which is already in place

    Followed some Citrix blogs where I could see below points;

    Network Task offload setting to be enabled using registry setting over PVS servers and target devices, which is done
    Disable Telemetry services on VDA (even disabled over PVS servers)
    Interrupt Safe Mode” is not enabled in the BOOT.ISO configuration
    Network adapter is VMXNET3
    Applied workaround script solution to restart unregistered target devices
    Tried different versions of ARDBP32.bin files

    Still the problem is there further to this Citrix case was opened and at the back of CDF trace logs got some information pointing to network layer where packets are getting dropped

    Few lines from Citrix response as below

    78 DiskIO IOS_READ_EXT_REQUEST sRead [0x00000200 512]
    78 DiskIO IOS_READ_EXT_REQUEST sRead [0xae824a00 512]

    PVS 84 Login LS_RECONNECT_REQUEST_CODE_V2 IO reconnect

    Still issue persist in mean time PVS has been upgraded to CU3 from CU2 where this issue initially observed.

    Any additional help would be really great

    Lastly wanted to thank you for all your practical documentation which is actually better than Citrix ones 🙂

  6. Hello Carl,

    Is there any powershell command to update the bootstrap file from the database? (in the GUI you can press the button, read Servers from Database) but I can’t find the powershell command to do the same. I can use powershell to add servers to the file, but I want to use the option read from database…

    Best regards

    Ooh and of course, I love your website.

    1. CTP Dennis Span suggested this:

      (Get-PvsServerInfo).IP.IPAddressToString | Set-PvsServerBootstrap -ServerName $ComputerName -Name “ARDBP32.bin”

      1. Hi Carl,

        Thanks for the swift answer!

        I tried above command, but only to result in errors.

        A collegue of mine wrote his own script function.

        ########
        function Update-PVSBootstrap ($computername = $env:computername){
        $IP=Get-PvsServer|select IP -ExpandProperty Ip
        $IP=$IP.IPAddressToString
        switch ($IP.Count)
        {
        1 {Set-PvsServerBootstrap -ServerName $computername -name ARDBP32.BIN -Bootserver1_Ip $IP[0] -Bootserver1_Port 6910}
        2 {Set-PvsServerBootstrap -ServerName $computername -name ARDBP32.BIN -Bootserver1_Ip $IP[0] -Bootserver1_Port 6910 -Bootserver2_Ip $IP[1] -Bootserver2_Port 6910}
        3 {Set-PvsServerBootstrap -ServerName $computername -name ARDBP32.BIN -Bootserver1_Ip $IP[0] -Bootserver1_Port 6910 -Bootserver2_Ip $IP[1] -Bootserver2_Port 6910 -Bootserver3_Ip $IP[2] -Bootserver3_Port 6910}
        4 {Set-PvsServerBootstrap -ServerName $computername -name ARDBP32.BIN -Bootserver1_Ip $IP[0] -Bootserver1_Port 6910 -Bootserver2_Ip $IP[1] -Bootserver2_Port 6910 -Bootserver3_Ip $IP[2] -Bootserver3_Port 6910 -Bootserver4_Ip $IP[3] -Bootserver4_Port 6910}
        default { ‘1-4 servers supported, $ip.Count found’ }
        }
        }
        #########

        When running update-pvsbootstrap all is filled with the right addresses.

        Be aware if one changed the portnumber, change is also in this script.
        Needs to be run on all PVS servers, so I’m still looking for a script which can be run after the installation of a PVS server and which connects to all pvs server and sets the right bootstrap information

        🙂

        So for all the powershell addicts out there.

        1. $PVSSites = Get-PVSSite

          ForEach($PVSSite in $PVSSites)
          {
          $PVSServers = Get-PVSServer -SiteName $PVSSite.SiteName

          ForEach($PVSServer in $PVSServers)
          {
          Update-PVSBootstrap $PVSServer.ServerName
          }
          }

          1. Carl,

            You are the man 🙂 Thanks this is working great!

            My worries are gone for the weekend. Now I can enjoy my beer.

            have a great weekend!

  7. Wanted to know the pros and con of having target devices on the same VLAN as the Provisioning servers vs on different vlan.
    Thanks,

    1. If on the same VLAN, then there’s no need to configure boot ISOs or DHCP Scope Options. Just let the VMs do a PXE boot and any of the PVS servers will respond. If cross-subnets, then you have to use Boot ISO, Boot partition, or TFTP load balancing to enable redundant TFTP servers.

  8. Hi Carl, I have installed pvs 7.15 LTSR server on windows 2012. I have created DB using script. When I try to connect to farm from provisioning services console, “The SELECT permission was denied on the object ‘DatabaseVersion’, database ” error occurs. Any fix to resolve this issue ?

    1. What service account did you configure? Did you use the Citrix Provisioning Configuration Wizard to specify the service account?

      1. Hi Carl, Issue is resolved when I manually provided db permissions to the service account. One more thing, does this domain service account need permissions in active directory to create or delete objects.

  9. Hi Carl
    Just upgrading PVS from 7.6 to 7.15.9 and this message popped up:
    “Citrix 7.15 LTSR CU3 Warning – Automount disabled. Citrix 7.15 LTSR CU3 – Provisioning Services x64 requires automount to be enabled in order to mount the vDisk. Please enable automount through diskpart.”
    Our existing vDisk’s on PVS agent 7.6 wouldn’t boot, we found that the ‘Citrix PVS PXE Service’ had been set to manual, started it and vDisks boot fine. This behaviour was unexpected.
    I guess the first problem can be fixed when we reverse engineer the build, but didn’t expect this warning popup.

    Regards
    RussC

  10. hi, does anyone uses paravirtualized adapter under vmware for the pvs server where the vDisks are? i have not seen that PVSCSI is not supported on a PVS Server, i get a lot more performance with the PVSCSI on a Test Machine, because we have a Pure Storage with SSD. kind regards, sebastian

  11. hi carl, can you help?
    PVS 1808 to 1811 , please uninstall PVS Server 1808 and then install PVS Server 1811. what the hell is that? i want only upgrade my PVS System. Why i must uninstall something?

    regards
    frank

    1. I’m the “other” Carl. The official line for upgrading PVS has always been to uninstall the previous version and install the new. All the data and farm info is in the SQL database. When you install 1811, you will tell the installer to join an existing farm, point it to the SQL server and database and life is good.

      This doesn’t take long to uninstall and reinstall.

      Hope this helps

      The “other” Carl

      1. hmm i am sure, i never uninstall old version before upgrade. also there is no info that you must uninstall your old version before. i make many upgrades from PVS, but this message today is surprising me, i dont see that on no upgrade before!

    2. I don’t recall seeing that. But it’s shouldn’t be a big deal if you have more than one Citrix Provisioning server.

      1. I stand corrected. There is an upgrade option.

        https://docs.citrix.com/en-us/provisioning/current-release/upgrade/upgrade-servers-in-farm.html

        But it sounds like the upgrade wizard uninstalls the current PVS software.

        Upgrading the first Provisioning Server
        To upgrade:

        To upgrade the server and database, run the new version of the server software on the server, then select the “Automatically close and attempt to restart applications” option. If this option is not selected and a “File in use” screen displays, select the “Do not close applications option.”
        Install the Console on this server or on a server used to manage the farm. For details on installing the Console, refer to Installing Citrix Provisioning Server Software.
        In the Configuration Wizard, select the option to join a farm that is already configured. Running the wizard starts the services. For details, refer to the instructions on how to join an existing farm in Configuration Wizard Tasks.

        1. Just did an 1808 to 1811 upgrade. There is a popup that states:

          “Please uninstall PVS Server 1808 and then install PVS Server 1811”

          So, same as from the 4.x, 5.x, 6.x, and 7.x days. Uninstall the previous version and install the new version. What’s the song? “Same as it ever was, same as it ever was, same as it ever was”

          1. OK, I went back and installed PVS 7.0 and went through version by version upgradeds to 1811. Here is what I found.

            7.0 to 7.1 no uninstall
            7.1 to 7.6 CU5 no uninstall
            7.6 to 7.7 no uninstall
            7.7 to 7.8 no uninstall
            7.8 to 7.9 no uninstall
            7.9 to 7.11 no uninstall
            7.11 to 7.12 no uninstall
            7.12 to 7.13 no uninstall
            7.13 to 7.14 no uninstall
            7.14 to 7.15 CU2 no uninstall
            7.15 to 7.16 no uninstall
            7.16 to 7.17 no uninstall
            7.17 to 7.18 no uninstall
            7.18 to 1808.1 no uninstall
            1808 to 1811 uninstall required

    1. I think the better word is “improve”. You improve boot performance and merge times. I don’t think using ReFS “increases” merge times when using VHDX.

    2. Using ReFS as Store Filesystem can crash the vDisks. Promoted versions of vDisks will crash and you won’t be able to create further versions or merge.
      Tested it with Server 2019 and PVS Version 1811, 1903 and 1906.
      We had no performance increase in merge or boot times.

  12. Anyone have any luck using PowerShell to set vDisks to “Newest Released” after setting an override? I can’t seem to find out if you can do this.

    1. https://docs.citrix.com/en-us/provisioning/7-15/downloads/PvsSnapInCommands.pdf

      (Add)(Get)(Remove)Set-PvsDiskVersion

      According to my PVS documentation script, if the Access property is 3, then they have manually selected a version to boot from.

      If the Access property is 0 and IsPending is False then they are using “Newest released”

      uint Access: Read-only access of the Disk Version. Values are: 0
      (Production), 1 (Maintenance), 2 (MaintenanceHighestVersion), 3
      (Override), 4 (Merge), 5 (MergeMaintenance), 6 (MergeTest), and 7 (Test)
      Min=0, Max=7, Default=0

      bool IsPending: Read-only true when the version ScheduledDate has not
      occurred. Default=false

      uint Version: Read-only version number. The base disk is version 0, the
      other version numbers are in part of the file name. Default=0

  13. Your instructions mention to disable windows firewall on the target. Is that a requirement, or could you create rules for all of the PVS specific communication?

      1. Thanks I was using those, but saw the instructions to disable it. I’ve always had it disabled but there is now an ask to have it enabled. Just wanted to make sure it wasn’t a PVS requirement to have it disabled, just a way to avoid issues.

        1. I figure there enough holes to justify disabling the host firewall. I don’t think PVS installer opens any of the rules automatically.

          1. I just updated that section to indicate the alternative of manually opening the ports. Thanks.

  14. Hi Carl, We are planning to install pvs 7.15 LTSR on win2k12, our current version of pvs is 6.1. This will be a parallel upgrade. we would like to use the exising vdisks in the new server for few months. Could you advise how to upgrade or move the vdisks to new pvs servers

  15. I have a customer who wants to Co-Locate PVS on their Delivery Controller.

    I have some concerns about doing this. Has anyone done this before?

  16. Hi Carl,

    I have an existing PVS site running on SQL Express in a separate “Public” domain (no trusts set up). I’m upgrading the Windows OS and PVS and the customer wants the PVS database to come into the “Corporate” domain and sit on the Corporate SQL cluster.
    I have backed up and moved the SQL Express DB to the Corporate cluster, but when i go to join, i’m un-trusted. Do you know of any way around this? Once i’m able to query the SQL Cluster, i can add service account credentials for the connection.

    Can you think of any way around this or am i going to have to stick with Public domain SQL Express?

    1. I don’t think PVS supports SQL authentication so it would need to be Windows authentication, either the computer account, or the service account.

  17. Carl,
    i use provision server 7.15 try to add host vsphere to PVS it keep give me error (Connection failed!

    Failed to connect to the remote server. ( Unable to locate server. [The underlying connection was closed: An unexpected error occurred on a send.] )

    but if i connect direct to the esxi host it work but not the vcenter, can you give adivise? thanks

    1. What version of vSphere? If 6.7, then be aware that 6.7 is not supported yet.

      Is the vCenter certificate trusted by PVS?

      Any problems adding the vCenter Connection in XenDesktop? If not, you could use the XenDesktop Setup Wizard.

      1. I have the same problem carl. PVS 7.15 LTSR CU2 with vsphere 6.0.0. Both streaming wizard and xendesktop wizard gives same error. cannot connect to the hypervisor at https://vcenter.fqdn/sdk. failed to connect to the remote server.

  18. Carl,
    First of all, long time follower, thank you for all of your posts. You’ve gotten me out of a lot of sticky spots.

    Second and mainly, have you ever seen sporadic instances where PVS Target Devices configured with a scheduled reboot, fail on start with:

    No entry found in Database for device

    Press any key to continue………

    After a restart, the vm PXE boots without issue.

    Restart is configured on the Delivery Group

    XenDesktop 7.15 LTSR CU1
    PVS 7.15 LTSR
    Target Device 2012 R2,
    PVS 7.15
    VDA 7.15 CU1

    1. How are they booting? PXE? DHCP Options? ISO?

      What PVS server are the logging into? Does that PVS server connect to the same database as the others?

      What hypervisor? Is the MAC address of the device changing?

  19. Hi Carl, Greetings.

    I am in urgent need of upgrade our PVS Servers from 7.1 to 7.15, because our target devices are running with 100% CPU. I have logged a call with Citrix and they recommended to upgrade our PVS Servers.

    Root Cause: We are using a very old version (Close to 4 years ago) of our Cvhdbus driver on PVS Servers.

    Could you please help me with the high level plan to upgrade our PVS Servers.

    Can I directly upgrade PVS Servers from version 7.1 to 7.15 using this article?

    Can I directly upgrade the target devices vsidk using the versioning method.

    Thanks and regards,

    Harry

    1. PVS Servers can be in-place upgraded from 7.1 to 7.15. Start there.

      For the Target Devices, you will need to reverse image them to upgrade the Target Device software. The versioning method won’t work until after you’re on 7.6.1 or newer.

  20. hi, just upgraded my pvs console from 7.15 to 7.17 and got the following error.
    —————————
    Application Error
    —————————
    An unhandled exception occurred and the application will exit. Please report the information below. Press Ctrl-C to copy the data to the clipboard.

    Methode nicht gefunden: “!!0[] System.Array.Empty()”.

    Stack Trace:
    bei ADSupport.PublicFunctions.GetOneTimeADInfo()

    bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

    bei System.Threading.ThreadHelper.ThreadStart()
    —————————
    OK
    —————————

    any ideas??

  21. Carl, thank you for the wealth of information you provide. I do have a few of questions for you though. We are currently planning our upgrade for our PVS servers from 7.13 CR to 7.15 LTSR.
    1) Are we able to upgrade the PVS servers to 7.15 LTSR before we upgrade our XenApp/XenDesktop farm from 7.6 LTSR to 7.15 LTSR?
    2) If so, are we able to install PVS 7.15.2 LTSR components (Server, Console, and Target Device software) without installing 7.15 LTSR or 7.15 LTSR CU1 first?
    3) In regards to the XenApp/XenDesktop upgrade from 7.6 LTSR, would you recommend upgrading? Or do you recommend setting up new databases and new VMs for the controllers?

    Thanks in advance!

    1. There’s no connection between PVS and XenDesktop other than the XenDesktop Setup Wizard. But I don’t think there’s any version dependency there either. Yes, you can upgrade to 7.15.2 first.

      I usually in-place upgrade, assuming there’s a quick rollback plan. Any plans to change the operating system version?

  22. Carl,

    I have been using MCS on Xenapp 7.8 but I am planning on testing PVS. Can I use PVS side-by-side with MCS? I could not find anything that prevents hybrid environment. Do you know of any rissks involved?

  23. Carl, created SQL script using DBScript.exe. When I try to execute script in SQL server, created DB with errors

    Msg 5039, Level 16, State 1, Line 56
    MODIFY FILE failed. Specified size is less than or equal to current size.
    Msg 5039, Level 16, State 1, Line 56
    MODIFY FILE failed. Specified size is less than or equal to current size.

  24. Good afternoon Carl, I am planning to installing PVS 7.16 (building a new environment XA/Xd 7.15 LTSR). I ran into an issue, our networking team is not allowed to use DHCP in our datacenter. Is there any alternate way to install and config like PVS 7.16 using DNS or BDM? If you have ever done this type of support, please could you guide me or provide me any document you may have related to this scenario. Thank you for your help in advance.

    1. You can create a Boot ISO that contains a static IP address. But you’d probably need a different ISO for each Target Device.

  25. Hi Carl

    Just upgraded our PVS from 7.13 to 7.16, however we still have some Windows-7 clients.

    Since VDA 7.15 works with controller 7.16, what would you advise in respect of PVS-Agent on Windows-7.

    Would 7.15 PVS-Agent be used or I can upgrade straight to 7.16?

    Thanks

  26. Hey Carl, great post as usual thank you. Just had a question on target device software. If the PVS server is upgraded from say 7.9 to 7.15.1 LTSR is the new version backward compatible with the 7.9 target device software version?

    1. Yes. But you should get your Target Devices upgraded. PVS Servers must be upgraded before the Target Devices since newer TD Software won’t work with older PVS Servers.

      1. Hi Carl, can u upload some docs on configuration of bootstrap in pvs server…i have some issue with vdisk as its version not showing active on some servers.

        1. Are you saying that when you right-click the vDisk and click Replication Status, the vDisk is not green on every server? Either the file size and timestamp is not identical, or there’s a problem with the PVS Services. What vesion are you running?

  27. I am already running my PVS on 7.15 LTSR. Now we have the CU1 update available. After the PVS servers are upgraded to CU1, do we need to upgrade database via script since it is the same version?

  28. Hi Carl, On running an upgrade on Windows 2008 R2 from 7.12 to 7.16 I have issues. I have upgraded the same VM from many previous version without issue over the years.
    The first thing I noticed were the expected Soap and Stream services set as manual and no Logon credentials set, as they had been before the upgrade.
    If I try to put the service account in and start the Soap service, I then notice in the Windows Application event log
    Service cannot be started. System.MissingMethodException: Method not found: ‘!!0[] System.Array.Empty()’.
    at SoapServer.SoapService.StartCeip()
    at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

    Application: SoapServer.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.MissingMethodException
    Stack:
    at ADSupport.PublicFunctions.GetComputerDomain(Boolean ByRef)
    at ADSupport.PublicFunctions.GetOneTimeADInfo()
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()

  29. Hi! Would you say disabletaskoffload is still applicable for the PVS servers?

    Excerpt CTX117374:

    Provisioning Server and Target Device
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters\
    Key: “DisableTaskOffload” (dword)
    Value: “1”

  30. Hello Carl,

    I have installed PVS 7.15 on 3 Windows 2016 servers. I need to install the DHCP role on the PVS server. As per MS, we can only put 2 DHCP servers in cluster. At present we are deploying Hosted Shared Desktops but in future we would be deploying VDIs as well. What would you recommend in this scenario ?

  31. Hi Carl,
    of cause your article is great. I’m now learning PVS with version 7.13. And I found no “versions” -menu item with right click on any vDisks. That means under “properties” is direct “LoadBalancing” without “versions” to see, as describted in all docs. Could give me some tips?
    Thanks in advance.
    YY

  32. Carl, planning an in-place upgrade from 7.11 to 7.15. I know during initial fresh install you can generate a DB script. When doing an upgrade can you do the same to provide a script to DBAs or does an upgrade only allow DB update from the in-place install?

Leave a Reply to Christoph Leuthold Cancel reply