The final version of this patch. Example output:
$ ./inspector/run-inspector-locally --query CentOS5x32
windows=no
linux=yes
rhel=no
fedora=no
debian=no
fullvirt=yes
xen_domU_kernel=no
xen_pv_drivers=yes
virtio_drivers=yes
kernel_arch=i386
userspace_arch=i386
$ ./inspector/run-inspector-locally --query Debian5x64
unknown filesystem /dev/hdc
windows=no
linux=yes
rhel=no
fedora=no
debian=yes
fullvirt=yes
xen_domU_kernel=no
xen_pv_drivers=no
virtio_drivers=yes
kernel_arch=x86_64
userspace_arch=x86_64
$ ./inspector/run-inspector-locally --query Win2003x32
windows=yes
linux=no
rhel=no
fedora=no
debian=no
fullvirt=no
xen_domU_kernel=no
xen_pv_drivers=no
virtio_drivers=no
userspace_arch=i386
$ ./inspector/run-inspector-locally --xml F10x32
<operatingsystems>
<operatingsystem>
<name>linux</name>
<distro>fedora</distro>
<arch>i386</arch>
<major_version>10</major_version>
<package_format>rpm</package_format>
<package_management>yum</package_management>
<root>/dev/VolGroup00/LogVol00</root>
[...]
Rich.
--
Richard Jones, Emerging Technologies, Red Hat
http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://et.redhat.com/~rjones/libguestfs/
See what it can do:
http://et.redhat.com/~rjones/libguestfs/recipes.html