USB device can redirect to two vm host
Submitted by Yufeng Jiang
Assigned to Spice Bug List
Link to original bug (#104256)
Description
Following rpms are relating to usb redirection installed in my Centos7.3:
virt-viewer-5.0-7.el7.x86_64 spice-glib-0.33-6.ky3.x86_64 spice-vdagent-0.14.0-14.ky3.kb2.x86_64 spice-gtk3-0.33-6.ky3.x86_64 usbredir-0.7.1-2.ky3.x86_64 libusb-0.1.4-3.ky3.kb2.x86_64 libusbx-1.0.20-1.ky3.kb2.x86_64
This days, I'm working with usb redirection with virt-viewer. And A ukey device( a usb device, vid:1111, pid:2222) is used in my testing. I lauch the virt-viewer with the argument: --spice-usbredir-redirect-on-connect="-1,0x1111,0x2222,-1,1", and I find that the ukey device can be redirected to two vm host(whatever it is, you can see the ukey device in the vm host system) if launch two virt-viewer threads. I try the other usb device(e.g. USB Mass Storage Device), it can be happend.
The lauch command is: /usr/bin/remote-viewer -t mcadmin1@Win7-32 --spice-smartcard --spice-usbredir-auto-redirect-filter=-1,-1,-1,-1,1 --spice-usbredir-redirect-on-connect="-1,0x1111,0x2222,-1,1" spice://192.168.130.110:5900