[virt-tools-list] [PATCH] Add a 'class' attribute to OS

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Jun 29 18:41:24 UTC 2011


On Wed, Jun 29, 2011 at 7:27 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
> On Wed, Jun 29, 2011 at 09:06:13AM -0600, Eric Blake wrote:
>> On 06/29/2011 09:00 AM, Daniel P. Berrange wrote:
>> > On Wed, Jun 29, 2011 at 05:55:11PM +0300, Zeeshan Ali (Khattak) wrote:
>> >> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
>> >>
>> >> This is the generic family this OS belongs to, for example Linux, Windows,
>> >> Solaris, UNIX etc.
>>
>> >> @@ -35,6 +38,7 @@
>> >>      <short-id>openbsd4</short-id>
>> >>      <name>OpenBSD 4</name>
>> >>      <version>4.9</version>
>> >> +    <family>UNIX</family>
>> >>      <vendor>OpenBSD Project</vendor>
>> >>
>> >>      <devices>
>> >
>> > Perhaps we should let BSD have a family of 'BSD' ?

  Makes sense but currently my objective is mainly to satisfy
virtinst's needs. I can Add a FIXME cmment there for now though.

>> And if we do that, would we classify MacOS as BSD?
>>
>> Also, is MirBSD in the list of known OS yet?  I have successfully
>> installed that BSD flavor in a VM in the past.
>
> Eric's point above is a good one.  What is "Family"?  It sounds like
> it is the historical derivation of the OS, but that's not very useful
> except to Unix history geeks.

  I am not adding this information just for the fun of it. Each patch
to libosinfo from me you see is something that virtinst already uses.

> How about what *kernel* does this run - ie. Linux, Windows, FreeBSD,
> Darwin(?), ...  That would actually be a useful thing to know because
> it affects whether virtio drivers are available,

  You don't want to derive that information from this attribute as
libosinfo provides APIs to find that information independently.

> whether we can run
> crash or virt-dmesg on it, and whether the hypervisor has been tested
> against it.

  Didn't get the crash part but the latter is also an information you
collect using libosinfo APIs, i-e don't guess/derive from 'family' or
'kernel'.

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




More information about the virt-tools-list mailing list