<div dir="ltr"><div><br></div>Owner of qcow2 is nobody:nobody. I added owner and group information, but still error is the same:<div>cannot chown /var/lib/cloudOver/storages/core/dbedb2cee9444107ab505e58045bc66a_eedf0e1bf4974d709d32269fe4fd594e to (0, 0): Operation not permitted<br></div><div>With defined owner and group even qcow2 images fail. Without it, qcow2 works fine.</div><div><br></div><div>Contents of the pool directory:</div><div><br></div><div><div>$ ls -lha /var/lib/cloudOver/storages/core/</div><div>total 1.6G</div><div>drwxrwxrwx 2 root      root      4.0K Oct  7 20:42 .</div><div>drwxr-xr-x 3 cloudover cloudover 4.0K Sep 26 19:02 ..</div><div>-rw------- 1 nobody    nogroup   469M Oct  7 10:26 dbedb2cee9444107ab505e58045bc66a_07b97b789f6d40d8a8da23335d6b56b0</div><div>-rw------- 1 nobody    nogroup   300M Oct  7 10:53 dbedb2cee9444107ab505e58045bc66a_0a2cd5be4a6a4c1fba5347bfd2f6b469</div><div>-rw------- 1 nobody    nogroup   384K Oct  7 17:07 dbedb2cee9444107ab505e58045bc66a_3bdc98764f374ba1839378c7dc03c1ca</div><div>-rw------- 1 nobody    nogroup   384K Oct  7 16:28 dbedb2cee9444107ab505e58045bc66a_ac5fe8e773c4409380d654a8c92450ad</div><div>-rw------- 1 nobody    nogroup   857M Oct  7 11:10 dbedb2cee9444107ab505e58045bc66a_f62fa24120614c1ca89db92875e988c4</div></div><div><br></div><div>all parent directories for this pool have rx permissions for group and other. I'm wondering why error is "operation not permitted" when the image file doesn't exist in filesystem? All existing files in this directory were created with qcow2 format.</div><div><br></div><div>For now, probably I'll create temporary solution for this - I convert all files as qcow2 during upload or create actions in cloud.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-07 15:49 GMT+02:00 Martin Kletzander <span dir="ltr"><<a href="mailto:mkletzan@redhat.com" target="_blank">mkletzan@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Oct 07, 2016 at 12:02:48PM +0200, Maciej Nabożny wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I'm facing similar problem to described here:<br>
<a href="https://www.redhat.com/archives/libvirt-users/2016-February/msg00033.html" rel="noreferrer" target="_blank">https://www.redhat.com/archive<wbr>s/libvirt-users/2016-February/<wbr>msg00033.html</a><br>
I got Libvirt pool mounted over netfs and I'm trying to create new volume,<br>
with pool.createXML. When format is qcow2, everything works fine.<br>
Unfortunately, for raw images libvirt raises error Permission denied. Whole<br>
pool is owned by root. Libvirt starts as root user too.<br>
<br>
I've tried to change pool's permissions to 777 on filesystem, but i get the<br>
same error, only for RAW images. Volume's xml looks like:<br>
<volume><br>
   <name>{{<a href="http://user.id" rel="noreferrer" target="_blank">user.id</a>}}_{{<a href="http://image.id" rel="noreferrer" target="_blank">image.id</a>}<wbr>}</name><br>
   <source><br>
   </source><br>
   <capacity unit='bytes'>{{image.size}}</c<wbr>apacity><br>
   <target><br>
       <format type='{{ image.format }}'/><br>
       <permissions><br>
           <mode>660</mode><br>
</blockquote>
<br></span>
So this fails even with:<br>
<br>
   <owner>{{ user.uid }}</owner><br>
   <group>{{ user.gid }}</group><br>
<br>
added to the permissions?  If you create qcow2 image who is the owner of<br>
that image? (user:group)<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
       </permissions><br>
   </target><br>
</volume><br>
<br>
I've tried to create it without defining permissions, but it's the same.<br>
Problem exists in Ubuntu Server 16.04 (libvirt from repo) and Raspbian<br>
(libvirt in version 1.2.9). Do you know if it is possible solve this<br>
problem with this version of libvirt?<br>
<br>
<br>
--<br>
Maciej Nabożny<br>
<a href="http://cloudover.io" rel="noreferrer" target="_blank">cloudover.io</a><br>
</blockquote>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/libvirt-users</a><br>
</blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Maciej Nabożny<div><a href="http://cloudover.io" target="_blank">cloudover.io</a></div></div></div></div></div>
</div></div>