<div dir="ltr">Hello,<div><br></div><div>I've running Ubuntu-14.04 as my host and my guest.  I've been trying to get guest to host communication set up by configuring a virtio-serial device.  My xml file contains:</div><div><br></div><div><div><channel type='unix'></div><div>      <source mode='bind' path='/home/dave/vm1.agent'/></div><div>      <target type='virtio' name='vm1'/></div><div></channel></div></div><div><br></div><div>When I start up the VM, I get the following error:</div><div><br></div><div><div>error: Failed to create domain from vm1.xml</div><div>error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -chardev socket,id=charchannel0,path=/home/dave/vm1.agent,server,nowait: Failed to bind socket: Permission denied</div><div>qemu-system-x86_64: -chardev socket,id=charchannel0,path=/home/dave/vm1.agent,server,nowait: chardev: opening backend "socket" failed</div></div><div><br></div><div>dmesg shows what appears to be an apparmor denial for mknod:</div><div><br></div><div>[250108.632450] type=1400 audit(1415994657.679:152): apparmor="DENIED" operation="mknod" profile="libvirt-2fd2ec54-f644-228e-08ba-297c8b304153" name="/home/dave/vm1.agent" pid=21856 comm="qemu-system-x86" requested_mask="c" denied_mask="c" fsuid=112 ouid=112<br></div><div><br></div><div>I can add a line to /etc/apparmor.d/abstractions/libvirt-qemu similar to:</div><div><br></div><div>owner /home/dave/vm1.agent rw,</div><div><br></div><div>After restarting apparmor, this gets rid of the apparmor complaint, but I still get the same error from 'virsh create vm1.xml' when trying to create the VM.</div><div><br></div><div>Any suggestions for how to fix this?</div><div><br></div><div>Thanks,</div><div><br></div><div>~Dave</div></div>