Troubleshooting LoginVSI environment

This article is about the various obstacles you may come across while benchmarking with LoginVSI. The problems are more with the environment and NOT with the tool. The tool works just great if the environment is set right. I thought why not share my experience and put down all the issues and their workaround. Please feel free to go to http://www.loginvsi.com/forum OR http://www.loginvsi.com/forum/support  to seek answers. The loginVSI team is very helpful. You may experience a delay in response sometimes but will never be ignored!
 
Contents
  • Script terminated[Appfocus[UserRead] does not exist waited for:120sec.]
  • Microsoft Outlook first time wizard prompt
  • Microsoft Word first time wizard prompt
  • Multiple XenDesktop or XenApp web interfaces opens without opening the viewer console windows
  • VSI share value not found in registry
  • Adobe pop ups – EULA and/or feedback window prompts
  • There are no results or log files are invalid
  • VSI Management Console – unhandled exception has occurred in your application
  • Bullzip PDF printer – do you want to overwrite it?
  • Citrix Receiver – do you want to optimize content designed for Flash
 

Script terminated[Appfocus[UserRead] does not exist waited for:120sec.]

Script has stopped. User will not logoff
Script terminated[Appfocus;[UserRead] does exist but cannot be activated after: 10 retries]Terminate
 
 vsi1
 
Workaround as per the reference from forum: http://www.loginvsi.com/en/forum/support/163-script-terminatedappfocususerread-don-t-exist
This means VSI attempted to start Word but Word wasn’t active after the timeout, 120 seconds in this case. If this happens near the end of the test this is likely an indication that your server is at or near it’s max.
vsi15
 
You can try increasing the WinWait Timeout. You can increase the WinWait Timeout by going to Workload Configuration in the management console. There’s a setting called WinWait Timeout. Clear the default checkbox and increase the timeout. In the attached example I’ve increased the timeout to 300 seconds (5 minutes).
 

Microsoft Outlook first time wizard prompt

Solution to prevent this wizard to pop up when opening Office products for first time:
 
Import the ADM templates from OCT available in MS webite: http://www.microsoft.com/en-us/download/details.aspx?id=18968
Open Group Policy Management Editor:
Policy Name = <OUName>-<OUName > Right-click > Edit..
Policy path = User Configuration > Policies > Administrative  Templates > Classic Administrative Templates(ADM) > Microsoft Office 2010 > Privacy > Trust Center > Disable Opt-in Wizard on first run 
Value = Enabled 

vsi2

Microsoft Word first time wizard prompt

Solution to prevent this wizard to pop up when opening Office products for first time:
Pre-requisite:
Import the ADM templates from OCT available in MS webite: http://www.microsoft.com/en-us/download/details.aspx?id=18968
Open Group Policy Management Editor:
Policy Name =  Right-click the policy in question > Edit..
Policy path = User Configuration > Policies > Administrative  Templates > Classic Administrative Templates(ADM) > Microsoft Office 2010 > Privacy > Trust Center > Disable Opt-in Wizard on first run 
Value = Enabled
 vsi3
 

Multiple XenDesktop or XenApp web interfaces opens without opening the viewer console windows.

vsi4
This can be cause due to multiple reasons:
  • Receiver hangs due to insufficient resources in the LoginVSI launcher VM.
  • If total no. of sessions is more than the permissible (recommended) limit of 40-45 sessions per launcher.
  • It can also occur if the T1 and T2 values are not set appropriately. Recommended value to T1 should be half of T2 e.g. if T1=5, then T2=10. But the values can always be adjusted based on your environment, factors such as total no. of user sessions under test, total no. of launchers used for running the entire test.

Adobe pop ups – EULA and/or feedback window prompts

 
LoginVSI target setup contains adobe reader pre-configured. It uses a custom installation. A MFT file that prevent all these issues. However, if the target setup is executed on a system that already has Adobe Reader installed, the installation will not continue, leaving the original installation.
 vsi5
 
The VSI target setup installs Adobe reading using the following command line. Please note that the MST file has been copied to the temp folder before starting this command line.
“Target Setup\Lib\lib Apps\Adobe\Reader.exe” /sPB /rs /MSI TRANSFORMS=%TEMP%\Reader.mst
 
This will make sure Adobe Reader does not ask for updates, EULA screens etc. Just executing the executable in the Adobe executable in the target setup package does nothing different than a normal Adobe setup.
Also make sure the existing Adobe installation is removed using the Add/Remove programs section of the control panel. Otherwise the installer might skip certain steps as it detects Adobe is already partially installed.
 
 vsi6
 
This prompt may be due to an installation of Adobe already present on the system(base image)? The Target setup will not overwrite an existing installation. The Target setup version of Adobe Reader should not show either of these dialogs.
Reference: http://forums.adobe.com/message/2560486
 
 vsi7
 
 vsi8
 
Reference:
Go to  http://helpx.adobe.com/acrobat/kb/cant-click-accept-acrobat-reader.html.  Advanced solution 3 in particular. You can add those registry keys to your base image. Alternatively you can use the HKCU key of the registry key mentioned in the article and add the registry key to C:\Program Files\Login Consultants\VSI\Files\shellsettings.reg
 
Uninstall Adobe Reader on the base image.
Reinstall Adobe Reader with below command silently so to avoid license agreement  and download patches popups:
C:\Users\puray>C:\install_reader10_en_gtbd_aih.exe /sAll /rs /l /msi “/qb-! /norestart ALLUSERS=1 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES”

There are no results or log files are invalid

 vsi9
 
 
Possible Cause
  • If the data (logs generated from test) you select does not have VSImax reached is considered an invalid data. Hence analyzer throws this error. Ensure you’re the test that you run is successful which means it must have reached VSImax.
  • If you still get the error, try to replace the files in C:\Program Files\Login Consultants\VSI\Analyzer (copy from installation folder)

VSI Management Console – unhandled exception has occurred in your application

 vsi10
 
 Possible Cause
This may occur while opening the VSI management console first time after installation,  if .NET 3.5 framework is missing in your launcher machine. Even if you’ve 4.0 .NET framework (since it is not backward compatible) you still will get the error, so 3.5 is pre-requisite. The VSI management console is the component that needs the .NET framework (and the analyzer). The VSI launcher doesn’t need the .NET framework.
 

Bullzip PDF printer – do you want to overwrite it?

 vsi11
 
The first dialog is caused by Adobe Reader not closing (properly). It keeps the PDF file in use and causes VSI to be unable to clean it up between test loops.
 

Citrix Receiver – do you want to optimize content designed for Flash

 vsi12
 
Prompt is coming via Citrix Receiver that is installed on the LoginVSI launcher server. Applying policy as mentioned here http://support.citrix.com/proddocs/topic/xenapp65-admin/hd-flash-enable-client-ad.html
To enable Flash Redirection on the user device
Configure Enable HDX MediaStream Flash Redirection on the user device to determine whether Flash Redirection is enabled on your users’ Windows devices. If no configuration is set, one of the following will occur, based on your users’ environment:
Desktop Lock is used: Flash Redirection is enabled by default.
All other conditions: The user receives a dialog box the first time they access Flash content in each session in which the user can enable HDX MediaStream Flash Redirection.
In the Group Policy Object Editor, expand either the Computer Configuration or User Configuration node.
Expand the Administrative Templates and Classic Administrative Templates (ADM) nodes and select HDX MediaStream Flash Redirection – Client.
From the Setting list, select Enable HDX MediaStream Flash Redirection on the user device and click policy setting.
Select Not Configured, Enabled, or Disabled.
If you selected Enabled, from the Use HDX MediaStream Flash Redirection list, select Always, Ask, Never, or Only with Second Generation.
Note: Selecting Ask results in users receiving the Citrix Receiver – Flash dialog box the first time they access Flash content in each session in which the user can enable Flash Redirection. If the user does not enable Flash Redirection, the Flash content is played on the server. Selecting Always, Never, and Only with Second Generation does not result in this dialog box. Select Always to always use Flash Redirection to play Flash content on the user device. Select Never to never use Flash Redirection and have Flash content play on the server. Select Only with Second Generation to use the latest Flash Redirection functionality when the required configuration is present and revert to server-side rendering when the required configuration is not present.
 vsi13
 
 
Enable HDX flash redirection, setting to ‘Never’ which means Flash Redirection and have Flash content play on the server. Apply it on Computer Configuration.
 

Kid-key-Lock – good for uninterrupted test runs but is it really useful?

Is it kid-key really needed? Ideally it locks your virtual desktop(s) session(s) and gives an uninterrupted LoginVSI scripts to run without any external interruption. This tool disables any keyboard inputs.

Therefore, during the test when VM is hung and needs your intervention, it does not let you do anything. So your complete test is unsuccessful just because of one session.  Force you to login in safe mode or uninstall this tool from the base image.

kk

Note: For a successful test, you should not intervene during test runs. Based on experiences mostly it is your environment which is responsible for unsuccessful or interrupted test runs.

 
More to follow……
 
##################################################################
Special Thanks to Mark Plettenberg, Dennis Geerlings & Omar Bouhajfor their continued support, "tips & tricks" throughout my POC.
##################################################################

About cloudray

Predominantly based around Virtualization, but will include other technology related information and anything else I find interesting and feel the need to share with you. I also use this Blog as both a place to store useful information that I think that will come in handy to me at some point in the future, and also a place to help aid my learning. I find a great way to learn about something is to research about it and then write it up in my own words. I'm Pushpal Ray, from India. As a certified VCP3/4/5 professional, I am currently working as an Independent Consultant. Over 10 years of IT-industry experience, currently focused around the Desktop Virtualization(End-User Computing). I also have extensive experience in Windows Administration, Datacenter Migration, Workload profiling & benchmarking. At my leisure, I enjoy hiking, running, photography, spend hours in my fav coffee shop & spend quality time with my wife. Occasionally, catch up with few friends for a drink!
This entry was posted in Benchmarking, Enterprise Virtualization, LoginVSI and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s