[libvirt-users] Need help using libvirt with qcow2 delta and base images

Wang David David_Wang at prn.com
Tue Apr 20 20:08:06 UTC 2010


Jeremy,

Thank you so much for resolving my problem ;)  The AppArmor configuration fix worked.  I am sure that you have saved me many more days of research.  It looks like I have to research this AppArmor business.

Thanks!
-dave
________________________________________
From: jeremy avnet [mailto:brainsik at saucelabs.com] 
Sent: Tuesday, April 20, 2010 11:46 AM
To: Wang David
Cc: libvirt-users at redhat.com
Subject: Re: [libvirt-users] Need help using libvirt with qcow2 delta and base images

On Tue, Apr 20, 2010 at 11:01 AM, Wang David <David_Wang at prn.com> wrote:
Apr 19 17:27:36 virtualserver3 kernel: [14202.411373] type=1503 audit(1271723256.513:75): operation="open" pid=3147 parent=1 profile="libvirt-20030353-cdee-109a-1abb-dc4971d036c2" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/data/virtual/var/lib/libvirt/images/ubuntu910server64.qcow2"
Apr 19 17:27:36 virtualserver3 libvirtd: 17:27:36.718: error : qemudWaitForMonitor:1103 : internal error unable to start guest: qemu: could not open disk image /var/lib/libvirt/images/ubuntu910server64_delta.qcow2#012
 
These indicate that AppArmor is denying access to the backing store, thus, your delta image will not work.

You're going to need add a rule into /etc/apparmor.d/abstractions/libvirt-qemu so that the backing store can be read. Something like:

  /data/virtual/var/lib/libvirt/images/ubuntu910server64.qcow2 r,

or 

  /data/virtual/var/lib/libvirt/images/* r,

.:. jeremy






More information about the libvirt-users mailing list