Try this parameter --spice-usbredir-redirect-on-connect="-1,0x0bda,-1,-1,0"
smart_fool@xxxxxxxxxxx
Hi guysI intended to not allow redirecting some of my usb devices(HID) to the guest, i thought https://www.spice-space.org/usbredir.htmlcould help on this.My host has below usb deviceslizj@FNSTPC:~/workspace/vgt/virt-viewer/src$ lsusbBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 006: ID 04d8:0b2a Microchip Technology, Inc.Bus 001 Device 021: ID 046d:c534 Logitech, Inc. Unifying ReceiverBus 001 Device 004: ID 0424:2137 Standard Microsystems Corp.Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS802.11n WLAN AdapterBus 001 Device 002: ID 0bda:8771 Realtek Semiconductor Corp.Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub$ remote-viewer--spice-usbredir-auto-redirect-filter="-1,0x0bda,-1,-1,0" --spice-debugspice://localhost:5900For testing, i just want to hide produce id 0x0bda from remote-viewerwith above command line. But acutallyi am still able to redirec both Realtek device to the guest throughremote-viewer.So is there something with my usage ? Feel free to let me know if thereis something wrong.ThanksZhijian