Friday, May 18, 2012

Citrix Provisioning Service (PVS) and Windows 7 KMS- A जुगलबंधी

जुगलबंधी- means Combination or entwined twins Source wiki. If you want PDF format then click Here

Finally I left my work early and decided to author this article as I myself struggle which is not my domain :)  Much discussed and written several times , tons of blog and articles are  available on Internet so why the hell Vikash decided to blog and waste his time. I just wanted to clarify few points with which people are still confused .

1. Should I uses KMS or MKS when using Citrix Provisioning Service ?

2. How many client do I need?

3. Will office 2010 which goes into base image is also supported?

In the below example I have used PVS 6.1 and XD 5.6 along with windows 7

So what provisioning service (PVS) does that KMS become so difficult to implement. Well PVS provide read only image to multiple targets. What it means , once image (Windows 7 or windows 2008) is provided it will be in read mode. So after reboot all the change will be vanish.

Situation: You have VDI initiative going on and as per best practice KMS is recommended for all the image since it will be streamed via PVS. So these will first KMS deployment in the environment which will be service office 2010 and windows7 as well as windows 2008.

What kind of KMS should I go with Windows 2008R2/Windows7? It does matter because you cannot use windows7 KMS to activate windows 2008.

Now the question raised do we need 25 virtual or 25 physical devices to activate or else it will throw error 0xC004F038

clip_image001[4]

The answer is you need just 25 PVS streamed VM which can be destroyed latter if you need less than that and it is KMS count to reach 25 and above.

From MS link

image

Installation of KMS is very easy . Download the KMS from MS and activate the OS on which it has been installed. Always use KMS key while activating as listed here

image

I have used following version of activation tool

clip_image006

Make sure the DNS TCP has this SRV record for KMS server. This may need to be created manually with highlighted setting. Make sure firewall is either made ON or necessary exception is added.

clip_image007

Now answering other question: Do I need windows 7 professional/Enterprise /Ultimate. So answer it does not matter for PVS which edition you are running on VM.

How to proceed :

1. Install OS and everything which is required on base OS.

2. Capture the OS using imaging wizard and make sure it becomes your golden image.

3. Now boot the image in private mode and make sure following is selected under private image

clip_image008

4. Now make sure you rearm the OS by running following command and when it prompt to reboot shut down the OS

clip_image010

5. Once target is shut down make sure you choose KMS under vDisk properties and mount it as standard

clip_image011

6. Once image is in standard mode , create atleast 30 machine using XenDesktop setup wizard. Login to any machine and run slmgr /dlv and it should show up like this. This mean machine is getting unique CMID . If not then grace period will be something different which I will explain latter.

clip_image012

7. While you run the same command slmgr /dlv on KMS server you will see the count starting from 1 and slowly increase. This counter increase over 60sec. So patience .

clip_image013

Add all the machine into VAMT console .

clip_image014

Once all the machine added update the status of machine. This scan PC using WMI for install MS product .If office is installed it will update the same

clip_image016

This will show all the office and windows 7 product

clip_image018

Now we need to activate all the product office as well as

clip_image020

If counter is reached to above 25 then for sure all the OS instance will be activated.

clip_image021

And you will see this message under windows properties

clip_image022

And on KMS server this is what you got

image

There is no separate setting for Office 2010 and it just worked without any count for 25 or anything :)

image '

 

TROUBLESHOOTING:

If the counter is not increasing then you need to check if all the CMID are unique or not .If not then following blog from askcore

clip_image024

Also make sure you are using correct product key which is listed here.

Make sure you follow CTX128276 line by line . I spend two days because I did not follow following highlight

image

Thursday, May 10, 2012

XenDesktop 5.6 PeakbufferSize and offpeakbuffer size reveled : Why only 3 desktop is powered ON

You may have 10 desktop in a desktop group but even after defining peak hours for 24 hour , desktop does not get into ready mode. These are personal desktop ,streamed pooled with PVD.

image

Still we have only 3 desktop powered ON

image

But if you see properties of Shared desktop you can find that , you have an option to increase or decrease the number of desktop

image

This is how the properties for desktop group look like

image

This is by nature  “A buffer is an extra, standby set of unallocated machines that are turned on, ready for users to connect. For shared desktop groups and unallocated machines in private desktop groups, desktops in the buffer are turned on when the number of machines in the pool drops below the threshold set by the buffer size. This is a percentage of the desktop group size (default is ten percent). For large desktop groups, a significant number of machines might therefore be turned on when the threshold is exceeded”

And to check this you can run following command

image

To change it you can just run the following command

Set-brokerdesktopgroup -name <insert desktop group name> -offpeakbuffersizepercent 100 -peakbuffersizepercent 100

Tuesday, May 8, 2012

Protocol Driver Error and SSL Error 29 : Proxy Access Denied

While launching desktop via AGEE , I started getting "Protocol error "

image 

Under Virtual Server STA (DDC) were showing up and running

image

On web interface setting "Secure Access Setting"  all the  STA has been listed .

image

Desktop shows session has been initiated

image

After  un-checking  "Enable Session reliability " we gone ahead with Protocol driver error message

image

But now we started getting SSL 29 error . Though we were launching XenDesktop we were seeing XenApp related error.

image

From NetScaler we tried pining box and found box were reachable . But found that routing were undefined. We created IP subnet and then defined the VLAN .This allowed to launch the XenDesktop.

Tuesday, April 3, 2012

Only 1 path active on XS which is part of the pool

While creating new SR on XS 6.0.2 on EMC VNX 5500 will show one host with 1 active path rest all have all the active path . When multipath -ll is run it will also show one path . This shows that all the path is not having access to the lun .

From the host which has an issue logoff all the active path

iscsiadm -m node -U all  and then logback in iscsiadm -m node -L all.

Restart the multipathd service /etc/init.d/multipathd restart. This will bring all the path active on the host.

image

Using ISCSIADM on XenServer 6.0.2: Message "ISCSIADM is not running " could not start Automatically

Installed brand new XenServer and try to run ISCSIADM command it will throw message  "iscsid is not running. Could not start it up automatically using the startup command in /etc/iscsi/iscsid.start

image

To  fix it just run new SR wizard for ISCSI over LVM and

image

then try to run the discovery again it will list all the targets . This test is conducted on EMC VNX 5500. This process basically make  open-iscsi service is called by and configured by XAPI. When using the New Storage wizard, it will create files /etc/iscsi such as initiator name, send_targets directory. image

In order to create new SR on VNX 5500 for XenServer 6.0.2 , you need to ensure that all the targets are logged in. The process is A) Run SR wizard but do not create SR 2) Logged all the targets 3) Create the SR again using SR wizard   . This has been explained in following blogs of mine

Thanks to my college and open-iscsi.