[Pkg-libvirt-maintainers] Bug#505577: libvirt-bin: libvirt throws	exception on disk allocation
    Ritesh Raj Sarraf 
    rrs at researchut.com
       
    Thu Nov 13 17:57:13 UTC 2008
    
    
  
Package: libvirt-bin
Version: 0.4.6-4
Severity: important
As per the readme, any user that is part of libvirt group should be able to access/use/create guest VMs.
With the above in place, when trying to create a VM, I get the following exception:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 303, in forward
    if(self.validate(notebook.get_current_page()) != True):
  File "/usr/share/virt-manager/virtManager/create.py", line 1008, in validate
    vmmutil.build_default_pool(self._guest.conn)
  File "/usr/share/virt-manager/virtManager/util.py", line 54, in build_default_pool
    (DEFAULT_POOL_PATH, str(e)))
RuntimeError: Couldn't create default storage pool '/var/lib/libvirt/images': Could not start storage pool: cannot open path '/var/lib/libvirt/images': No such file or directory
Indeed, there's no "images" folder. And one is not created because /var/lib/libvirt is owned root.root.
Simply changing the ownership to root.libvirt and g+wx fixed the problem.
Ritesh
-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-custom (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libvirt-bin depends on:
ii  adduser                3.110             add and remove users and groups
ii  libavahi-client3       0.6.23-2          Avahi client library
ii  libavahi-common3       0.6.23-2          Avahi common library
ii  libc6                  2.7-15            GNU C Library: Shared libraries
ii  libdbus-1-3            1.2.1-4           simple interprocess messaging syst
ii  libgcrypt11            1.4.1-1           LGPL Crypto library - runtime libr
ii  libgnutls26            2.4.2-1           the GNU TLS library - runtime libr
ii  libgpg-error0          1.4-2             library for common error values an
ii  libpolkit-dbus2        0.8-2             library for accessing PolicyKit vi
ii  libpolkit2             0.8-2             library for accessing PolicyKit
ii  libreadline5           5.2-3             GNU readline and history libraries
ii  libsasl2-2             2.1.22.dfsg1-23   Cyrus SASL - authentication abstra
ii  libselinux1            2.0.65-5          SELinux shared libraries
ii  libtasn1-3             1.4-1             Manage ASN.1 structures (runtime)
ii  libvirt0               0.4.6-4           library for interfacing with diffe
ii  libxenstore3.0         3.2.1-2           Xenstore communications library fo
ii  libxml2                2.6.32.dfsg-4     GNOME XML library
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages libvirt-bin recommends:
ii  bridge-utils         1.4-5               Utilities for configuring the Linu
ii  dnsmasq              2.45-1              A small caching DNS proxy and DHCP
ii  iptables             1.4.1.1-3           administration tools for packet fi
ii  netcat-openbsd       1.89-3              TCP/IP swiss army knife
ii  qemu                 0.9.1+svn20081101-1 fast processor emulator
Versions of packages libvirt-bin suggests:
ii  policykit                     0.8-2      framework for managing administrat
-- no debconf information
    
    
More information about the Pkg-libvirt-maintainers
mailing list