[Pkg-libvirt-maintainers] Bug#563502: libvirt-bin: cannot use "-usbdevice host:auto:*.*:XXXX:YYYY" since libcap-ng is used

Vincent Danjean vdanjean at debian.org
Sun Jan 3 13:33:11 UTC 2010


Package: libvirt-bin
Version: 0.7.2-4
Severity: important

  Hi,

  Since 0.7.2-4 (ie since the use of libcap-ng), my kvm/qemu virtual machine
cannot access USB devices declared with "-usbdevice host:auto:*.*:XXXX:YYYY"
I suspect this is due to a problem with permissions.
  I use this syntax "host:auto:*.*:XXXX:YYYY" so that the VM can handle
(dis)connection of my USB printer (not always switched on). Of course,
to get this argument, I use a wrapper for qemu-kvm in my config file
(ie <emulator>/usr/local/bin/qemu-kvm</emulator> and
/usr/local/bin/qemu-kvm is:
exec /usr/bin/kvm `echo $* | sed 's|-usbdevice host:\([^ ]*\)|-usbdevice host:auto:*.*:\1|g'`
)
  When libcap-ng is used, I can see in /var/log/libvirt/qemu/<vm>.log some
lines such as:
husb: open device 1.4
/dev/bus/usb/001/004: Permission denied
and my VM (ie the linux kernel in my VM) does not see any event when I
(dis)connect my USB printer.
  With 0.7.2-3, it works perfectly: the linux kernel in the VM log and handle
(dis)connect USB event when I switch on/off my printer.
 
  I hope this bug will be corrected (or a workaround will be found to disabled
the effect of libcap-ng) before the package migrate to testing because in my
use case, I cannot use it at all.

  Regards,
    Vincent

-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libvirt-bin depends on:
ii  adduser           3.112                  add and remove users and groups
ii  hal               0.5.14-1               Hardware Abstraction Layer
ii  libavahi-client3  0.6.25-2               Avahi client library
ii  libavahi-common3  0.6.25-2               Avahi common library
ii  libc6             2.10.2-2               GNU C Library: Shared libraries
ii  libcap-ng0        0.6.2-3.1              An alternate posix capabilities li
ii  libdbus-1-3       1.2.16-2               simple interprocess messaging syst
ii  libdevmapper1.02. 2:1.02.39-1            The Linux Kernel Device Mapper use
ii  libgnutls26       2.8.5-2                the GNU TLS library - runtime libr
ii  libhal1           0.5.14-1               Hardware Abstraction Layer - share
ii  libparted1.8-12   1.8.8.git.2009.07.19-5 The GNU Parted disk partitioning s
ii  libreadline6      6.0-5                  GNU readline and history libraries
ii  libsasl2-2        2.1.23.dfsg1-5         Cyrus SASL - authentication abstra
ii  libselinux1       2.0.89-4               SELinux runtime shared libraries
ii  libuuid1          2.16.2-0               Universally Unique ID library
ii  libvirt0          0.7.4-1                library for interfacing with diffe
ii  libxenstore3.0    3.4.2-2                Xenstore communications library fo
ii  libxml2           2.7.6.dfsg-1           GNOME XML library
ii  logrotate         3.7.8-4                Log rotation utility

Versions of packages libvirt-bin recommends:
ii  bridge-utils                  1.4-5      Utilities for configuring the Linu
ii  dnsmasq-base                  2.51-1     A small caching DNS proxy and DHCP
ii  iptables                      1.4.6-2    administration tools for packet fi
ii  netcat-openbsd                1.89-3     TCP/IP swiss army knife
ii  qemu                          0.11.1-1   fast processor emulator

Versions of packages libvirt-bin suggests:
ii  policykit-1                   0.95-1     framework for managing administrat

-- no debconf information





More information about the Pkg-libvirt-maintainers mailing list