[Pkg-libvirt-maintainers] Bug#607791: libvirt-bin: No support for qemu in command 'attach-disk'

Francesc Guasch frkreport at etsetb.upc.edu
Wed Dec 22 09:06:57 UTC 2010


Package: libvirt-bin
Version: 0.8.3-5
Severity: normal

I have libvirt-bin 0.8.3-5 in squeeze. I am trying to attach more disks to a
kvm image. The qemu driver is unsupported.

Attaching a new disk using virsh won't work:

    # virsh attach-disk guest_server file.img vdb --type=disk --driver=qemu
    error: No support for qemu in command 'attach-disk'

The only way to add a new disk is using driver=file. That is later unsupported
by kvm and the xml config file must be fixed manually:

    # virsh attach-disk guest_server file.img vdb --type=disk --driver=file
    Disk attached successfully

    # virsh stop guest_server
    # virsh start guest_server
    error: Failed to start domain sonja
   error: internal error unsupported driver name 'file' for disk
'/var/lib/libvirt/images/file.img'

I found a workaround changing the driver to from file to qemu using virsh edit.


It looks like it is fixed upsteam in release libvirt-0.8.2-8.el5
  https://bugzilla.redhat.com/show_bug.cgi?id=609422

Though dpkg -l libvirt-bin shows I have: libvirt-bin  0.8.3-5 this feature
still fails. Even with a different parameters suggested there:

    # virsh attach-disk guest_server file.img vdb --sourcetype block --driver
qemu --subdriver raw
    error: command 'attach-disk' doesn't support option --sourcetype



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

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser                   3.112+nmu2     add and remove users and groups
ii  libavahi-client3          0.6.27-2       Avahi client library
ii  libavahi-common3          0.6.27-2       Avahi common library
ii  libblkid1                 2.17.2-3.3     block device id library
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libcap-ng0                0.6.4-1        An alternate posix capabilities li
ii  libdevmapper1.02.1        2:1.02.48-4    The Linux Kernel Device Mapper use
ii  libgcrypt11               1.4.5-2        LGPL Crypto library - runtime libr
ii  libgnutls26               2.8.6-1        the GNU TLS library - runtime libr
ii  libnl1                    1.1-6          library for dealing with netlink s
ii  libparted0debian1         2.3-4          The GNU Parted disk partitioning s
ii  libpciaccess0             0.12.0-1       Generic PCI access library for X
ii  libreadline6              6.1-3          GNU readline and history libraries
ii  libsasl2-2                2.1.23.dfsg1-6 Cyrus SASL - authentication abstra
ii  libudev0                  164-3          libudev shared library
ii  libuuid1                  2.17.2-3.3     Universally Unique ID library
ii  libvirt0                  0.8.3-5        library for interfacing with diffe
ii  libxenstore3.0            4.0.1-1        Xenstore communications library fo
ii  libxml2                   2.7.8.dfsg-1   GNOME XML library
ii  logrotate                 3.7.8-6        Log rotation utility

Versions of packages libvirt-bin recommends:
ii  bridge-utils              1.4-5          Utilities for configuring the Linu
ii  dnsmasq-base              2.55-2         A small caching DNS proxy and DHCP
ii  ebtables                  2.0.9.2-2      Ethernet bridge frame table admini
ii  gawk                      1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
ii  iptables                  1.4.8-3        administration tools for packet fi
ii  libxml2-utils             2.7.8.dfsg-1   XML utilities
ii  netcat-openbsd            1.89-4         TCP/IP swiss army knife
ii  qemu                      0.12.5+dfsg-3  fast processor emulator
ii  qemu-kvm                  0.12.5+dfsg-5  Full virtualization on x86 hardwar

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





More information about the Pkg-libvirt-maintainers mailing list