I also had this behaviour on 12.10 (upgraded from 12.04)
virt-install was repeatedly not working sudo virt-install --name=lin01 --ram 1024 --disk path=/var/lib/libvirt/images/disk1.img,format=raw,bus=virtio,cache=none,size=2 --disk path=/var/lib/libvirt/images/disk2.img,format=raw,bus=virtio,cache=none,size=1 --network network=default,model=virtio --nographics --accelerate --os-type=linux --os-variant=debiansqueeze -x 'DEBIAN_FRONTEND=text console=ttyS0,115200n8' --location=http://ftp.debian.org/debian/dists/squeeze/main/installer-amd64/
same errors as above
I took @jdstrand's suggestion from https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/632696/comments/19 and came up with the following (I am new to apparmor so I do not know all implications of this change)
--- libvirt-qemu 2013-02-10 00:00:04.909238467 +0100 +++ /etc/apparmor.d/abstractions/libvirt-qemu 2013-02-09 23:41:53.241265822 +0100 @@ -126,3 +126,17 @@
# for rbd /etc/ceph/ceph.conf r, + + + owner @{PROC}/[0-9]*/fd/ r, + owner @{PROC}/[0-9]*/fd/3 r, + /usr/lib/pt_chown rCx -> libvirt_pt_chown, + + profile libvirt_pt_chown { + #include <abstractions/base> + #include <abstractions/consoles> + capability fowner, + capability chown, + /etc/nsswitch.conf r, + /etc/group r, + }
I also had this behaviour on 12.10 (upgraded from 12.04)
virt-install was repeatedly not working lib/libvirt/ images/ disk1.img, format= raw,bus= virtio, cache=none, size=2 --disk path=/var/ lib/libvirt/ images/ disk2.img, format= raw,bus= virtio, cache=none, size=1 --network network= default, model=virtio --nographics --accelerate --os-type=linux --os-variant= debiansqueeze -x 'DEBIAN_ FRONTEND= text console= ttyS0,115200n8' --location=http:// ftp.debian. org/debian/ dists/squeeze/ main/installer- amd64/
sudo virt-install --name=lin01 --ram 1024 --disk path=/var/
same errors as above
I took @jdstrand's suggestion from https:/ /bugs.launchpad .net/ubuntu/ +source/ libvirt/ +bug/632696/ comments/ 19
and came up with the following (I am new to apparmor so I do not know all implications of this change)
--- libvirt-qemu 2013-02-10 00:00:04.909238467 +0100 d/abstractions/ libvirt- qemu 2013-02-09 23:41:53.241265822 +0100
+++ /etc/apparmor.
@@ -126,3 +126,17 @@
# for rbd ceph/ceph. conf r, consoles>
/etc/
+
+
+ owner @{PROC}/[0-9]*/fd/ r,
+ owner @{PROC}/[0-9]*/fd/3 r,
+ /usr/lib/pt_chown rCx -> libvirt_pt_chown,
+
+ profile libvirt_pt_chown {
+ #include <abstractions/base>
+ #include <abstractions/
+ capability fowner,
+ capability chown,
+ /etc/nsswitch.conf r,
+ /etc/group r,
+ }