manually creating the directory with libvirt-qemu/kvm owner/group
/var/liib/libvirt/qemu/channel/target

leads to error : permission denied

Impossible de terminer l'installation : « internal error: process exited while 
connecting to monitor: 2015-01-04T13:41:21.316581Z qemu-system-x86_64: -chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/centostest.org.qemu.guest_agent.0,server,nowait:
 Failed to bind socket: Permission denied
2015-01-04T13:41:21.316717Z qemu-system-x86_64: -chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/centostest.org.qemu.guest_agent.0,server,nowait:
 chardev: opening backend "socket" failed
 »

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1820, in do_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 403, in start_install
    noboot)
  File "/usr/share/virt-manager/virtinst/guest.py", line 467, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3398, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', 
conn=self)
libvirtError: internal error: process exited while connecting to monitor: 
2015-01-04T13:41:21.316581Z qemu-system-x86_64: -chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/centostest.org.qemu.guest_agent.0,server,nowait:
 Failed to bind socket: Permission denied
2015-01-04T13:41:21.316717Z qemu-system-x86_64: -chardev 
socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/centostest.org.qemu.guest_agent.0,server,nowait:
 chardev: opening backend "socket" failed


Looking at syslog I know see apparmor is denying mknod creation on the 
directory :

Jan  4 14:41:21 minipc kernel: [127823.552343] audit: type=1400
audit(1420378881.315:171): apparmor="DENIED" operation="mknod" profile
="libvirt-73aa79f1-0023-4e37-8001-5be78e884348"
name="/var/lib/libvirt/qemu/channel/target/centostest.org.qemu.guest_agent.0"
pid=28480 comm="qemu-system-x86" requested_mask="c" denied_mask="c"
fsuid=116 ouid=116

So tu summarize :
- there are missing dirs
- there are missing rules for these dirs




** Summary changed:

- apparmor denied mknod creation in /var/lib/libvirt/qemu/channel/target
+ missing dirs /var/lib/libvirt/qemu/channel/target while creating centos 7 vm

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1407434

Title:
  missing dirs /var/lib/libvirt/qemu/channel/target while creating
  centos 7 vm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1407434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to