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

Royston Carter 787091 at bugs.launchpad.net
Thu May 26 11:20:08 UTC 2011


Serge,
Have added attachments as requested

Regards
Roy


Roy Carter

- Sent from mobile phone  -

----- Reply message -----
From: "Serge Hallyn" <787091 at bugs.launchpad.net>
Date: Thu, May 26, 2011 01:10
Subject: [Bug 787091] Re: Unable to use USB device in KVM quest
To: <rpcarter at blueyonder.co.uk>

Thanks for taking the time to submit this bug and helping to make Ubuntu
better.

dmesg has no more apparmor errors, so it is not likely the cause of the
permission denial.  But libvirt is supposed to change the ownership of
the usb device so that libvirt can access it.  So I'm not sure what is
causing this.

Could you append your /etc/libvirt/qemu.conf file, and
/var/log/libvirt/qemu/VM.log where VM is the name of the libvirt vm and
the result of 'ls -l /dev/bus/usb/001/004'.

** Changed in: qemu-kvm (Ubuntu)
       Status: New => Incomplete

--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/787091

Title:
  Unable to use USB device in KVM quest

Status in “qemu-kvm” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: qemu-kvm

  Ubuntu 10.04 Server:

  I have been trying for some considerable time to get a Windows XP
  guest to recognise a USB Canon printer. I have searched google
  endlessly and applied a number of changes to apparmor profiles. I am
  still not able to get the guest to recognise that there a USB device
  attached. I was originally getting repeated messages in kern.log as
  below but the apparmor changes did resolve these:

  May 22 08:01:51 vmserver kernel: [424696.858434] type=1503
  audit(1306047711.654:81239):  operation="open" pid=19695 parent=1
  profile="libvirt-629433c8-3714-561b-8e91-4a8a9bb65b9f"
  requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0
  name="/sys/devices/pci0000:00/0000:00:05.0/0000:02:00.0/usb8/devnum"

  I am now left with messages in the VM log file as follows which I
  cannot find a solution for:

  char device redirected to /dev/pts/5
  usb_create: no bus specified, using "usb.0" for "usb-host"
  husb: open device 1.4
  /dev/bus/usb/001/004: Operation not permitted
  husb: open device 1.4
  /dev/bus/usb/001/004: Operation not permitted
  husb: open device 1.4


  This is a fairly basic requirement and hopefully a solution already exists.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: kvm 1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu9.6
  ProcVersionSignature: Ubuntu 2.6.32-31.61-server 2.6.32.32+drm33.14
  Uname: Linux 2.6.32-31-server x86_64
  NonfreeKernelModules: fglrx

-- 
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