Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 857119

Summary: USB clerk service won't share any device on Windows Server 2008 R2 and Windows XP
Product: Red Hat Enterprise Virtualization Manager Reporter: David Jaša <djasa>
Component: usb-clerk-winAssignee: Arnon Gilboa <agilboa>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.1.0CC: cpelland, dblechte, mbarta, mkenneth, mkrcmari, tjamrisk, uril
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: usbclerk-win-0.1-10 Doc Type: Bug Fix
Doc Text:
No documentation needed
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 17:58:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Logs
none
Logs from XP
none
use specific static libs none

Description David Jaša 2012-09-13 15:31:25 UTC
Description of problem:
USB clerk service won't share any device on Windows Server 2008 R2

Version-Release number of selected component (if applicable):
rhevm-spice-client-x32-cab-3.1-4.el6.noarch
rhevm-spice-client-x64-cab-3.1-4.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. install usbclerk on Windows 2008 R2
2. connect to a console with (native) USB Auto Share enabled
3.
  
Actual results:
* USB selection menu is disabled
* this error is popped up upon device plug in:
Could not open usb device: Operation not supported or unimplemented on this platform [-12]

Expected results:
either:
* USB can be redirected
OR
* usbclerk service should refuse to launch (similarly to vdservice when virtio-serial port is missing)

Additional info:

Comment 1 Arnon Gilboa 2012-10-21 14:36:04 UTC
client is 2008 R2 32/64 bit?
please repro & attach %windir%\temp\usbclerk.log

Comment 2 David Blechter 2012-10-22 15:14:02 UTC
 2008 R2 32/64 is not in the rhevm 3.1 supported clients. Moving to the rhevm-future

Comment 3 Tomas Jamrisko 2012-10-25 11:24:00 UTC
*** Bug 870009 has been marked as a duplicate of this bug. ***

Comment 4 Tomas Jamrisko 2012-10-25 11:26:28 UTC
Created attachment 633274 [details]
Logs

Copying back log from the duplicate bug as requested by Arnon

Comment 6 Arnon Gilboa 2012-10-25 13:43:03 UTC
(In reply to comment #4)
> Created attachment 633274 [details]
> Logs
> 
> Copying back log from the duplicate bug as requested by Arnon

"driver install failed -- Unable to run process with required administrative privileges (-15)"
Is it running as SYSTEM? Can you try to manually change the usbclerk service privilages?

Comment 7 Tomas Jamrisko 2012-10-26 09:12:00 UTC
Running as SYSTEM, permissions in "Advanced Security Settings for usbclerk" are listed as Full Control. Not sure how I can elevate them even further.

Comment 8 Marian Krcmarik 2012-10-26 12:50:42 UTC
I've reproduced on Windows XP client so I am raising the severity.
USBClerk service is running under SYSTEM, not sure what to do with privileges in Windows XP.

Comment 9 Arnon Gilboa 2012-10-28 12:18:45 UTC
(In reply to comment #8)
> I've reproduced on Windows XP client so I am raising the severity.
> USBClerk service is running under SYSTEM, not sure what to do with
> privileges in Windows XP.

Is it the same error (-15) ? is it a new bug? how to repro? happens with all devices or only specific ones? please repro on XP client and attach usbclerk.log.

Comment 10 Tomas Jamrisko 2012-10-29 10:17:33 UTC
Created attachment 634962 [details]
Logs from XP

Comment 11 Tomas Jamrisko 2012-10-29 10:20:01 UTC
> Is it the same error (-15) ? is it a new bug? how to repro? happens with all
> devices or only specific ones? please repro on XP client and attach
> usbclerk.log.

Adding requested log. Exactly the same error. 

Happens with at the very least USB mass storage devices.

Comment 12 Arnon Gilboa 2012-10-31 15:53:45 UTC
The reason for this error is missing MS VC++ 2008 SP1 redist.

Two optional solutions:

1. Release note requiring to install it on client Windows for usbclerk to work.
x86: http://www.microsoft.com/download/en/details.aspx?id=5582
x64: http://www.microsoft.com/download/en/details.aspx?id=15336

2. Re-brew libwdi-win and its deps (installer, embedder) after patching it to use specific static libs instead of "standard windows libs", and then re-brew usbclerk-win.

Comment 13 Arnon Gilboa 2012-11-01 10:18:05 UTC
Created attachment 636542 [details]
use specific static libs

patch for option 2, which sounds better.

Comment 14 Uri Lublin 2012-11-01 11:10:27 UTC
I think options 1 of comment 12 is a good solution too, maybe better than 2.
Generally, and specifically for runtime libraries, using dynamic libraries is a good thing.

It's true that for some users, that do not have those libraries already installed on the client machine, may get a bit frustrated with usbredir not working immediately. They would have to spend some time to figure out why, download and install from the links above. As Arnon proposed we can add a release note about that.

Comment 15 Tomas Jamrisko 2012-11-01 13:47:40 UTC
Installing the above mentioned libraries also fixes this issue on server 2008

Comment 18 Arnon Gilboa 2012-11-15 15:54:53 UTC
Finally choose option 2 of comment 12. Removed doc text.

Comment 22 errata-xmlrpc 2012-12-04 17:58:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-1527.html