On 01/08/2015 02:12 AM, Hans de Goede wrote:
Hi,

On 07-01-15 15:37, Cole Robinson wrote:
On 01/06/2015 12:08 AM, Frederick N. Brier wrote:
I'm using Spice and want to share a USB device on workstation with a VM
running on another physical host.  The filters are all set up for the VM in
its domain XML.  The Spice "Select USB devices for redirection" dialog shows
the device I want to redirect.  However, all the USB devices are greyed out
and Alert text says, "Some USB devices are blocked by host policy".  My
understanding, from the doc
<https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/sect-limit-redirection.html>,
is that the following XML needs to be configured on the "host physical
machine's domain XML" which I am interpreting as the workstation, although it
could be the hypervisor host, to unblock the USB device:

<redirfilter>
   <usbdev class='0x08' vendor='0x0951' product='0x1625' version='2.0' allow='yes'/>
   <usbdev allow='no'/>
</redirfilter>

Either way, I cannot figure out what the name or location of the file where
this XML would go, let alone find a complete schema or example of what the
file would look like.  Has anyone else done this?  Please... <gasp> Help!


I've never seen that message before. Can you provide the guest XML you are
using? And maybe upload a screenshot somewhere of what you are seeing in
virt-viewer.

What type of device are you trying to passthrough?

CCing hans who is the usbredir expert

This message is shown by Spice's USB redirection code when USB device filtering
is used, and the device gets rejected by the policy. In this case the xml
which you quote will only allow one specific device to be redirected.

If you remove the entire <redirfilter> ... </redirfilter> block from the xml
config for your vm, then the message should go away, and you should be able to
redirect any device.

Regards,

Hans
Hans, thank you very much.  Removing the filter un-greyed the USB devices.  Obviously, I don't understand the filtering element - yet :).  I was hoping I'd be able to report that Rocksmith 2014 works great.  Unfortunately, although it installed without a problem, I am now tracking down why it is generating a "Unable to initialize graphics system" dialog <sigh>.  So much for being an uber-geek.  BTW, have any of you played with the nwfilter feature of KVM?  I ran into an odd bug a while back and there hasn't been any movement on it.  I came up with a rubber band and bubblegum solution which I mention in the bug report, so it's not an emergency, just annoying.  Spice is way cool as is this USB redirection feature.  Thank you both for writing it and help me.

Fred