Commit Graph

7959 Commits

Author SHA1 Message Date
Richard W.M. Jones
936ddfbb38 mllib: Require OUnit2 for tests.
OUnit2 has an OUnit (v1) compatibility module.  Unfortunately it
is rather gravely broken:
https://forge.ocamlcore.org/tracker/?func=detail&aid=1392&group_id=162&atid=730

Since there is no new release fixing this, it's easier to switch to
using OUnit2 for unit tests.
2015-05-11 10:26:53 +01:00
Richard W.M. Jones
6f9d5dce47 v2v: OVF: Fix list of operating system variants for RHEV >= 3.3 (RHBZ#1219857).
Since RHEV 3.3, OS variant names like "RHEL6x64" were deprecated and
replaced by names like "rhel_6x64".  "RHEL7x64" was never valid, and
we should have used "rhel_7x64".  "Windows2012R2x64" was also never
valid and should have been "windows_2012R2x64".

For backwards compatibility, RHEV still understands the old names, and
we still pass them for compatiblity with old RHEV.

However for the new OS variants supported by virt-v2v in RHEL 7.2, use
the new names.

This commit also adds support for SLES and ppc64.

This updates commit 3c51302d69
and also RHBZ#1213324.
2015-05-10 16:15:56 +01:00
Richard W.M. Jones
61a021713e p2v: Update documentation for Configure network button.
This updates commit e464774a79.
2015-05-09 17:59:26 +01:00
Richard W.M. Jones
35efaf8208 p2v: Add tip about the root password of the virt-v2v conversion server appliance. 2015-05-09 17:53:57 +01:00
Richard W.M. Jones
a3edef9295 v2v: Remove obsolete README.RHEV-M file. 2015-05-09 17:41:57 +01:00
Richard W.M. Jones
4c7fb62f4a v2v: Rename virt-v2v appliance to "conversion server".
This is for consistency with the rest of the documentation.

This commit also adds the files to EXTRA_DIST so they are shipped in
the tarball.

This updates commit 4e4ece5364.
2015-05-09 17:40:42 +01:00
Richard W.M. Jones
4e4ece5364 v2v: Add scripts for building RHEL 7 virt-v2v appliance. 2015-05-08 15:46:11 +01:00
Richard W.M. Jones
4f489b28fe Try to discourage people from using 'make install' because it causes
endless support troubles.
2015-05-07 22:19:13 +01:00
Richard W.M. Jones
dcd382d9d4 Version 1.29.40. 1.29.40 2015-05-06 17:10:07 +01:00
Richard W.M. Jones
e464774a79 p2v: Add Configure Network button (RHBZ#1167921).
The old version of virt-p2v had a whole custom-written dialog which
interacted with NetworkManager over dbus.  After trying that approach,
it's really complex to get right.

Instead this button simply opens NetworkManager's connection editor.

This also adds nm-applet to the disk and starts it.  However nm-applet
does not display any visible indication -- probably because we are
lacking a system tray.
2015-05-06 16:20:36 +01:00
Richard W.M. Jones
9b2ca08ab5 p2v: Switch from matchbox-window-manager to metacity.
Matchbox only supports a single window on screen.  This worked fine
until we added the NetworkManager connection dialog -- which tries to
open in a new top level window, and of course fails.

Metacity supports multiple top-level windows so doesn't suffer this
problem.

Apart from that it's hard to tell the difference between the two.
2015-05-06 15:14:04 +01:00
Richard W.M. Jones
d5305c9672 p2v: Use "About virt-p2v [VERSION]" on the about button.
This makes it clearer what the button does.

This updates commit a743f57cb8.
2015-05-05 21:02:27 +01:00
Richard W.M. Jones
badfc2e9b2 v2v: -o libvirt: Check if the domain exists on the target (RHBZ#889082). 2015-05-05 20:14:15 +01:00
Richard W.M. Jones
e7833a5eea v2v: Add a C function to fetch libvirt hypervisor capabilities.
Instead of having to run external 'virsh capabilities' command and
parsing the output.
2015-05-05 15:55:53 +01:00
Richard W.M. Jones
1189d5919e p2v: Warn if vcpus or memory would be larger than supported by RHEL (RHBZ#823758).
Display a warning if the number of vCPUs or memory selected in the GUI
would be larger than the limits currently supported on RHEL 6 and RHEL 7.

This is just a warning -- the user is free to ignore it and continue
anyway.

This warning does not apply if the selections were made through the
kernel command line, because there is no place to display the warning
for automated conversions.
2015-05-05 15:10:27 +01:00
Richard W.M. Jones
b1336f26e6 p2v: Factor out code for parsing vcpus & memory from conversion dialog.
No functional change, just code refactoring.
2015-05-05 15:09:33 +01:00
Richard W.M. Jones
ed19af781f tests/data: Add IA64 (Intel Itanium II) test binaries. 2015-05-03 14:58:59 +01:00
Richard W.M. Jones
f1b7e1b58b Version 1.29.39. 1.29.39 2015-05-02 09:21:47 +01:00
Richard W.M. Jones
4f414c7299 v2v: docs: General updates to the manual. 2015-05-01 22:19:58 +01:00
Richard W.M. Jones
9246d75eeb v2v: docs: Replace "VMware ESX" with more accurate VMware vCenter/ESXi.
"VMware ESX" is no longer a VMware product.  The hypervisor is
called VMware ESXi and the management software is VMware vCenter.
2015-05-01 22:19:30 +01:00
Richard W.M. Jones
1b74e90de8 tests/data: Add ppc64/ppc64le binaries to the test ISO.
This fixes commit 58bbb93a25.
2015-05-01 14:30:46 +01:00
Richard W.M. Jones
ac04939309 tests/data: Add mipsel (32 bit MIPS little endian) test binaries. 2015-05-01 14:29:23 +01:00
Richard W.M. Jones
40558450dd v2v: efi: Support output of UEFI guests, for some output drivers (RHBZ#1184690).
Add the Types.target_firmware type, which stores our final decision
for whether the guest requires BIOS or UEFI on the target.

Not all output modes support UEFI.  In order to fail as early as
possible if conversion isn't going to be possible, there is an
output#supported_firmware method which returns the list of supported
target_firmware.

Add the target_firmware parameter to output#create_metadata so it can
select the correct firmware in the final metadata.
2015-04-30 17:40:21 +01:00
Richard W.M. Jones
086f71c7d8 v2v: Dump inspect and guestcaps structs when running in verbose mode.
This helps with debugging.
2015-04-30 17:40:21 +01:00
Richard W.M. Jones
6a76d6d780 v2v: efi: Detect if the guest could boot with UEFI.
Use a heuristic to detect if the guest could boot with UEFI.

This is only used where we have missing metadata (in the
source.s_firmware == UnknownFirmware case).  Currently that only
applies for `-i disk' and `-i libvirt/libvirtxml'.

Eventually we'll be able to get this information from the libvirt
metadata (RHBZ#1217444), so it'll only be used for `-i disk'.
2015-04-30 17:38:49 +01:00
Richard W.M. Jones
ef77725081 v2v: efi: Model firmware in source metadata.
Also modify the input_* drivers so they pull out the firmware from the
metadata.  Currently this is only possible for `-i ova', since libvirt
does not expose it (RHBZ#1217444).
2015-04-30 17:38:49 +01:00
Richard W.M. Jones
9a45508f23 v2v: efi: linux: Add support for grub2-efi. 2015-04-30 17:38:48 +01:00
Richard W.M. Jones
051f1f1a3f v2v: efi: linux: Remove EFI hacks.
Old virt-v2v had a bunch of code for removing EFI configuration from a
Linux guest, and replacing it with grub.  I copied this code to new
virt-v2v but it was never tested.

Now that OVMF exists, we can simply boot EFI guests directly on KVM.

Thus these hacks can finally be removed.
2015-04-30 17:38:32 +01:00
Richard W.M. Jones
06e93bf3ea mips: Ignore missing prototypes in flex-generated code. 2015-04-30 11:20:45 +01:00
Pino Toscano
1f514f3466 inspector: fix formatting of xpath result (RHBZ#1212680)
Discard blank nodes when reading the XML from stdin, while enabling
formatting in output nodes.
2015-04-29 14:57:22 +02:00
Pino Toscano
22686d2cfd customize: add a "touch" operation (RHBZ#1212808) 2015-04-28 15:22:45 +02:00
Richard W.M. Jones
63e0045926 builder: Fix release notes for Debian 8.
Editing inittab is not required for this version since it
uses systemd.

This fixes commit be81fbb323.
2015-04-28 10:01:42 +01:00
Richard W.M. Jones
be81fbb323 builder: Add Jessie (Debian 8). 2015-04-28 09:39:27 +01:00
Richard W.M. Jones
21764ec7c2 Version 1.29.38. 1.29.38 2015-04-27 20:29:37 +01:00
Richard W.M. Jones
b70aec11c6 random_seed: Don't try to create random seed if no parent directory.
Partial fix for https://bugzilla.redhat.com/show_bug.cgi?id=1215803
2015-04-27 20:28:26 +01:00
Richard W.M. Jones
2841400721 firstboot: Don't create very long filenames for --firstboot-command (RHBZ#1212152). 2015-04-27 16:19:33 +01:00
Richard W.M. Jones
aa8d66e755 firstboot: Factor out regular expression constant.
Don't need to evaluate this every time we call the function.
2015-04-27 16:19:33 +01:00
Pino Toscano
8c26ef91f9 v2v: convert old-style libvirt listen configuration (RHBZ#1174073)
Use the listen configuration from the "listen" attribute of <graphics>,
in case <listen> is missing.

Followup of commit 9360675dc2.
2015-04-27 10:16:40 +02:00
Richard W.M. Jones
2dd01c5d2d v2v: Remove warning when compiling --without-libvirt. 2015-04-25 22:27:50 +01:00
Richard W.M. Jones
e3443a7549 v2v: -o libvirt: Minor refactoring of arch sanity check. 2015-04-25 22:11:07 +01:00
Richard W.M. Jones
4546d3f21d v2v: Replace polymorphic variant source_hypervisor with ordinary variant.
See commit 3a080c3fbf.
2015-04-25 21:46:26 +01:00
Richard W.M. Jones
946d49cbbc v2v: Remove further uses of polymorphic variants.
See commit 3a080c3fbf.
2015-04-25 21:40:49 +01:00
Richard W.M. Jones
ce630dfc33 valgrind: Add suppression for libvirt memory leak.
Related to RHBZ#1215042.
2015-04-24 09:04:38 +01:00
Richard W.M. Jones
e9910b4887 Version 1.29.37. 1.29.37 2015-04-23 19:57:56 +01:00
Richard W.M. Jones
578c7c0868 builder: Add rhel-ppc64.sh & rhel-ppc64le.sh to EXTRA_DIST.
This fixes commit c5f0d39c64.
2015-04-23 19:57:06 +01:00
Richard W.M. Jones
b02980d5af fuse: tests: Add some debugging to test-fuse-umount-race.sh.
This test fails on recent kernels, sometimes.

Apparently calling 'fusermount -u mp' can exit with an EBUSY error,
but still unmount the filesystem.  Or possibly guestmount crashes
coincidentally.  It's impossible to debug because debugging tools like
strace prevent fuse from working at all.
2015-04-23 19:03:36 +01:00
Richard W.M. Jones
6dee5a4152 fuse: guestunmount: Make the -v (verbose) option do something useful.
guestunmount had a -v / --verbose option, but it didn't change the
behaviour of the program in any way.

Make it print the invocations of the underlying fusermount program.
2015-04-23 19:02:41 +01:00
Richard W.M. Jones
0e4c351bb4 mllib: Link config.ml to the test program.
This fixes commit a1646fa65c.
2015-04-23 17:56:28 +01:00
Richard W.M. Jones
4f021006e9 v2v: When debugging, dump OVF to stderr.
Useful for debugging problems like RHBZ#1213701.
2015-04-23 10:53:04 +01:00
Richard W.M. Jones
c5f0d39c64 builder: Add scripts for generating RHEL 7 ppc64 & ppc64le images. 2015-04-22 22:16:52 +01:00