[libvirt] libvirt-question

Hello,does libvirt provides API to get qemu process ID by vm ID or name??or is there any methods to do this?? thanks!! zhunxun@gmail.com

On Tue, May 23, 2017 at 10:29:14AM +0800, zhunxun@gmail.com wrote:
Hello,does libvirt provides API to get qemu process ID by vm ID or name??or is there any methods to do this?? thanks!!
No, libvirt doesn't provide such API. Depends on what you really want to do. Libvirt uses domain objects to identify a domain and that's all you need to operate on domains. If you want to operate on the process level, for whatever administration reasons, that's out of libvirt's scope. Erik
zhunxun@gmail.com
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

thanks a lot! zhunxun@gmail.com From: Erik Skultety Date: 2017-05-23 15:09 To: zhunxun@gmail.com CC: libvir-list Subject: Re: [libvirt] libvirt-question On Tue, May 23, 2017 at 10:29:14AM +0800, zhunxun@gmail.com wrote:
Hello,does libvirt provides API to get qemu process ID by vm ID or name??or is there any methods to do this?? thanks!!
No, libvirt doesn't provide such API. Depends on what you really want to do. Libvirt uses domain objects to identify a domain and that's all you need to operate on domains. If you want to operate on the process level, for whatever administration reasons, that's out of libvirt's scope. Erik
zhunxun@gmail.com
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On Tue, May 23, 2017 at 10:29:14AM +0800, zhunxun@gmail.com wrote:
Hello,does libvirt provides API to get qemu process ID by vm ID or name??or is there any methods to do this?? thanks!!
Oh, and I also forgot to mention that these kinds of questions are better suited for libvirt-users mailing list. libvir-list is where the libvirt's upstream work (ideas/discussions/development) takes place. Regards, Erik
zhunxun@gmail.com
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On Tue, May 23, 2017 at 10:29:14AM +0800, zhunxun@gmail.com wrote:
Hello,does libvirt provides API to get qemu process ID by vm ID or name??or is there any methods to do this?? thanks!!
No. It was discussed multiple times here. I added explanation [1] to our FAQ. [1] http://wiki.libvirt.org/page/FAQ#How_can_I_get_QEMU.27s_PID_for_a_VM_using_l...
zhunxun@gmail.com
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (3)
-
Erik Skultety
-
Martin Kletzander
-
zhunxun@gmail.com