<div dir="ltr"><div><div><div>Hi,<br><br></div>Problem resolved with libvirt-1.20 and by configuring qemu to run from my user (in /etc/libvirt/qemu.conf, modify user and group and restart libvirtd).<br><br></div>Best regards.<br></div>Christophe<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-16 9:19 GMT+02:00 crequill <span dir="ltr"><<a href="mailto:crequill@worldonline.fr" target="_blank">crequill@worldonline.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For gnome boxes, a pool already exists:<br>
<br>
$ virsh pool-list<br>
 Name                      State      Autostart<br>
--------------------------------------------------<br>
 default                     active     yes<br>
 gnome-boxes          active     no<br>
<br>
$ virsh vol-list gnome-boxes<br>
 Name                 Path<br>
------------------------------------------------------------------------------<br>
 win7                   /home/crequill/.local/share/gnome-boxes/images/win7<br>
<br>
$ ls -alh /home/crequill/.local/share/gnome-boxes/images/win7<br>
-rwxrwxrwx 1 root root 60G 15 sept. 17:11<br>
/home/crequill/.local/share/gnome-boxes/images/win7<br>
<br>
With this and libvirt 1.19, I get:<br>
<br>
2015-09-15T17:17:19.563181Z qemu-system-x86_64: -drive<br>
file=/home/crequill/.local/share/gnome-boxes/images/win7,if=none,id=drive-virtio-disk0,format=raw:<br>
Could not open '/home/crequill/.local/share/gnome-boxes/images/win7':<br>
Permission denied<br>
<br>
So, why this configuration is running with libvirt 1.18 and not with<br>
libvirt 1.19 ?<br>
<br>
2015-09-16 8:06 GMT+02:00 Dominique Ramaekers <<a href="mailto:dominique.ramaekers@cometal.be">dominique.ramaekers@cometal.be</a>>:<br>
> @requillart<br>
> Don't get me wrong. It's no problem to use other partitions. Only, you have to add the location to the storage pool of libvirt...<br>
> Sorry, no experience with gnome-boxes.<br>
><br>
> @crequill<br>
> Add a new storage pool with the destination /home/crequill/VM<br>
> You can't fool apparmour with a link...<br>
> Also with adding the storage pool, it's easier to get a clear picture of the usage of your storage resources in virt-manager<br>
><br>
><br>
><br>
><br>
> -----Oorspronkelijk bericht-----<br>
> Van: <a href="mailto:requillart@gmail.com">requillart@gmail.com</a> [mailto:<a href="mailto:requillart@gmail.com">requillart@gmail.com</a>] Namens crequill<br>
> Verzonden: dinsdag 15 september 2015 19:24<br>
> Aan: Dominique Ramaekers<br>
> CC: <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> Onderwerp: Re: [libvirt-users] libvirt 1.19: could not open drive file (permission denied)<br>
><br>
> If we cannot use anymore another partitions, for me it's a bug.  Not for you?<br>
> For information, I get this error with gnome boxes. With it, images are in /home/crequill/.local/share/gnome-boxes/images/. How run it?<br>
><br>
> 2015-09-15 17:53 GMT+02:00 crequill <<a href="mailto:crequill@worldonline.fr">crequill@worldonline.fr</a>>:<br>
>> Indeed, I have a link between /var/lib/libvirt/images and my home<br>
>> directory on an another partition.<br>
>><br>
>> # ls -al /var/lib/libvirt/images<br>
>> lrwxrwxrwx 1 root root 17  3 sept. 09:29 /var/lib/libvirt/images -><br>
>> /home/crequill/VM<br>
>><br>
>> 2015-09-15 17:45 GMT+02:00 Dominique Ramaekers <<a href="mailto:dominique.ramaekers@cometal.be">dominique.ramaekers@cometal.be</a>>:<br>
>>> A while ago, I had the same problem. It was a apparmor issue. Maybe your image is on a location outside your storage pools?<br>
>>><br>
>>> -----Oorspronkelijk bericht-----<br>
>>> Van: <a href="mailto:libvirt-users-bounces@redhat.com">libvirt-users-bounces@redhat.com</a><br>
>>> [mailto:<a href="mailto:libvirt-users-bounces@redhat.com">libvirt-users-bounces@redhat.com</a>] Namens crequill<br>
>>> Verzonden: dinsdag 15 september 2015 17:29<br>
>>> Aan: <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
>>> Onderwerp: [libvirt-users] libvirt 1.19: could not open drive file<br>
>>> (permission denied)<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> With libvrit 1.18 all is working fine: I can  open my win7 VM on Archlinux without problem.<br>
>>> But I cannot use it with libvirt 1.19: it could not open drive file (permission denied).<br>
>>><br>
>>> In /etc/libvirt/qemu.conf, I have:<br>
>>>      - user: root<br>
>>>      - group: root<br>
>>><br>
>>> And the drive file has root:root as owner.<br>
>>><br>
>>> Why this configuration is running with libvirt 1.18 and not with libvirt 1.19 ?<br>
>>><br>
>>> Many thanks for your reply.<br>
>>> Christophe<br>
>>><br>
>>> _______________________________________________<br>
>>> libvirt-users mailing list<br>
>>> <a href="mailto:libvirt-users@redhat.com">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/listinfo/libvirt-users</a><br>
</blockquote></div><br></div>