Bug 1099295

Summary: fail to redirect USB to VM running on rhel7 with grayed 'USB device selection' button when redirect it from rhel6.5 with cirrus
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: cfergeau, chayang, codong, dblechte, dyuan, hdegoede, juzhang, kraxel, lcui, marcandre.lureau, MichaelG15, michen, mkrcmari, mzhan, qzhang, rbalakri, tzheng, uril, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-0.6.0-1.el6 Doc Type: Bug Fix
Doc Text:
Cause: In some cases, the USB channels are created after the display channel. Consequence: The USB menu will remain grayed out and the USB device can't be selected for redirection. Fix: Don't depend on channel creation order. Result: The USB menu won't be grayed out and the device can be selected for redirection.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 06:31:02 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:

Description Sibiao Luo 2014-05-20 03:25:17 UTC
Description of problem:
fail to do USB redirection to VM launching on rhel7 host with gray 'USB device selection' button in virt-viewer client when remote pass-through usb stick from rhel6.5 machine with cirrus vga specified in qemu-kvm cmdline.
BTW, 
1.If use the qxl vga cann't hit such issue which redirect the usb device successfully.
2.The opposite testing work, if redirect the usb stick from rhel7 machine to a VM running on a rhel6.5 host which works well.

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:
rhel6.5: kernel-2.6.32-448.el6.x86_64
virt-viewer-0.5.6-8.el6.x86_64
spice-client-0.8.2-15.el6.x86_64
spice-gtk-0.20-11.el6.x86_64

usb device info:
USB 2.0 stick
Bus 002 Device 004: ID 0951:1642 Kingston Technology DT101 G2

How reproducible:
100%

Steps to Reproduce:
1.launch a rhel7 VM on rhel7 host with usb-redir and cirrus vga specified.
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.insert the USB 2.0 stick to a rhel6.5 usb-host.
3.run the virt-viewer client on the rhel6.5 usb-host.
# remote-viewer spice://$rhel7_host_addr:$port
4.select the redirected USB stick device via "'File' menu
--- 'USB device selection'" in the virt-viewer client. 

Actual results:
after step 4, 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.

Additional info:

Comment 4 tingting zheng 2014-05-29 02:52:15 UTC
I can reproduce this bug with:
virt-viewer-0.5.6-10.el6.x86_64

Steps:
1.On rhel7 host,prepare a spice+cirrus rhel7 guest,configure usb redirection.
2.On rhel6 host,launch remote-viewer to connect rhel7 guest configured on step1.
# remote-viewer spice://$rhel7_host_addr:$port
3.select the redirected USB stick device via "File"->"USB device selection" in the virt-viewer client,the 'USB device selection' button was grayed out.

Comment 6 tingting zheng 2014-06-05 08:10:44 UTC
I can reproduce this bug with:
virt-viewer-0.5.6-10.el6.x86_64

Steps:
1.On rhel7 host,prepare a spice+cirrus rhel7 guest,configure usb redirection.
2.On rhel6 host,launch remote-viewer to connect rhel7 guest configured on step1.
# remote-viewer spice://$rhel7_host_addr:$port
3.select the redirected USB stick device via "File"->"USB device selection" in the virt-viewer client,the 'USB device selection' button was grayed out.

Tested with:
virt-viewer-0.6.0-4.el6.x86_64

On the above step 3,'USB device selection' button is enabled,usb disk can be redirected to guest through the button successfully.

Refer to the above comments,move the bug to VERIFIED.

Comment 7 errata-xmlrpc 2014-10-14 06:31:02 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/RHBA-2014-1379.html