[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.