summaryrefslogtreecommitdiffstats
path: root/inspector
Commit message (Collapse)AuthorAgeFilesLines
* Use grub entries to find Linux kernelsMatthew Booth2009-08-031-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds grub parsing to Lib.pm. It adds the following structure to $os: {boot} ->{configs} ->[0] ->{title} = "Fedora (2.6.29.6-213.fc11.i686.PAE)" ->{kernel} = \kernel ->{cmdline} = "ro root=/dev/mapper/vg_mbooth-lv_root rhgb" ->{initrd} = \initrd ->{default} = 0 The kernel and initrd entries are just references to their top level entries under kernels and initrd_modules respectively. It also changes the way Linux kernels and initrd are discovered. Instead of searching /lib/modules and /boot for files with matching names, kernels and initrds are scanned as they are discovered in grub.conf. Additionally, the following attributes are added to the kernels top level entry: * path The path to the kernel's vmlinuz file. * package The name of the package which installed the kernel. The xml output of virt-inspector is updated to reflect all of the above changes.
* inspector: Determine guest architecture.Richard Jones2009-07-291-2/+52
| | | | | | | This commit adds kernel and userspace architecture detection (fully for Linux, partially for Windows). It adds an architecture for each kernel detected, and an architecture for each root (ie. userspace) found.
* Split $os->{version} into $os->{major_version} and $os->{minor_version}Matthew Booth2009-07-211-2/+5
|
* virt-inspector --fish: Fix incorrect '-a' parameter (RHBZ#512709)Richard Jones2009-07-201-3/+8
| | | | | | | | | | | | | | | | | virt-inspector --fish dom virt-inspector --ro-fish dom Both of the above commands give incorrect results if run on a libvirt domain, eg: $ virt-inspector --ro-fish RHEL54Betax64 ==> --ro -a RHEL54Betax64 -m /dev/VolGroup00/LogVol00:/ -m /dev/sda1:/boot ^^^^^^^^^^^^^ This is because the current code just prints back the original @ARGV parameters. This patch fixes this by getting the image names instead.
* Replace 'distrofamily' with feature tagsMatthew Booth2009-07-201-2/+2
| | | | | | | | | | | | | It turns out that the distribution hierarchy is not as reliable concept as you might think. This patch removes distrofamily again. Instead of distrofamily, we will add feature tags. This patch adds 2 feature tags for Linux distributions: package_format (eg rpm/dpkg) package_management (eg rhn/yum/apt) This change is reflected in the output of virt-inspector
* Differentiate 'distro' and 'distrofamily' in Sys::Guestfs::LibMatthew Booth2009-07-171-1/+4
| | | | | | | | | | | | | | | Change distro in the output formally known as virt-inspector to reflect the actual distro. Possible values are now: fedora, rhel, centos, scientific, debian. Add new distrofamily entry which is one of: redhat, debian. Currently all distros except 'debian' are in the redhat family. This allows you to, for example, select a RHEL/CentOS/Scientific Linux specific kernel for installation rather than assuming they're all the same. Note this also changes the behaviour of virt-inspector --query. It will now only return rhel=yes for RHEL.
* Make Perl strings translatable using perl-libintl.Richard Jones2009-07-151-10/+11
| | | | | | | | | All Perl strings are now marked as translatable using __"string" or __x("string {placeholder}", placeholder => $_). Perl strings now get copied to the PO files. The po/POTFILES.in file is now updated automagically whenever we add new *.c, *.pl or *.pm files into the repository.
* virt-inspector: Ignore swap partitions marked as "none".Richard Jones2009-07-141-1/+1
|
* Documentation for virt-v2v.Richard Jones2009-07-111-0/+2
|
* Add --version options to virt-df, virt-inspector and virt-v2v.Richard Jones2009-07-101-0/+15
|
* Move 'use File::Temp' from virt-inspector program to Sys::Guestfs::Lib.Richard Jones2009-07-101-1/+0
|
* Remove virt-inspector --force option - it didn't do anything.Richard Jones2009-07-091-13/+0
|
* Move the inspection analysis code into Sys::Guestfs::Lib library.Richard Jones2009-07-091-601/+40
| | | | | | | | | | | Creates new functions: inspect_all_partitions inspect_partition inspect_operating_systems mount_operating_system inspect_in_detail Includes far more documentation for the process.
* Move 'resolve_windows_path' to Sys::Guestfs::Lib.Richard Jones2009-07-091-39/+15
|
* Move 'get_partitions' call into Sys::Guestfs::Lib.Richard Jones2009-07-091-17/+2
|
* Add Sys::Guestfs::Lib - useful functions for using libguestfs from Perl.Richard Jones2009-07-091-56/+9
| | | | | | | | | | This adds an extra Perl module called Sys::Guestfs::Lib which adds useful functions for using libguestfs from Perl. The intention is that common code shared between virt-inspector, virt-df and virt-v2v will move into this library. This patch also changes virt-inspector to use this library.
* Make it possible to build in a separate directoryMatthew Booth2009-07-031-3/+4
| | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* remove trailing blanksJim Meyering2009-07-031-1/+1
|
* Merge commit 'et/master'Matthew Booth2009-06-291-34/+11
|\
| * Add 'initrd-list' command to list contents of initrd images.Richard W.M. Jones2009-06-291-34/+11
| | | | | | | | | | | | Add 'initrd-list' command to list the files inside (new-style) initrd images. Update virt-inspector to use this instead of the less efficient download/unpack locally method.
* | Output the config filename containing a modprobe alias in XMLMatthew Booth2009-06-291-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change affects the XML output: /operatingsystems/operatingsystem/modprobealiases/alias/text() => /operatingsystems/operatingsystem/modprobealiases/alias/modulename/text() Additionally there are two new elements: /operatingsystems/operatingsystem/modprobealiases/alias/augeas /operatingsystems/operatingsystem/modprobealiases/alias/file These contain information about the location of the alias directive. /augeas is an augeas path. /file is the path of the file containing the directive.
* | Add a comment to device naming heuristicMatthew Booth2009-06-291-0/+6
|/
* Clean up XML outputMatthew Booth2009-06-271-62/+57
| | | | | | | | | | | This change makes XML use XML::Writer, and modifies the output in the following 2 ways: * /operatingsystems/operatingsystem/os is renamed to /operatingsystems/operatingsystem/name * /operatingsystems/kernels/version becomes an attribute of /operatingsystems/kernel for consistency with initrds
* Make virt-inspector look in more places for module aliasesMatthew Booth2009-06-251-5/+38
| | | | | | | | Specifically: /etc/conf.modules /etc/modules.conf /etc/modprobe.conf /etc/modprobe.d/*
* Add yaml output for virt-inspectorMatthew Booth2009-06-251-0/+15
|
* Make run-inspector-locally try to work out where it is installedMatthew Booth2009-06-251-9/+32
| | | | | | | This change means that you can run run-inspector-locally from any directory. You can also symlink to it and it'll do the right thing. This means you can put a symlink to run-inspectory-locally in your path called 'virt-inspector', and 'guestfish -i' will work.
* Allow guestfish -i / virt-inspector on live domains, in limited circumstances.Richard W.M. Jones2009-06-241-2/+8
|
* Fix detection of optional libvirt support in virt-inspector.Richard W.M. Jones2009-06-241-2/+4
|
* Fix libvirt integration in virt-inspector.Richard W.M. Jones2009-06-241-8/+5
|
* Added guestfish -i option to run virt-inspector.Richard W.M. Jones2009-06-241-6/+5
| | | | | | You can invoke guestfish with: guestfish -i libvirt-domain guestfish -i disk-image(s)
* New website, change et.redhat.com references to libguestfs.org1.0.43Richard Jones2009-06-091-1/+2
|
* Add support for decoding the Windows registry.Richard Jones2009-06-091-2/+181
|
* Parse /etc/modprobe.conf and initrd to give us a closer understandingRichard Jones2009-06-061-3/+140
| | | | of what the guest will actually boot on.
* Added query mode to virt-inspector.Richard Jones2009-06-061-21/+250
|
* Modules are *.o in Linux 2.4 kernels.Richard Jones2009-06-051-1/+1
|
* Add 'add_drive_ro' call. Fix up documentation. Plus a couple of minor code ↵Richard Jones2009-06-021-1/+1
| | | | improvements in the tests.
* Move the appliance and build scripts into new appliance/ subdirectory.Richard W.M. Jones2009-05-281-1/+1
|
* virt-inspector now lists installed modules.Richard Jones2009-05-191-16/+19
|
* Inspect kernels for Linux OSes.Richard Jones2009-05-191-6/+53
|
* List installed applications (NOT WORKING).Richard Jones2009-05-081-5/+25
|
* Generated code to support previous 2 commits.Richard Jones2009-05-081-1/+28
|
* Fix umount_all command so it unmounts filesystems in the correct order.Richard Jones2009-04-301-6/+0
|
* build: don't tell "make clean" to remove my '~' backup filesJim Meyering2009-04-301-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi Rich, automake's policy on what to remove via "make clean" is reasonable: if running build rules creates it, then "make clean" can and should remove it. However, even if build rules happen to create backup files, please remove only the specific ones they can create, not all of the ones in a directory. Just in case someone relies on those and expect them to hang around... >From 1e8be391ac17b4ddcf9671e8413d2660844e6993 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Thu, 30 Apr 2009 15:47:52 +0200 Subject: [PATCH] build: don't tell "make clean" to remove my '~' backup files * Makefile.am (CLEANFILES): Don't remove '~' backup files. * daemon/Makefile.am: Ditto. * examples/Makefile.am: Ditto. * fish/Makefile.am: Ditto. * images/Makefile.am: Ditto. * inspector/Makefile.am: Ditto. * java/Makefile.am: Ditto. * ocaml/Makefile.am: Ditto. * ocaml/examples/Makefile.am: Ditto. * perl/Makefile.am: Ditto. * python/Makefile.am: Ditto. * ruby/Makefile.am: Ditto. * src/Makefile.am: Ditto.
* Build virt-inspector HTML for the website.Richard Jones2009-04-281-0/+10
|
* Prepare for 1.0.15.1.0.15Richard Jones2009-04-281-0/+1
|
* XML output.Richard Jones2009-04-281-5/+78
|
* Perl output.Richard Jones2009-04-281-1/+38
|
* --fish and --ro-fish options working.Richard Jones2009-04-281-1/+73
|
* Added virt-inspector program from virt-v2v.Richard Jones2009-04-283-0/+633