LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Guest to Host message passing - guest's memory usage statistics & guest's IP address (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/guest-to-host-message-passing-guests-memory-usage-statistics-and-guests-ip-address-932447/)

Prince_Pangeni 03-03-2012 12:21 AM

Guest to Host message passing - guest's memory usage statistics & guest's IP address
 
Hi all,
I am new to KVM. I am using KVM for my M Tech final year project. In my project I need to know VM's IP address and memory usage from host OS itself (without SSHing into the VMs).
For VM's IP address fetching, I used "nmap -an"'s output. But, nmap -an output doesn't work every time. It doesn't show VM in its result in some occasion (even if vm is running).
So please help me out with the same. Is there any mechanism with which we can obtain memory usage per vm and vm's ip address from the host os itself.
Also, is there any procedure with which we can communicate some information from guest to host os? If exist, how to do so?
Thanks in advance

Prince

kbp 03-03-2012 02:12 AM

If you're planning to write some code yourself then try this api: http://libvirt.org/

dyasny 03-03-2012 03:06 AM

You need to run an agent int the guest OS, that would be passing the required information to the host OS. there are different projects for this, as well as ready agents that come with RHEV.

This is one example: http://spice-space.org/page/Whiteboard/AgentProtocol
This is another: http://wiki.qemu.org/Features/QAPI/GuestAgent


All times are GMT -5. The time now is 12:18 AM.