[libvirt-users] API for retrieving resource metrics from VMs?

Laine Stump laine at laine.org
Tue Jan 5 20:44:57 UTC 2016


On 01/04/2016 11:59 AM, Vasiliy Tolstov wrote:
> 2016-01-04 16:33 GMT+03:00 BYEONG-GI KIM <kimbyeonggi at gmail.com>:
>> hank you for the reply!
>>
>> I used the term "disk usage" as what you mentioned first; the information
>> which can be retrieved via 'df' command on linux system...
>>
>> I'll then have to consider different approach to do what I want.
>>
>> Anyway, thanks again for your great help.
>>
>> Best regards
> You can install under guest vm qemu-guest-agent and get info from it.
>

Another alternative would be to use the libguestfs tools to examine the 
disk in read-only mode (be sure not to use read/write mode on an image 
that's currently in use by its guest!). This would *not* be efficient to 
do very frequently, but would be okay if done occasionally.




More information about the libvirt-users mailing list