On 12/20/2016 12:56 PM, Eric Blake wrote: > On 12/20/2016 12:48 PM, Jason Miesionczek wrote: >> Hi, >> >> So I see that when i have a qemu vm running, that i created via libvirt, >> there is a socket here: >> /var/lib/libvirt/qemu/domain-<name>/monitor.sock >> > > Libvirt creates a QMP socket already. More to the point, looking at the command line of any libvirt-created guest, and you will see these four arguments (alongside all the others): -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-XXX/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control which is the monitor.sock you are asking about, and the mode=control is what tells you it is a QMP monitor socket. (The qemu command line argument '-qmp' is syntactic sugar for the longer paired -chardev/-mon spelling used by libvirt.) -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list