<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>thanks a lot!</div>
<div><br></div><hr style="WIDTH: 210px; HEIGHT: 1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>zhunxun@gmail.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:eskultet@redhat.com">Erik Skultety</a></div><div><b>Date:</b> 2017-05-23 15:09</div><div><b>To:</b> <a href="mailto:zhunxun@gmail.com">zhunxun@gmail.com</a></div><div><b>CC:</b> <a href="mailto:libvir-list@redhat.com">libvir-list</a></div><div><b>Subject:</b> Re: [libvirt] libvirt-question</div></div></div><div><div>On Tue, May 23, 2017 at 10:29:14AM +0800, zhunxun@gmail.com wrote:</div>
<div>> Hello,does libvirt provides API to get qemu process ID by vm ID or name??or is there any methods to do this??</div>
<div>> thanks!!</div>
<div> </div>
<div>No, libvirt doesn't provide such API. Depends on what you really want to do.</div>
<div>Libvirt uses domain objects to identify a domain and that's all you need to</div>
<div>operate on domains. If you want to operate on the process level, for whatever</div>
<div>administration reasons, that's out of libvirt's scope.</div>
<div> </div>
<div>Erik</div>
<div> </div>
<div>></div>
<div>></div>
<div>></div>
<div>> zhunxun@gmail.com</div>
<div> </div>
<div>> --</div>
<div>> libvir-list mailing list</div>
<div>> libvir-list@redhat.com</div>
<div>> https://www.redhat.com/mailman/listinfo/libvir-list</div>
<div> </div>
</div></blockquote>
</body></html>