WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How can get information about a domain

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-users] How can get information about a domain
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Tue, 26 Jun 2007 18:42:03 +0100
Cc: Arie Goldfeld <arik.goldfeld@xxxxxxxxx>, Xen-users@xxxxxxxxxxxxxxxxxxx, Mohammad Zohny <mohamad.zohny@xxxxxxxxx>
Delivery-date: Tue, 26 Jun 2007 11:28:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B02561E9D@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <817d8cc30706261008v55964438r47395caa3d4bf1aa@xxxxxxxxxxxxxx> <907625E08839C4409CE5768403633E0B02561E9D@xxxxxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Tue, Jun 26, 2007 at 07:13:39PM +0200, Petersson, Mats wrote:
> > You can use virsh dumpxml <domain_name>, then parse the 
> > output with a Perl xml module to extract the tags.

That gives you hardware info & resource info. There's also a specific set
of APIs for more efficiently getting resource info on its own if needed,
as well as XML describing the capapbilities of the host/hypervisor.

> Yes, you could. The only problem with this is that you'd be dependant on
> a third party tool on top of xen to get the information. 

<devils advocate>
As opposed to being locked into a specific implementation/vendor's API ;-)
</devils advocate>

> Of course, it also adds the benefit of being able to handle qemu and kvm
> guest - if that's of any importance. 

Well I think it is, since the number of virtualization technologies on
Linux (unfortunately?) seems to be increasing over time rather than 
consolidating - Xen, KVM, QEMU VirtualBox, VMWare, UserModeLinux to name 
but 6!

> But it's probably better to use libvirt directly for this purpose - but
> it depends on what software tools you want to use at the web interface
> production, I suppose. 

Indeed, there are APIs for libvirt in C, python, perl and OCaml, as well
as the shell tool. Using the APIs is recommeded since it gives you more
control over the process & greater efficiency.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>