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

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


  • To: Xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Mohammad Zohny" <mohamad.zohny@xxxxxxxxx>
  • Date: Mon, 2 Jul 2007 11:11:48 +0300
  • Delivery-date: Mon, 02 Jul 2007 01:09:57 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jq0kwJLRsI43/TwfOvT+rKCsMop7THBvjf4n+9if2hxTjtCow4YbygJHP2LSHJv5XWTCgDKvHnqpnttYE2HTqrYXVWHn8zMbWxkWnlGf61qfx7D7Z+1XvQuIx+qKeEdBCK4Q07Iyh5RRX/ziY4Cap3Sy/p3JMyGWGrZ9pDh0Xgs=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Thanks for all,
I used virsh to display cpu , memory information.
is there any other method to display network interfaces and belong to which bridge, and
also display hard disks and their sizes?



On 6/26/07, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
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®.