Affan Syed
2016-Oct-05 07:14 UTC
[libvirt-users] Differentiating Disk access from different VMs
All, I have a specific use case where I want to be ale look at vfs or blk_io requests on the host machine and differentiate which VMs the access is originating from. I am assuming a Disk backend, and looking for virsh command or libvirt API that can help me do so. I have tried quite a bit to Google-fu this problem; no such luck. Would love to know if there is some cute trick to do so. Thanks. Affan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20161005/60be7b42/attachment.htm>
Martin Kletzander
2016-Oct-05 14:11 UTC
Re: [libvirt-users] Differentiating Disk access from different VMs
On Wed, Oct 05, 2016 at 07:14:17AM +0000, Affan Syed wrote:>All, > >I have a specific use case where I want to be ale look at vfs or blk_io >requests on the host machine and differentiate which VMs the access is >originating from. I am assuming a Disk backend, and looking for virsh >command or libvirt API that can help me do so. >I'm assuming you know the PID then. Look at the PID running it and if you're using QEMU, the name of the machine is in the command-line (unless you're stuck with ancient libvirt/qemu). I don't think there is an API for that, since you are on that machine already, it would not make very much sense to add API to stuff you can do already. Correct me if I misunderstood, though.>I have tried quite a bit to Google-fu this problem; no such luck. > >Would love to know if there is some cute trick to do so. > >Thanks. > >Affan>_______________________________________________ >libvirt-users mailing list >libvirt-users@redhat.com >https://www.redhat.com/mailman/listinfo/libvirt-users