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 https://bugzilla.redhat.com/show_bug.cgi?id=1114720 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
On 01/08/2015 04:45 PM, Frederick N. Brier wrote:
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. Fred
Turns out while QXL's supports DirectX, it implements very few DirectX capabilities including Shader Model 3.0 http://forums.ubi.com/showthread.php/802854-Rocksmith-2014-PC-Configuration-and-FAQ-Forums, which is apparently required by Rocksmith 2014 <sigh>. That is probably the reason for the above message. Not sure when the WDDM driver http://www.spice-space.org/page/WDDM will be out, or if it will support just Shader Model 2.0 or 3.0. The Virgil 3D project http://lwn.net/Articles/611212/ appears a long way http://virgil3d.github.io/ off and only a research project at this point, let alone providing a Windows driver. Ah well, the USB redirection feature is still cool. And the clipboard now works.
Fred