[fedora-virt] Scanner & USB Passthrough

Alek Paunov alex at declera.com
Sun Mar 9 12:57:20 UTC 2014


On 08.03.2014 20:53, Jorge Fábregas wrote:
> I plan to buy the Fujitsu ScanSnap iX500 document scanner (that only
> works with Win/Mac/IOS/Android) and plan to use it along with my Windows
> XP VM.  I've never used "USB passthrough" before and wondered if there
> might be any show-stopper along the way? Has anyone used a scanner in
> this manner before?
>
> I just did a test :
>
> - plugged my iPod via USB
> - Fedora 20 automatically mounted it...
> - I manually unmounted it...
> - modified my VM with virt-manager (Add New Hardward) to add the usb
> device (iPOD in this case)
> - started the VM and installed iTunes
> - iTunes found the iPod and I could see all my tracks.
>
> So far, it seems to work perfectly fine.  Howerver, the iPOD in the end
> it's just a "USB mass storage device" (the scanner isn't).
>
> I'll appreciate any feedback!
>

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.

Kind regards,
Alek






More information about the virt mailing list