[fedora-virt] Scanner & USB Passthrough

Jorge Fábregas jorge.fabregas at gmail.com
Sun Mar 9 15:12:05 UTC 2014


On 03/09/2014 08:57 AM, Alek Paunov wrote:
> We have just the same situation on one WS here - HP scanner without SANE 
> support. We use usbredir:
> 
> Few (4) <redirdev bus='usb' type='spicevmc'/> channels in the libvirt 
> machine definition and:
> 
> [Desktop Entry]
> Version=1.0
> Type=Application
> Terminal=false
> Icon=/usr/share/icons/HighContrast/scalable/devices/computer.svg
> Exec=/usr/bin/remote-viewer -f 
> --spice-usbredir-auto-redirect-filter='-1,0x03f0,0x3b05,-1,1|-1,0x04a9,0x1900,-1,1' 
> --spice-usbredir-redirect-on-connect='-1,0x03f0,0x3b05,-1,1|-1,0x04a9,0x1900,-1,1' 
> spice://127.0.0.1:5906
> Name=xp6
> 
> 03f0:3b05 is our HP Scanjet N8400
> 04a9:1900 is some other device we want to go to XP.

Thanks Alex for sharing & confirming!  I had no idea you could use USB
passthrough with SPICE.  I guess this method is better as it only
enables the "passthrough" while the SPICE session is going on (and not
permanently as long as the VM is powered-on in the regular mehtod).

Thanks, much appreciated!

-- 
Jorge


More information about the virt mailing list