[Bug 787091] Re: Unable to use USB device in KVM quest

Serge Hallyn 787091 at bugs.launchpad.net
Tue Jun 7 14:57:05 UTC 2011


Quoting Royston Carter (787091 at bugs.launchpad.net):
> Serge,
> Done as requested but no change. I no longer get my host reporting that it has seen a new printer but the KVM guest still does not see the device. The log file is still showing "operation not permitted" on a regular basis.
> 
> Any other thoughts?

This sometimes works, but it can be hard to get it right.  We're going
to try inserting a wrapper around kvm when executed by libvirt.  Please
do the following precisely (after re-starting cups and re-installing the
packages as described earlier):

	mv /usr/bin/kvm /usr/bin/kvm.real
	vi /usr/bin/kvm

Insert the following:

	#!/bin/sh
	strace -f -o/tmp/strace-kvm.$$.out /usr/bin/kvm.real $*

and make it executable:

        chmod ugo+x /usr/bin/kvm

Then start the virtual machine through libvirt as usual.  It'll be slow.
When it is shut down, attach /tmp/strace-kvm.*.out to this bug report,
and undo the wrapper by doing:

        mv /usr/bin/kvm.real /usr/bin/kvm

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/787091

Title:
  Unable to use USB device in KVM quest



More information about the Ubuntu-server-bugs mailing list