Libvirt is blocked by Apparmor when doing something. Therefore, to ensure that Libvirt always has the required permissions, you must disable apparmor. The method is as follows: 1. select the -- without-apparmor option when compiling libvirt; 2. run the following command to disable apparmor for libvirt: $ ln-s/etc/apparmor. d/usr. sbin. libmongod &
Libvirt is blocked by Apparmor when doing something. Therefore, to ensure that Libvirt always has the required permissions, you must disable apparmor. The method is as follows:
1. Select the -- without-apparmor option when compiling libvirt;
2. Run the following command to disable apparmor for libvirt:
$ Ln-s/etc/apparmor. d/usr. sbin. lib+d/etc/apparmor. d/disable/
$ Ln-s/etc/apparmor. d/usr. lib. libvirt. virt-aa-helper/etc/apparmor. d/disable/
$ Apparmor_parser-R/etc/apparmor. d/usr. sbin. lib1_d
$ Apparmor_parser-R/etc/apparmor. d/usr. lib. libvirt. virt-aa-helper
Then restart the machine.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2