Pages

Showing posts with label Citrix XenApp. Show all posts
Showing posts with label Citrix XenApp. Show all posts

Thursday, 24 March 2016

How to install and configure PVS 6.1 with XenDesktop 5.6–Part 2

 Preparation of Golden image (vDisk) for Citrix Provisioning Server
 
Since you now create one base image, and after creating the vDisk you start to make it “private” or as you want to publish it.That will speed up the process of creating new Vdisk’s for new users
Step-1 Create a Golden Image
A golden image is the image that is going to be streamed to the various VMs that the end users connect to.
1. Install the host operating system to the virtual machine (VM).
2. Add all the various applications that required by the end-user.
3. Do not install the VDA Agent.
4. Once the image is created with VMTools and installed minus the VDA agent, install the Provisioning Server Target Device Software. Once installed, shut down the VM and proceed to Creating the vDisk File.
Step-2 Creating the vDisk File in the Console
To create a new vDisk file in the Console.
  1. In the Console tree, right-click on the vDisk Pool in the site where you want to add those vDisks, then select the Create vDisk menu option. The Create vDisk dialog appears.
1
2. If you accessed this dialog from the site’s vDisk pool, in the drop-down menu, select the store where this vDisk should reside. If you accessed this dialog from the store, from the drop-down menu, select the site where this vDisk should be added.
3. In the Server used to create the vDisk drop-down menu, select the Provisioning Server to create the vDisk.
4. Type a filename for the vDisk. Optionally, type a description for this new vDisk in the description textbox.
5. In the Size text box, scroll to select the appropriate size to allocate for this vDisk file.
2
6. In the VHD Format text box, select the format as either Fixed or Dynamic .( Set the size for the vDisk. Normally I have enough of 30 to 50 gb, depending on the installed applications on the server. Set VHD type to Dynamic which means that only the space that is really needed will be used for storing the vDisk)
7. Click Create vDisk, a progress dialog opens. Depending on the disk size and other factors, it might take several minutes to create the vDisk. After the vDisk is successfully created, it displays in the Console’s details pane and is ready for formatting.
8. Right-click on the vDisk in the Console, then select Mount vDisk. The vDisk icon appears with an orange arrow, if mounted properly.
Step-3 Formatting a vDisk
For a target device to access the new vDisk, after you have created and allocated space for the vDisk file on the Provisioning Server, you must format the vDisk.
To format a mounted vDisk from the Console
In the Console, the vDisk should appear as a removable disk to the operating system.
1. Open a Windows Explorer window (click My Computer on the Desktop or on the Start Menu).
2. Right-click on the vDisk, then select Format.
3. Create a descriptive name for the volume label for the vDisk.
4. Click Start. Then click OK on the warning message that appears.
5. After formatting, close Windows Explorer and unmount the vDisk.
To unmount a vDisk
To unmount a vDisk and make it available to target devices, in the Console, right-click on the vDisk, and then select the Unmount vDisk option.
Step 4 – Create Target Device within PVS for the “Master Server”
1. Within the Provisioning Services Console, under Device Collections, create a Device Collection with the name Masters (or anything you like). This is not a required step but is recommended because it is easier to manage later.
3
2.Right click the “Masters” Device Collection and click on Create Device.
4
3.On the General tab, enter the name of the Master server. Select to Boot from Hard Desk and fill in the MAC address of the primary NIC of the Master Server (the NIC the Master server boots from).
4.On the vDisk tab, Add the vDisk created in step 2 and click OK
5
Installation of Provisioning Server Target Device Software and VDA on Golden Image
1. Go to Vsphere and start the base machine and make the required changes in the machine and then install the Provisioning Services using Provisioning Services installation media and select Install Target Device for 64 bit Platform
6
2. Click Install
7
3. Finish
8
4. Select Yes to restart the Master Image
9
5. Start the Provisioning Services Imaging Wizard
10
6. Click Next
11
7. Enter the server name of the Provisioning Services server where you stored the vDisk and click Next
13
8. Select Use existing vDisk and select the vDisk created in step 2
14
(When receiving the error “There are no vDisks available that are in Private mode and not locked accessible by the Server specified” make sure there is no Lock on the vDisk, you can remove the Lock in the PVS console by right-click the vDisk and click on the option “Manage Locks”)
9. click Next
10.Click Autofit and then Next
The errors in this dialog means that the target vDisk is smaller than the local hard disk in the Master Server. If you get this errors you have to click on Autofit.
11. Click Next
12. Click Next
13. Select Finish
14. Click on Optimize for Provisioning Services
What to optimize depends on your environment, for example in most cases the Windows Auto-update 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 Auto-update services is needed for the anti-virus updates. Apply what is applicable for your environment and click OK.
15. Click Finish
16. Click Yes to reboot the server.
17. After the reboot, log on with the same user account. Vmware Esx will automatically start to convert the files from the local hard drive to the vDisk.
18. Click on Finish
Step 5 – Configure the Master Server to boot from vDisk
1. Within the Provisioning Services Console open the properties of the Master Server.
2. On the General tab and change “Boot from” to vDisk. Click OK
Step 8 – Deploying the vDisk
Within the Provisioning Services console, open the properties of the vDisk.
Change “Access mode” to Standard Image (multi-device, read-only access) and select the place where you want to store the cache files. Enable Active Directory machine account password management.
If you have more Citrix Provisioning Services servers in your environment, right-click the vDisk and click on Load Balancing
Select Use the load balancing algorithm and Rebalance Enabled. Click OK
Open Windows Explorer and copy the vDisk to the other servers

How to install and configure PVS 6.1 with XenDesktop 5.6

Once a company has a XenDesktop or XenApp environment that is pretty mature, they often turn to Citrix Provisioning Services (PVS) to help scale the environment. The main purpose of this blog post is to get you familiar with this technology and have the complete idea of how to implement it.
In this step-by-step installation guide I will install the Citrix Provisioning Services 6.1.16. I will use hotfix CPVS61016 as source for this installation, as this hotfix contains the complete installation.
In this scenario, Installation of PVS 6.1 server takes place on Windows server 2008 R2 server, as it does not officially support windows server 2012 for this installation yet.
Before Installation, following server and prerequisites needs to be there on the place. There must be a Citrix License server available with the proper licenses. For the vDisk Store there should be a drive created (local on the PVS server or on the network like ISCSI drive) and a service account must be created.
Service account permissions
An Active Directory account is needed as service account for the streaming service. Always use this account for the installation of Citrix PVS sever
The service 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 vDisks with XenDesktop, XenDesktop Full administrator privileges.
Active Directory:
-        Domain User ( Make sure Password Never Expires)
-        Create, Reset, and Delete computer object permissions on relating OU’s
-        Reset password permissions on relating OU’s
 Prerequisites
Citrix Provisioning Services has the following prerequisites;
Provisioning Services Console Requirements
-         Microsoft Management Console 3.0
-         Windows PowerShell 2.0
-         Microsoft .NET 3.5 SP1
Windows Target Device
-         Microsoft .NET 3.5 SP1
DHCP Scoop options
If PXE is not an option in your environment, you can use your existing DHCP server to provide the location of the TFTP server and the name of the bootstrap file to the target devices. You can do this with the following DHCP scoop options;
-      Port 66: Boot Server Host Name
-      Port 67: Bootfile Name (ARDBP32.BIN)
Providing the bootstrap information by using DHCP options 66 and 67 is best practice, use this when possible.
- Open DHCP manager – Right click Scope Options and choose Configure Scope Options – Select option 66: Fill in the ip-address of the TFTP server – Select option 67: Fill in ARDBP32.BIN – Click OK
DHCP
SQL Server
SQL server is necessary for hosting the Provisioning Server database. This can either be SQL 2005 Express, Workgroup, Standard and Enterprise. The Provisioning Server installation media provides a SQL Express installation, use this for small implementations like for test and POC environments. The Provisioning Server database will be created during the Provisioning Server installation process. Also the permissions for the service account on the database will be automatically set. Make sure the account used for installing Provisioning Server has enough permission on the SQL server to create and configure the database.
But in this Scenario, I am going to use the Microsoft SQL 2008 server
Installing the Citrix Provisioning Services Console (step-by-step)
Insert the media and choose Install Server for 32bit/64bit Platform (depending on your OS)
2
Start the Citrix Provisioning Services Console setup (PVS_Console_x64.exe) and click “Install”.
click next button
click next to begin installation
Click on the “Next” button.
license
Select “I accept the terms in the license agreement” and click on “Next”.
3
Click on the “Next” button.
4
Click on the “Next” button.
5
Select “Custom” and click on the “Next” button.
Select and click next
Click on the “Next” button.
7
Click on the “Install” button.
 Instaallshield Wizard completed
Click on the “Finish” button.
Installing the Citrix Provisioning Services Server (step-by-step)
rix Provisioning Services
Start the Citrix Provisioning Services Console setup (PVS_Server_x64.exe) and click on the “Install” button.
Click Yes
For the Database Mirroring feature, the SQL native client is required on the server. If you want to use this feature, press the “Yes” button.
11
Click on the “Next” button.
12
Select “I accept the terms in the license agreement” and click on “Next”.
13
Fill in the requested information and click “Next”.
14
Click on the “Next” button.
15
Select “Custom” and click on the “Next” button.
16
Click on the “Next” button.
17
Click on the “Install” button.
18
Click on the “Finish” button.
19
Click on the “Next” button.
20
In my PoC environment the DHCP Services runs on another server.
Select what is applicable and click “Next”.
21
Choose to use PXE on another computer
22
This is the first PVS server so choose the option “Create farm” and click “Next”
23
Fill in the requested information and click “Next”.
24
New Farm
a.) Fill in the name of the database
b.) Fill in the Farm name
c.) Fill in the name of the first Site, e.g. LocalSite(additional sites can be configured after the installation) d.)    Fill in the name of the first device collection, e.g. XenApp Servers (additional collections can   be configured after the installation)
e.)    Choose Use Active Directory groups for security
25
Fill in the vDisk Store folder created during the preparations and click “Next”.
26
Fill in the requested information for the License Server and click “Next”.
27
Fill in the Service account information created during the preparations of this installation and click “Next”.
28
Select “Automate computer account password updates” and click on the “Next” button.
29
Click on the “Next” button.
30
Select “Use the Provisioning Services TFTP service” and click the Next button.
31
Click on the “Next” button.
32
Click on the “Finish” button.
33
Click on the “Done” button.