summaryrefslogtreecommitdiffstats
path: root/inspector
Commit message (Collapse)AuthorAgeFilesLines
* inspector: Refresh the virt-inspector(1) manpage.Richard W.M. Jones2011-04-181-4/+56
| | | | (cherry picked from commit 34d9fed24ad6a2d2e13bb817820e31373f6756e1)
* Remove ad-hoc run*locally scripts, replace with './run'Richard W.M. Jones2011-04-182-56/+5
| | | | | | Remove all the run*locally scripts and replace with a single top level ./run shell script. (cherry picked from commit 5790f5bfafb12cc2ed9365461bf66e0fdfde7150)
* inspector: Handle write failures when creating example-*.xml.Richard W.M. Jones2011-04-181-4/+12
| | | | (cherry picked from commit 0108d7861d4cc9a1f0d87d89080d1be7750e54b5)
* inspector: Include <hostname> in output.Richard W.M. Jones2011-04-186-0/+13
| | | | (cherry picked from commit 36d3a4ce53317b104d48b60c9fe1ed679065d1d4)
* inspect: Split code into separate files.Richard W.M. Jones2011-04-183-0/+3
| | | | | | | | | | | | | | | | | | The src/inspect.c file had grown rather large -- 3,500 lines. Split it across several files according to function. This is just moving code. After the split the files are more evenly divided: 536 src/inspect_apps.c 766 src/inspect.c 537 src/inspect_fs.c 404 src/inspect_fs_cd.c 785 src/inspect_fs_unix.c 535 src/inspect_fs_windows.c 3563 total (cherry picked from commit 3336b5448f12c9eb25bf7a0cecda1315c4cf07ea)
* Include string.h and libintl.h, as needed.Jim Meyering2011-04-181-0/+2
| | | | | | | | | | * df/df.c: As above. * df/main.c: As above. * df/output.c: As above. * fuse/guestmount.c: As above. * inspector/virt-inspector.c: As above. * rescue/virt-rescue.c: As above. (cherry picked from commit 6740028b333840eec5e8e46e8512f8155728b037)
* New API: inspect-get-drive-mappingsRichard W.M. Jones2011-04-053-0/+70
| | | | | | | | | | | | This returns the drive mappings from the Windows Registry. virt-inspector displays the drive mappings, giving output similar to this: <drive_mappings> <drive_mapping name="C">/dev/sda2</drive_mapping> <drive_mapping name="E">/dev/sdb1</drive_mapping> </drive_mappings>
* New API: inspect-get-windows-current-control-setRichard W.M. Jones2011-04-053-1/+10
| | | | | | | | | | | | | | This returns the actual registry key corresponding to CurrentControlSet (eg. it might be "ControlSet001"). Previously the inspection code was hard-coding ControlSet001. Now we use the correct control set, and also make it available to callers through the API. This commit also updates the virt-dhcp-address example so it uses this new API. virt-inspector displays the current control set when available.
* inspect: Detect 32 bit applications running on WOW64 emulator (RHBZ#692545).Richard W.M. Jones2011-03-311-0/+7
| | | | | | | These applications are located along a different Registry path. See http://support.microsoft.com/kb/896459 for all the details. Thanks Jinxin Zheng for finding the bug and the solution.
* Add /etc/libguestfs-tools.conf configuration file.Richard W.M. Jones2011-03-311-1/+4
| | | | | This allows the default for --ro or --rw to be controlled for the three tools guestfish, guestmount and virt-rescue.
* New API: guestfs_inspect_get_product_variantRichard W.M. Jones2011-03-234-2/+13
| | | | | | | | | | This returns a product variant for inspected operating systems. In practice this is a useful way to distinguish between consumer and enterprise/server versions of Windows that otherwise have the same version number. Notes: Labels: feature
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-071-0/+1
| | | | Fix required by gcc 4.6.0.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-031-0/+2
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* Add ability to inspect install disks and live CDs.Richard W.M. Jones2011-01-1513-3/+276
| | | | | For examples of the virt-inspector output, see the additional inspector/example-*.xml files in this commit.
* inspector: Apps in Windows VMs are now listed - update documentation.Richard W.M. Jones2011-01-021-3/+1
|
* inspector: Remove some unused local variables.Richard W.M. Jones2010-12-091-2/+0
|
* Remove ability to build static distribution.Richard W.M. Jones2010-12-061-6/+0
| | | | | | We are now going to build binaries for each distribution so there is no need to build the quasi-distro-independent static binaries any more.
* build: Centralize all POD manipulation in 'podwrapper.sh' script.Richard W.M. Jones2010-11-241-18/+11
|
* inspector: Make whole disk paths canonical (RHBZ#655554).Richard W.M. Jones2010-11-231-1/+1
|
* inspector: Fix documentation of -x option in usage.Richard W.M. Jones2010-11-221-1/+1
| | | | This updates commit c5cb65f0aac3298e634b183f73fda6644a158018.
* inspector: Fix rule to build HTML file.Richard W.M. Jones2010-11-191-1/+1
| | | | This updates commit c5cb65f0aac3298e634b183f73fda6644a158018.
* inspector: Rewrite virt-inspector in C.Richard W.M. Jones2010-11-199-509/+1011
|
* inspector: Replace old examples with ones derived from phony images.Richard W.M. Jones2010-11-1611-19145/+203
|
* inspector: Replace code for listing applications with new core API.Richard W.M. Jones2010-11-155-1699/+1882
|
* New APIs: inspect-get-package-format, inspect-get-package-management.Richard Jones2010-11-121-49/+15
| | | | This APIs reimplement some parts of virt-inspector in C.
* inspect: Add support for MeeGo.stable-1.6Richard W.M. Jones2010-11-021-1/+1
|
* inspect: Add support for Ubuntu.Richard Jones2010-10-291-1/+1
|
* inspect: Add detection of Gentoo.Richard Jones2010-10-291-0/+4
|
* inspect: Add detection of Arch Linux.Richard Jones2010-10-291-1/+5
|
* inspect: Add detection of Pardus.Richard Jones2010-10-291-0/+4
|
* inspector: Sort <filesystems> section.Richard Jones2010-10-291-0/+1
|
* inspector: List Debian packages.Richard W.M. Jones2010-10-284-5/+10223
| | | | | List Debian packages by downloading and parsing the file /var/lib/dpkg/status.
* inspector: Introductory documentation for XML format.Richard W.M. Jones2010-10-281-0/+130
|
* inspector: Debian package format 'deb' instead of 'dpkg'.Richard W.M. Jones2010-10-283-3/+3
|
* inspector: Return canonical block device paths in XML.Richard W.M. Jones2010-10-287-22/+36
|
* inspector: Rewrite virt-inspector (RHBZ#642930).Richard W.M. Jones2010-10-289-24234/+3095
| | | | | | | | | | | | Rewrite virt-inspector: - remove old and unsupportable features - use the C inspection API - don't run programs from the guest The RNG has been updated to reflect the new XML-only output. The new example files show the new XML output.
* tools: Specify format of disks (RHBZ#642934,CVE-2010-3851).Richard W.M. Jones2010-10-221-3/+26
| | | | | | | | | | Sys::Guestfs::Lib is changed in two ways: firstly we take the format string from libvirt and pass it to add_drive_opts. Secondly we allow an extra format => parameter to open_guest which allows the format to be specified for disk images. All the tools are changed to add an extra --format parameter allowing the format to be specified for direct disk images.
* inspector: Add comment about why --fish option implies write mode.Richard W.M. Jones2010-10-221-0/+8
|
* tools: Add section describing quoting libvirt domain names to docs (RHBZ#643624)Richard W.M. Jones2010-10-181-0/+7
|
* inspector: Improve error message when YAML::Any library is not installed.Richard Jones2010-07-021-1/+1
|
* guestfish -i and virt-inspector work on filenames containing spaces ↵Richard Jones2010-05-131-2/+7
| | | | | | | | | | | | | | (RHBZ#507810). This commit fixes a long-standing bug which prevented guestfish -i and virt-inspector from working on disk images which had a space in the filename (or other unsafe characters). It works by ensuring that the strings passed between guestfish -i and virt-inspector are quoted correctly in both directions. Note that this commit adds a dependency from virt-inspector to the perl module String::ShellQuote. We have previously used this module in virt-make-fs.
* po: Include strings from Perl programs in the PO files (RHBZ#559963).Richard Jones2010-05-121-0/+9
| | | | | | | | | xgettext will only recognize '*.pl' as being a Perl file (otherwise it treats it as a C file and does not correctly find any strings in it). This commit also fixes two actual bugs that xgettext found in the strings in our Perl programs.
* Documentation updates.Richard Jones2010-04-111-2/+2
| | | | | | | Fix copyright years. Fix URLs to point to new PRC site. Make sure guestfish(1) and guestfs(3) manpages reference the current list of tools.
* inspector: Read information about Windows guests from the Registry.Richard Jones2010-03-082-14/+11
| | | | | | | | | | | | | | This commit changes substantially the way that we get information about Windows guests. We now use the Windows Registry to get information such as the version, product name and much else. This uses Win::Hivex (ie. the hivex library). 'reged' is no longer needed or used. As an incidental change, this also tries harder to search for %systemroot%, in the case when we cannot find boot.ini (ie. Windows Vista and more recent). This ensures we can get more detail from those versions of Windows.
* inspector: Add product_name field to output.Richard Jones2010-03-085-7144/+12140
| | | | | | This is a free text string containing the "product name" of the OS. It's mainly useful for Windows guests, and a forthcoming patch will get this field from the Windows Registry.
* inspector: Don't crash if $os->{kernels} does not exist.Richard Jones2010-03-081-7/+9
| | | | ie. on Windows.
* RHEL5: Keep old automake happy by defining docdirRichard W.M. Jones2010-02-051-0/+1
|
* inspector: Update example XML and RNG schema.Richard Jones2010-01-063-4411/+13948
| | | | This updates commit a59dcdbd1b0a28c960e3792165a13f2daf4f6c35.
* inspector: Make RPM application data more specific (RHBZ#552718).Richard Jones2010-01-051-0/+3
| | | | | | | List applications with epoch, release and arch data. If epoch is 0, don't store this as an empty string, but as undefined, and don't output empty <epoch/> element in the XML.
* Remove separate inspector_generator.ml, combine this with generator.ml.Richard Jones2009-12-312-648/+2
| | | | | | | | | | | This commit combines the previously separate "inspector_generator.ml" program which generated bindings for virt-inspector. Having two separate programs caused no end of troubles for developers, so we now combine them into a single program. NOTE: OCaml xml-light is now *required* in order to rebuild the generated code.