LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 03-03-2012, 01:21 AM   #1
Prince_Pangeni
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Question 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
 
Old 03-03-2012, 03:12 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
If you're planning to write some code yourself then try this api: http://libvirt.org/
 
Old 03-03-2012, 04:06 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 850

Rep: Reputation: 91
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Host Fedora14, Windows 7 is running as Virtualbox guest- Mic is not working on Guest mwaheed Linux - Virtualization and Cloud 1 10-20-2011 01:51 PM
Convert guest logical address to host physical address hmd429 Linux - Virtualization and Cloud 1 10-07-2011 04:44 AM
Convert guest logical address to host physical address hmd429 Linux - Kernel 0 10-07-2011 03:35 AM
Problem installing guest additions on virtualbox Centos 5.5 64bit guest eljay313 Linux - Virtualization and Cloud 1 09-03-2010 09:22 AM


All times are GMT -5. The time now is 02:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration