Installing and Configuring Citrix Provisioning Services 7.1

In this step-by-step installation guide I will install Citrix Provisioning Services 7.1 on a Microsoft Windows Server 2012 R2 system. I will install the PVS console, the server itself, configure the PVS farm, installing the target device software, running the Imaging Wizard, and finaly I will apply some optimizations.

For this installation I will use my current DHCP server, Microsoft SQL 2012 server and Citrix License server which are installed on a separate server. In addition to these components, you must also create a folder for the vDisk Store and create a services account before starting the installation.

Services account permissions

The services account needs the following permissions;

Database:

  • db_datareader
  • db_datawriter
  • Execute permissions on stored procedures

System:

  • Run as service
  • Registry read access
  • Program Files\Citrix\Provisioning Services (Full Control)
  • Read/write access to any vDisk location
  • If using Personal vDisk with XenDesktop, XenDesktop Full administrator privilages
  • If using KMS licensing, the service account needs to be a member of the local administrators group

Active Directory:

  • Domain User
  • Create, Reset and Delete computer objects permissions on relating OU’s
  • Reset password permissions on relating OU’s

User who performs the installation

The user you are using for the Citrix Provisioning Services Server installation needs the following SQL Database permissions;

  • DBCreator
  • Security Admin

Prerequisites (on Windows Server 2012 R2)

Provisioning Services Console

  • Microsoft Management Console 3.0
  • Windows PowerShell 2.0
  • Microsoft .NET 3.5 SP1 (when using with XenDesktop)
  • Microsoft .NET 4.0

Provisioning Services Server

  • Windows PowerShell 2.0
  • Microsoft .NET 3.5 SP1 (when using with XenDesktop)
  • Microsoft .NET 4.0

Windows Target Device 

  • Microsoft .NET 3.5 SP1 (when using with XenDesktop)
  • Microsoft .NET 4.0

DHCP Scope options

If PXE is not an option in your environment, you can configure the DHCP services to delivers the bootstrap file location. You can do this with the following DHCP scoop options;

  • 66: Boot Server Host Name
  • 67: Bootfile Name (ARDBP32.BIN)

Installing the Citrix Provisioning Services Console

install-and-configuring-pvs-71-001

Start the setup and click on Console Installation

install-and-configuring-pvs-71-002

Click Install

install-and-configuring-pvs-71-003

Click Next

install-and-configuring-pvs-71-004

Select I accept the terms in the license agreement and click Next

install-and-configuring-pvs-71-005

Click Next

install-and-configuring-pvs-71-006

Click Next

install-and-configuring-pvs-71-007

Select Custom and click Next

install-and-configuring-pvs-71-008

Click Next

install-and-configuring-pvs-71-009

Click Install

install-and-configuring-pvs-71-010

Click Finish

Installing the Citrix Provisioning Services Server

install-and-configuring-pvs-71-011

Select Server Installation

install-and-configuring-pvs-71-012

Select Install Server

install-and-configuring-pvs-71-013

Click on Install

install-and-configuring-pvs-71-014

For the Database Mirroring feature, the SQL native client is required on the server. Of you want to use this feature, click on Yes

install-and-configuring-pvs-71-015

Click Next

install-and-configuring-pvs-71-016

Select I accept the terms in het license agreement and click on Next

install-and-configuring-pvs-71-017

Click Next

install-and-configuring-pvs-71-018

Click Next

install-and-configuring-pvs-71-019

Click Install

install-and-configuring-pvs-71-020

Click Finish

Configuring Provisioning Services (Setting up the farm)

install-and-configuring-pvs-71-021

Click on Next

install-and-configuring-pvs-71-022

In my PoC environment the DHCP Services runs on another server.
Select what is applicable and click “Next”.

install-and-configuring-pvs-71-023

Select what is applicable and click “Next”.

install-and-configuring-pvs-71-024

Click Next

install-and-configuring-pvs-71-025

Browse to the SQL server and click Next

install-and-configuring-pvs-71-026

Fill in the requested information and click “Next”.

install-and-configuring-pvs-71-027

Fill in a Store name (anything you like), browse to the folder created for the vDisk and click Next

install-and-configuring-pvs-71-028

Fill in the Citrix License server address, optional select Validate License server version and communication and click Next

install-and-configuring-pvs-71-029

Select Specified user account, fill in the service account information and click Next

install-and-configuring-pvs-71-030

Click Next

install-and-configuring-pvs-71-031

Click Next

install-and-configuring-pvs-71-032

Select Use the Provisioning Services TFTP service and click Next

install-and-configuring-pvs-71-033

Click Next

install-and-configuring-pvs-71-034

Click Finish

install-and-configuring-pvs-71-035

Click Done

Installing the Citrix Provisioning Services Target Device (on a Windows Server 2012R2 Target)

Before installing the target device software I always disable IPV6 and Large Send Offload. See these steps under Optimizations (below this blog).

install-and-configuring-pvs-71-040

Start the installation and click on Target Device Installation

install-and-configuring-pvs-71-041

Click Target Device Installation

install-and-configuring-pvs-71-042

Click Next

install-and-configuring-pvs-71-043

Select I accept the terms in the license agreement and click Next

install-and-configuring-pvs-71-044

Click Next

install-and-configuring-pvs-71-045

Click Next

install-and-configuring-pvs-71-046

Click Install

install-and-configuring-pvs-71-047

If you want to launch the Imaging Wizard direct after this installation select Launch Imaging Wizard. Click Finish.

Running the Imaging Wizard

For this steps I already created a vDisk as described in this blog: How to create a Citrix XenApp 6.5 vDisk (will also apply for XenDesktop 7).

install-and-configuring-pvs-71-048

Click Next

install-and-configuring-pvs-71-049

Enter the Citrix Provisioning Services server where you created the vDisk and click Next

install-and-configuring-pvs-71-050

Select the vDisk and click Next

install-and-configuring-pvs-71-051

Click Next

install-and-configuring-pvs-71-052

Click Next

install-and-configuring-pvs-71-053

Click Next

install-and-configuring-pvs-71-054

Click Optimize for Provisioning Services

install-and-configuring-pvs-71-055

What to optimize depends on your environment, for example in most cases the Windows Autoupdate services can be disabled (also recommended sins the vDisk is read-only). But if System Center 2012 Endpoint Protection is used in the environment, the Windows Autoupdate services is needed for the anti-virus updates. Apply what is applicable for your environment and click OK.

install-and-configuring-pvs-71-056

Click Finish

install-and-configuring-pvs-71-057

Click Yes to reboot the server. After the reboot the disk will be converted.

Optimizations

Kerberos Security

In an Active Directory environment, the PVS Console, Imaging Wizard and the PowerShell snap-in will first try to communicate with SOAP Service using Kerberos. To let this work, SPNs must be created.To check if the SPNs are created by the PVS installer (in my case with PVS 7.1) run the following command;

–          Setspn –l <Services Account>

If this is not the case, they can be created with the following commands;

–          Setspn –a PVSSoap/<PVS Server Name> <Services Account>
–          Setspn –a PVSSoap/<FQDN> <Services Account>

Local and Remote Concurrent I/O limits

The Local and Remote Concurrent I/O limits controls the number of concurrent outstanding I/O transactions that can be sent to a storage device. By setting either count to 0 allows the PVS Services to run without any limits. If you change these values, the server must be rebooted before they have effect (keep an eye on the vDisk retries, if they are too high, the values must be modified).

installing-and-configuring-pvs-71-optimalizations-003

Within the Provisioning Server console, right click the server and click Properties

installing-and-configuring-pvs-71-optimalizations-004

Click Advanced

installing-and-configuring-pvs-71-optimalizations-005

Change the Local / Remote concurrent I/O limit value to 0 (depending if the vDisks are on the local disk or on a remote location).

Disable IPv6

By default Microsoft Windows will try to communicate over IPv6 when it is enabled. Citrix Provisioning Services is not working with IPv6 jet. To disable IPv6 completely (and not only for a specific NIC) apply the following registry key;

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\

DWORD (32-Bit) Value:  DisabledComponents = 0xffffffff

Disable Large Send Offload

To disable Large Send Offload first open the NIC properties BNNS, go to Advanced.

installing-and-configuring-pvs-71-optimalization-001

Set Large Send Offload V2 (IPv4) to Disabled

Apply the following registry key on the Provisioning Server and the Target device;

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters\
DWORD (32-Bit) Value:  DisableTaskOffload = 1

Disable Check for publisher’s certificate and server certificate revocation

When the Citrix Provisioning server has no internet connection you can speed up the management console by disable the “Check for publisher’s certificate revocation” and “Check for server certificate revocation”. To do this open Internet Explorer, go to Internet Options, go to the Advanced tab and uncheck the Check for publisher’s certificate revocation and Check for server certificate revocation under Security.

installing-and-configuring-pvs-71-ie-security-01

41 comments

  • Hi Ingmar, thanks for sharing! (your site is also added to the blogroll)

    Best regards,

    Robin

  • Fantastic guide to PVS 7.X.

    Does anyone know if PVS 7.1 works with Hyper-V R2? The eDocs say Hyper-V v2 and 3 are supported but nothing about v3 R2.

    As well, it appears XenServer 6.2 is not supported.

  • what is optimal number of retries? I changed to 10 remote concurrent I/O and look now that I have retries in the boot process, is that normal?

  • I am creating the setup with PVS7.0 and I am getting “No standard image vDisk exist in this site” when I am launching Xendesktop Setup Wizard through site.

  • Hello Robin,

    We are trying to get PVS to provision our Xenapp 6.5 farm but we still hesitate to use it.

    Reason:
    We don’t know where we need to keep the vDisk.
    We don’t know how many PVS we need to compensate the failure.

    My questions are:

    What is the vDisk store that we can use to meet the performance requirement? I can see that you can just create a PVS server on a big datastore (VMware) and then just put the vDisk on that datastore. I am not sure about the overhead if I am going to do that way. Or do I need to map LUN direct to the VM and then store the vDisk in there. I know that we also can create a mount point within the OS and then mouth to a folder then also can store the vDisk there. I am not sure what the best way is to get the best performance out of multiple published desktop sessions.

    Also another one, how many PVS do you recommend to tolerate failure of the PVS?

    Thanks

    Udom

    • Use at least two PVS servers per site, both with there own storage with a copy of the vDisk.

  • The SQL port is 1433 if you get the dreaded “cannot browse to SQL …” error message 🙂

  • Hi, Robin.

    Thanks for great guidelines on your site, helped us out a lot 😉

    We have s site with one PVS Server, need to add another for load balancing. I haven’t been able to find any good guidelines regarding this, Citrix only tells us to run the wizard.
    Is there anything we need to consider in the wizard, or is it just Next – Next .. ?

    Thanks in advance.

    Eirik

  • Hi Robin,

    thanks for your helpful blogposts.

    i have a problem, hope you can give me a point to solve this issues.

    i setup a lab with XenDeskop 7.5 and PVS 7.1 Servers.

    i installed the target device installation on a Windows 7 64bit.

    i want to run the Provisioning Services Imaging Wizard on a Windows 7 64bit but if i want connect to the PVS Server i get the message “Failed to connect to server.”

    i tryed it with ip and FQDN.
    i can ping the PVS with ip and FQDN.
    logged in as domainadmin on the client.
    no entries in Windows logfiles.

    thanks for your help in advance

    Markus

      • Hi Robin,

        thanks for your reply.
        There is no Firewall in the envirement and WindowsFirewall is disabled on all maschines.

        • Hi Robin,

          just for info.
          This Problem come from an German OS. Same Problem with XenDesktop7.5 on German OS.

          On english OS works all fine.

          shame on citrix.

  • Brilliant Article. Quick question can I use PVS with Xendesktop 7.1 Ent. deploying servers with the VDA agent on?

    Thanks,
    Simon

  • Awesome article but one quick question. I am in the process of upgrading my Citrix environment and was wondering can I upgrade PVS servers to the latest version while XenDesktop is still on 5.6?

    • Thanks! And yes, you can upgrade to PVS 7.1 first, it’s even an Citrix best practice.

  • Anyone know if PVS 7.1 has any integrated XenApp Prep abilities? I switched companies and they’re running PVS 7.1 without any sealup scripts running on shutdown of the vdisk…i’m used to running xenappconfigconsole with the /pvs flag, is this still required? I can’t find anything on it.

  • Hi Robin,

    This is a good article..can I use the same steps for 7.6? is there anything you would change for installing 7.6.

  • great article! how would you configure the db part if you are using sqlalwayson? Do you create the db first and add it to the availability group? If i do it without then i would need to change the db server name after adding the new db to the availability group since it uses a listener. just trying to find out the right steps.

  • Hi, Nice Article, I saw citrix updated their best practices and they say for PVS Server to:

    “Disable Offloads under NIC Advanced Properties (Avoid doing this during Production Hours).

    I see there are many offload options on the vmxnet3
    nic, do you suppose they mean ALL (like IP Options, Tagged Traffic, TCP Options, etc.)
    ??

    http://support.citrix.com/article/CTX204107

  • Hey Robin,

    Alweer een artikel van jou in de exam prep guide, dit maal voor het 1Y0-301 examen (CCP-V). Proficiat!

About Robin Hobo

I work as a Senior Solution Architect with focus on the Modern Workspace. I am specialized in Azure Virtual Desktop (AVD), Windows 365 and Microsoft EM+S (including Microsoft Endpoint Manager - Microsoft Intune).

For my full bio, check the About Me page.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close