[PATCH INCOMPLETE] Add ability to inspect install disks and live CDs.
This patch is not complete yet because it needs to support Fedora, RHEL and Windows CDs. Some examples of the current output: $ virt-inspector ubuntu-10.10-desktop-amd64.iso <?xml version="1.0"?> <operatingsystems> <operatingsystem> <root>/dev/sda</root> <name>linux</name> <distro>ubuntu</distro> <product_name>Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)</product_name> <major_version>10</major_version> <minor_version>10</minor_version> <format>installer</format> <live/> <mountpoints> <mountpoint dev="/dev/sda">/</mountpoint> </mountpoints> <filesystems> <filesystem dev="/dev/sda"> <type>iso9660</type> <label>Ubuntu 10.10 amd64</label> </filesystem> </filesystems> <applications/> </operatingsystem> </operatingsystems> $ virt-inspector debian-505-amd64-netinst.iso <?xml version="1.0"?> <operatingsystems> <operatingsystem> <root>/dev/sda</root> <name>linux</name> <distro>debian</distro> <product_name>Debian GNU/Linux 5.0.5 "Lenny" - Official amd64 NETINST Binary-1 20100627-10:37</product_name> <major_version>5</major_version> <minor_version>0</minor_version> <format>installer</format> <netinst/> <mountpoints> <mountpoint dev="/dev/sda">/</mountpoint> </mountpoints> <filesystems> <filesystem dev="/dev/sda"> <type>iso9660</type> <label>Debian 5.0.5 amd64 Bin-1</label> </filesystem> </filesystems> <applications/> </operatingsystem> </operatingsystems> Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.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
participants (1)
-
Richard W.M. Jones