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

Royston Carter 787091 at bugs.launchpad.net
Fri May 27 08:36:23 UTC 2011


Serge,
I will rerun tests and send results this morning.

Regards

Roy

Roy Carter

- Sent from mobile phone  -

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

Thanks.  Unfortunately the strace output didn't show kvm trying to
access the usb device at all, and the status info doesn't show anything.
DAC should not be preventing this access.

To be sure I'm understanding correctly - you see no apparmor errors at
all in your syslog any more since you added your new rules, right?

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

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
  Architecture: amd64
  Date: Mon May 23 17:33:39 2011
  InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
  KvmCmdLine:
   UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
   root      3604     1 25 188376 364400 1 15:55 ?        00:24:30 /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 512 -smp 2,cores=2 -name Trixbox2.8 -uu=

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