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

Bug 1099318

Summary: fail to redirect USB stick with error when remote pass-through it from win7-sp1-x64bit machine via virt-viewer
Product: Red Hat Enterprise Virtualization Manager Reporter: Sibiao Luo <sluo>
Component: mingw-virt-viewerAssignee: Dmitry Fleytman <dfleytma>
Status: CLOSED WONTFIX QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: cfergeau, chayang, dblechte, dfleytma, dyuan, gklein, hdegoede, juzhang, kraxel, marcandre.lureau, michen, mkrcmari, mzhan, qzhang, rbalakri, rh-spice-bugs, srevivo, tzheng, uril, xfu
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-16 18:26:13 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:
Attachments:
Description Flags
error message screenshot for hel7 host running VM with USB redirected from the win7-sp1-64bit machine.
none
error message screenshot for rhel6.5 host running VM with USB redirected from the win7-sp1-64bit machine. none

Description Sibiao Luo 2014-05-20 04:57:41 UTC
Description of problem:
fail to do USB redirection to VM launching on rhel7/rhel6.5 host with error message prompt after select the redirected usb stick when remote pass-through usb stick from win7-sp1-x64bit machine with qxl vga specified in qemu-kvm cmdline.

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/rhel6.5 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 qxl -global qxl-vga.vram_size=67108864 -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, select the redirected USB stick device via "'File' menu
--- 'USB device selection'", but there a redirection error message prompt, there is a little for rhel7 and rhel6.5 host, I will attach the screen-shot for them.

1.rhel7 host running VM with USB redirected from the win7-sp1-64bit machine:

USB redirection error: Could not redirect CompUSA Device: could not claim interface 0 (configuration 1): LIBUSB_ERROR_ACCESS

2.rhel6.5 host running VM with USB redirected from the win7-sp1-64bit machine:

USB redirection error: Could not redirect CompUSA Device: Could not open usb device: Operation not supported or unimplemented on this platform [-12]

Expected results:
It should work well without any problem.

Additional info:

Comment 1 Sibiao Luo 2014-05-20 04:59:35 UTC
Created attachment 897420 [details]
error message screenshot for hel7 host running VM with USB redirected from the win7-sp1-64bit machine.

Comment 2 Sibiao Luo 2014-05-20 05:00:14 UTC
Created attachment 897421 [details]
error message screenshot for rhel6.5 host running VM with USB redirected from the win7-sp1-64bit machine.

Comment 4 Sibiao Luo 2014-05-20 05:17:29 UTC
(In reply to Sibiao Luo from comment #0)
> Steps to Reproduce:
> 1.launch a rhel7 VM on rhel7/rhel6.5 host with usb-redir and cirrus vga
> specified.
sorry for description error, it's launching a rhel7 VM on rhel7/rhel6.5 host with usb-redir and qxl 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 qxl -global qxl-vga.vram_size=67108864
> -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

Comment 11 ballacker 2014-05-28 07:09:14 UTC
May be it cannot fixed the bug.
virtviewer-0.6 has used the code in  https://git.fedorahosted.org/cgit/virt-viewer.git/commit/?id=999b734865d18235fef53609d59db6e56a92df02, but  when I use virt-viewer-0.6.0.tar.gz, has the same error.

Comment 12 Christophe Fergeau 2014-05-28 07:36:15 UTC
Yeah sorry, I commented on the wrong bug, this was meant to be in bug #1099327 and bug #1099295

Comment 13 tingting zheng 2014-05-30 07:04:16 UTC
I can reproduce this bug with the below version:
rhel 7 host:
spice-server-0.12.4-5.el7.x86_64
usbredir-0.6-7.el7.x86_64
libvirt-1.1.1-29.el7.x86_64
qemu-kvm-rhev-1.5.3-60.el7ev.x86_64

rhel6 host:
spice-server-0.12.4-8.el6.x86_64
libvirt-0.10.2-36.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.425.el6.x86_64
usbredir-0.5.1-1.el6.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

Steps:
1.launch a rhel7 VM on rhel7/rhel6.5 host with usb-redir and cirrus vga specified.

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. 

Result:
- I. cirrus vga by default:
rhel7 host running a VM + virt-viewer runs on win7 machine     --- grayed button
rhel6 host running a VM + virt-viewer runs on win7 machine     --- grayed button

- II. with qxl vga:
rhel7 host running a VM + virt-viewer runs on win7 machine     --- Error redirect:USB redirection error: Could not redirect $usb Device: could not claim interface 0 (configuration 1): LIBUSB_ERROR_ACCESS
rhel6.5 host running a VM + virt-viewer runs on win7 machine   --- Error redirect:USB redirection error: Could not redirect $usb Device: Could not open usb device: Operation not supported or unimplemented on this platform [-12]

Comment 16 Sandro Bonazzola 2015-10-26 12:34:53 UTC
this is an automated message. oVirt 3.6.0 RC3 has been released and GA is targeted to next week, Nov 4th 2015.
Please review this bug and if not a blocker, please postpone to a later release.
All bugs not postponed on GA release will be automatically re-targeted to

- 3.6.1 if severity >= high
- 4.0 if severity < high

Comment 17 David Blechter 2015-11-23 14:06:23 UTC
(In reply to Sandro Bonazzola from comment #16)
> this is an automated message. oVirt 3.6.0 RC3 has been released and GA is
> targeted to next week, Nov 4th 2015.
> Please review this bug and if not a blocker, please postpone to a later
> release.
> All bugs not postponed on GA release will be automatically re-targeted to
> 
> - 3.6.1 if severity >= high
> - 4.0 if severity < high

agree, moving to 4.0

Comment 18 Yaniv Lavi 2016-05-09 11:02:13 UTC
oVirt 4.0 Alpha has been released, moving to oVirt 4.0 Beta target.