build: Map host CPU 'powerpc64le' to qemu-system-ppc64.

Make the corresponding change in libguestfs-test-tool as well.

Thanks: Dan Horák
(cherry picked from commit de0b7c4e66ca97b97cebd842226eacd66a0633a4)
gobject: link against uninstalled libraries

Make sure to link the gobject library and the gir using the in-tree
built libguestfs, so a system library won't be used accidentally.

(cherry picked from commit 1033847f0005470b5f2845fd548d81bc7a2f559b)
v2v: Disable autoreboot when converting Windows guests.

This allows users to see stop errors, so we can get an accurate report
when things go wrong.

(cherry picked from commit 39d64121ec809076703b109053e12a3c91b9c2ea)
mllib: Add Common_utils.string_suffix function and extend test coverage.

(cherry picked from commit c712f880db640163a0ce913e42115ecf4f6aa0c2)
v2v: When picking a default kernel, favour non-debug kernels over debug kernels (RHBZ#1170073).

(cherry picked from commit 0c2e676f6c92efce890006903585dabd1f72f3b1)
builder: Add support for RHEL 3, RHEL 4.

(cherry picked from commit 212660f70f2377a2c8dface018bb7ea4cf980864)
fish: fix build warning when readline-devel is missing

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
(cherry picked from commit eddc8862e06728bcceb675f4c705c4078a962eb0)
v2v: Don't use epoch prefix on RPM command line for RHEL <= 4 (RHBZ#1170685).

See the explanation here:
https://bugzilla.redhat.com/show_bug.cgi?id=1170685#c7

(cherry picked from commit 205a8c7ca1ed1d66bef56d75c3c244e726e3bbbf)
v2v: Fix missing loop device which breaks conversion of RHEL 3 guests (RHBZ#1171130).

(cherry picked from commit 1bd779c983d62f36bf50ad613928cf209f98fbce)
v2v: Remove documentation about Windows Recovery Console not supported.

We have now successfully converted guests using WRC, so this statement
is no longer necessary.

(cherry picked from commit a5423897677ff813baf708e28a53347ecfda33d2)
v2v: Add documentation about what to do about BSOD 0x0000007B (RHBZ#1161333).

After a very long and trying episode with a Windows guest that refused
to boot after conversion, we managed to successfully boot it by
disabling Windows Group Policy.  It appears that Group Policy
prevented the virtio driver from being used.

Document this in the manual.

(cherry picked from commit be73b1750f3ce52ea137014083ed51d3b64f53a5)
customize, sysprep: add a short SELinux note

Add a short paragraph about SELinux, mostly to point to the
documentation about it provided in the documentation of virt-builder.

(cherry picked from commit 1ea9b684b2571775834c382de62592ed26c04e3b)
p2v: wait for qemu-nbd before starting conversion (RHBZ#1167774)

Wait up to 10 seconds for qemu-nbd to start up and respond to clients.
Otherwise the conversion server may attempt to connect before qemu-nbd
is ready to serve it.

(cherry picked from commit 33098d23020bd3824a2954823a0dbaff751c814d)
resize: fix 'No space left on device' problem when copying to an extended partition (RHBZ#1169015)

Because of the size of an extended partition reported by Linux is always 1024
bytes, so it will always fail to copy to an extended partition.

This patch fixes this problem by copying to the offset of an extended
partition in the destination disk.

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
(cherry picked from commit 9d6f0b6a86d68438b27a3d783677c63f39ec6627)
arm: Use -cpu host on KVM.

(cherry picked from commit 6468b9d60172bcef76b36c14b72f9a1913d94954)
builder: Add Fedora 21 image, remove RHEL 7 RC image.

(cherry picked from commit 7a34855265d66321ff1f7ee7a2bb4c4d69056a20)
v2v: linux: Fix modifications to default kernel for legacy grub.

This didn't work at all because the regular expression did not match
the returned Augeas path.

In future if the regular expression doesn't match, this will give an
internal error instead of continuing with a bogus value.

Thanks: Junqin Zhou for providing the test case and debug information.
(cherry picked from commit e1fd9615cc4a9ceb68f4a47a289712fc31a0af5e)
lib: Don't mention whitelist in guestfs_modprobe documentation.

There is no such whitelist any longer.  All modules are copied into
the appliance.

(cherry picked from commit 3d7ea11272dad32ef7ba4bf7c75f0231c5543cc7)
p2v: show error dialog if virt-v2v fails (RHBZ#1167601)

Ensure the control connection exits with the same status code as
virt-v2v, and return an error from start_conversion if virt-v2v
failed.

(cherry picked from commit 841aa0faf3b1495fd167e32b8105b0bc6faaea60)
debug: add-domain: Dump XML of original domain.

Useful for debugging labelling issues.

(cherry picked from commit f4b4dcc03aa06a4afdb02d81b56806f8a9c6dd78)