[Spice-devel] USB redirection issues

Viacheslav Ivanov ivanov at itsirius.su
Mon Jul 13 00:18:49 PDT 2015


Ok, resending the letter with attachments gzipped.

Hello, Christophe

Thank you for your reply.

I've seen the redirect-on-connect option when we were developing a method to get the smartcards to appear in VM on connect and it was the desired behaviour, so I've tried it out, but it didn't seem to work. Now I've updated the spice packages to the latest available for RHEL6 from RHN:
Server (it has RHEV-M and RHEV-H running):
spice-xpi-2.7-27.el6.x86_64
spice-glib-0.26-4.el6.x86_64
rhevm-spice-client-x86-cab-3.1-8.el6.noarch
spice-gtk-0.26-4.el6.x86_64
rhevm-spice-client-x64-cab-3.1-8.el6.noarch
spice-server-0.12.4-12.el6.x86_64
Host machine (client):
spice-gtk-0.26-4.el6.x86_64
spice-glib-0.26-4.el6.x86_64
spice-client-0.8.2-15.el6.x86_64
spice-vdagent-0.14.0-9.el6.x86_64
virt-viewer-2.0-6.el6.x86_64
And tried it again, modified the command to:
    subprocess.call('remote-viewer -t \"VM Session\" --spice-debug --spice-usbredir-redirect-on-connect="-1,-1,-1,-1,1" %s  --spice-ca-file %s --spice-host-subject=\'%s\' spice://%s/?port=%s\&tls-port=%s\&password=%s > /tmp/spice_connect.log' % (mode, d['ca_cert'], d['cert_subj'], d['host'], d['port'], d['sport'], d['ticket']), shell=True)

    subprocess.call('remote-viewer -t \"VM Session\" --spice-debug --spice-usbredir-redirect-on-connect="-1,0x24dc,0x0101,-1,1" %s  --spice-ca-file %s --spice-host-subject=\'%s\' spice://%s/?port=%s\&tls-port=%s\&password=%s > /tmp/spice_connect.log' % (mode, d['ca_cert'], d['cert_subj'], d['host'], d['port'], d['sport'], d['ticket']), shell=True)

    subprocess.call('remote-viewer -t \"VM Session\" --spice-debug --spice-usbredir-redirect-on-connect="-1,0x0951,0x1665,-1,1" %s  --spice-ca-file %s --spice-host-subject=\'%s\' spice://%s/?port=%s\&tls-port=%s\&password=%s > /tmp/spice_connect.log' % (mode, d['ca_cert'], d['cert_subj'], d['host'], d['port'], d['sport'], d['ticket']), shell=True)
where mode gets replaced with '-f'.

Still doesn't seem to work, and behaves like auto-redirect-filter. I've had three sessions with filters to redirect all, redirect the smartcard usb (0x24dc:0x0101) and redirect a regular usb mass storage device (0951:1665).
When I've had redirect all and redirect usb mass storage filters, I've had mass storage device plugged into the host machine on connect, but it didn't appear in VM, then I reconnected it and it got redirected.

I'm attaching the spice debug logs for these sessions and lsusb -vv output for the redirected usb devices. What could be going wrong?

Thank you,
Best regards, Vyacheslav.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attachments.tar.gz
Type: application/x-compressed-tar
Size: 21692 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150713/c3188638/attachment-0001.bin>


More information about the Spice-devel mailing list