Thanks everyone. It's time to go home now. I will finish reading the thread and respond later. <div><br></div><div>Jake<br><br><div class="gmail_quote">On Wed, Jan 12, 2011 at 4:09 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Jan 12, 2011 at 03:16:00PM -0700, Eric Blake wrote:<br>
> It may be worth adding an optional XML element that records a string to<br>
> use for the guestOS argument.  In fact, the libguestfs tool suite<br>
> already has some pretty decent ways to guess the OS of an arbitrary VM<br>
> guest (even when using other hypervisors, like qemu-kvm, which don't<br>
> have any counterpart of a guestOS argument in native format), but it<br>
> takes several seconds to figure that out per domain.  libguestfs would<br>
> certainly be pleased with a way to annotate guestOS details into an XML<br>
> description, rather than having to relearn it every time.<br>
<br>
</div>Well libguestfs itself likely needs to inspect the disk every time<br>
(eg. the operating system might have been upgraded since last time).<br>
Also we don't necessarily have libvirt around - we can be asked to<br>
inspect a raw disk image.<br>
<br>
However I know that there was someone asking me if the inspection data<br>
could be cached in the libvirt XML so that they could query it out<br>
quickly later on.  Unfortunately I forget now who asked me this and<br>
which project wanted it (maybe Chris Lalancette??).<br>
<div class="im"><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
</div>virt-top is 'top' for virtual machines.  Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br>
<a href="http://et.redhat.com/~rjones/virt-top" target="_blank">http://et.redhat.com/~rjones/virt-top</a><br>
</blockquote></div><br></div>