Commit Graph

7345 Commits

Author SHA1 Message Date
Richard W.M. Jones
60405e5aa1 v2v: -i ova: Allow directories and ZIP files to be used as input (RHBZ#1152998).
OVA is not a particularly well-specified format.  The specification
allows a directory to be an OVA, so enable that.  The spec doesn't
mention that ZIP can be used in place of tar, but since we have seen
these in the wild, allow that too.
2014-10-18 21:45:56 +01:00
Richard W.M. Jones
d8e26d0e4d mllib: Enhance and rename 'detect_compression' function so it can detect a few more file types. 2014-10-18 19:01:44 +01:00
Richard W.M. Jones
a7a5a223d4 v2v: Change --help text URLs so they don't reference esx as main server. 2014-10-18 13:53:19 +01:00
Richard W.M. Jones
1f97a5df76 p2v: Test did not recognize '1.XX.0' as a valid version number.
Thus breaking when we changed the version number to 1.28.0.
2014-10-18 10:27:23 +01:00
Richard W.M. Jones
cbad8e6d51 Version 1.29.0. 1.29.0 2014-10-18 09:45:04 +01:00
Richard W.M. Jones
305f0050eb Version 1.28.0. 1.28.0 2014-10-18 09:26:37 +01:00
Richard W.M. Jones
3b3b507a1e Update translations from Transifex. 2014-10-18 09:12:27 +01:00
Richard W.M. Jones
d57660d5d6 Update release notes for 1.28 release. 2014-10-18 09:12:24 +01:00
Richard W.M. Jones
d3548012e9 Update API support for 1.28 release. 2014-10-18 09:12:03 +01:00
Richard W.M. Jones
6e5039d1ef Version 1.27.64. 1.27.64 2014-10-17 17:38:07 +01:00
Richard W.M. Jones
288bc73bb0 v2v: Add test files to EXTRA_DIST.
This fixes commit 852f2e8e3c.
2014-10-17 17:37:37 +01:00
Richard W.M. Jones
97c96ed670 v2v: Windows: Add &REV_00 variant, which is used by W2K8R2. 2014-10-17 17:18:25 +01:00
Richard W.M. Jones
4f6033c3f4 v2v: Windows: Fix quoting and type of viostor ImagePath parameter.
The way to fix these bugs -- for future reference -- is as follows:

(1) Install the corresponnding Windows version with virtio enabled.
See:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_Administration_Guide/chap-KVM_Para_virtualized_virtio_Drivers.html

(the ".vfd" method)

(2) Download the SYSTEM and SOFTWARE registries from the
virtio-enabled guest.

(3) Examine each registry using 'hivexsh', especially the keys which
we modify during virt-v2v (see v2v/convert_windows.ml).  Remember to
use both the 'ls' and 'lsval' commands in hivexsh.

(4) Download the SYSTEM and SOFTWARE registries from the guest that
fails to boot.

(5) Examine the same registry keys from each registry using 'hivexsh'.

(6) Work out what the differences are, paying particular attention to
quoting and the type of each key (eg. str(1), str(2), etc).

Thanks: Matthew Booth.
2014-10-17 17:14:52 +01:00
Richard W.M. Jones
ca6d7d9c34 v2v: Print version of virt-v2v in debug output.
Easier than asking users to send us this information, which they often don't.
2014-10-17 13:44:35 +01:00
Richard W.M. Jones
e2e1705574 v2v: Add new section on resource requirements of virt-v2v to the manual. 2014-10-16 18:02:46 +01:00
Richard W.M. Jones
852f2e8e3c tests: v2v: Test -i ova with two input disks. 2014-10-16 16:00:34 +01:00
Richard W.M. Jones
d8849fadbd v2v: -i ova: Fix it so it actually verifies SHA-1 hashes from manifest files.
There were two large bugs before: (1) It only found one manifest file
(meaning that multi-volume OVAs would be broken).  (2) The regular
expression didn't work so it wouldn't check the hash.  Bugs (1) + (2)
combined so that the check just didn't do anything at all, which is
why we didn't notice the multi-volume problem.

Actually I suspect we shouldn't be doing this check at all, since I
bet there are OVAs out there with broken SHA-1's.
2014-10-16 16:00:34 +01:00
Richard W.M. Jones
249aae0c2f handle: Process empty LIBGUESTFS_* environment variables correctly (RHBZ#1153515).
Ignore an environment variable:

 - if an environment variable is an empty string, AND

 - if an empty string would have no meaning for that environment
   variable (eg. LIBGUESTFS_BACKEND can only take on certain values,
   and an empty string is not one of them).

Note that LIBGUESTFS_BACKEND_SETTINGS is meaningful as an empty
string, and for this case I have removed the STRNEQ (str, "") test.

Previously:

$ LIBGUESTFS_BACKEND="" guestfish -a /dev/null run
libguestfs: error: invalid backend:

After this commit:

$ LIBGUESTFS_BACKEND="" guestfish -a /dev/null run

(no error message is printed)
2014-10-16 08:49:57 +02:00
Richard W.M. Jones
93c2769e2b Version 1.27.63. 1.27.63 2014-10-15 22:19:19 +02:00
Richard W.M. Jones
4511137c05 tests: v2v: Check -i ova generates the same XML each time. 2014-10-15 21:51:29 +02:00
Richard W.M. Jones
717c73d22b v2v: -i ova: Try hard to preserve the order of floppies and CDROMs from the original OVF.
Remove the common 'add_resource' function.

Duplicate that function into code for adding disks, and separate code
for adding removables (floppies & CDROMs).

The removables code should look for all removable devices
(ResourceType 14, 15, 16) in a single query, so that the order doesn't
depend on the order in which we do the queries.
2014-10-15 21:43:42 +02:00
Richard W.M. Jones
59015939ab v2v: -i ova: Preserve the order of disks/removable/NICs from the source OVF.
Because we built the lists up backwards, we ought to reverse them
before passing them out of the module.
2014-10-15 21:04:33 +02:00
Richard W.M. Jones
516a95824a v2v: -i ova: Mainly whitespace and formatting changes.
Mainly tidy up the indentation and comments to match the "house
style".  No significant functional change.
2014-10-15 21:03:18 +02:00
Pino Toscano
94f2eb8b26 bash: add virt-log completion entry (RHBZ#1151766).
Thanks: Lingfei Kong
2014-10-13 15:06:30 +02:00
Richard W.M. Jones
88a482dd9f v2v: Add 'exit' choice to --root ask.
If the user does ^C then this leaves temporary overlay files around
(possibly a bug?).  Offer an 'exit' choice to the user which exits
cleanly.

The new message looks like this:

  Dual- or multi-boot operating system detected.  Choose the root filesystem
  that contains the main operating system from the list below:

   [1] /dev/sda3 (Fedora release 20 (Heisenbug))
   [2] /dev/sdb3

  Enter a number between 1 and 2, or 'exit': exit
2014-10-13 13:12:27 +02:00
Richard W.M. Jones
04de9d3df0 v2v: When choosing a root from several, print an info message. 2014-10-13 11:42:44 +02:00
Richard W.M. Jones
2ba45489a1 v2v: Add an 'info' function for info messages, and use it for virtio message. 2014-10-13 11:42:44 +02:00
Richard W.M. Jones
2b4ba9d692 v2v: --root ask: Number the guests in the list correctly.
Thanks: Junqin Zhou
2014-10-13 11:42:44 +02:00
Pino Toscano
145a188f70 edit: fix --format documentation (RHBZ#1151738).
Use only --format=FMT as a way to specify a format, as the version
without the equal sign will not work for that.
2014-10-13 11:02:14 +02:00
Richard W.M. Jones
e372225229 Version 1.27.62. 1.27.62 2014-10-10 16:58:48 +01:00
Pino Toscano
5c7cb0ac7c builder: use the JSON module
Switch to the JSON OCaml module for JSON output.

The resulting output is the same, except from an indentation level more
within lists.
2014-10-10 17:08:56 +02:00
Pino Toscano
901de75ff4 mllib: improve JSON: more types, indented output style
Improve the homebrew JSON writer:
- add more types (including also nested dictionaries and lists)
- format in a compact way (single line), or indented (multilines)
2014-10-10 17:08:56 +02:00
Pino Toscano
bb0d7edfa0 Move JSON to mllib
Move the simple OCaml JSON writer to mllib, so that can be enhanced and
used also outside v2v.
2014-10-10 15:10:20 +02:00
Pino Toscano
75b45143f0 appliance: remove few duplicates from Mageia's list 2014-10-10 15:09:27 +02:00
Richard W.M. Jones
7893a2cfb1 FAQ: Add a section on debugging libvirtd. 2014-10-10 11:47:26 +01:00
Richard W.M. Jones
6328038567 v2v: Rename some modules to remove lib_ prefix.
v2v/lib_ovf.ml -> v2v/OVF.ml
v2v/lib_ovf.mli -> v2v/OVF.mli
v2v/lib_linux.ml -> v2v/linux.ml
v2v/lib_linux.mli -> v2v/linux.mli
v2v/lib_esx.ml -> v2v/vCenter.ml
v2v/lib_esx.mli -> v2v/vCenter.mli
v2v/lib_xen.ml -> v2v/xen.ml
v2v/lib_xen.mli -> v2v/xen.mli
2014-10-09 18:09:49 +01:00
Richard W.M. Jones
88a381b2a0 v2v: Increase readahead window for vCenter transfers (RHBZ#1151033). 2014-10-09 16:04:36 +01:00
Pino Toscano
8f3a2ca535 appliance: add dhcp-client on Mageia
dhcp-client replaces the non-existing dhclient.
2014-10-09 14:53:53 +02:00
Pino Toscano
979e7a4914 appliance: add dhcpcd and gptfdisk on Archlinux
dhcpcd replaces the non-existing dhclient.
2014-10-09 14:53:10 +02:00
Richard W.M. Jones
e21a4e5a90 Version 1.27.61. 1.27.61 2014-10-09 10:30:01 +01:00
Richard W.M. Jones
626d85d80b v2v: -i libvirt/libvirtxml: Give a better warning for local displays (RHBZ#1150880). 2014-10-09 10:15:55 +01:00
Richard W.M. Jones
4d4cada65a daemon: copy-file-to-file: Unlink destination file on failure (RHBZ#1150867).
When copying from file to file, don't leave the destination file
around if the copy fails.

However in the same code don't try unlinking the destination device on
failure.
2014-10-09 09:34:11 +01:00
Richard W.M. Jones
fbbcc6c629 sparsify: Fix documentation of --check-tmpdir option (RHBZ#1150858). 2014-10-09 09:29:31 +01:00
Richard W.M. Jones
9d6efb4966 diff: Remove copy and paste mistake from the documentation (RHBZ#1150815).
Originated from copying this section out of the virt-ls man page.
2014-10-09 09:21:06 +01:00
Richard W.M. Jones
f8f6250612 v2v: Allow -b/-n as alias for --bridge/--network.
This was permitted by old virt-v2v too.
2014-10-08 22:32:03 +01:00
Richard W.M. Jones
e66138fbe7 v2v: Enable trimming of data disks and non-mountpoints (RHBZ#1150701).
This also modifies the --no-trim option so you can specify a device
name, since this is necessary if fstrim can apply to non-mountpoints.
2014-10-08 21:17:43 +01:00
Richard W.M. Jones
69fe3945b7 v2v: Fix the --no-trim option so it works.
We never updated the no_trim variable in the case where this option
was supplied, so it never did anything, proving once again that unless
you have a test case, the feature won't work.
2014-10-08 21:16:48 +01:00
Richard W.M. Jones
36ce0e65f6 v2v: Print virtual and real copying rates.
Useful to diagnose speed issues in the qemu block drivers.
2014-10-08 20:21:36 +01:00
Richard W.M. Jones
7b8ed81560 v2v: Print mountpoint stats in debugging output.
Useful for debugging speed / fstrim issues.
2014-10-08 20:21:06 +01:00
Richard W.M. Jones
1e9b707e9b Version 1.27.60. 1.27.60 2014-10-08 15:44:01 +01:00