<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 06/01/2013 08:15 PM, Daniel Bareiro
      wrote:<br>
    </div>
    <blockquote cite="mid:20130602011507.GB28991@defiant.freesoftware"
      type="cite">
      <pre wrap="">
Hi all!

I'm trying virt-manager on Debian Wheezy and I noticed that it has
already defined a "default" pool. But if I run:

# /etc/init.d/libvirt-bin restart

I lose the definition of the pools. Actually, there are the definitions
of the pools; but these are not read after restarting libvirt.

ss01:/etc/libvirt/storage# ls -l
total 8
drwxr-xr-x 2 root root 4096 jun  1 09:36 autostart
-rw------- 1 root root  664 jun  1 13:46 default.xml


ss01:/etc/libvirt/storage/autostart# ls -l
total 0
lrwxrwxrwx 1 root root 32 may 24 07:24 default.xml -> /etc/libvirt/storage/default.xml


After restart libvirt:

virsh # pool-list
Name                 State      Autostart
-----------------------------------------


This is what I see in libvirtd.log:

2013-06-02 01:05:29.709+0000: 19289: info : libvirt version: 0.9.12
2013-06-02 01:05:29.709+0000: 19289: error : virStorageDefParsePerms:613 : XML error: malformed owner element</pre>
    </blockquote>
    <br>
    "XML error: malformed owner element
    "<br>
    <br>
    <blockquote cite="mid:20130602011507.GB28991@defiant.freesoftware"
      type="cite">
      <pre wrap="">
2013-06-02 01:05:30.210+0000: 19289: error : virExecWithHook:424 : Cannot find 'pm-is-supported' in path: No existe el fichero o el directorio
2013-06-02 01:05:30.211+0000: 19289: warning : qemuCapsInit:949 : Failed to get host power management capabilities
2013-06-02 01:05:33.014+0000: 19289: error : virExecWithHook:424 : Cannot find 'pm-is-supported' in path: No existe el fichero o el directorio
2013-06-02 01:05:33.014+0000: 19289: warning : lxcCapsInit:77 : Failed to get host power management capabilities
2013-06-02 01:05:33.025+0000: 19289: error : virExecWithHook:424 : Cannot find 'pm-is-supported' in path: No existe el fichero o el directorio
2013-06-02 01:05:33.025+0000: 19289: warning : umlCapsInit:87 : Failed to get host power management capabilities


could this be due to some type of error in the XML file that defines the
pool?

ss01:/etc/libvirt/storage# cat default.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made
using:
  virsh pool-edit default
or other application using the libvirt API.
-->

<pool type='dir'>
  <name>default</name>
  <uuid>3174232f-3d63-3167-aa25-3949671bf4c2</uuid>
  <capacity unit='bytes'>0</capacity>
  <allocation unit='bytes'>0</allocation>
  <available unit='bytes'>0</available>
  <source>
  </source>
  <target>
    <path>/var/lib/libvirt/images</path>
    <permissions>
      <mode>0700</mode>
      <owner>4294967295</owner>
      <group>4294967295</group></pre>
    </blockquote>
    <br>
    Owner and group should uid and gid of the images directory.<br>
    <br>
    <blockquote cite="mid:20130602011507.GB28991@defiant.freesoftware"
      type="cite">
      <pre wrap="">
    </permissions>
  </target>
</pool>


These are the versions of the packages I'm using:

libvirt-bin:  0.9.12-11 (Architecture: i386)
virt-manager: 0.9.1-4   (Architecture: all)




Thanks in advance for your reply.


Regards,
Daniel
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>