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

Bug 1099327

Summary: fail to redirect USB to VM running on rhel7 with grayed 'USB device selection' button when redirect it from win7-sp1-x64bit without qxl specified
Product: Red Hat Enterprise Virtualization Manager Reporter: Sibiao Luo <sluo>
Component: mingw-virt-viewerAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED ERRATA QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cfergeau, chayang, djasa, fidencio, gklein, hdegoede, juzhang, kraxel, MichaelG15, michen, mkrcmari, qzhang, rbalakri, sherold, tjamrisk, tpelka, uril, virt-maint, xfu, yeylon, ylavi
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mingw-virt-viewer-2.0-1.el7ev Doc Type: Bug Fix
Doc Text:
Previously, Red Hat Enterprise Linux 7 hosts failed to correctly redirect USB devices to virtual machines. This occurred because of the channel creation order, where USBREDIR channel(s) get added to the session after the display channel. Since virt-viewer checked for a USBREDIR channel immediately as the display channel was added to the session, this returned a FALSE result for USBREDIR-capable virtual machines. This fix refactors the code so as to not depend on channel creation order, and virt-viewer no longer fails to redirect USB devices to virtual machines.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 20:08:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Spice RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1181289    
Bug Blocks:    

Description Sibiao Luo 2014-05-20 05:21:42 UTC
Description of problem:
fail to redirect USB to VM running on rhel7 with grayed 'USB device selection' button in virt-viewer client when redirect it from win7-sp1-x64bit without qxl specified(cirrus vga by default). If specified the qxl vga in qemu-kvm cmdline which has no grayed 'USB device selection' button but met error message prompt(Bug 1099318). So i think it's one of qemu-kvm/spice-server/spice-gtk issue.

Version-Release number of selected component (if applicable):
host(launch VM) info:
3.10.0-121.el7.x86_64
qemu-kvm-1.5.3-60.el7.x86_64
usbredir-0.6-7.el7.x86_64
usbredir-server-0.6-7.el7.x86_64
spice-server-0.12.4-5.el7.x86_64

usb-guest(VM) info:
rhel7 kerenl-3.10.0-121.el7.x86_64

usb-host(run virt-viewer client) info:
win7-sp1-x64bit
spice-client-msi-3.4-3(usbclerk-x64-0.3.3.msi & virt-viewer-x64-0.5.6.msi)
brewweb download link: https://brewweb.devel.redhat.com/buildinfo?buildID=353689

usb device info:
USB 3.0 stick
Bus 010 Device 005: ID 1516:6221 CompUSA

How reproducible:
100%

Steps to Reproduce:
1.launch a rhel7 VM on rhel7 host with usb-redir and without qxl specified(cirrus vga by default).
e.g:# /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -no-kvm-pit-reinjection...-spice disable-ticketing,port=5933 (-vga cirrus) -device usb-ehci,id=ehci0,bus=pci.0,addr=0x7 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=ehci0.0,debug=3

2.install spice-client-msi-3.4-3(usbclerk-x64-0.3.3.msi & virt-viewer-x64-0.5.6.msi) in win7-sp1-x64bit usb-host and make sure the USB Clerk service started in my win7-sp1-x64bit machine("Computer Managerment------Serces and Applications---- Services"). 

3.insert the USB 3.0 stick to a win7-sp1-x64bit usb-host.

4.run the virt-viewer client on the win7-sp1-x64bit usb-host.
URL: spice://$rhel7_host_addr:$port

5.select the redirected USB stick device via "'File' menu
--- 'USB device selection'" in the virt-viewer client. 

Actual results:
after step 5, fail to select the redirected USB stick device via "'File' menu
--- 'USB device selection'", the 'USB device selection' button was grayed out.

Expected results:
it should work well with usb redirected.

Additional info:

Comment 7 Dayle Parker 2016-03-01 00:38:13 UTC
If this bug requires doc text for errata release, please provide draft text in the doc text field in the following format:

 Cause:
 Consequence:
 Fix:
 Result:

Comment 8 Tomas Pelka 2016-03-01 09:28:27 UTC
(In reply to Dayle Parker from comment #7)
> If this bug requires doc text for errata release, please provide draft text
> in the doc text field in the following format:
> 
>  Cause:
>  Consequence:
>  Fix:
>  Result:

I'm sorry Dayle, we as QE are not responsible for filling doc text.

Comment 10 errata-xmlrpc 2016-03-09 20:08:45 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.

https://rhn.redhat.com/errata/RHEA-2016-0377.html