[Libguestfs] [PATCH 2/2] RHEV: Populate guest OS type correctly

Richard W.M. Jones rjones at redhat.com
Tue Jun 8 15:15:52 UTC 2010


On Tue, Jun 08, 2010 at 10:50:05AM +0100, Matthew Booth wrote:
> +#  RHEL5
> +#  RHEL5x64
> +#   os = linux
> +#   distro = rhel
> +#   major_version = 5
[...]
> +#  WindowsXP
> +#   os = windows
> +#   root->os_major_version = 5
> +#   root->os_minor_version = 1

While it's not especially important, I don't understand why you need
to get the os_major_version field from the root node.  It *should* be
copied into the os node, even on Windows.  See:

http://git.annexia.org/?p=libguestfs.git;a=blob;f=perl/lib/Sys/Guestfs/Lib.pm;h=128f7c9fa26b39d71f07544172e42b1d95171538;hb=HEAD#l1224

Maybe this doesn't happen for some reason for Windows guests.  If so,
please let me know.

Anyway, this patch fixes a serious bug in RHEV-M importing, so ACK.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list