Tuesday, 26 January 2016

How to disable apparmour for local images (qcow2 chained images) in libvirt

How to disable apparmour for local images  (qcow2 chained images) in libvirt




Sometimes it is better to install an OS into a "raw" image and then convert that into qcow2 by moving the image to a different directory  (I call them masterdisks) and then creating qcow2 into the directory where all virtual machine disks are present (I call it RUNDISKS)

Libvirt sometimes complains that it cannot read the backing file "permission denied"
This condition is caused by apparmor.
To fix (get around) this issue below is a quick solution:


Edit the file {prefix}/libvirt/qemu.conf

set the value of

security_driver = "none"


restart libvirt-bin service

enjoy your virtual machines running smoothly

No comments:

Post a Comment