FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 08-06-2008, 09:00 PM
"Richard W.M. Jones"
 
Default virt-mem tools version 0.2.8 released

I'm pleased to announce the latest release of the virt-mem tools,
version 0.2.8.

These are tools for system administrators which let you find things
like kernel messages, process lists and network information of your
guests.

For example:

virt-uname
'uname' command, shows OS version, architecture, etc.
virt-dmesg
'dmesg' command, shows kernel messages
virt-ps
'ps' command, shows process list

Nothing needs to be installed in the guest for this to work, and the
tools are specifically designed to allow easy scripting and
integration with databases and monitoring systems.

Source is available from the web page here:

http://et.redhat.com/~rjones/virt-mem/

The latest version (0.2.8) reworks the internals substantially so that
we have direct access to basically any kernel structure, and this will
allow us to quickly add the remaining features that people have asked
for (memory usage information, lists of network interfaces and so on).

As usual, patches, feedback, suggestions etc. are very welcome!

Binaries will be available in Fedora 10 (Rawhide) at some point soon.

Rich.

--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 08-07-2008, 02:06 PM
"Richard W.M. Jones"
 
Default virt-mem tools version 0.2.8 released

On Thu, Aug 07, 2008 at 11:47:39AM +0100, Daniel P. Berrange wrote:
> On Thu, Aug 07, 2008 at 07:40:58PM +0900, Jun Koi wrote:
> > One of the problem is that these tools work via libvirt, so on a VM is
> > not managed by libvirt, these tools no longer work.
>
> That's not a problem - that's a reason to use libvirt :-) It allows the
> same tools to work whether using Xen, QEMU, KVM or any other full machine
> virtualization suported by libvirt, rather than being tied to one particular
> hypervisor. Not to mention ability to run them remotely, with authentication
> and encryption, etc

We also support running the tools from memory images which you can
capture using the QEMU "memsave" command (see the '-t' option). No
libvirt required for that, _but_ to see any interesting stuff you'd
need to capture the entire guest memory which could obviously be quite
large.

You could do 'virt-mem capture' which captures just the bits of memory
that contain interesting data, and that reduces the amount of data you
need to capture substantially. Unfortunately I broke 'virt-mem
capture' in the latest release by accident, and in any case it
requires libvirt to do the capturing.

I think the message here is, install libvirt & be happy :-)

Rich.

--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 08-10-2008, 11:07 AM
"Richard W.M. Jones"
 
Default virt-mem tools version 0.2.8 released

On Sun, Aug 10, 2008 at 02:28:27AM +0100, Jamie Lokier wrote:
> Javier Guerra wrote:
> > On Thu, Aug 7, 2008 at 8:06 AM, Richard W.M. Jones <rjones@redhat.com> wrote:
> > > I think the message here is, install libvirt & be happy :-)
> >
> > nice as this tool sounds, i would need far more than this to make me
> > switch from a simple, easily scriptable command-line to a generic,
> > 'lowest common', solution like libvirt.
> >
> > of course, i hope it keeps getting better. who knows? maybe in a year
> > or so it would be comparable to the CLI.
>
> Regrettably I agree for the moment.
>
> I ended up writing a Perl management script for my KVM VMs because
> libvirt was just too muddled and limited for my needs, and because the
> config file format confused me, didn't handle everything I needed, and
> I didn't find clear documentation on it.

The configuration format is documented here:

http://libvirt.org/formatdomain.html

You can also print out the configuration from any existing guest using
'virsh dumpxml <domain>' if you need examples.

I'm intrigued by what your Perl management script needed that isn't
exposed by libvirt. Libvirt deliberately doesn't expose the full
feature set of any one hypervisor which it supports, but instead
exposes common features. The reason for this is so that you can
switch hypervisor technologies later on.

Clearly, we all love KVM, but people have different needs from
hypervisors and KVM won't fit all of them. For example, lightweight
container-based approaches are better for some virtualization problems
(particularly where you really need to run 100s or 1000s of guests on
a single machine), and people will still be running Xen and VMWare for
many years to come.

[...]
> What would be nicer is a VM management protocol build in to QEMU, KVM
> and XEN, which is a bit like the monitor, but supports multiple client
> connections and overlapping operations (where reasonable), and is a
> bit more structured, so e.g. you can get the state of anything whose
> state you can set, you can wait for events, etc. The somewhat
> object-based config file work that's been discussed not long ago would
> be a good thing to structure it around.

This is what libvirt gives you (and lots more, eg. secure remote
access to hypervisors, bindings to Perl & many other languages, etc.).
Can you be more specfic about what you couldn't do with libvirt?

Rich.

--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 08-10-2008, 03:04 PM
"Richard W.M. Jones"
 
Default virt-mem tools version 0.2.8 released

On Sun, Aug 10, 2008 at 11:07:32AM +0100, Richard W.M. Jones wrote:
> Libvirt deliberately doesn't expose the full
> feature set of any one hypervisor which it supports, but instead
> exposes common features.

Judging by one private reply I got, I don't want this to be
misinterpreted. Libvirt DOESN'T expose the minimum subset of all
hypervisors (because that would be very small and useless). It
exposes general virtualization features, even if those features only
apply to one or two hypervisors. For example:

migration - only works with Xen & KVM, but could be applicable
to other hypervisors in the future when we support them and they
support migration

scheduler tuning - only for Xen, but generally applicable

adding/dropping interfaces from live guests - a general feature
supported by many but not all of the backends

Rich.

--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 60 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 01:01 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org