Commit Graph

9045 Commits

Author SHA1 Message Date
Richard W.M. Jones
6b48977cb7 Version 1.33.26. 1.33.26 2016-05-03 14:49:59 +01:00
Richard W.M. Jones
b1c945195c po: Use xgettext --from-code=utf-8
Since moving boot-benchmark-range.pl out from under a tests/
subdirectory, it is now being added to po/POTFILES.  This causes the
following error:

/usr/bin/xgettext: Non-ASCII string at utils/boot-benchmark/boot-benchmark-range.pl:205.
                   Please specify the source encoding through --from-code.

Add --from-code parameter as instructed.
2016-05-03 14:39:03 +01:00
Richard W.M. Jones
5bbf8f655d Version 1.33.25. 1.33.25 2016-05-03 14:13:01 +01:00
Pino Toscano
ae3224cf8a customize: remove "core" from description of --update
--update invokes a distribution update, updating all the installed
packages and not just some "core" ones.
2016-05-03 14:25:46 +02:00
Pino Toscano
e77faf7f61 mllib: add "internal" to the description of --{short,long}-options
The Arg module of OCaml does not support hiding options from the --help
output: hence, mark --short-options and --long-options as internal
options, since we need them only for the bash completion scripts.
2016-05-03 14:25:46 +02:00
Richard W.M. Jones
a3bc0e13f6 build: Don't use noinst_MANS.
Automake doesn't run noinst_MANS rules at all, likely a bug.

Use noinst_DATA instead which is always run during the build.
2016-05-03 13:21:34 +01:00
Richard W.M. Jones
98b28b15c6 utils/boot-analysis, utils/boot-benchmark: Add manual pages. 2016-05-03 13:21:34 +01:00
Richard W.M. Jones
3b581a727c utils: Move tests/qemu/ boot-analysis etc tools to new utils top level directory.
Create a new top level directory called 'utils' and move the
following programs there:

  tests/qemu/boot-analysis -> utils/boot-analysis/
  tests/qemu/boot-benchmark -> utils/boot-benchmark/
  tests/qemu/qemu-boot -> utils/qemu-boot/
  tests/qemu/qemu-speed-test -> utils/qemu-speed-test/

Also we only build the boot-analysis program on x86-64 and aarch64,
since it requires custom porting to each architecture.
2016-05-03 13:21:34 +01:00
Richard W.M. Jones
c34995c6b3 launch: Add cryptomgr.notests to the appliance command line.
Save 28ms by not running the crypto self-tests when Linux boots.
2016-05-03 13:21:34 +01:00
Pino Toscano
1f5054daa8 php: Fix the tests yet again.
Move unsetting of LIBGUESTFS_DEBUG & LIBGUESTFS_TRACE into the
php-for-tests.sh wrapper.

Fixes commit 0d69eab98f.
2016-05-03 13:21:34 +01:00
Richard W.M. Jones
915f6e299e Revert "php: Fix the tests ... again."
This reverts commit 0d69eab98f.
2016-05-03 13:21:34 +01:00
Pino Toscano
4760d80c93 appliance: move btrfs-progs as common package
Recently Debian switched to btrfs-progs, so almost all the distributions
(except openSUSE) have btrfs-progs which is then moved as common
package.
The old btrfs-tools name is left there, to support Debian Jessie and
older, and Ubuntu Xenial and older.
2016-05-03 13:03:45 +02:00
Richard W.M. Jones
51cea56d1c Version 1.33.24. 1.33.24 2016-04-30 17:20:39 +01:00
Richard W.M. Jones
9cd00805b0 tests/qemu: boot-analysis: Display libvirt as distinct source.
Don't display libvirt events as '[library]', but as '[libvirt]'.
2016-04-30 16:42:24 +01:00
Richard W.M. Jones
2fd05203e4 tests/qemu: boot-analysis: Dump pass data times in ms, with diffs.
When (in --verbose mode) we dump the pass data, dump the times in
milliseconds (instead of nanoseconds) so they are consistent with
other output.  Also dump the time difference from the previous event.

Useful for detailed debugging/analysis of problems.
2016-04-30 16:02:30 +01:00
Richard W.M. Jones
66447f4e29 aarch64: Use AAVMF_CODE.verbose.fd when debugging is enabled.
When we are debugging use the verbose (debug messages enabled) version
of the AAVMF (UEFI) firmware.  This is useful for diagnosing what is
causing failures to boot and what inside UEFI is causing slow booting.
2016-04-30 15:49:58 +01:00
Richard W.M. Jones
f7381470bb v2v: Add unit tests of the Utils UEFI functions. 2016-04-30 15:41:26 +01:00
Richard W.M. Jones
5253d2367b utils: Use struct for UEFI firmware.
Use an array of structs for the UEFI firmware instead of an array of
strings.

This change is hopefully just refactoring and there is no functional
difference.
2016-04-30 15:17:08 +01:00
Richard W.M. Jones
03e2d00036 appliance: Add pciutils to the appliance.
This adds the 'lspci' program, useful for debugging
appliance / qemu problems.
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
d76129aa0c launch: Don't initialize all UARTs (serial ports).
This doesn't save very much time, perhaps under 1ms, but it avoids
some useless scanning.
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
2b9f58f87b launch: libvirt: Add a /dev/urandom-based virtio-rng device to the appliance.
It is safe to use /dev/urandom to seed the guest.  In libvirt 1.3.4
this silly restriction has been lifted.

This restores commit b2c845333f.
See also commit 9423c16607.

Thanks: Cole Robinson for doing the libvirt implementation.
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
e080e5909e launch: libvirt: Add libvirt version to the data struct.
This commit just allows us to make XML features conditional on the
libvirt version, but has no other functional change.
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
29cb8d60d2 launch: Disable USB in the appliance.
Only saves a tiny amount of time, but as we don't use USB
we might as well disable it.
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
1beab198b9 ocaml: Add LDFLAGS to mlguestfs.cma/mlguestfs.cmxa.
Encode the build LDFLAGS into the OCaml library.
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
b2464e07de v2v: Add a slow test to ensure trimming doesn't regress (RHBZ#1264332). 2016-04-30 12:49:28 +01:00
Richard W.M. Jones
5ec42a6238 v2v: OVF: Better mapping for inspection data to vmtype.
The old mapping code was directly copied from old virt-v2v, translated
from Perl to OCaml.

The new mapping code does a few things more accurately:

 - Use the i_product_variant field (Windows InstallationType) if available.

 - Simplify rules, so there is only one special case needed for RHEL 3/4.

 - Don't assume Fedora == Desktop.

 - Don't assume all later Windows variants are server.

 - Works for Windows > 7.
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
3a6636fc05 v2v: Remove the --vmtype option.
It will now print a warning but is otherwise ignored:

  virt-v2v: warning: the --vmtype option has been removed and now does
  nothing

See:

  https://www.redhat.com/archives/libguestfs/2016-April/msg00178.html
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
b81e8ef162 v2v: Remove --no-trim option.
It will now print a warning but is otherwise ignored:

  virt-v2v: warning: the --no-trim option has been removed and now does
  nothing

See:

  https://www.redhat.com/archives/libguestfs/2016-April/msg00178.html
2016-04-30 12:49:28 +01:00
Richard W.M. Jones
d5c40262fa tests/qemu: boot-analysis: Port this program to aarch64 (using UEFI). 2016-04-30 12:45:54 +01:00
Richard W.M. Jones
606f158606 tests/qemu: boot-analysis: Add analysis of initcalls before entering userspace. 2016-04-28 13:35:27 +01:00
Richard W.M. Jones
63915b69f1 Version 1.33.23. 1.33.23 2016-04-24 19:21:34 +01:00
Richard W.M. Jones
7f572434f0 tests: Add tests/qemu/boot-benchmark-range.pl to EXTRA_DIST.
Updates commit 8299d7087a.
2016-04-24 19:21:34 +01:00
Richard W.M. Jones
90aacea2ac ja: Fix unclosed L<> which breaks POD.
Since commit b23e149774, we have been
strict about POD errors.  An error in the Japanese translation caused
"L</guestfish" (ie. an unclosed L<>) to appear in the POD.

This commit fixes the problem, but when building you may need to do:

  rm po-docs/ja/guestfish.pod
  rm po-docs/podfiles; make -C po-docs update-po

in order to update the broken po-docs/ja/guestfish.pod file.

Unfortunately I have been unable to upload this change back to the
Zanata servers because of a variety of client problems.
2016-04-24 19:21:04 +01:00
Richard W.M. Jones
314c5795b0 podwrapper: Remove output file on failure.
Otherwise we end up generated a bad output file and (in some cases)
continuing the build.

Updates commit b23e149774.
2016-04-24 15:35:10 +01:00
Richard W.M. Jones
0d69eab98f php: Fix the tests ... again.
PHP (5?) renamed the PHP_EXECUTABLE variable to TEST_PHP_EXECUTABLE.
As a result of that if you enabled debugging, the tests broke because
we no longer used our custom PHP wrapper to filter out debugging
environment variables before running the tests, so debug output was
mixed with the expected output.

This commit also updates an old comment telling you how to debug PHP
tests.
2016-04-24 15:08:12 +01:00
Richard W.M. Jones
672eff4a34 v2v: target_bus_assignment: Assign removables with slot pref first. 2016-04-24 12:07:16 +01:00
Richard W.M. Jones
c1adbe61df v2v: target_bus_assignment: Various refactorings.
No functional change.
2016-04-24 12:06:02 +01:00
Richard W.M. Jones
6193b2b273 v2v: Assert fail if we overwrite an existing disk in a bus slot.
Prevents us from accidentally "losing" a disk during conversion.  I
believe from code inspection that this assertion is always true for
the current code, so this should have no effect.
2016-04-24 11:33:28 +01:00
Richard W.M. Jones
9e3182b4c5 v2v: Move target_bus_assignment to separate module.
This is just code motion.
2016-04-24 11:31:48 +01:00
Richard W.M. Jones
c42557f5e1 v2v: Move inspect_source to separate module.
It's a large feature / function with its own set of nested functions,
so move the inspect_source function into its own module.  It also lets
us specify and document the interface explicitly.

Also: Define a root_choice type in Types module.  I turned it into a
non-polymorphic variant type for extra type safety.

This is just code motion.
2016-04-24 11:31:16 +01:00
Richard W.M. Jones
0eb8d673c1 v2v: List SOURCES_MLI in alphabetical order.
Fixes commit 01ede002db.
2016-04-23 18:03:16 +01:00
Richard W.M. Jones
ac9c31eb68 v2v: Commenting and refactoring changes.
- Add headings, further documentation to the Types module.

- Move two type definitions in Types module.  Not a functional change.

- Add more comments and clean up comments throughout v2v/v2v.ml.

- Refactor guestcaps / conversion in v2v/v2v.ml.  Not a functional
  change, just hides local variables from the rest of the code.

- In --in-place mode, change inspection message to 'Inspecting the
  source VM'.  This matches the later message 'Closing the source VM'.
2016-04-23 17:57:32 +01:00
Richard W.M. Jones
9304b70ff6 v2v: Move 'du' function to Utils module.
Just code motion.
2016-04-23 17:54:33 +01:00
Richard W.M. Jones
8299d7087a tests: Add boot-benchmark-range script.
Add a script we can use to benchmark performance across a range of
commits in another project.
2016-04-22 17:10:43 +01:00
Richard W.M. Jones
45f84601b0 tests: boot analysis: Add text to describe how to change settings. 2016-04-22 16:39:49 +01:00
Richard W.M. Jones
874ef2a04f docs: Fix use of getopt and pod2usage in make-internal-documentation.pl.
Fixes commit 04229c68d6.
2016-04-22 16:39:49 +01:00
Richard W.M. Jones
b23e149774 podwrapper: Send errors to stderr and die if any errors seen.
Enable a few POD options:

 - Don't generate an errata section in the output.

 - Send errors and warnings to stderr.

 - Die if any errors or warnings are seen while generating the outputs.
2016-04-22 09:09:10 +01:00
Richard W.M. Jones
71a4ffdd05 builder: Add Ubuntu 16.04 (Xenial) image. 2016-04-21 13:41:52 +01:00
Richard W.M. Jones
d585aca1d5 builder: ubuntu: Lock the 'builder' account that we have to add to the template. 2016-04-21 13:41:00 +01:00
Richard W.M. Jones
f56a46d0b5 builder: ubuntu: Fix URL of archive.ubuntu.com.
The archive.ubuntu.net address appears to work only intermittently.
2016-04-21 13:40:37 +01:00