We have tested this on several Windows 7 systems (physical PC) that will hang on both shutdown and restart after installing VMWare View Agent. We did monitor the driver install and ensured it had completed before rebooting (so its not an issue of the VMWare View drivers not completing the installation). In our testing this only happens when the following conditions are present:
1. Kaspersky Endpoint Security 8 for Windows version 8.1.0.646 (a) is installed
2. VMWare View Agent version 5.1.1.799444 is installed with the option for USB redirection (if installed without USB redirection, everything works fine)
3. Kaspersky agent build included the "Device Control" component, whether or not it is enabled by policy.
Troubleshooting Steps:
1. Disabled Kaspersky Device Control (so it should not be monitoring USB devices).
RESULT: System hangs at startup
2. Added several exclusions and trusted app entries within the Kaspersky Policy for the VMWare View Virtual USB Hub files including the following:
Excluded Folders/Files:
c:\windows\system32\drivers\usbd.sys
c:\windows\system32\drivers\usbhub.sys
c:\windows\system32\drivers\vmwvhub.sys
c:\windows\system32\WdfCoInstaller01009.dll
C:\Program Files\Teradici Corporation\PCoIP Host Software\ [all subfolders]
C:\Program Files\VMware\VMware View\ [all subfolders]
C:\Program Files (x86)\vmware\infrastructure\[all subfolders]
Trusted Apps:
C:\Program Files\vmware\vmware view\agent\bin\wssm.exe
RESULT: System hangs at startup
3. Updated the VMWare View Agent to the current 5.1.2 version
RESULT: System hangs at startup
4. Uninstalled Kaspersky entirely
RESULT: No more system hang at startup
5. Uninstalled VMWare View entirely (no more system hang at startup)
RESULT: No more system hang at startup
6. Disabled the VMWare View Virtual USB Hub Service from starting by changing the Start from a a 3 (automatic) to a 4 (disabled):
Key:
HKLM\SYSTEM\CurrentControlSet\services\vmusb
Value:
[dword]Start = 0x00000003
Once we do this the computer will boot fine but we are obviously unable to use the View Agent with USB redirection.
NOTE: Once the system is hunt, you must start in Safe Mode and make the above registry change to be able to restart the computer without hanging.
RESULT: No more system hang at startup
Workarounds/Solutions:
The solution so far has been to create a build version of the "Kaspersky Endpoint Security 8 for Windows (8.1.0.646)" install that does not include the "Device Control" Component. Even though our policy disables the use of the Device Control component, the supposedly latent running of this component's files trigger the hang. We did create a new build version of the Kaspersky client that had all components other than "Device Control" selected and we had no issues with booting and using the VMWare View Agent or Kaspersky under those conditions.
So to review, here are the workarounds discovered so far:
1. Install a build version of the Kaspersky agent that has the "Device Control" components unselected.
2. Install the VMWare View Agent with the option for USB Redirection set to not install/disabled.
3. If you did install both the Kaspersky Device Control component and VMWare View Agent with USB Redirection, you must disable the VMWare View Virtual USB Hub "vmusb" service in the registry as noted above or it will hang on the next reboot/restart.
NOTE: This will have the same impact as installing VMWware View Agent with USB Redirection disabled/unselected as the required services will not be running and USB Redirection cannot occur.
We have opened incidents with both Kaspersky and VMWare and are in the process of providing information in hopes of getting a co-existing resolution. However, I wanted to post this information in the event someone else is having the same issue.