Comment 2 for bug 1393842

Revision history for this message
Mark Grocock (mgrocock) wrote : Re: Creating Red Hat Enterprise Linux 7 VM fails

I've done some more research into this. It appears that the qemu_ga=True argument to _add_var() on line 241 of /usr/share/virt-manager/virtinst/osdict.py (also line 258 affecting Fedora 18 and later) causes qemu-system-x86_64 to be called with an extra argument:

-chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/rhel7.org.qemu.guest_agent.0,server,nowait

I've managed to get this working by creating /var/lib/libvirt/qemu/channel/target with appropriate ownership:

# mkdir -p /var/lib/libvirt/qemu/channel/target
# chown -R libvirt-qemu:kvm /var/lib/libvirt/qemu/channel

and adding the following to the bottom of /etc/apparmor.d/abstractions/libvirt-qemu:

  /var/lib/libvirt/qemu/channel/target/* rw,

(I'm not an apparmor expert, so there may well be a better way of doing this.)