From 3b9c0f9f7be501dfd307f27597fa9cf8e70bda40 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 2 Mar 2021 10:49:20 +0000 Subject: [PATCH 001/183] Add fix for OCaml 4.12. --- ...tils-std_utils.ml-Fix-for-OCaml-4.12.patch | 35 +++++++++++++++++++ virt-v2v.spec | 8 ++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch diff --git a/0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch b/0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch new file mode 100644 index 0000000..4a21db6 --- /dev/null +++ b/0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch @@ -0,0 +1,35 @@ +From cc4ecbe236914f9b391ecf3815008547472632f8 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Tue, 2 Mar 2021 10:39:15 +0000 +Subject: [PATCH] mlstdutils/std_utils.ml: Fix for OCaml 4.12. + +We were using a default function from somewhere called "compare" +instead of the actual function (Pervasives.compare / Stdlib.compare). +Since the wrong default function was used it had a different type from +what we expected: + +File "std_utils.ml", line 312, characters 36-37: +312 | | (y, y') :: _ when cmp x y = 0 -> y' + ^ +Error: This expression has type int but an expression was expected of type + 'weak1 list -> int +--- + common/mlstdutils/std_utils.ml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/common/mlstdutils/std_utils.ml b/common/mlstdutils/std_utils.ml +index 4237ea519..88477179a 100644 +--- a/common/mlstdutils/std_utils.ml ++++ b/common/mlstdutils/std_utils.ml +@@ -307,7 +307,7 @@ module List = struct + | x::xs, y::ys, z::zs -> (x, y, z) :: combine3 xs ys zs + | _ -> invalid_arg "combine3" + +- let rec assoc_lbl ?(cmp = compare) ~default x = function ++ let rec assoc_lbl ?(cmp = Pervasives.compare) ~default x = function + | [] -> default + | (y, y') :: _ when cmp x y = 0 -> y' + | _ :: ys -> assoc_lbl ~cmp ~default x ys +-- +2.29.0.rc2 + diff --git a/virt-v2v.spec b/virt-v2v.spec index 671a21f..4b826d9 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -10,7 +10,7 @@ Name: virt-v2v Epoch: 1 Version: 1.43.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -26,6 +26,9 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh +# Fix for OCaml 4.12. +Patch1: 0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch + %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather @@ -263,6 +266,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Tue Mar 2 2021 Richard W.M. Jones - 1:1.43.3-3 +- Add fix for OCaml 4.12. + * Wed Jan 27 2021 Fedora Release Engineering - 1:1.43.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From ff416b9134b8ddc79e5341ea00a970b6b52932f9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 2 Mar 2021 12:43:07 +0000 Subject: [PATCH 002/183] OCaml 4.12.0 build --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 4b826d9..8cb2be4 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -10,7 +10,7 @@ Name: virt-v2v Epoch: 1 Version: 1.43.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -266,6 +266,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Tue Mar 2 12:43:06 GMT 2021 Richard W.M. Jones - 1:1.43.3-4 +- OCaml 4.12.0 build + * Tue Mar 2 2021 Richard W.M. Jones - 1:1.43.3-3 - Add fix for OCaml 4.12. From 104a51bea0e0619ce192c7e240650333334deb33 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 3 Mar 2021 12:59:29 +0000 Subject: [PATCH 003/183] New upstream version 1.43.4. --- ...tils-std_utils.ml-Fix-for-OCaml-4.12.patch | 35 ------------------- sources | 4 +-- virt-v2v.spec | 12 +++---- 3 files changed, 8 insertions(+), 43 deletions(-) delete mode 100644 0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch diff --git a/0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch b/0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch deleted file mode 100644 index 4a21db6..0000000 --- a/0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch +++ /dev/null @@ -1,35 +0,0 @@ -From cc4ecbe236914f9b391ecf3815008547472632f8 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Tue, 2 Mar 2021 10:39:15 +0000 -Subject: [PATCH] mlstdutils/std_utils.ml: Fix for OCaml 4.12. - -We were using a default function from somewhere called "compare" -instead of the actual function (Pervasives.compare / Stdlib.compare). -Since the wrong default function was used it had a different type from -what we expected: - -File "std_utils.ml", line 312, characters 36-37: -312 | | (y, y') :: _ when cmp x y = 0 -> y' - ^ -Error: This expression has type int but an expression was expected of type - 'weak1 list -> int ---- - common/mlstdutils/std_utils.ml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/common/mlstdutils/std_utils.ml b/common/mlstdutils/std_utils.ml -index 4237ea519..88477179a 100644 ---- a/common/mlstdutils/std_utils.ml -+++ b/common/mlstdutils/std_utils.ml -@@ -307,7 +307,7 @@ module List = struct - | x::xs, y::ys, z::zs -> (x, y, z) :: combine3 xs ys zs - | _ -> invalid_arg "combine3" - -- let rec assoc_lbl ?(cmp = compare) ~default x = function -+ let rec assoc_lbl ?(cmp = Pervasives.compare) ~default x = function - | [] -> default - | (y, y') :: _ when cmp x y = 0 -> y' - | _ :: ys -> assoc_lbl ~cmp ~default x ys --- -2.29.0.rc2 - diff --git a/sources b/sources index 0c8e824..37e3750 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.43.3.tar.gz) = 39f6b4ad8b18a32dd3b584fb007f9c5b34140dde87874280b4df2e97f997aedef14312db032bff3ce6215ad5c7a58974789a41a7537fa06deac86e3a7cd04a8b -SHA512 (virt-v2v-1.43.3.tar.gz.sig) = 34dd70ad265af89aa9d9e971fdc0927e20d0926dc269c6125a95c139b0cfd0aaf040da4baeac8d81af3ae43f8d90a5ff5a6f53f30daa4c1374af002964f77975 +SHA512 (virt-v2v-1.43.4.tar.gz) = 3c11ea864b0a1dd579c8dff891295be9200c9ba9e1d804cfd50aa356d626b8aa11a08c70ac2c6e20e5e9e023fea0d46e8f84edc1fca59484521ca273857f5c57 +SHA512 (virt-v2v-1.43.4.tar.gz.sig) = 292d02fc94888446016b34637e1ea913a753d0f430a130f881b7f101ed4887b13b91c551353c45f9f73d9876b1e3941e846e8ecde5ed3996c999578557bbc944 diff --git a/virt-v2v.spec b/virt-v2v.spec index 8cb2be4..93457f2 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -9,8 +9,8 @@ Name: virt-v2v Epoch: 1 -Version: 1.43.3 -Release: 4%{?dist} +Version: 1.43.4 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -26,9 +26,6 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh -# Fix for OCaml 4.12. -Patch1: 0001-mlstdutils-std_utils.ml-Fix-for-OCaml-4.12.patch - %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather @@ -266,7 +263,10 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog -* Tue Mar 2 12:43:06 GMT 2021 Richard W.M. Jones - 1:1.43.3-4 +* Tue Mar 3 2021 Richard W.M. Jones - 1:1.43.4-1 +- New upstream version 1.43.4. + +* Tue Mar 2 2021 Richard W.M. Jones - 1:1.43.3-4 - OCaml 4.12.0 build * Tue Mar 2 2021 Richard W.M. Jones - 1:1.43.3-3 From 0ef32f9020caa3cd048e3fa4c126283a0faa2ea7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 8 Mar 2021 12:23:40 +0000 Subject: [PATCH 004/183] Bump and rebuild for ocaml-gettext update. --- virt-v2v.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 93457f2..a167b98 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -10,7 +10,7 @@ Name: virt-v2v Epoch: 1 Version: 1.43.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -263,7 +263,10 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog -* Tue Mar 3 2021 Richard W.M. Jones - 1:1.43.4-1 +* Mon Mar 8 2021 Richard W.M. Jones - 1:1.43.4-2 +- Bump and rebuild for ocaml-gettext update. + +* Wed Mar 3 2021 Richard W.M. Jones - 1:1.43.4-1 - New upstream version 1.43.4. * Tue Mar 2 2021 Richard W.M. Jones - 1:1.43.3-4 From 65fcab520f704bee13494fdc2def179b09be1b3a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 18 Mar 2021 13:24:45 +0000 Subject: [PATCH 005/183] Make ocaml-ounit dependency conditional on !RHEL. It's only needed to run some unit tests. --- virt-v2v.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index a167b98..f41491c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -71,7 +71,9 @@ BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-libguestfs-devel BuildRequires: ocaml-fileutils-devel BuildRequires: ocaml-gettext-devel +%if !0%{?rhel} BuildRequires: ocaml-ounit-devel +%endif BuildRequires: nbdkit-python-plugin From 6be9aa8e5f805c2dbe02f1d93ed855fb888621fc Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Mar 2021 12:07:53 +0100 Subject: [PATCH 006/183] Add downstream (RHEL-only) patches (RHBZ#1931724). --- ...correct-qemu-binary-for-o-qemu-mode-.patch | 33 ++ ...le-the-qemu-boot-option-RHBZ-1147313.patch | 105 +++++++ ...-supported-sound-cards-to-match-RHEL.patch | 34 +++ ...-Fix-tests-for-libguestfs-winsupport.patch | 66 ++++ ...Disable-the-virt-v2v-in-place-option.patch | 288 ++++++++++++++++++ ...sk-force-VNC-as-display-RHBZ-1372671.patch | 26 ++ ...-mention-SUSE-Xen-hosts-RHBZ-1430203.patch | 26 ++ ...load-Remove-restriction-on-oa-sparse.patch | 89 ++++++ ...-for-supported-v2v-hypervisors-guest.patch | 127 ++++++++ virt-v2v.spec | 23 +- 10 files changed, 816 insertions(+), 1 deletion(-) create mode 100644 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch create mode 100644 0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch create mode 100644 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch create mode 100644 0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch create mode 100644 0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch create mode 100644 0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch create mode 100644 0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch create mode 100644 0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch create mode 100644 0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch diff --git a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch new file mode 100644 index 0000000..94f2e9c --- /dev/null +++ b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -0,0 +1,33 @@ +From 9918c857eca2ce4efddb4ed9f17dccfc6144471f Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Sun, 28 Sep 2014 19:14:43 +0100 +Subject: [PATCH 1/9] RHEL: v2v: Select correct qemu binary for -o qemu mode + (RHBZ#1147313). + +RHEL does not have qemu-system-x86_64 (etc), and in addition the +qemu binary is located in /usr/libexec. Encode the path to this +binary directly in the script. + +Note that we don't support people running qemu directly like this. +It's just for quick testing of converted VMs, and to help us with +support cases. +--- + v2v/output_qemu.ml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/v2v/output_qemu.ml b/v2v/output_qemu.ml +index d6d70c23..490576e9 100644 +--- a/v2v/output_qemu.ml ++++ b/v2v/output_qemu.ml +@@ -81,7 +81,7 @@ object + * module deals with shell and qemu comma quoting. + *) + let cmd = Qemuopts.create () in +- Qemuopts.set_binary_by_arch cmd (Some guestcaps.gcaps_arch); ++ Qemuopts.set_binary cmd "/usr/libexec/qemu-kvm"; + + let flag = Qemuopts.flag cmd + and arg = Qemuopts.arg cmd +-- +2.30.1 + diff --git a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch new file mode 100644 index 0000000..1ccfcbd --- /dev/null +++ b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch @@ -0,0 +1,105 @@ +From 51d18cc8da56f5b8395ae2f5edd6b11cda5c84df Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Tue, 30 Sep 2014 10:50:27 +0100 +Subject: [PATCH 2/9] RHEL: v2v: Disable the --qemu-boot option (RHBZ#1147313). + +This cannot work because there is no Gtk or SDL output mode +in RHEL's qemu-kvm. + +In addition you will have to edit the -display option in the +qemu script. +--- + docs/virt-v2v-output-local.pod | 6 ++---- + docs/virt-v2v.pod | 13 ------------- + v2v/cmdline.ml | 3 ++- + 3 files changed, 4 insertions(+), 18 deletions(-) + +diff --git a/docs/virt-v2v-output-local.pod b/docs/virt-v2v-output-local.pod +index a5f155cb..3a2e6238 100644 +--- a/docs/virt-v2v-output-local.pod ++++ b/docs/virt-v2v-output-local.pod +@@ -9,7 +9,7 @@ or libvirt + + virt-v2v [-i* options] -o local -os DIRECTORY + +- virt-v2v [-i* options] -o qemu -os DIRECTORY [--qemu-boot] ++ virt-v2v [-i* options] -o qemu -os DIRECTORY + + virt-v2v [-i* options] -o json -os DIRECTORY + [-oo json-disks-pattern=PATTERN] +@@ -50,12 +50,10 @@ where C is the guest name. + + =item B<-o qemu -os> C + +-=item B<-o qemu -os> C B<--qemu-boot> +- + This converts the guest to files in C. Unlike I<-o local> + above, a shell script is created which contains the raw qemu command + you would need to boot the guest. However the shell script is not +-run, I you also add the I<--qemu-boot> option. ++run. + + =item B<-o json -os> C + +diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod +index 9323ff52..06ddd781 100644 +--- a/docs/virt-v2v.pod ++++ b/docs/virt-v2v.pod +@@ -144,11 +144,6 @@ Since F contains the path(s) to the guest disk + image(s) you do not need to specify the name of the disk image on the + command line. + +-To convert a local disk image and immediately boot it in local +-qemu, do: +- +- virt-v2v -i disk disk.img -o qemu -os /var/tmp --qemu-boot +- + =head1 OPTIONS + + =over 4 +@@ -537,9 +532,6 @@ This is similar to I<-o local>, except that a shell script is written + which you can use to boot the guest in qemu. The converted disks and + shell script are written to the directory specified by I<-os>. + +-When using this output mode, you can also specify the I<--qemu-boot> +-option which boots the guest under qemu immediately. +- + =item B<-o> B + + This is the same as I<-o rhv>. +@@ -815,11 +807,6 @@ Print information about the source guest and stop. This option is + useful when you are setting up network and bridge maps. + See L. + +-=item B<--qemu-boot> +- +-When using I<-o qemu> only, this boots the guest immediately after +-virt-v2v finishes. +- + =item B<-q> + + =item B<--quiet> +diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml +index 3b74f307..df69e2e0 100644 +--- a/v2v/cmdline.ml ++++ b/v2v/cmdline.ml +@@ -284,7 +284,6 @@ let parse_cmdline () = + s_"Estimate size of source and stop"; + [ L"print-source" ], Getopt.Set print_source, + s_"Print source and stop"; +- [ L"qemu-boot" ], Getopt.Set qemu_boot, s_"Boot in qemu (-o qemu only)"; + [ L"root" ], Getopt.String ("ask|... ", set_root_choice), + s_"How to choose root filesystem"; + [ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"), +@@ -668,6 +667,8 @@ read the man page virt-v2v(1). + | Some d when not (is_directory d) -> + error (f_"-os %s: output directory does not exist or is not a directory") d + | Some d -> d in ++ if qemu_boot then ++ error (f_"-o qemu: the --qemu-boot option cannot be used in RHEL"); + Output_qemu.output_qemu os qemu_boot, + output_format, output_alloc + +-- +2.30.1 + diff --git a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch new file mode 100644 index 0000000..418df08 --- /dev/null +++ b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch @@ -0,0 +1,34 @@ +From e51db3fdf2b3abde05235f6c14c396eae0048320 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Fri, 24 Apr 2015 09:45:41 -0400 +Subject: [PATCH 3/9] RHEL: Fix list of supported sound cards to match RHEL + qemu (RHBZ#1176493). + +--- + v2v/utils.ml | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/v2v/utils.ml b/v2v/utils.ml +index 7136e4be..a6c359f0 100644 +--- a/v2v/utils.ml ++++ b/v2v/utils.ml +@@ -59,13 +59,14 @@ let kvm_arch = function + (* Does qemu support the given sound card? *) + let qemu_supports_sound_card = function + | Types.AC97 +- | Types.ES1370 + | Types.ICH6 + | Types.ICH9 + | Types.PCSpeaker ++ -> true ++ | Types.ES1370 + | Types.SB16 + | Types.USBAudio +- -> true ++ -> false + + (* Find the UEFI firmware. *) + let find_uefi_firmware guest_arch = +-- +2.30.1 + diff --git a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch new file mode 100644 index 0000000..7a57f6b --- /dev/null +++ b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch @@ -0,0 +1,66 @@ +From 709e21ab98a6d207301161e6463dab8a77c87749 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Sun, 30 Aug 2015 03:21:57 -0400 +Subject: [PATCH 4/9] RHEL: Fix tests for libguestfs-winsupport. + +It doesn't let us use guestfish for arbitrary Windows edits. +--- + tests/test-v2v-virtio-win-iso.sh | 8 +++++++- + tests/test-v2v-windows-conversion.sh | 8 +++++++- + 2 files changed, 14 insertions(+), 2 deletions(-) + +diff --git a/tests/test-v2v-virtio-win-iso.sh b/tests/test-v2v-virtio-win-iso.sh +index 6e99f0f1..a8e572c5 100755 +--- a/tests/test-v2v-virtio-win-iso.sh ++++ b/tests/test-v2v-virtio-win-iso.sh +@@ -79,6 +79,12 @@ mktest () + :> "$script" + :> "$expected" + ++cat >> "$script" < "$response" ++guestfish --ro -a "$d/windows-sda" < "$script" > "$response" + diff -u "$expected" "$response" + + rm -r $d +diff --git a/tests/test-v2v-windows-conversion.sh b/tests/test-v2v-windows-conversion.sh +index f1da222a..ff94fe39 100755 +--- a/tests/test-v2v-windows-conversion.sh ++++ b/tests/test-v2v-windows-conversion.sh +@@ -73,6 +73,12 @@ mktest () + :> "$script" + :> "$expected" + ++cat >> "$script" < "$response" ++guestfish --ro -a "$d/windows-sda" < "$script" > "$response" + diff -u "$expected" "$response" + + # We also update the Registry several times, for firstboot, and (ONLY +-- +2.30.1 + diff --git a/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch b/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch new file mode 100644 index 0000000..e558ae3 --- /dev/null +++ b/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch @@ -0,0 +1,288 @@ +From 4773fdcb0be3517e658c8bf08ed65537851e43dc Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Thu, 14 Jan 2016 11:53:42 -0500 +Subject: [PATCH 5/9] RHEL: v2v: Disable the virt-v2v --in-place option. + +This disables the virt-v2v --in-place option which we do not +wish to support in RHEL. +(See commit d0069559a939e47e5f29973ed9a69a13f0b58301). +--- + docs/test-v2v-docs.sh | 1 + + docs/virt-v2v.pod | 50 +---------------- + tests/Makefile.am | 2 - + tests/test-v2v-in-place.sh | 108 ------------------------------------- + v2v/cmdline.ml | 8 +-- + 5 files changed, 8 insertions(+), 161 deletions(-) + delete mode 100755 tests/test-v2v-in-place.sh + +diff --git a/docs/test-v2v-docs.sh b/docs/test-v2v-docs.sh +index dd2b1233..8fef46cc 100755 +--- a/docs/test-v2v-docs.sh ++++ b/docs/test-v2v-docs.sh +@@ -27,6 +27,7 @@ $top_srcdir/podcheck.pl virt-v2v.pod virt-v2v \ + --debug-overlay,\ + --ic,\ + --if,\ ++--in-place,\ + --io,\ + --ip,\ + --it,\ +diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod +index 06ddd781..50b0bc8e 100644 +--- a/docs/virt-v2v.pod ++++ b/docs/virt-v2v.pod +@@ -8,10 +8,6 @@ virt-v2v - Convert a guest to use KVM + [-o mode] [other -o* options] + [guest|filename] + +- virt-v2v --in-place +- [-i mode] [other -i* options] +- [guest|filename] +- + =head1 DESCRIPTION + + Virt-v2v converts a single guest from a foreign hypervisor to run on +@@ -39,9 +35,6 @@ these sides of virt-v2v are documented separately in this manual. + + Virt-v2v normally copies from the input to the output, called "copying + mode". In this case the source guest is always left unchanged. +-In-place conversion (I<--in-place>) only uses the I<-i*> options and +-modifies the source guest in-place. (See L +-below.) + + =head2 Other virt-v2v topics + +@@ -301,20 +294,6 @@ For I<-i disk> only, this specifies the format of the input disk + image. For other input methods you should specify the input + format in the metadata. + +-=item B<--in-place> +- +-Do not create an output virtual machine in the target hypervisor. +-Instead, adjust the guest OS in the source VM to run in the input +-hypervisor. +- +-This mode is meant for integration with other toolsets, which take the +-responsibility of converting the VM configuration, providing for +-rollback in case of errors, transforming the storage, etc. +- +-See L below. +- +-Conflicts with all I<-o *> options. +- + =item B<-io> OPTION=VALUE + + Set input option(s) related to the current input mode or transport. +@@ -1332,8 +1311,8 @@ have at least 100 available inodes. + =head3 Minimum free space check in the host + + You must have sufficient free space in the host directory used to +-store large temporary overlays (except in I<--in-place> mode). To +-find out which directory this is, use: ++store large temporary overlays. To find out ++which directory this is, use: + + $ df -h "`guestfish get-cachedir`" + Filesystem Size Used Avail Use% Mounted on +@@ -1471,31 +1450,6 @@ that instead. + + + +-=head2 In-place conversion +- +-It is also possible to use virt-v2v in scenarios where a foreign VM +-has already been imported into a KVM-based hypervisor, but still needs +-adjustments in the guest to make it run in the new virtual hardware. +- +-In that case it is assumed that a third-party tool has created the +-target VM in the supported KVM-based hypervisor based on the source VM +-configuration and contents, but using virtual devices more appropriate +-for KVM (e.g. virtio storage and network, etc.). +- +-Then, to make the guest OS boot and run in the changed environment, +-one can use: +- +- virt-v2v -ic qemu:///system converted_vm --in-place +- +-Virt-v2v will analyze the configuration of C in the +-C libvirt instance, and apply various fixups to the +-guest OS configuration to make it match the VM configuration. This +-may include installing virtio drivers, configuring the bootloader, the +-mountpoints, the network interfaces, and so on. +- +-Should an error occur during the operation, virt-v2v exits with an +-error code leaving the VM in an undefined state. +- + =head2 Machine readable output + + The I<--machine-readable> option can be used to make the output more +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 871dc3c9..eee4e1af 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -76,7 +76,6 @@ TESTS = \ + test-v2v-floppy.sh \ + test-v2v-i-disk.sh \ + test-v2v-i-ova.sh \ +- test-v2v-in-place.sh \ + test-v2v-mac.sh \ + test-v2v-machine-readable.sh \ + test-v2v-networks-and-bridges.sh \ +@@ -225,7 +224,6 @@ EXTRA_DIST += \ + test-v2v-i-vmx-3.vmx \ + test-v2v-i-vmx-4.vmx \ + test-v2v-i-vmx-5.vmx \ +- test-v2v-in-place.sh \ + test-v2v-it-vddk-io-query.sh \ + test-v2v-machine-readable.sh \ + test-v2v-mac-expected.xml \ +diff --git a/tests/test-v2v-in-place.sh b/tests/test-v2v-in-place.sh +deleted file mode 100755 +index 6f7d78f3..00000000 +--- a/tests/test-v2v-in-place.sh ++++ /dev/null +@@ -1,108 +0,0 @@ +-#!/bin/bash - +-# libguestfs virt-v2v test script +-# Copyright (C) 2014 Red Hat Inc. +-# Copyright (C) 2015 Parallels IP Holdings GmbH. +-# +-# This program is free software; you can redistribute it and/or modify +-# it under the terms of the GNU General Public License as published by +-# the Free Software Foundation; either version 2 of the License, or +-# (at your option) any later version. +-# +-# This program is distributed in the hope that it will be useful, +-# but WITHOUT ANY WARRANTY; without even the implied warranty of +-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-# GNU General Public License for more details. +-# +-# You should have received a copy of the GNU General Public License +-# along with this program; if not, write to the Free Software +-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +- +-# Test --in-place. +- +-unset CDPATH +-export LANG=C +-set -e +- +-$TEST_FUNCTIONS +-skip_if_skipped +-skip_if_backend uml +-skip_unless_phony_guest windows.img +- +-img_base="$abs_top_builddir/test-data/phony-guests/windows.img" +- +-export VIRT_TOOLS_DATA_DIR="$top_srcdir/test-data/fake-virt-tools" +-export VIRTIO_WIN="$top_srcdir/test-data/fake-virtio-win" +- +-d=$PWD/test-v2v-in-place.d +-rm -rf $d +-mkdir $d +- +-img="$d/test.qcow2" +-rm -f $img +-qemu-img create -f qcow2 -b $img_base -o compat=1.1,backing_fmt=raw $img +-md5="$(do_md5 $img_base)" +- +-libvirt_xml="$d/test.xml" +-rm -f $libvirt_xml +-n=windows-overlay +-cat > $libvirt_xml < +- +- $n +- 1048576 +- +- hvm +- +- +- +- +- +- +- +- +- +- +- +-EOF +- +-$VG virt-v2v --debug-gc -i libvirt -ic "test://$libvirt_xml" $n --in-place +- +-# Test that the drivers have been copied over into the guest +-script="$d/test.fish" +-expected="$d/expected" +-response="$d/response" +- +-mktest () +-{ +- local cmd="$1" exp="$2" +- +- echo "echo '$cmd'" >> "$script" +- echo "$cmd" >> "$expected" +- +- echo "$cmd" >> "$script" +- echo "$exp" >> "$expected" +-} +- +-:> "$script" +-:> "$expected" +- +-firstboot_dir="/Program Files/Guestfs/Firstboot" +-mktest "is-dir \"$firstboot_dir\"" true +-mktest "is-file \"$firstboot_dir/firstboot.bat\"" true +-mktest "is-dir \"$firstboot_dir/scripts\"" true +-virtio_dir="/Windows/Drivers/VirtIO" +-mktest "is-dir \"$virtio_dir\"" true +-for drv in netkvm qxl vioscsi viostor; do +- for sfx in cat inf sys; do +- mktest "is-file \"$virtio_dir/$drv.$sfx\"" true +- done +-done +- +-guestfish --ro -a "$img" -i < "$script" > "$response" +-diff -u "$expected" "$response" +- +-# Test the base image remained untouched +-test "$md5" = "$(do_md5 $img_base)" +- +-# Clean up. +-rm -r $d +diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml +index df69e2e0..7b79d462 100644 +--- a/v2v/cmdline.ml ++++ b/v2v/cmdline.ml +@@ -252,8 +252,7 @@ let parse_cmdline () = + s_"Use password from file to connect to input hypervisor"; + [ M"it" ], Getopt.String ("transport", set_string_option_once "-it" input_transport), + s_"Input transport"; +- [ L"in-place" ], Getopt.Set in_place, +- s_"Only tune the guest in the input VM"; ++ [ L"in-place" ], Getopt.Set in_place, Getopt.hidden_option_description; + [ L"mac" ], Getopt.String ("mac:network|bridge|ip:out", add_mac), + s_"Map NIC to network or bridge or assign static IP"; + [ S 'n'; L"network" ], Getopt.String ("in:out", add_network), +@@ -396,7 +395,6 @@ read the man page virt-v2v(1). + pr "vddk\n"; + pr "colours-option\n"; + pr "vdsm-compat-option\n"; +- pr "in-place\n"; + pr "io/oo\n"; + pr "mac-option\n"; + pr "bandwidth-option\n"; +@@ -572,6 +570,10 @@ read the man page virt-v2v(1). + error (f_"only ‘-it ssh’ can be used here") in + Input_vmx.input_vmx input_password input_transport arg in + ++ (* Prevent use of --in-place option in RHEL. *) ++ if in_place then ++ error (f_"--in-place cannot be used in RHEL"); ++ + (* Common error message. *) + let error_option_cannot_be_used_in_output_mode mode opt = + error (f_"-o %s: %s option cannot be used in this output mode") mode opt +-- +2.30.1 + diff --git a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch new file mode 100644 index 0000000..fe04aed --- /dev/null +++ b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch @@ -0,0 +1,26 @@ +From a128631fded7e2c4e45fcf4304945ca430296944 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Thu, 2 Mar 2017 14:21:37 +0100 +Subject: [PATCH 6/9] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) + +The SDL output mode is not supported in RHEL's qemu-kvm. +--- + v2v/input_disk.ml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml +index d146e84c..4e403003 100644 +--- a/v2v/input_disk.ml ++++ b/v2v/input_disk.ml +@@ -89,7 +89,7 @@ class input_disk input_format disk = object + s_features = [ "acpi"; "apic"; "pae" ]; + s_firmware = UnknownFirmware; (* causes virt-v2v to autodetect *) + s_display = +- Some { s_display_type = Window; s_keymap = None; s_password = None; ++ Some { s_display_type = VNC; s_keymap = None; s_password = None; + s_listen = LNoListen; s_port = None }; + s_video = None; + s_sound = None; +-- +2.30.1 + diff --git a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch new file mode 100644 index 0000000..bf4b946 --- /dev/null +++ b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch @@ -0,0 +1,26 @@ +From c72bbcd9b22408023c686e64040db2693dd70467 Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Wed, 8 Mar 2017 11:03:40 +0100 +Subject: [PATCH 7/9] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) + +They are not supported in RHEL. +--- + docs/virt-v2v-input-xen.pod | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/virt-v2v-input-xen.pod b/docs/virt-v2v-input-xen.pod +index 3b3cf0f0..32da2848 100644 +--- a/docs/virt-v2v-input-xen.pod ++++ b/docs/virt-v2v-input-xen.pod +@@ -12,7 +12,7 @@ virt-v2v-input-xen - Using virt-v2v to convert guests from Xen + =head1 DESCRIPTION + + This page documents how to use L to convert guests from +-RHEL 5 Xen, or SLES and OpenSUSE Xen hosts. ++RHEL 5 Xen hosts. + + =head1 INPUT FROM XEN + +-- +2.30.1 + diff --git a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch new file mode 100644 index 0000000..c2d55e3 --- /dev/null +++ b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch @@ -0,0 +1,89 @@ +From 4663022f13c209260341b4586ef8787cfe158ea5 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Mon, 14 May 2018 10:16:58 +0100 +Subject: [PATCH 8/9] RHEL: v2v: rhv-upload: Remove restriction on -oa sparse. + +See: https://bugzilla.redhat.com/show_bug.cgi?id=1565681 +and the v2v-devel private thread "Do we already support migration using FC?" +--- + docs/virt-v2v-output-rhv.pod | 8 +------- + v2v/output_rhv_upload.ml | 10 +--------- + v2v/rhv-upload-plugin.py | 4 +--- + 3 files changed, 3 insertions(+), 19 deletions(-) + +diff --git a/docs/virt-v2v-output-rhv.pod b/docs/virt-v2v-output-rhv.pod +index 7c9b478a..36c3676f 100644 +--- a/docs/virt-v2v-output-rhv.pod ++++ b/docs/virt-v2v-output-rhv.pod +@@ -5,7 +5,7 @@ virt-v2v-output-rhv - Using virt-v2v to convert guests to oVirt or RHV + =head1 SYNOPSIS + + virt-v2v [-i* options] -o rhv-upload [-oc ENGINE_URL] -os STORAGE +- [-op PASSWORD] [-of raw] ++ [-op PASSWORD] + [-oo rhv-cafile=FILE] + [-oo rhv-cluster=CLUSTER] + [-oo rhv-direct] +@@ -79,12 +79,6 @@ username is not specified then virt-v2v defaults to using + C which is the typical superuser account for oVirt + instances. + +-=item I<-of raw> +- +-Currently you must use I<-of raw> and you cannot use I<-oa preallocated>. +- +-These restrictions will be loosened in a future version. +- + =item I<-op> F + + A file containing a password to be used when connecting to the oVirt +diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml +index dbef7011..27925d7d 100644 +--- a/v2v/output_rhv_upload.ml ++++ b/v2v/output_rhv_upload.ml +@@ -135,17 +135,10 @@ let error_unless_nbdkit_compiled_with_selinux config = + error (f_"nbdkit was compiled without SELinux support. You will have to recompile nbdkit with libselinux-devel installed, or else set SELinux to Permissive mode while doing the conversion.") + ) + +-(* Output sparse must be sparse. We may be able to +- * lift this limitation in future, but it requires changes on the +- * RHV side. See TODO file for details. XXX +- *) ++(* Output format must be raw. *) + let error_current_limitation required_param = + error (f_"rhv-upload: currently you must use ‘%s’. This restriction will be loosened in a future version.") required_param + +-let error_unless_output_alloc_sparse output_alloc = +- if output_alloc <> Sparse then +- error_current_limitation "-oa sparse" +- + let json_optstring = function + | Some s -> JSON.String s + | None -> JSON.Null +@@ -253,7 +246,6 @@ object + error_unless_nbdkit_min_version config; + error_unless_nbdkit_python_plugin_working plugin_script; + error_unless_nbdkit_compiled_with_selinux config; +- error_unless_output_alloc_sparse output_alloc; + + (* Python code prechecks. *) + let precheck_fn = tmpdir // "v2vprecheck.json" in +diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py +index 2b0178a9..d817d915 100644 +--- a/v2v/rhv-upload-plugin.py ++++ b/v2v/rhv-upload-plugin.py +@@ -491,10 +491,8 @@ def create_disk(connection): + # size, based on qemu-img measure of the overlay. + initial_size=params['disk_size'], + provisioned_size=params['disk_size'], +- # XXX Ignores params['output_sparse']. +- # Handling this properly will be complex, see: + # https://www.redhat.com/archives/libguestfs/2018-March/msg00177.html +- sparse=True, ++ sparse=params['output_sparse'], + storage_domains=[ + types.StorageDomain( + name=params['output_storage'], +-- +2.30.1 + diff --git a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch new file mode 100644 index 0000000..8e3f7e0 --- /dev/null +++ b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch @@ -0,0 +1,127 @@ +From 3fcf10ae7beaaf2de969b732afb35c9a5c36f52b Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Tue, 26 Mar 2019 09:42:25 +0100 +Subject: [PATCH 9/9] RHEL: point to KB for supported v2v hypervisors/guests + +--- + docs/virt-v2v-support.pod | 104 ++------------------------------------ + 1 file changed, 4 insertions(+), 100 deletions(-) + +diff --git a/docs/virt-v2v-support.pod b/docs/virt-v2v-support.pod +index 9815f51f..1ffc0f9d 100644 +--- a/docs/virt-v2v-support.pod ++++ b/docs/virt-v2v-support.pod +@@ -8,106 +8,10 @@ systems and guests in virt-v2v + This page documents which foreign hypervisors, virtualization + management systems and guest types that L can support. + +-Note this page applies to upstream virt-v2v from +-L and in downstream distributions of virt-v2v +-sometimes features are intentionally removed, or are present but not +-supported. +- +-=head2 Hypervisors (Input) +- +-=over 4 +- +-=item VMware ESXi +- +-Must be managed by VMware vCenter E 5.0 unless VDDK is available. +- +-=item OVA exported from VMware +- +-OVAs from other hypervisors will not work. +- +-=item VMX from VMware +- +-VMX files generated by other hypervisors will not work. +- +-=item RHEL 5 Xen +- +-=item SUSE Xen +- +-=item Citrix Xen +- +-Citrix Xen has not been recently tested. +- +-=item Hyper-V +- +-Not recently tested. Requires that you export the disk or use +-L on Hyper-V. +- +-=item Direct from disk images +- +-Only disk images exported from supported hypervisors, and using +-container formats supported by qemu. +- +-=item Physical machines +- +-Using the L tool. +- +-=back +- +-=head2 Hypervisors (Output) +- +-QEMU and KVM only. +- +-=head2 Virtualization management systems (Output) +- +-=over 4 +- +-=item OpenStack +- +-=item Red Hat Virtualization (RHV) 4.1 and up +- +-=item Local libvirt +- +-And hence L, L, and similar tools. +- +-=item Local disk +- +-=back +- +-=head2 Guests +- +-=over 4 +- +-=item Red Hat Enterprise Linux 3, 4, 5, 6, 7 +- +-=item CentOS 3, 4, 5, 6, 7 +- +-=item Scientific Linux 3, 4, 5, 6, 7 +- +-=item Oracle Linux +- +-=item Fedora +- +-=item SLES 10 and up +- +-=item OpenSUSE 10 and up +- +-=item ALT Linux 9 and up +- +-=item Debian 6 and up +- +-=item Ubuntu 10.04, 12.04, 14.04, 16.04, and up +- +-=item Windows XP to Windows 10 / Windows Server 2016 +- +-We use Windows internal version numbers, see +-L +- +-Currently NT 5.2 to NT 6.3 are supported. +- +-See L below for additional notes on converting Windows +-guests. +- +-=back ++For more information on supported hypervisors, and guest types in ++RHEL, please consult the following Knowledgebase article on these ++Red Hat Customer Portal: ++L. + + =head2 Guest firmware + +-- +2.30.1 + diff --git a/virt-v2v.spec b/virt-v2v.spec index f41491c..e9b88fa 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -2,7 +2,12 @@ %global verify_tarball_signature 1 # If there are patches which touch autotools files, set this to 1. +%if !0%{?rhel} %global patches_touch_autotools %{nil} +%else +# On RHEL the downstream patches always touch autotools files. +%global patches_touch_autotools 1 +%endif # The source directory. %global source_directory 1.43-development @@ -10,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.43.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -43,6 +48,19 @@ ExcludeArch: %{ix86} ExclusiveArch: x86_64 %endif +# Downstream (RHEL-only) patches. +%if 0%{?rhel} +Patch9001: 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +Patch9002: 0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch +Patch9003: 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +Patch9004: 0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch +Patch9005: 0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch +Patch9006: 0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +Patch9007: 0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +Patch9008: 0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch +Patch9009: 0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +%endif + %if 0%{patches_touch_autotools} BuildRequires: autoconf, automake, libtool %endif @@ -265,6 +283,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Tue Mar 30 2021 Richard W.M. Jones - 1:1.43.4-3 +- Add downstream (RHEL-only) patches (RHBZ#1931724). + * Mon Mar 8 2021 Richard W.M. Jones - 1:1.43.4-2 - Bump and rebuild for ocaml-gettext update. From bed8938b69de8ef6fb46a7b55e11f0ef5a7bd783 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 31 Mar 2021 20:17:41 +0100 Subject: [PATCH 007/183] Add BR xorriso. This will be required by virt-v2v >= 1.43.5. Previously genisoimage was being implicitly pulled in (via libguestfs) but recent changes to libguestfs mean that this will no longer happen. --- virt-v2v.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index e9b88fa..9b397ea 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -84,6 +84,7 @@ BuildRequires: pcre-devel BuildRequires: perl(Sys::Guestfs) BuildRequires: po4a BuildRequires: /usr/bin/virsh +BuildRequires: xorriso BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-libguestfs-devel From 4c68cfae2025e1505a308e760d7b47364622e1e4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Apr 2021 09:37:59 +0100 Subject: [PATCH 008/183] Add upstream patch to depend on xorriso. --- ...riso-over-genisoimage-to-generate-te.patch | 62 +++++++++++++++++++ virt-v2v.spec | 8 ++- 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch diff --git a/0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch b/0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch new file mode 100644 index 0000000..b9ff242 --- /dev/null +++ b/0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch @@ -0,0 +1,62 @@ +From 7a346548c052d535015f98874ea52dee4b392947 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Tue, 30 Mar 2021 12:41:58 +0100 +Subject: [PATCH] tests: Prefer xorriso over genisoimage to generate test.iso + +This Debian page explains the upstream situation: +https://wiki.debian.org/genisoimage + +On Fedora, xorriso provides a compatibility program called "mkisofs". +However this is not present in Debian. Hence the choice to look for +the program called "xorrisofs". + +(cherry picked from commit 2216ab2e328457ef172d6bfa534272edf2f81a3a) +--- + m4/guestfs-progs.m4 | 6 +++--- + test-data/Makefile.am | 2 +- + test-data/fake-virtio-win/Makefile.am | 2 +- + 3 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/m4/guestfs-progs.m4 b/m4/guestfs-progs.m4 +index 4575a72a9..8f34faefa 100644 +--- a/m4/guestfs-progs.m4 ++++ b/m4/guestfs-progs.m4 +@@ -39,10 +39,10 @@ AC_PROG_AWK + + AC_PROG_LN_S + +-dnl Check for genisoimage/mkisofs +-AC_PATH_PROGS([GENISOIMAGE],[genisoimage mkisofs],[no], ++dnl Check for xorriso/genisoimage/mkisofs. ++AC_PATH_PROGS([MKISOFS],[xorrisofs genisoimage mkisofs],[no], + [$PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin]) +-test "x$GENISOIMAGE" = "xno" && AC_MSG_ERROR([genisoimage must be installed]) ++test "x$MKISOFS" = "xno" && AC_MSG_ERROR([xorriso or genisoimage or mkisofs must be installed]) + + dnl po4a for translating man pages and POD files (optional). + AC_CHECK_PROG([PO4A_GETTEXTIZE],[po4a-gettextize],[po4a-gettextize],[no]) +diff --git a/test-data/Makefile.am b/test-data/Makefile.am +index 8a60c72f6..69170516e 100644 +--- a/test-data/Makefile.am ++++ b/test-data/Makefile.am +@@ -97,6 +97,6 @@ test.iso: $(images_files) + cp $(image_files) d/ + mkdir -p d/directory + cd d && ln -sf /10klines abssymlink +- cd d && $(GENISOIMAGE) -J -r -o ../$@-t . ++ cd d && $(MKISOFS) -J -r -o ../$@-t . + rm -rf d + mv $@-t $@ +diff --git a/test-data/fake-virtio-win/Makefile.am b/test-data/fake-virtio-win/Makefile.am +index 9851ca07d..55b91a95a 100644 +--- a/test-data/fake-virtio-win/Makefile.am ++++ b/test-data/fake-virtio-win/Makefile.am +@@ -598,4 +598,4 @@ check_DATA = fake-virtio-win.iso + CLEANFILES += fake-virtio-win.iso + + fake-virtio-win.iso: $(cd_files) +- $(GENISOIMAGE) -J -r -o $@ $(srcdir)/cd ++ $(MKISOFS) -J -r -o $@ $(srcdir)/cd +-- +2.29.0.rc2 + diff --git a/virt-v2v.spec b/virt-v2v.spec index 9b397ea..5980dbb 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.43.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -48,6 +48,9 @@ ExcludeArch: %{ix86} ExclusiveArch: x86_64 %endif +# Upstream patch to replace genisoimage with xorriso. +Patch0001: 0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch + # Downstream (RHEL-only) patches. %if 0%{?rhel} Patch9001: 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -284,6 +287,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Thu Apr 01 2021 Richard W.M. Jones - 1:1.43.4-4 +- Add upstream patch to depend on xorriso. + * Tue Mar 30 2021 Richard W.M. Jones - 1:1.43.4-3 - Add downstream (RHEL-only) patches (RHBZ#1931724). From 3b8b4a23579b5b9ed68c9aba3066de1abfc991f9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Apr 2021 09:52:51 +0100 Subject: [PATCH 009/183] Previous patch touches autotools. --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 5980dbb..575644b 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -3,7 +3,7 @@ # If there are patches which touch autotools files, set this to 1. %if !0%{?rhel} -%global patches_touch_autotools %{nil} +%global patches_touch_autotools 1 %else # On RHEL the downstream patches always touch autotools files. %global patches_touch_autotools 1 From d81b7720bf7a95a1c6eb8da965da6f389a21a1eb Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Apr 2021 14:33:55 +0100 Subject: [PATCH 010/183] Change libguestfs-tools-c -> guestfs-tools. Thanks: Ming Xie --- virt-v2v.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 575644b..2dd851c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.43.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -104,7 +104,7 @@ BuildRequires: gnupg2 %endif Requires: libguestfs%{?_isa} >= 1:1.42 -Requires: libguestfs-tools-c >= 1:1.42 +Requires: guestfs-tools >= 1.42 %if 0%{?rhel} # For Windows conversions on RHEL. @@ -287,8 +287,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog -* Thu Apr 01 2021 Richard W.M. Jones - 1:1.43.4-4 +* Thu Apr 01 2021 Richard W.M. Jones - 1:1.43.4-5 - Add upstream patch to depend on xorriso. +- Change libguestfs-tools-c -> guestfs-tools. * Tue Mar 30 2021 Richard W.M. Jones - 1:1.43.4-3 - Add downstream (RHEL-only) patches (RHBZ#1931724). From 989dd6b636a1f2a3504ff0f4887a199992fa528e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 14 Apr 2021 12:42:59 +0100 Subject: [PATCH 011/183] New upstream version 1.43.5. --- ...riso-over-genisoimage-to-generate-te.patch | 62 ------------------- sources | 4 +- virt-v2v.spec | 12 ++-- 3 files changed, 8 insertions(+), 70 deletions(-) delete mode 100644 0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch diff --git a/0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch b/0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch deleted file mode 100644 index b9ff242..0000000 --- a/0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch +++ /dev/null @@ -1,62 +0,0 @@ -From 7a346548c052d535015f98874ea52dee4b392947 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Tue, 30 Mar 2021 12:41:58 +0100 -Subject: [PATCH] tests: Prefer xorriso over genisoimage to generate test.iso - -This Debian page explains the upstream situation: -https://wiki.debian.org/genisoimage - -On Fedora, xorriso provides a compatibility program called "mkisofs". -However this is not present in Debian. Hence the choice to look for -the program called "xorrisofs". - -(cherry picked from commit 2216ab2e328457ef172d6bfa534272edf2f81a3a) ---- - m4/guestfs-progs.m4 | 6 +++--- - test-data/Makefile.am | 2 +- - test-data/fake-virtio-win/Makefile.am | 2 +- - 3 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/m4/guestfs-progs.m4 b/m4/guestfs-progs.m4 -index 4575a72a9..8f34faefa 100644 ---- a/m4/guestfs-progs.m4 -+++ b/m4/guestfs-progs.m4 -@@ -39,10 +39,10 @@ AC_PROG_AWK - - AC_PROG_LN_S - --dnl Check for genisoimage/mkisofs --AC_PATH_PROGS([GENISOIMAGE],[genisoimage mkisofs],[no], -+dnl Check for xorriso/genisoimage/mkisofs. -+AC_PATH_PROGS([MKISOFS],[xorrisofs genisoimage mkisofs],[no], - [$PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin]) --test "x$GENISOIMAGE" = "xno" && AC_MSG_ERROR([genisoimage must be installed]) -+test "x$MKISOFS" = "xno" && AC_MSG_ERROR([xorriso or genisoimage or mkisofs must be installed]) - - dnl po4a for translating man pages and POD files (optional). - AC_CHECK_PROG([PO4A_GETTEXTIZE],[po4a-gettextize],[po4a-gettextize],[no]) -diff --git a/test-data/Makefile.am b/test-data/Makefile.am -index 8a60c72f6..69170516e 100644 ---- a/test-data/Makefile.am -+++ b/test-data/Makefile.am -@@ -97,6 +97,6 @@ test.iso: $(images_files) - cp $(image_files) d/ - mkdir -p d/directory - cd d && ln -sf /10klines abssymlink -- cd d && $(GENISOIMAGE) -J -r -o ../$@-t . -+ cd d && $(MKISOFS) -J -r -o ../$@-t . - rm -rf d - mv $@-t $@ -diff --git a/test-data/fake-virtio-win/Makefile.am b/test-data/fake-virtio-win/Makefile.am -index 9851ca07d..55b91a95a 100644 ---- a/test-data/fake-virtio-win/Makefile.am -+++ b/test-data/fake-virtio-win/Makefile.am -@@ -598,4 +598,4 @@ check_DATA = fake-virtio-win.iso - CLEANFILES += fake-virtio-win.iso - - fake-virtio-win.iso: $(cd_files) -- $(GENISOIMAGE) -J -r -o $@ $(srcdir)/cd -+ $(MKISOFS) -J -r -o $@ $(srcdir)/cd --- -2.29.0.rc2 - diff --git a/sources b/sources index 37e3750..0944d2f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.43.4.tar.gz) = 3c11ea864b0a1dd579c8dff891295be9200c9ba9e1d804cfd50aa356d626b8aa11a08c70ac2c6e20e5e9e023fea0d46e8f84edc1fca59484521ca273857f5c57 -SHA512 (virt-v2v-1.43.4.tar.gz.sig) = 292d02fc94888446016b34637e1ea913a753d0f430a130f881b7f101ed4887b13b91c551353c45f9f73d9876b1e3941e846e8ecde5ed3996c999578557bbc944 +SHA512 (virt-v2v-1.43.5.tar.gz) = 7d9222a98894683d7f399fe62fa9bd2a2d01eebcd68484a38dec1fee0b477f977c56773e3ddb8fd7283f493795217f36e4272bc8d8905484492e6bb38ec1b1f2 +SHA512 (virt-v2v-1.43.5.tar.gz.sig) = 107c3c6716b13ee7d8482d4a5592fcfd25a39cc6e983fe95da5d712a2316bc3543fc00005abe426b835c7c9a9264c724693c73db2940f787e329460f35e601c8 diff --git a/virt-v2v.spec b/virt-v2v.spec index 2dd851c..fd6c803 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -3,7 +3,7 @@ # If there are patches which touch autotools files, set this to 1. %if !0%{?rhel} -%global patches_touch_autotools 1 +%global patches_touch_autotools %{nil} %else # On RHEL the downstream patches always touch autotools files. %global patches_touch_autotools 1 @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 1.43.4 -Release: 5%{?dist} +Version: 1.43.5 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -48,9 +48,6 @@ ExcludeArch: %{ix86} ExclusiveArch: x86_64 %endif -# Upstream patch to replace genisoimage with xorriso. -Patch0001: 0001-tests-Prefer-xorriso-over-genisoimage-to-generate-te.patch - # Downstream (RHEL-only) patches. %if 0%{?rhel} Patch9001: 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -287,6 +284,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Wed Apr 14 2021 Richard W.M. Jones - 1:1.43.5-1 +- New upstream version 1.43.5. + * Thu Apr 01 2021 Richard W.M. Jones - 1:1.43.4-5 - Add upstream patch to depend on xorriso. - Change libguestfs-tools-c -> guestfs-tools. From 4ba366e0fbe7a5b33f55f30225e7e5a0f259b9fd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 27 Apr 2021 17:58:39 +0100 Subject: [PATCH 012/183] Update RHEL patches. --- ...correct-qemu-binary-for-o-qemu-mode-.patch | 2 +- ...le-the-qemu-boot-option-RHBZ-1147313.patch | 4 ++-- ...-supported-sound-cards-to-match-RHEL.patch | 2 +- ...-Fix-tests-for-libguestfs-winsupport.patch | 21 +++++++++++++++---- ...Disable-the-virt-v2v-in-place-option.patch | 8 +++---- ...sk-force-VNC-as-display-RHBZ-1372671.patch | 2 +- ...-mention-SUSE-Xen-hosts-RHBZ-1430203.patch | 2 +- ...load-Remove-restriction-on-oa-sparse.patch | 2 +- ...-for-supported-v2v-hypervisors-guest.patch | 2 +- 9 files changed, 29 insertions(+), 16 deletions(-) diff --git a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch index 94f2e9c..69fcfc1 100644 --- a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +++ b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -1,4 +1,4 @@ -From 9918c857eca2ce4efddb4ed9f17dccfc6144471f Mon Sep 17 00:00:00 2001 +From 21781d79e323f7eaee7deb6981ecb783e35a39af Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 28 Sep 2014 19:14:43 +0100 Subject: [PATCH 1/9] RHEL: v2v: Select correct qemu binary for -o qemu mode diff --git a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch index 1ccfcbd..837d7de 100644 --- a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch +++ b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch @@ -1,4 +1,4 @@ -From 51d18cc8da56f5b8395ae2f5edd6b11cda5c84df Mon Sep 17 00:00:00 2001 +From 05de88f9fe2415664adff793351f916cc6a01485 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Sep 2014 10:50:27 +0100 Subject: [PATCH 2/9] RHEL: v2v: Disable the --qemu-boot option (RHBZ#1147313). @@ -42,7 +42,7 @@ index a5f155cb..3a2e6238 100644 =item B<-o json -os> C diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index 9323ff52..06ddd781 100644 +index fb8b6a5d..924e1d2d 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod @@ -144,11 +144,6 @@ Since F contains the path(s) to the guest disk diff --git a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch index 418df08..61b73d2 100644 --- a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +++ b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch @@ -1,4 +1,4 @@ -From e51db3fdf2b3abde05235f6c14c396eae0048320 Mon Sep 17 00:00:00 2001 +From f3c0c18b122b55e3f94b3bb757addaf18c2c5b6f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 24 Apr 2015 09:45:41 -0400 Subject: [PATCH 3/9] RHEL: Fix list of supported sound cards to match RHEL diff --git a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch index 7a57f6b..41ecc50 100644 --- a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch +++ b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch @@ -1,14 +1,27 @@ -From 709e21ab98a6d207301161e6463dab8a77c87749 Mon Sep 17 00:00:00 2001 +From 2a4386e45aa52ebfdd501a8189458e2a6bad4708 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 30 Aug 2015 03:21:57 -0400 Subject: [PATCH 4/9] RHEL: Fix tests for libguestfs-winsupport. It doesn't let us use guestfish for arbitrary Windows edits. --- - tests/test-v2v-virtio-win-iso.sh | 8 +++++++- - tests/test-v2v-windows-conversion.sh | 8 +++++++- - 2 files changed, 14 insertions(+), 2 deletions(-) + test-data/phony-guests/make-windows-img.sh | 1 + + tests/test-v2v-virtio-win-iso.sh | 8 +++++++- + tests/test-v2v-windows-conversion.sh | 8 +++++++- + 3 files changed, 15 insertions(+), 2 deletions(-) +diff --git a/test-data/phony-guests/make-windows-img.sh b/test-data/phony-guests/make-windows-img.sh +index 30908a91..73cf5144 100755 +--- a/test-data/phony-guests/make-windows-img.sh ++++ b/test-data/phony-guests/make-windows-img.sh +@@ -37,6 +37,7 @@ fi + + # Create a disk image. + guestfish < Date: Thu, 14 Jan 2016 11:53:42 -0500 Subject: [PATCH 5/9] RHEL: v2v: Disable the virt-v2v --in-place option. @@ -28,7 +28,7 @@ index dd2b1233..8fef46cc 100755 --ip,\ --it,\ diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index 06ddd781..50b0bc8e 100644 +index 924e1d2d..4016c724 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod @@ -8,10 +8,6 @@ virt-v2v - Convert a guest to use KVM @@ -73,7 +73,7 @@ index 06ddd781..50b0bc8e 100644 =item B<-io> OPTION=VALUE Set input option(s) related to the current input mode or transport. -@@ -1332,8 +1311,8 @@ have at least 100 available inodes. +@@ -1338,8 +1317,8 @@ have at least 100 available inodes. =head3 Minimum free space check in the host You must have sufficient free space in the host directory used to @@ -84,7 +84,7 @@ index 06ddd781..50b0bc8e 100644 $ df -h "`guestfish get-cachedir`" Filesystem Size Used Avail Use% Mounted on -@@ -1471,31 +1450,6 @@ that instead. +@@ -1477,31 +1456,6 @@ that instead. diff --git a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch index fe04aed..8ffe091 100644 --- a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +++ b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch @@ -1,4 +1,4 @@ -From a128631fded7e2c4e45fcf4304945ca430296944 Mon Sep 17 00:00:00 2001 +From bf5b711b261a6a577a441235db68ad58b20711bd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Mar 2017 14:21:37 +0100 Subject: [PATCH 6/9] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) diff --git a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch index bf4b946..1e0fd47 100644 --- a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +++ b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch @@ -1,4 +1,4 @@ -From c72bbcd9b22408023c686e64040db2693dd70467 Mon Sep 17 00:00:00 2001 +From d3eece67059c836c88f6001a5a928a3063a1aaa2 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 8 Mar 2017 11:03:40 +0100 Subject: [PATCH 7/9] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) diff --git a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch index c2d55e3..a1ad4a0 100644 --- a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch +++ b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch @@ -1,4 +1,4 @@ -From 4663022f13c209260341b4586ef8787cfe158ea5 Mon Sep 17 00:00:00 2001 +From fba7d8bf5dad6fce2a0122570f6b69e0db9ce697 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 May 2018 10:16:58 +0100 Subject: [PATCH 8/9] RHEL: v2v: rhv-upload: Remove restriction on -oa sparse. diff --git a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch index 8e3f7e0..a7b5eb3 100644 --- a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +++ b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch @@ -1,4 +1,4 @@ -From 3fcf10ae7beaaf2de969b732afb35c9a5c36f52b Mon Sep 17 00:00:00 2001 +From b003d781dacf76572e11fad17ea699a99a324f54 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 26 Mar 2019 09:42:25 +0100 Subject: [PATCH 9/9] RHEL: point to KB for supported v2v hypervisors/guests From 7dd7c798f39488f705947f4f32f2b40a9e8d0bf6 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 30 Apr 2021 15:52:35 +0100 Subject: [PATCH 013/183] New upstream stable branch version 1.44.0. --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 0944d2f..e06fc6f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.43.5.tar.gz) = 7d9222a98894683d7f399fe62fa9bd2a2d01eebcd68484a38dec1fee0b477f977c56773e3ddb8fd7283f493795217f36e4272bc8d8905484492e6bb38ec1b1f2 -SHA512 (virt-v2v-1.43.5.tar.gz.sig) = 107c3c6716b13ee7d8482d4a5592fcfd25a39cc6e983fe95da5d712a2316bc3543fc00005abe426b835c7c9a9264c724693c73db2940f787e329460f35e601c8 +SHA512 (virt-v2v-1.44.0.tar.gz) = 9d8de6c6376dd33a5fb4d5fd10fac13a8bce7d834bbb65274a09ae6558b2c3107c5ccb8b39b330a27ccff09313eb72cf7139f378d5e427af67589443168d7e17 +SHA512 (virt-v2v-1.44.0.tar.gz.sig) = e6b830389d475bb5514b8f6c6f273d06ed90bc31ff785c709964e4f492cbca6a5d78b25ad60605f9778ac9300754d62630481c80d4232d0fa17fefde65d22a90 diff --git a/virt-v2v.spec b/virt-v2v.spec index fd6c803..af137b9 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -10,11 +10,11 @@ %endif # The source directory. -%global source_directory 1.43-development +%global source_directory 1.44-stable Name: virt-v2v Epoch: 1 -Version: 1.43.5 +Version: 1.44.0 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -284,6 +284,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Fri Apr 30 2021 Richard W.M. Jones - 1:1.44.0-1 +- New upstream stable branch version 1.44.0. + * Wed Apr 14 2021 Richard W.M. Jones - 1:1.43.5-1 - New upstream version 1.43.5. From 6e9ced10a55236a45c6b2203d7c8ecd1a94758d2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 6 May 2021 17:50:21 +0100 Subject: [PATCH 014/183] Recommend libguestfs-xfs It is the default filesystem on Fedora and RHEL so usually required in order to convert those guests. --- virt-v2v.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index af137b9..64ca356 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -103,6 +103,9 @@ BuildRequires: gnupg2 Requires: libguestfs%{?_isa} >= 1:1.42 Requires: guestfs-tools >= 1.42 +# XFS is the default filesystem in Fedora and RHEL. +Recommends: libguestfs-xfs + %if 0%{?rhel} # For Windows conversions on RHEL. Requires: libguestfs-winsupport >= 7.2 From 7599291a166126f123e4e51281a6726eb6576974 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 7 May 2021 11:57:58 +0100 Subject: [PATCH 015/183] Change Recommends -> Requires for libguestfs-xfs. Just using Recommends is insufficient to get RHEL to pull in libguestfs-xfs as a dependency. Thanks: Josh Boyer --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 64ca356..d81c370 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -104,7 +104,7 @@ Requires: libguestfs%{?_isa} >= 1:1.42 Requires: guestfs-tools >= 1.42 # XFS is the default filesystem in Fedora and RHEL. -Recommends: libguestfs-xfs +Requires: libguestfs-xfs %if 0%{?rhel} # For Windows conversions on RHEL. From 41e9bece4c65761d85af8cb3bfae0f32314d7c14 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 10 Jun 2021 09:04:27 +0100 Subject: [PATCH 016/183] nbdkit-vddk-plugin dep only exists on x86-64 --- virt-v2v.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index d81c370..55b6e5a 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.44.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -131,7 +131,9 @@ Requires: nbdkit Requires: nbdkit-curl-plugin Requires: nbdkit-python-plugin Requires: nbdkit-ssh-plugin +%ifarch x86_64 Requires: nbdkit-vddk-plugin +%endif # For rhsrvany.exe, used to install firstboot scripts in Windows guests. Requires: mingw32-srvany >= 1.0-13 @@ -287,6 +289,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Thu Jun 10 2021 Richard W.M. Jones - 1:1.44.0-2 +- nbdkit-vddk-plugin dep only exists on x86-64. + * Fri Apr 30 2021 Richard W.M. Jones - 1:1.44.0-1 - New upstream stable branch version 1.44.0. From 00d876a814b7e9a30b933dac5e7a470c4277868d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 11 Jun 2021 14:52:39 +0100 Subject: [PATCH 017/183] Add gating tests https://bugzilla.redhat.com/show_bug.cgi?id=1950611 Thanks: Xiaodai Wang --- .gitignore | 2 ++ gating.yaml | 7 +++++++ tests/basic-test.sh | 10 ++++++++++ tests/tests.yml | 12 ++++++++++++ 4 files changed, 31 insertions(+) create mode 100755 gating.yaml create mode 100755 tests/basic-test.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index b00c2b0..8203505 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +*~ + # RPM target directories /x86_64 diff --git a/gating.yaml b/gating.yaml new file mode 100755 index 0000000..8c4c77a --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + - !PassingTestCaseRule {test_case_name: libvirt-ci.v2v.brew-build.gating.x86_64.tier1.functional} diff --git a/tests/basic-test.sh b/tests/basic-test.sh new file mode 100755 index 0000000..9c30edc --- /dev/null +++ b/tests/basic-test.sh @@ -0,0 +1,10 @@ +#!/bin/bash - +set -e +set -x + +# This only makes sure that virt-v2v isn't totally broken. +# virt-v2v is extensively tested on real guests by the QE +# team using a mix of automated and manual testing. + +virt-builder fedora-30 +virt-v2v -i disk fedora-30.img -o null diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..e67d372 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - virt-v2v + - guestfs-tools + tests: + - simple: + dir: . + run: ./basic-test.sh From b004c173884be5dd7d7f4b516a9f60ea93f174f0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 11 Jun 2021 18:43:04 +0100 Subject: [PATCH 018/183] tests: Try harder to fix libvirt Tests failed previously with: libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory --- tests/basic-test.sh | 3 +++ tests/tests.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/tests/basic-test.sh b/tests/basic-test.sh index 9c30edc..17fc7c3 100755 --- a/tests/basic-test.sh +++ b/tests/basic-test.sh @@ -6,5 +6,8 @@ set -x # virt-v2v is extensively tested on real guests by the QE # team using a mix of automated and manual testing. +# Fix libvirt. +systemctl restart libvirtd + virt-builder fedora-30 virt-v2v -i disk fedora-30.img -o null diff --git a/tests/tests.yml b/tests/tests.yml index e67d372..9dae6bd 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -6,6 +6,7 @@ required_packages: - virt-v2v - guestfs-tools + - libvirt-daemon-kvm tests: - simple: dir: . From c1c9277cd11decdefad25da5a8ad41929153024d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 16 Jun 2021 11:44:07 +0100 Subject: [PATCH 019/183] New upstream development version 1.45.1. --- sources | 4 ++-- virt-v2v.spec | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sources b/sources index e06fc6f..7d40232 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.44.0.tar.gz) = 9d8de6c6376dd33a5fb4d5fd10fac13a8bce7d834bbb65274a09ae6558b2c3107c5ccb8b39b330a27ccff09313eb72cf7139f378d5e427af67589443168d7e17 -SHA512 (virt-v2v-1.44.0.tar.gz.sig) = e6b830389d475bb5514b8f6c6f273d06ed90bc31ff785c709964e4f492cbca6a5d78b25ad60605f9778ac9300754d62630481c80d4232d0fa17fefde65d22a90 +SHA512 (virt-v2v-1.45.1.tar.gz) = be9cb75c2fe01e989d0b1f35e8496ed7e78076d17b4a4e7b24b6372a8cc3ed633d749dc5e5adf2d7c0d2a8a61f81b3d71cba47917f6a5e91edca341f2827627e +SHA512 (virt-v2v-1.45.1.tar.gz.sig) = 94afc18b3c5954b318dcf668fc6f71b5a3f9b0568f2b0bc27eea92a92096a1197cc24048b18df2a2d69ece56b2864ba5dcc1e4c0d469903ff631d541646ea3d2 diff --git a/virt-v2v.spec b/virt-v2v.spec index 55b6e5a..6b12b93 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -10,12 +10,12 @@ %endif # The source directory. -%global source_directory 1.44-stable +%global source_directory 1.45-development Name: virt-v2v Epoch: 1 -Version: 1.44.0 -Release: 2%{?dist} +Version: 1.45.1 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -289,6 +289,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog +* Wed Jun 16 2021 Richard W.M. Jones - 1:1.45.1-1 +- New upstream development version 1.45.1. + * Thu Jun 10 2021 Richard W.M. Jones - 1:1.44.0-2 - nbdkit-vddk-plugin dep only exists on x86-64. From 3a7cb22e41140e0a0f2fbf499e4470d16af93fe4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 16 Jun 2021 12:33:22 +0100 Subject: [PATCH 020/183] Require virtio-win on RHEL (RHBZ#1972644). --- virt-v2v.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index 6b12b93..5436f27 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -138,6 +138,12 @@ Requires: nbdkit-vddk-plugin # For rhsrvany.exe, used to install firstboot scripts in Windows guests. Requires: mingw32-srvany >= 1.0-13 +# On RHEL, virtio-win should be used to install virtio drivers +# and qemu-ga in converted guests. (RHBZ#1972644) +%if 0%{?rhel} +Requires: virtio-win +%endif + %description Virt-v2v converts a single guest from a foreign hypervisor to run on @@ -291,6 +297,7 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local %changelog * Wed Jun 16 2021 Richard W.M. Jones - 1:1.45.1-1 - New upstream development version 1.45.1. +- Require virtio-win on RHEL (RHBZ#1972644). * Thu Jun 10 2021 Richard W.M. Jones - 1:1.44.0-2 - nbdkit-vddk-plugin dep only exists on x86-64. From 85358a32264c5acad2e8e2fb959d7fb69e690977 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 16 Jun 2021 12:58:43 +0100 Subject: [PATCH 021/183] v2v-test-harness, virt-v2v-copy-to-local have been removed upstream. --- virt-v2v.spec | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 5436f27..1278525 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -221,16 +221,6 @@ pushd $RPM_BUILD_ROOT%{_datadir}/virt-tools ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe popd -# Delete the v2v test harness. -rm -r $RPM_BUILD_ROOT%{_libdir}/ocaml/v2v_test_harness -rm -r $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllv2v_test_harness* -rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-test-harness.1* - -# Delete copy-to-local tool. -rm $RPM_BUILD_ROOT%{_bindir}/virt-v2v-copy-to-local -rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-copy-to-local.1* -rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local - # Find locale files. %find_lang %{name} @@ -298,6 +288,7 @@ rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/virt-v2v-copy-to-local * Wed Jun 16 2021 Richard W.M. Jones - 1:1.45.1-1 - New upstream development version 1.45.1. - Require virtio-win on RHEL (RHBZ#1972644). +- v2v-test-harness, virt-v2v-copy-to-local have been removed upstream. * Thu Jun 10 2021 Richard W.M. Jones - 1:1.44.0-2 - nbdkit-vddk-plugin dep only exists on x86-64. From 29135227ce9b5746c1facc3a5e07d2aa1ba63e04 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 16 Jun 2021 13:20:03 +0100 Subject: [PATCH 022/183] Go with Recommends instead of Requires virtio-win See https://bugzilla.redhat.com/show_bug.cgi?id=1972644 --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 1278525..577de9c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -141,7 +141,7 @@ Requires: mingw32-srvany >= 1.0-13 # On RHEL, virtio-win should be used to install virtio drivers # and qemu-ga in converted guests. (RHBZ#1972644) %if 0%{?rhel} -Requires: virtio-win +Recommends: virtio-win %endif From 3f9c4466805902a81ca8398036be00cc1bc54ee6 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 16 Jun 2021 13:42:06 +0100 Subject: [PATCH 023/183] Rebase RHEL 9 patches on top of 1.45.1. --- ...Select-correct-qemu-binary-for-o-qemu-mode-.patch | 2 +- ...v-Disable-the-qemu-boot-option-RHBZ-1147313.patch | 10 +++++----- ...list-of-supported-sound-cards-to-match-RHEL.patch | 2 +- 0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch | 2 +- ...EL-v2v-Disable-the-virt-v2v-in-place-option.patch | 12 ++++++------ ...2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch | 2 +- ...-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch | 4 ++-- ...-rhv-upload-Remove-restriction-on-oa-sparse.patch | 10 +++++----- ...t-to-KB-for-supported-v2v-hypervisors-guest.patch | 2 +- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch index 69fcfc1..eae5beb 100644 --- a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +++ b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -1,4 +1,4 @@ -From 21781d79e323f7eaee7deb6981ecb783e35a39af Mon Sep 17 00:00:00 2001 +From fc6b61fc9f5830de87354b329ba8dedd2e0fd361 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 28 Sep 2014 19:14:43 +0100 Subject: [PATCH 1/9] RHEL: v2v: Select correct qemu binary for -o qemu mode diff --git a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch index 837d7de..ce72232 100644 --- a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch +++ b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch @@ -1,4 +1,4 @@ -From 05de88f9fe2415664adff793351f916cc6a01485 Mon Sep 17 00:00:00 2001 +From 74ecf578578c168ee172dae7b5e8100d15fda497 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Sep 2014 10:50:27 +0100 Subject: [PATCH 2/9] RHEL: v2v: Disable the --qemu-boot option (RHBZ#1147313). @@ -42,10 +42,10 @@ index a5f155cb..3a2e6238 100644 =item B<-o json -os> C diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index fb8b6a5d..924e1d2d 100644 +index 694313a8..ff02e6c9 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod -@@ -144,11 +144,6 @@ Since F contains the path(s) to the guest disk +@@ -141,11 +141,6 @@ Since F contains the path(s) to the guest disk image(s) you do not need to specify the name of the disk image on the command line. @@ -57,7 +57,7 @@ index fb8b6a5d..924e1d2d 100644 =head1 OPTIONS =over 4 -@@ -537,9 +532,6 @@ This is similar to I<-o local>, except that a shell script is written +@@ -534,9 +529,6 @@ This is similar to I<-o local>, except that a shell script is written which you can use to boot the guest in qemu. The converted disks and shell script are written to the directory specified by I<-os>. @@ -67,7 +67,7 @@ index fb8b6a5d..924e1d2d 100644 =item B<-o> B This is the same as I<-o rhv>. -@@ -815,11 +807,6 @@ Print information about the source guest and stop. This option is +@@ -812,11 +804,6 @@ Print information about the source guest and stop. This option is useful when you are setting up network and bridge maps. See L. diff --git a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch index 61b73d2..e7d019a 100644 --- a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +++ b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch @@ -1,4 +1,4 @@ -From f3c0c18b122b55e3f94b3bb757addaf18c2c5b6f Mon Sep 17 00:00:00 2001 +From 86398c37f8f6385a8c925eda282e52a2569a9944 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 24 Apr 2015 09:45:41 -0400 Subject: [PATCH 3/9] RHEL: Fix list of supported sound cards to match RHEL diff --git a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch index 41ecc50..3c0636c 100644 --- a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch +++ b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch @@ -1,4 +1,4 @@ -From 2a4386e45aa52ebfdd501a8189458e2a6bad4708 Mon Sep 17 00:00:00 2001 +From ac1a6322b9df9364fee49e742b3fad6bc891f131 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 30 Aug 2015 03:21:57 -0400 Subject: [PATCH 4/9] RHEL: Fix tests for libguestfs-winsupport. diff --git a/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch b/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch index 01b5efa..00859d1 100644 --- a/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch +++ b/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch @@ -1,4 +1,4 @@ -From 1d74df726204bb9c6220ccd0505c8b63db10f833 Mon Sep 17 00:00:00 2001 +From b6ed3e6e33e084497d50f8fb1bc8a6565ec16f10 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 14 Jan 2016 11:53:42 -0500 Subject: [PATCH 5/9] RHEL: v2v: Disable the virt-v2v --in-place option. @@ -28,7 +28,7 @@ index dd2b1233..8fef46cc 100755 --ip,\ --it,\ diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index 924e1d2d..4016c724 100644 +index ff02e6c9..9f087849 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod @@ -8,10 +8,6 @@ virt-v2v - Convert a guest to use KVM @@ -52,7 +52,7 @@ index 924e1d2d..4016c724 100644 =head2 Other virt-v2v topics -@@ -301,20 +294,6 @@ For I<-i disk> only, this specifies the format of the input disk +@@ -298,20 +291,6 @@ For I<-i disk> only, this specifies the format of the input disk image. For other input methods you should specify the input format in the metadata. @@ -73,7 +73,7 @@ index 924e1d2d..4016c724 100644 =item B<-io> OPTION=VALUE Set input option(s) related to the current input mode or transport. -@@ -1338,8 +1317,8 @@ have at least 100 available inodes. +@@ -1335,8 +1314,8 @@ have at least 100 available inodes. =head3 Minimum free space check in the host You must have sufficient free space in the host directory used to @@ -84,7 +84,7 @@ index 924e1d2d..4016c724 100644 $ df -h "`guestfish get-cachedir`" Filesystem Size Used Avail Use% Mounted on -@@ -1477,31 +1456,6 @@ that instead. +@@ -1474,31 +1453,6 @@ that instead. @@ -117,7 +117,7 @@ index 924e1d2d..4016c724 100644 The I<--machine-readable> option can be used to make the output more diff --git a/tests/Makefile.am b/tests/Makefile.am -index 871dc3c9..eee4e1af 100644 +index 680fa89f..d33b81a7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -76,7 +76,6 @@ TESTS = \ diff --git a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch index 8ffe091..a5118a9 100644 --- a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +++ b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch @@ -1,4 +1,4 @@ -From bf5b711b261a6a577a441235db68ad58b20711bd Mon Sep 17 00:00:00 2001 +From cee07552e4ef7dffbf70eee8c4bd3fde0533c33b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Mar 2017 14:21:37 +0100 Subject: [PATCH 6/9] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) diff --git a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch index 1e0fd47..35a0313 100644 --- a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +++ b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch @@ -1,4 +1,4 @@ -From d3eece67059c836c88f6001a5a928a3063a1aaa2 Mon Sep 17 00:00:00 2001 +From 2e74525029c1debe441ea6430e57ebce3279b7cc Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 8 Mar 2017 11:03:40 +0100 Subject: [PATCH 7/9] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) @@ -9,7 +9,7 @@ They are not supported in RHEL. 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/virt-v2v-input-xen.pod b/docs/virt-v2v-input-xen.pod -index 3b3cf0f0..32da2848 100644 +index cd3210bf..e9f336a9 100644 --- a/docs/virt-v2v-input-xen.pod +++ b/docs/virt-v2v-input-xen.pod @@ -12,7 +12,7 @@ virt-v2v-input-xen - Using virt-v2v to convert guests from Xen diff --git a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch index a1ad4a0..084564d 100644 --- a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch +++ b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch @@ -1,4 +1,4 @@ -From fba7d8bf5dad6fce2a0122570f6b69e0db9ce697 Mon Sep 17 00:00:00 2001 +From 0795af0275af81058e54a9b7ad3d5e79ba66a21e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 May 2018 10:16:58 +0100 Subject: [PATCH 8/9] RHEL: v2v: rhv-upload: Remove restriction on -oa sparse. @@ -38,10 +38,10 @@ index 7c9b478a..36c3676f 100644 A file containing a password to be used when connecting to the oVirt diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml -index dbef7011..27925d7d 100644 +index 15ba1078..ac5b3fa7 100644 --- a/v2v/output_rhv_upload.ml +++ b/v2v/output_rhv_upload.ml -@@ -135,17 +135,10 @@ let error_unless_nbdkit_compiled_with_selinux config = +@@ -147,17 +147,10 @@ let error_unless_nbdkit_compiled_with_selinux config = error (f_"nbdkit was compiled without SELinux support. You will have to recompile nbdkit with libselinux-devel installed, or else set SELinux to Permissive mode while doing the conversion.") ) @@ -60,14 +60,14 @@ index dbef7011..27925d7d 100644 let json_optstring = function | Some s -> JSON.String s | None -> JSON.Null -@@ -253,7 +246,6 @@ object +@@ -265,7 +258,6 @@ object error_unless_nbdkit_min_version config; error_unless_nbdkit_python_plugin_working plugin_script; error_unless_nbdkit_compiled_with_selinux config; - error_unless_output_alloc_sparse output_alloc; (* Python code prechecks. *) - let precheck_fn = tmpdir // "v2vprecheck.json" in + let json_params = match rhv_options.rhv_disk_uuids with diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py index 2b0178a9..d817d915 100644 --- a/v2v/rhv-upload-plugin.py diff --git a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch index a7b5eb3..84e8f41 100644 --- a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +++ b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch @@ -1,4 +1,4 @@ -From b003d781dacf76572e11fad17ea699a99a324f54 Mon Sep 17 00:00:00 2001 +From 649b0821d0d78065f48b3d3709769d5124fd4a3a Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 26 Mar 2019 09:42:25 +0100 Subject: [PATCH 9/9] RHEL: point to KB for supported v2v hypervisors/guests From be8fe16bb55d69d8b09c9f804618ea91f9ffbeaa Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 30 Jun 2021 12:00:38 +0100 Subject: [PATCH 024/183] New upstream development version 1.45.2. Remove --debug-overlays and --print-estimate options. Remove -o glance option on RHEL 9 (RHBZ#1977539). Remove support for RHEV-APT (RHBZ#1945549). --- ...correct-qemu-binary-for-o-qemu-mode-.patch | 10 +- ...le-the-qemu-boot-option-RHBZ-1147313.patch | 21 +- ...-supported-sound-cards-to-match-RHEL.patch | 6 +- ...-Fix-tests-for-libguestfs-winsupport.patch | 6 +- ...Disable-the-virt-v2v-in-place-option.patch | 26 +-- ...sk-force-VNC-as-display-RHBZ-1372671.patch | 10 +- ...-mention-SUSE-Xen-hosts-RHBZ-1430203.patch | 6 +- ...load-Remove-restriction-on-oa-sparse.patch | 11 +- ...-for-supported-v2v-hypervisors-guest.patch | 6 +- 0010-RHEL-9-Disable-o-glance.patch | 200 ++++++++++++++++++ sources | 4 +- virt-v2v.spec | 9 +- 12 files changed, 262 insertions(+), 53 deletions(-) create mode 100644 0010-RHEL-9-Disable-o-glance.patch diff --git a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch index eae5beb..f35155a 100644 --- a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +++ b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -1,7 +1,7 @@ -From fc6b61fc9f5830de87354b329ba8dedd2e0fd361 Mon Sep 17 00:00:00 2001 +From 9f5965837da442e4402aae1f40b322070a4f060a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 28 Sep 2014 19:14:43 +0100 -Subject: [PATCH 1/9] RHEL: v2v: Select correct qemu binary for -o qemu mode +Subject: [PATCH 01/10] RHEL: v2v: Select correct qemu binary for -o qemu mode (RHBZ#1147313). RHEL does not have qemu-system-x86_64 (etc), and in addition the @@ -16,10 +16,10 @@ support cases. 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2v/output_qemu.ml b/v2v/output_qemu.ml -index d6d70c23..490576e9 100644 +index 12c56836..7391eda0 100644 --- a/v2v/output_qemu.ml +++ b/v2v/output_qemu.ml -@@ -81,7 +81,7 @@ object +@@ -79,7 +79,7 @@ object * module deals with shell and qemu comma quoting. *) let cmd = Qemuopts.create () in @@ -29,5 +29,5 @@ index d6d70c23..490576e9 100644 let flag = Qemuopts.flag cmd and arg = Qemuopts.arg cmd -- -2.30.1 +2.31.1 diff --git a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch index ce72232..33ec10c 100644 --- a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch +++ b/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch @@ -1,7 +1,8 @@ -From 74ecf578578c168ee172dae7b5e8100d15fda497 Mon Sep 17 00:00:00 2001 +From 8a58d716ba714ddd9198e726b422bcd236fee2b5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Sep 2014 10:50:27 +0100 -Subject: [PATCH 2/9] RHEL: v2v: Disable the --qemu-boot option (RHBZ#1147313). +Subject: [PATCH 02/10] RHEL: v2v: Disable the --qemu-boot option + (RHBZ#1147313). This cannot work because there is no Gtk or SDL output mode in RHEL's qemu-kvm. @@ -42,7 +43,7 @@ index a5f155cb..3a2e6238 100644 =item B<-o json -os> C diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index 694313a8..ff02e6c9 100644 +index bdf4d716..83f6fd4d 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod @@ -141,11 +141,6 @@ Since F contains the path(s) to the guest disk @@ -57,7 +58,7 @@ index 694313a8..ff02e6c9 100644 =head1 OPTIONS =over 4 -@@ -534,9 +529,6 @@ This is similar to I<-o local>, except that a shell script is written +@@ -528,9 +523,6 @@ This is similar to I<-o local>, except that a shell script is written which you can use to boot the guest in qemu. The converted disks and shell script are written to the directory specified by I<-os>. @@ -67,7 +68,7 @@ index 694313a8..ff02e6c9 100644 =item B<-o> B This is the same as I<-o rhv>. -@@ -812,11 +804,6 @@ Print information about the source guest and stop. This option is +@@ -775,11 +767,6 @@ Print information about the source guest and stop. This option is useful when you are setting up network and bridge maps. See L. @@ -80,18 +81,18 @@ index 694313a8..ff02e6c9 100644 =item B<--quiet> diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml -index 3b74f307..df69e2e0 100644 +index 5e7c01f8..ac10ec31 100644 --- a/v2v/cmdline.ml +++ b/v2v/cmdline.ml -@@ -284,7 +284,6 @@ let parse_cmdline () = - s_"Estimate size of source and stop"; +@@ -276,7 +276,6 @@ let parse_cmdline () = + s_"Same as ‘-ip filename’"; [ L"print-source" ], Getopt.Set print_source, s_"Print source and stop"; - [ L"qemu-boot" ], Getopt.Set qemu_boot, s_"Boot in qemu (-o qemu only)"; [ L"root" ], Getopt.String ("ask|... ", set_root_choice), s_"How to choose root filesystem"; [ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"), -@@ -668,6 +667,8 @@ read the man page virt-v2v(1). +@@ -652,6 +651,8 @@ read the man page virt-v2v(1). | Some d when not (is_directory d) -> error (f_"-os %s: output directory does not exist or is not a directory") d | Some d -> d in @@ -101,5 +102,5 @@ index 3b74f307..df69e2e0 100644 output_format, output_alloc -- -2.30.1 +2.31.1 diff --git a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch index e7d019a..07e5de8 100644 --- a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +++ b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch @@ -1,7 +1,7 @@ -From 86398c37f8f6385a8c925eda282e52a2569a9944 Mon Sep 17 00:00:00 2001 +From 0b12d6b45295cb4e1f06be2463e93fef2a793681 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 24 Apr 2015 09:45:41 -0400 -Subject: [PATCH 3/9] RHEL: Fix list of supported sound cards to match RHEL +Subject: [PATCH 03/10] RHEL: Fix list of supported sound cards to match RHEL qemu (RHBZ#1176493). --- @@ -30,5 +30,5 @@ index 7136e4be..a6c359f0 100644 (* Find the UEFI firmware. *) let find_uefi_firmware guest_arch = -- -2.30.1 +2.31.1 diff --git a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch index 3c0636c..02f236f 100644 --- a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch +++ b/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch @@ -1,7 +1,7 @@ -From ac1a6322b9df9364fee49e742b3fad6bc891f131 Mon Sep 17 00:00:00 2001 +From ca035dde2b4efaea38563660a51102e96e9e85e5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 30 Aug 2015 03:21:57 -0400 -Subject: [PATCH 4/9] RHEL: Fix tests for libguestfs-winsupport. +Subject: [PATCH 04/10] RHEL: Fix tests for libguestfs-winsupport. It doesn't let us use guestfish for arbitrary Windows edits. --- @@ -75,5 +75,5 @@ index f1da222a..ff94fe39 100755 # We also update the Registry several times, for firstboot, and (ONLY -- -2.30.1 +2.31.1 diff --git a/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch b/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch index 00859d1..9c2f68d 100644 --- a/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch +++ b/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch @@ -1,7 +1,7 @@ -From b6ed3e6e33e084497d50f8fb1bc8a6565ec16f10 Mon Sep 17 00:00:00 2001 +From 44d88b1170601c31f6199667a6f23cbac4364654 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 14 Jan 2016 11:53:42 -0500 -Subject: [PATCH 5/9] RHEL: v2v: Disable the virt-v2v --in-place option. +Subject: [PATCH 05/10] RHEL: v2v: Disable the virt-v2v --in-place option. This disables the virt-v2v --in-place option which we do not wish to support in RHEL. @@ -28,7 +28,7 @@ index dd2b1233..8fef46cc 100755 --ip,\ --it,\ diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index ff02e6c9..9f087849 100644 +index 83f6fd4d..719a95b5 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod @@ -8,10 +8,6 @@ virt-v2v - Convert a guest to use KVM @@ -52,7 +52,7 @@ index ff02e6c9..9f087849 100644 =head2 Other virt-v2v topics -@@ -298,20 +291,6 @@ For I<-i disk> only, this specifies the format of the input disk +@@ -292,20 +285,6 @@ For I<-i disk> only, this specifies the format of the input disk image. For other input methods you should specify the input format in the metadata. @@ -73,7 +73,7 @@ index ff02e6c9..9f087849 100644 =item B<-io> OPTION=VALUE Set input option(s) related to the current input mode or transport. -@@ -1335,8 +1314,8 @@ have at least 100 available inodes. +@@ -1298,8 +1277,8 @@ have at least 100 available inodes. =head3 Minimum free space check in the host You must have sufficient free space in the host directory used to @@ -84,7 +84,7 @@ index ff02e6c9..9f087849 100644 $ df -h "`guestfish get-cachedir`" Filesystem Size Used Avail Use% Mounted on -@@ -1474,31 +1453,6 @@ that instead. +@@ -1437,31 +1416,6 @@ that instead. @@ -117,7 +117,7 @@ index ff02e6c9..9f087849 100644 The I<--machine-readable> option can be used to make the output more diff --git a/tests/Makefile.am b/tests/Makefile.am -index 680fa89f..d33b81a7 100644 +index f08ea69a..5fb7898c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -76,7 +76,6 @@ TESTS = \ @@ -128,7 +128,7 @@ index 680fa89f..d33b81a7 100644 test-v2v-mac.sh \ test-v2v-machine-readable.sh \ test-v2v-networks-and-bridges.sh \ -@@ -225,7 +224,6 @@ EXTRA_DIST += \ +@@ -224,7 +223,6 @@ EXTRA_DIST += \ test-v2v-i-vmx-3.vmx \ test-v2v-i-vmx-4.vmx \ test-v2v-i-vmx-5.vmx \ @@ -251,10 +251,10 @@ index 6f7d78f3..00000000 -# Clean up. -rm -r $d diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml -index df69e2e0..7b79d462 100644 +index ac10ec31..01314580 100644 --- a/v2v/cmdline.ml +++ b/v2v/cmdline.ml -@@ -252,8 +252,7 @@ let parse_cmdline () = +@@ -246,8 +246,7 @@ let parse_cmdline () = s_"Use password from file to connect to input hypervisor"; [ M"it" ], Getopt.String ("transport", set_string_option_once "-it" input_transport), s_"Input transport"; @@ -264,7 +264,7 @@ index df69e2e0..7b79d462 100644 [ L"mac" ], Getopt.String ("mac:network|bridge|ip:out", add_mac), s_"Map NIC to network or bridge or assign static IP"; [ S 'n'; L"network" ], Getopt.String ("in:out", add_network), -@@ -396,7 +395,6 @@ read the man page virt-v2v(1). +@@ -386,7 +385,6 @@ read the man page virt-v2v(1). pr "vddk\n"; pr "colours-option\n"; pr "vdsm-compat-option\n"; @@ -272,7 +272,7 @@ index df69e2e0..7b79d462 100644 pr "io/oo\n"; pr "mac-option\n"; pr "bandwidth-option\n"; -@@ -572,6 +570,10 @@ read the man page virt-v2v(1). +@@ -556,6 +554,10 @@ read the man page virt-v2v(1). error (f_"only ‘-it ssh’ can be used here") in Input_vmx.input_vmx input_password input_transport arg in @@ -284,5 +284,5 @@ index df69e2e0..7b79d462 100644 let error_option_cannot_be_used_in_output_mode mode opt = error (f_"-o %s: %s option cannot be used in this output mode") mode opt -- -2.30.1 +2.31.1 diff --git a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch index a5118a9..0628e4b 100644 --- a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +++ b/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch @@ -1,7 +1,7 @@ -From cee07552e4ef7dffbf70eee8c4bd3fde0533c33b Mon Sep 17 00:00:00 2001 +From a3054b424c417d89b92d1f55aa1f59adcf7779c8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Mar 2017 14:21:37 +0100 -Subject: [PATCH 6/9] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) +Subject: [PATCH 06/10] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) The SDL output mode is not supported in RHEL's qemu-kvm. --- @@ -9,10 +9,10 @@ The SDL output mode is not supported in RHEL's qemu-kvm. 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml -index d146e84c..4e403003 100644 +index b3acb5f6..5b39dbe2 100644 --- a/v2v/input_disk.ml +++ b/v2v/input_disk.ml -@@ -89,7 +89,7 @@ class input_disk input_format disk = object +@@ -88,7 +88,7 @@ class input_disk input_format disk = object s_features = [ "acpi"; "apic"; "pae" ]; s_firmware = UnknownFirmware; (* causes virt-v2v to autodetect *) s_display = @@ -22,5 +22,5 @@ index d146e84c..4e403003 100644 s_video = None; s_sound = None; -- -2.30.1 +2.31.1 diff --git a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch index 35a0313..147ebfd 100644 --- a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +++ b/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch @@ -1,7 +1,7 @@ -From 2e74525029c1debe441ea6430e57ebce3279b7cc Mon Sep 17 00:00:00 2001 +From 28ab3e6e5e76678c4656dbb9cd54893f7ccdf21d Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 8 Mar 2017 11:03:40 +0100 -Subject: [PATCH 7/9] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) +Subject: [PATCH 07/10] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) They are not supported in RHEL. --- @@ -22,5 +22,5 @@ index cd3210bf..e9f336a9 100644 =head1 INPUT FROM XEN -- -2.30.1 +2.31.1 diff --git a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch index 084564d..97fb3d3 100644 --- a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch +++ b/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch @@ -1,7 +1,8 @@ -From 0795af0275af81058e54a9b7ad3d5e79ba66a21e Mon Sep 17 00:00:00 2001 +From 0eb7d51c403a81837a58537257202bece4e116e0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 May 2018 10:16:58 +0100 -Subject: [PATCH 8/9] RHEL: v2v: rhv-upload: Remove restriction on -oa sparse. +Subject: [PATCH 08/10] RHEL: v2v: rhv-upload: Remove restriction on -oa + sparse. See: https://bugzilla.redhat.com/show_bug.cgi?id=1565681 and the v2v-devel private thread "Do we already support migration using FC?" @@ -12,7 +13,7 @@ and the v2v-devel private thread "Do we already support migration using FC?" 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/docs/virt-v2v-output-rhv.pod b/docs/virt-v2v-output-rhv.pod -index 7c9b478a..36c3676f 100644 +index dc6b2c0a..7b8fdc0f 100644 --- a/docs/virt-v2v-output-rhv.pod +++ b/docs/virt-v2v-output-rhv.pod @@ -5,7 +5,7 @@ virt-v2v-output-rhv - Using virt-v2v to convert guests to oVirt or RHV @@ -38,7 +39,7 @@ index 7c9b478a..36c3676f 100644 A file containing a password to be used when connecting to the oVirt diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml -index 15ba1078..ac5b3fa7 100644 +index 466de38d..34caaa6a 100644 --- a/v2v/output_rhv_upload.ml +++ b/v2v/output_rhv_upload.ml @@ -147,17 +147,10 @@ let error_unless_nbdkit_compiled_with_selinux config = @@ -85,5 +86,5 @@ index 2b0178a9..d817d915 100644 types.StorageDomain( name=params['output_storage'], -- -2.30.1 +2.31.1 diff --git a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch index 84e8f41..82497c4 100644 --- a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +++ b/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch @@ -1,7 +1,7 @@ -From 649b0821d0d78065f48b3d3709769d5124fd4a3a Mon Sep 17 00:00:00 2001 +From 02c4ae37bec8c0dddfa92cd324f92ac32a928384 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 26 Mar 2019 09:42:25 +0100 -Subject: [PATCH 9/9] RHEL: point to KB for supported v2v hypervisors/guests +Subject: [PATCH 09/10] RHEL: point to KB for supported v2v hypervisors/guests --- docs/virt-v2v-support.pod | 104 ++------------------------------------ @@ -123,5 +123,5 @@ index 9815f51f..1ffc0f9d 100644 =head2 Guest firmware -- -2.30.1 +2.31.1 diff --git a/0010-RHEL-9-Disable-o-glance.patch b/0010-RHEL-9-Disable-o-glance.patch new file mode 100644 index 0000000..c51d804 --- /dev/null +++ b/0010-RHEL-9-Disable-o-glance.patch @@ -0,0 +1,200 @@ +From e425f0836c502799c05cdcd6e215de4fff994e70 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Wed, 30 Jun 2021 11:15:52 +0100 +Subject: [PATCH 10/10] RHEL 9: Disable -o glance + +Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1977539 +--- + docs/virt-v2v-output-openstack.pod | 56 ++---------------------------- + docs/virt-v2v.pod | 22 ------------ + tests/test-v2v-o-glance.sh | 3 ++ + v2v/cmdline.ml | 3 -- + v2v/output_glance.ml | 2 +- + 5 files changed, 6 insertions(+), 80 deletions(-) + +diff --git a/docs/virt-v2v-output-openstack.pod b/docs/virt-v2v-output-openstack.pod +index f5a3abad..1ab356e8 100644 +--- a/docs/virt-v2v-output-openstack.pod ++++ b/docs/virt-v2v-output-openstack.pod +@@ -10,13 +10,10 @@ virt-v2v-output-openstack - Using virt-v2v to convert guests to OpenStack + [-oo verify-server-certificate=false] + [-oo os-username=admin] [-oo os-*=*] + +- virt-v2v [-i* options] -o glance +- + =head1 DESCRIPTION + + This page documents how to use L to convert guests to run +-on OpenStack. There are two output modes you can select, but only +-I<-o openstack> should be used normally. ++on OpenStack. + + =over 4 + +@@ -27,15 +24,6 @@ Full description: L + This is the modern method for uploading to OpenStack via the REST API. + Guests can be directly converted into Cinder volumes. + +-=item B<-o glance> +- +-Full description: L +- +-This is the old method for uploading to Glance. Unfortunately Glance +-is not well suited to storing converted guests (since virt-v2v deals +-with "pets" not templated "cattle"), so this method is not recommended +-unless you really know what you are doing. +- + =back + + =head1 OUTPUT TO OPENSTACK +@@ -170,50 +158,10 @@ no Cinder volume type is used. + The following options are B supported with OpenStack: I<-oa>, + I<-of>. + +-=head1 OUTPUT TO GLANCE +- +-Note this is a legacy option. In most cases you should use +-L instead. +- +-To output to OpenStack Glance, use the I<-o glance> option. +- +-This runs the L CLI program which must be installed on the +-virt-v2v conversion host. For authentication to work, you will need +-to set C environment variables. +- +-Normally there is a file called C or C +-which you can simply C to set everything up. +- +-Virt-v2v adds metadata for the guest to Glance, describing such things +-as the guest operating system and what drivers it requires. The +-command C will display the metadata as "Property" +-fields such as C and C. +- +-=head2 Glance and sparseness +- +-Glance image upload doesn't appear to correctly handle sparseness. +-For this reason, using qcow2 will be faster and use less space on the +-Glance server. Use the virt-v2v S> option. +- +-=head2 Glance and multiple disks +- +-If the guest has a single disk, then the name of the disk in Glance +-will be the name of the guest. You can control this using the I<-on> +-option. +- +-Glance doesn't have a concept of associating multiple disks with a +-single guest, and Nova doesn't allow you to boot a guest from multiple +-Glance disks either. If the guest has multiple disks, then the first +-(assumed to be the system disk) will have the name of the guest, and +-the second and subsequent data disks will be called +-C-disk2>, C-disk3> etc. It may be best to +-leave the system disk in Glance, and import the data disks to Cinder. +- + =head1 SEE ALSO + + L, +-L, +-L. ++L. + + =head1 AUTHOR + +diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod +index 719a95b5..2f4fe86c 100644 +--- a/docs/virt-v2v.pod ++++ b/docs/virt-v2v.pod +@@ -422,20 +422,10 @@ interested in looking at the metadata. + This option is not compatible with I<-o libvirt> since it would create + a faulty guest (one with no disks). + +-This option is not compatible with I<-o glance> for technical reasons. +- + =item B<-o> B + + This is the same as I<-o local>. + +-=item B<-o> B +- +-This is a legacy option. You should probably use I<-o openstack> +-instead. +- +-Set the output method to OpenStack Glance. In this mode the converted +-guest is uploaded to Glance. See L. +- + =item B<-o> B + + Set the output method to I. +@@ -1148,11 +1138,6 @@ and output methods may use disk space, as outlined in the table below. + This temporarily places a full copy of the uncompressed source disks + in C<$VIRT_V2V_TMPDIR> (or F). + +-=item I<-o glance> +- +-This temporarily places a full copy of the output disks in +-C<$VIRT_V2V_TMPDIR> (or F). +- + =item I<-o local> + + =item I<-o qemu> +@@ -1337,13 +1322,6 @@ instance. + Because of how Cinder volumes are presented as F block devices, + using I<-o openstack> normally requires that virt-v2v is run as root. + +-=item Writing to Glance +- +-This does I need root (in fact it probably won’t work), but may +-require either a special user and/or for you to source a script that +-sets authentication environment variables. Consult the Glance +-documentation. +- + =item Writing to block devices + + This normally requires root. See the next section. +diff --git a/tests/test-v2v-o-glance.sh b/tests/test-v2v-o-glance.sh +index 162c397e..48d45dce 100755 +--- a/tests/test-v2v-o-glance.sh ++++ b/tests/test-v2v-o-glance.sh +@@ -20,6 +20,9 @@ + + set -e + ++# Feature is disabled in RHEL 9. ++exit 77 ++ + $TEST_FUNCTIONS + skip_if_skipped + skip_if_backend uml +diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml +index 01314580..e6c86b6f 100644 +--- a/v2v/cmdline.ml ++++ b/v2v/cmdline.ml +@@ -170,7 +170,6 @@ let parse_cmdline () = + if !output_mode <> `Not_set then + error (f_"%s option used more than once on the command line") "-o"; + match mode with +- | "glance" -> output_mode := `Glance + | "libvirt" -> output_mode := `Libvirt + | "disk" | "local" -> output_mode := `Local + | "json" -> output_mode := `JSON +@@ -323,8 +322,6 @@ let parse_cmdline () = + + virt-v2v -i disk disk.img -o local -os /var/tmp + +- virt-v2v -i disk disk.img -o glance +- + There is a companion front-end called \"virt-p2v\" which comes as an + ISO or CD image that can be booted on physical machines. + +diff --git a/v2v/output_glance.ml b/v2v/output_glance.ml +index 8c5426b9..3fce4e7a 100644 +--- a/v2v/output_glance.ml ++++ b/v2v/output_glance.ml +@@ -100,4 +100,4 @@ object + end + + let output_glance = new output_glance +-let () = Modules_list.register_output_module "glance" ++(* let () = Modules_list.register_output_module "glance" *) +-- +2.31.1 + diff --git a/sources b/sources index 7d40232..41968b2 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.1.tar.gz) = be9cb75c2fe01e989d0b1f35e8496ed7e78076d17b4a4e7b24b6372a8cc3ed633d749dc5e5adf2d7c0d2a8a61f81b3d71cba47917f6a5e91edca341f2827627e -SHA512 (virt-v2v-1.45.1.tar.gz.sig) = 94afc18b3c5954b318dcf668fc6f71b5a3f9b0568f2b0bc27eea92a92096a1197cc24048b18df2a2d69ece56b2864ba5dcc1e4c0d469903ff631d541646ea3d2 +SHA512 (virt-v2v-1.45.2.tar.gz) = 908c762b2200ca2125b7623fe4d14253e0d91de6e7691e540b1e70f68d4a18b8c21de75c894240cf6a0ae5296845dec5cd4cbac5f30c614ffa2c293649a3e6e1 +SHA512 (virt-v2v-1.45.2.tar.gz.sig) = 89c19dcc995472b958a1a6f5b5769331e014fc1d2fafd1abddb5edf78b32baf93135e2a57bee5c33de9f782c30970101921aea4b965ff308da9117850d717ba6 diff --git a/virt-v2v.spec b/virt-v2v.spec index 577de9c..0a3de15 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,7 +14,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.1 +Version: 1.45.2 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -59,6 +59,7 @@ Patch9006: 0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch Patch9007: 0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch Patch9008: 0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch Patch9009: 0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +Patch9010: 0010-RHEL-9-Disable-o-glance.patch %endif %if 0%{patches_touch_autotools} @@ -285,6 +286,12 @@ popd %changelog +* Wed Jun 30 2021 Richard W.M. Jones - 1:1.45.2-1 +- New upstream development version 1.45.2. +- Remove --debug-overlays and --print-estimate options. +- Remove -o glance option on RHEL 9 (RHBZ#1977539). +- Remove support for RHEV-APT (RHBZ#1945549). + * Wed Jun 16 2021 Richard W.M. Jones - 1:1.45.1-1 - New upstream development version 1.45.1. - Require virtio-win on RHEL (RHBZ#1972644). From 7dc6e87cf5855a2e01bac03f84d00400e47bebc4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 20:33:43 +0000 Subject: [PATCH 025/183] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 0a3de15..01dbcad 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.45.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -286,6 +286,9 @@ popd %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 1:1.45.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Wed Jun 30 2021 Richard W.M. Jones - 1:1.45.2-1 - New upstream development version 1.45.2. - Remove --debug-overlays and --print-estimate options. From c8d08693ef2ea67d480ec9fb74f469dd41b92c2c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 6 Aug 2021 13:11:05 +0100 Subject: [PATCH 026/183] New upstream development version 1.45.3. Rebase RHEL patches. --- ...-Remove-o-rhv-upload-oa-preallocated.patch | 123 ++++++++++++++++++ ...load-Remove-restriction-on-oa-sparse.patch | 22 ++-- ...correct-qemu-binary-for-o-qemu-mode-.patch | 4 +- ...le-the-qemu-boot-option-RHBZ-1147313.patch | 4 +- ...-supported-sound-cards-to-match-RHEL.patch | 4 +- ...-Fix-tests-for-libguestfs-winsupport.patch | 18 ++- ...Disable-the-virt-v2v-in-place-option.patch | 32 ++--- ...sk-force-VNC-as-display-RHBZ-1372671.patch | 4 +- ...-mention-SUSE-Xen-hosts-RHBZ-1430203.patch | 4 +- ...-for-supported-v2v-hypervisors-guest.patch | 4 +- ...atch => 0011-RHEL-9-Disable-o-glance.patch | 12 +- sources | 4 +- virt-v2v.spec | 29 +++-- 13 files changed, 195 insertions(+), 69 deletions(-) create mode 100644 0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch rename 0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch => 0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch (86%) rename 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch => 0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch (88%) rename 0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch => 0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch (96%) rename 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch => 0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch (84%) rename 0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch => 0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch (84%) rename 0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch => 0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch (93%) rename 0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch => 0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch (86%) rename 0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch => 0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch (83%) rename 0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch => 0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch (95%) rename 0010-RHEL-9-Disable-o-glance.patch => 0011-RHEL-9-Disable-o-glance.patch (97%) diff --git a/0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch b/0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch new file mode 100644 index 0000000..f922f3e --- /dev/null +++ b/0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch @@ -0,0 +1,123 @@ +From 4d5509a98823cc0b8930678716b862adbd2c0b81 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Fri, 6 Aug 2021 13:01:28 +0100 +Subject: [PATCH 01/11] Revert "v2v: Remove -o rhv-upload -oa preallocated" + +This reverts commit 18084f90d9dd9092831cb3487039328981796291. +--- + v2v/cmdline.ml | 2 +- + v2v/output_rhv_upload.ml | 22 ++++++++++++++++++++-- + v2v/output_rhv_upload.mli | 7 ++++--- + v2v/rhv-upload-transfer.py | 1 + + 4 files changed, 26 insertions(+), 6 deletions(-) + +diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml +index 79d943df..5e7c01f8 100644 +--- a/v2v/cmdline.ml ++++ b/v2v/cmdline.ml +@@ -699,7 +699,7 @@ read the man page virt-v2v(1). + | Some os -> os in + if qemu_boot then + error_option_cannot_be_used_in_output_mode "rhv-upload" "--qemu-boot"; +- Output_rhv_upload.output_rhv_upload output_conn ++ Output_rhv_upload.output_rhv_upload output_alloc output_conn + output_password os + rhv_options, + output_format, output_alloc +diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml +index 6a632eaa..50baa595 100644 +--- a/v2v/output_rhv_upload.ml ++++ b/v2v/output_rhv_upload.ml +@@ -146,11 +146,22 @@ let error_unless_nbdkit_compiled_with_selinux config = + error (f_"nbdkit was compiled without SELinux support. You will have to recompile nbdkit with libselinux-devel installed, or else set SELinux to Permissive mode while doing the conversion.") + ) + ++(* Output sparse must be sparse. We may be able to ++ * lift this limitation in future, but it requires changes on the ++ * RHV side. See TODO file for details. XXX ++ *) ++let error_current_limitation required_param = ++ error (f_"rhv-upload: currently you must use ‘%s’. This restriction will be loosened in a future version.") required_param ++ ++let error_unless_output_alloc_sparse output_alloc = ++ if output_alloc <> Sparse then ++ error_current_limitation "-oa sparse" ++ + let json_optstring = function + | Some s -> JSON.String s + | None -> JSON.Null + +-class output_rhv_upload output_conn ++class output_rhv_upload output_alloc output_conn + output_password output_storage + rhv_options = + (* Create a temporary directory which will be deleted on exit. *) +@@ -189,6 +200,9 @@ class output_rhv_upload output_conn + "output_conn", JSON.String output_conn; + "output_password", JSON.String output_password; + "output_storage", JSON.String output_storage; ++ "output_sparse", JSON.Bool (match output_alloc with ++ | Sparse -> true ++ | Preallocated -> false); + "rhv_cafile", json_optstring rhv_options.rhv_cafile; + "rhv_cluster", + JSON.String (Option.default "Default" rhv_options.rhv_cluster); +@@ -257,6 +271,7 @@ object + error_unless_nbdkit_min_version config; + error_unless_nbdkit_python_plugin_working plugin_script; + error_unless_nbdkit_compiled_with_selinux config; ++ error_unless_output_alloc_sparse output_alloc; + + (* Python code prechecks. *) + let json_params = match rhv_options.rhv_disk_uuids with +@@ -282,6 +297,9 @@ object + + method as_options = + "-o rhv-upload" ^ ++ (match output_alloc with ++ | Sparse -> "" (* default, don't need to print it *) ++ | Preallocated -> " -oa preallocated") ^ + sprintf " -oc %s -op %s -os %s" + output_conn output_password output_storage + +@@ -449,7 +467,7 @@ object + (* Create the metadata. *) + let ovf = + Create_ovf.create_ovf source inspect target_meta targets +- Sparse sd_uuid disk_uuids vol_uuids vm_uuid ++ output_alloc sd_uuid disk_uuids vol_uuids vm_uuid + OVirt in + let ovf = DOM.doc_to_string ovf in + +diff --git a/v2v/output_rhv_upload.mli b/v2v/output_rhv_upload.mli +index 01507dff..eb85a57d 100644 +--- a/v2v/output_rhv_upload.mli ++++ b/v2v/output_rhv_upload.mli +@@ -25,8 +25,9 @@ val print_output_options : unit -> unit + val parse_output_options : (string * string) list -> rhv_options + (** Print and parse rhv-upload -oo options. *) + +-val output_rhv_upload : string -> string -> string -> rhv_options -> +- Types.output +-(** [output_rhv_upload output_conn output_password output_storage rhv_options] ++val output_rhv_upload : Types.output_allocation -> string -> string -> ++ string -> rhv_options -> Types.output ++(** [output_rhv_upload output_alloc output_conn output_password output_storage ++ rhv_options] + creates and returns a new {!Types.output} object specialized for writing + output to oVirt or RHV directly via RHV APIs. *) +diff --git a/v2v/rhv-upload-transfer.py b/v2v/rhv-upload-transfer.py +index cf4f8807..5aebcd1d 100644 +--- a/v2v/rhv-upload-transfer.py ++++ b/v2v/rhv-upload-transfer.py +@@ -111,6 +111,7 @@ def create_disk(connection): + # size, based on qemu-img measure of the overlay. + initial_size=params['disk_size'], + provisioned_size=params['disk_size'], ++ # XXX Ignores params['output_sparse']. + # Handling this properly will be complex, see: + # https://www.redhat.com/archives/libguestfs/2018-March/msg00177.html + sparse=True, +-- +2.31.1 + diff --git a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch b/0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch similarity index 86% rename from 0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch rename to 0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch index 97fb3d3..c1a1163 100644 --- a/0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch +++ b/0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch @@ -1,7 +1,7 @@ -From 0eb7d51c403a81837a58537257202bece4e116e0 Mon Sep 17 00:00:00 2001 +From abe3c7539b6221e8ab3cc35ee3d58b1aa06bbef4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 May 2018 10:16:58 +0100 -Subject: [PATCH 08/10] RHEL: v2v: rhv-upload: Remove restriction on -oa +Subject: [PATCH 02/11] RHEL: v2v: rhv-upload: Remove restriction on -oa sparse. See: https://bugzilla.redhat.com/show_bug.cgi?id=1565681 @@ -9,7 +9,7 @@ and the v2v-devel private thread "Do we already support migration using FC?" --- docs/virt-v2v-output-rhv.pod | 8 +------- v2v/output_rhv_upload.ml | 10 +--------- - v2v/rhv-upload-plugin.py | 4 +--- + v2v/rhv-upload-transfer.py | 4 +--- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/docs/virt-v2v-output-rhv.pod b/docs/virt-v2v-output-rhv.pod @@ -39,10 +39,10 @@ index dc6b2c0a..7b8fdc0f 100644 A file containing a password to be used when connecting to the oVirt diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml -index 466de38d..34caaa6a 100644 +index 50baa595..be5e9851 100644 --- a/v2v/output_rhv_upload.ml +++ b/v2v/output_rhv_upload.ml -@@ -147,17 +147,10 @@ let error_unless_nbdkit_compiled_with_selinux config = +@@ -146,17 +146,10 @@ let error_unless_nbdkit_compiled_with_selinux config = error (f_"nbdkit was compiled without SELinux support. You will have to recompile nbdkit with libselinux-devel installed, or else set SELinux to Permissive mode while doing the conversion.") ) @@ -61,7 +61,7 @@ index 466de38d..34caaa6a 100644 let json_optstring = function | Some s -> JSON.String s | None -> JSON.Null -@@ -265,7 +258,6 @@ object +@@ -271,7 +264,6 @@ object error_unless_nbdkit_min_version config; error_unless_nbdkit_python_plugin_working plugin_script; error_unless_nbdkit_compiled_with_selinux config; @@ -69,11 +69,11 @@ index 466de38d..34caaa6a 100644 (* Python code prechecks. *) let json_params = match rhv_options.rhv_disk_uuids with -diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py -index 2b0178a9..d817d915 100644 ---- a/v2v/rhv-upload-plugin.py -+++ b/v2v/rhv-upload-plugin.py -@@ -491,10 +491,8 @@ def create_disk(connection): +diff --git a/v2v/rhv-upload-transfer.py b/v2v/rhv-upload-transfer.py +index 5aebcd1d..f38cd9c0 100644 +--- a/v2v/rhv-upload-transfer.py ++++ b/v2v/rhv-upload-transfer.py +@@ -111,10 +111,8 @@ def create_disk(connection): # size, based on qemu-img measure of the overlay. initial_size=params['disk_size'], provisioned_size=params['disk_size'], diff --git a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch similarity index 88% rename from 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch rename to 0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch index f35155a..b32b106 100644 --- a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +++ b/0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -1,7 +1,7 @@ -From 9f5965837da442e4402aae1f40b322070a4f060a Mon Sep 17 00:00:00 2001 +From 0839ba57487b73cfb684ea495280db5d946f667a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 28 Sep 2014 19:14:43 +0100 -Subject: [PATCH 01/10] RHEL: v2v: Select correct qemu binary for -o qemu mode +Subject: [PATCH 03/11] RHEL: v2v: Select correct qemu binary for -o qemu mode (RHBZ#1147313). RHEL does not have qemu-system-x86_64 (etc), and in addition the diff --git a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch b/0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch similarity index 96% rename from 0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch rename to 0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch index 33ec10c..9a77b34 100644 --- a/0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch +++ b/0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch @@ -1,7 +1,7 @@ -From 8a58d716ba714ddd9198e726b422bcd236fee2b5 Mon Sep 17 00:00:00 2001 +From bb55b78b68e6e8039734eb1d7af22b455f8fbdc2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Sep 2014 10:50:27 +0100 -Subject: [PATCH 02/10] RHEL: v2v: Disable the --qemu-boot option +Subject: [PATCH 04/11] RHEL: v2v: Disable the --qemu-boot option (RHBZ#1147313). This cannot work because there is no Gtk or SDL output mode diff --git a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch b/0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch similarity index 84% rename from 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch rename to 0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch index 07e5de8..f93f057 100644 --- a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +++ b/0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch @@ -1,7 +1,7 @@ -From 0b12d6b45295cb4e1f06be2463e93fef2a793681 Mon Sep 17 00:00:00 2001 +From 49385571ce5967f8d9a102e935f201ee9c22326d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 24 Apr 2015 09:45:41 -0400 -Subject: [PATCH 03/10] RHEL: Fix list of supported sound cards to match RHEL +Subject: [PATCH 05/11] RHEL: Fix list of supported sound cards to match RHEL qemu (RHBZ#1176493). --- diff --git a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch b/0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch similarity index 84% rename from 0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch rename to 0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch index 02f236f..402b09e 100644 --- a/0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch +++ b/0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch @@ -1,7 +1,7 @@ -From ca035dde2b4efaea38563660a51102e96e9e85e5 Mon Sep 17 00:00:00 2001 +From db2150a5d790c35fb23c6d9d6b29e602482ce555 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 30 Aug 2015 03:21:57 -0400 -Subject: [PATCH 04/10] RHEL: Fix tests for libguestfs-winsupport. +Subject: [PATCH 06/11] RHEL: Fix tests for libguestfs-winsupport. It doesn't let us use guestfish for arbitrary Windows edits. --- @@ -23,10 +23,10 @@ index 30908a91..73cf5144 100755 run diff --git a/tests/test-v2v-virtio-win-iso.sh b/tests/test-v2v-virtio-win-iso.sh -index 6e99f0f1..a8e572c5 100755 +index 69f6f414..b9b806fb 100755 --- a/tests/test-v2v-virtio-win-iso.sh +++ b/tests/test-v2v-virtio-win-iso.sh -@@ -79,6 +79,12 @@ mktest () +@@ -82,6 +82,12 @@ mktest () :> "$script" :> "$expected" @@ -39,20 +39,18 @@ index 6e99f0f1..a8e572c5 100755 firstboot_dir="/Program Files/Guestfs/Firstboot" mktest "is-dir \"$firstboot_dir\"" true mktest "is-file \"$firstboot_dir/firstboot.bat\"" true -@@ -91,7 +97,7 @@ for drv in netkvm vioscsi viostor; do +@@ -94,5 +100,5 @@ for drv in netkvm vioscsi viostor; do done done -guestfish --ro -a "$d/windows-sda" -i < "$script" > "$response" +guestfish --ro -a "$d/windows-sda" < "$script" > "$response" diff -u "$expected" "$response" - - rm -r $d diff --git a/tests/test-v2v-windows-conversion.sh b/tests/test-v2v-windows-conversion.sh -index f1da222a..ff94fe39 100755 +index aeab9a48..4b422c5b 100755 --- a/tests/test-v2v-windows-conversion.sh +++ b/tests/test-v2v-windows-conversion.sh -@@ -73,6 +73,12 @@ mktest () +@@ -76,6 +76,12 @@ mktest () :> "$script" :> "$expected" @@ -65,7 +63,7 @@ index f1da222a..ff94fe39 100755 firstboot_dir="/Program Files/Guestfs/Firstboot" mktest "is-dir \"$firstboot_dir\"" true mktest "is-file \"$firstboot_dir/firstboot.bat\"" true -@@ -85,7 +91,7 @@ for drv in netkvm qxl vioscsi viostor; do +@@ -88,7 +94,7 @@ for drv in netkvm qxl vioscsi viostor; do done done diff --git a/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch b/0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch similarity index 93% rename from 0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch rename to 0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch index 9c2f68d..66041e7 100644 --- a/0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch +++ b/0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch @@ -1,7 +1,7 @@ -From 44d88b1170601c31f6199667a6f23cbac4364654 Mon Sep 17 00:00:00 2001 +From 3b69cfa365c7b014ca81b09e857ab294cff04914 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 14 Jan 2016 11:53:42 -0500 -Subject: [PATCH 05/10] RHEL: v2v: Disable the virt-v2v --in-place option. +Subject: [PATCH 07/11] RHEL: v2v: Disable the virt-v2v --in-place option. This disables the virt-v2v --in-place option which we do not wish to support in RHEL. @@ -16,10 +16,10 @@ wish to support in RHEL. delete mode 100755 tests/test-v2v-in-place.sh diff --git a/docs/test-v2v-docs.sh b/docs/test-v2v-docs.sh -index dd2b1233..8fef46cc 100755 +index 465df26f..ae1a6c68 100755 --- a/docs/test-v2v-docs.sh +++ b/docs/test-v2v-docs.sh -@@ -27,6 +27,7 @@ $top_srcdir/podcheck.pl virt-v2v.pod virt-v2v \ +@@ -30,6 +30,7 @@ $srcdir/../podcheck.pl virt-v2v.pod virt-v2v \ --debug-overlay,\ --ic,\ --if,\ @@ -117,10 +117,10 @@ index 83f6fd4d..719a95b5 100644 The I<--machine-readable> option can be used to make the output more diff --git a/tests/Makefile.am b/tests/Makefile.am -index f08ea69a..5fb7898c 100644 +index 41d38d30..9bbd86d6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am -@@ -76,7 +76,6 @@ TESTS = \ +@@ -77,7 +77,6 @@ TESTS = \ test-v2v-floppy.sh \ test-v2v-i-disk.sh \ test-v2v-i-ova.sh \ @@ -128,7 +128,7 @@ index f08ea69a..5fb7898c 100644 test-v2v-mac.sh \ test-v2v-machine-readable.sh \ test-v2v-networks-and-bridges.sh \ -@@ -224,7 +223,6 @@ EXTRA_DIST += \ +@@ -226,7 +225,6 @@ EXTRA_DIST += \ test-v2v-i-vmx-3.vmx \ test-v2v-i-vmx-4.vmx \ test-v2v-i-vmx-5.vmx \ @@ -138,7 +138,7 @@ index f08ea69a..5fb7898c 100644 test-v2v-mac-expected.xml \ diff --git a/tests/test-v2v-in-place.sh b/tests/test-v2v-in-place.sh deleted file mode 100755 -index 6f7d78f3..00000000 +index 9da8fa63..00000000 --- a/tests/test-v2v-in-place.sh +++ /dev/null @@ -1,108 +0,0 @@ @@ -167,18 +167,21 @@ index 6f7d78f3..00000000 -export LANG=C -set -e - --$TEST_FUNCTIONS +-source ./functions.sh +-set -e +-set -x +- -skip_if_skipped --skip_if_backend uml --skip_unless_phony_guest windows.img +-requires test -f ../test-data/phony-guests/windows.img - -img_base="$abs_top_builddir/test-data/phony-guests/windows.img" - --export VIRT_TOOLS_DATA_DIR="$top_srcdir/test-data/fake-virt-tools" --export VIRTIO_WIN="$top_srcdir/test-data/fake-virtio-win" +-export VIRT_TOOLS_DATA_DIR="$srcdir/../test-data/fake-virt-tools" +-export VIRTIO_WIN="$srcdir/../test-data/fake-virtio-win" - -d=$PWD/test-v2v-in-place.d -rm -rf $d +-cleanup_fn rm -r $d -mkdir $d - -img="$d/test.qcow2" @@ -247,9 +250,6 @@ index 6f7d78f3..00000000 - -# Test the base image remained untouched -test "$md5" = "$(do_md5 $img_base)" -- --# Clean up. --rm -r $d diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml index ac10ec31..01314580 100644 --- a/v2v/cmdline.ml diff --git a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch similarity index 86% rename from 0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch rename to 0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch index 0628e4b..cd2c206 100644 --- a/0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +++ b/0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch @@ -1,7 +1,7 @@ -From a3054b424c417d89b92d1f55aa1f59adcf7779c8 Mon Sep 17 00:00:00 2001 +From e57a5dafc00b3b5737824977aad0feb0ec497a1f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Mar 2017 14:21:37 +0100 -Subject: [PATCH 06/10] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) +Subject: [PATCH 08/11] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) The SDL output mode is not supported in RHEL's qemu-kvm. --- diff --git a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch b/0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch similarity index 83% rename from 0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch rename to 0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch index 147ebfd..06db995 100644 --- a/0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +++ b/0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch @@ -1,7 +1,7 @@ -From 28ab3e6e5e76678c4656dbb9cd54893f7ccdf21d Mon Sep 17 00:00:00 2001 +From aa5cf3ba5d10400ee6d6c63dd77c711b6fdec116 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 8 Mar 2017 11:03:40 +0100 -Subject: [PATCH 07/10] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) +Subject: [PATCH 09/11] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) They are not supported in RHEL. --- diff --git a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch b/0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch similarity index 95% rename from 0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch rename to 0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch index 82497c4..f00865c 100644 --- a/0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +++ b/0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch @@ -1,7 +1,7 @@ -From 02c4ae37bec8c0dddfa92cd324f92ac32a928384 Mon Sep 17 00:00:00 2001 +From ccaae02ef3f081b544eca82f3652ca50ac5566a9 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 26 Mar 2019 09:42:25 +0100 -Subject: [PATCH 09/10] RHEL: point to KB for supported v2v hypervisors/guests +Subject: [PATCH 10/11] RHEL: point to KB for supported v2v hypervisors/guests --- docs/virt-v2v-support.pod | 104 ++------------------------------------ diff --git a/0010-RHEL-9-Disable-o-glance.patch b/0011-RHEL-9-Disable-o-glance.patch similarity index 97% rename from 0010-RHEL-9-Disable-o-glance.patch rename to 0011-RHEL-9-Disable-o-glance.patch index c51d804..1336f6c 100644 --- a/0010-RHEL-9-Disable-o-glance.patch +++ b/0011-RHEL-9-Disable-o-glance.patch @@ -1,7 +1,7 @@ -From e425f0836c502799c05cdcd6e215de4fff994e70 Mon Sep 17 00:00:00 2001 +From 7edb403ee54153c64205915c0bd1d177c0094ee0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 30 Jun 2021 11:15:52 +0100 -Subject: [PATCH 10/10] RHEL 9: Disable -o glance +Subject: [PATCH 11/11] RHEL 9: Disable -o glance Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1977539 --- @@ -151,7 +151,7 @@ index 719a95b5..2f4fe86c 100644 This normally requires root. See the next section. diff --git a/tests/test-v2v-o-glance.sh b/tests/test-v2v-o-glance.sh -index 162c397e..48d45dce 100755 +index c0db9115..074b5e16 100755 --- a/tests/test-v2v-o-glance.sh +++ b/tests/test-v2v-o-glance.sh @@ -20,6 +20,9 @@ @@ -161,9 +161,9 @@ index 162c397e..48d45dce 100755 +# Feature is disabled in RHEL 9. +exit 77 + - $TEST_FUNCTIONS - skip_if_skipped - skip_if_backend uml + source ./functions.sh + set -e + set -x diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml index 01314580..e6c86b6f 100644 --- a/v2v/cmdline.ml diff --git a/sources b/sources index 41968b2..6a6c6fc 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.2.tar.gz) = 908c762b2200ca2125b7623fe4d14253e0d91de6e7691e540b1e70f68d4a18b8c21de75c894240cf6a0ae5296845dec5cd4cbac5f30c614ffa2c293649a3e6e1 -SHA512 (virt-v2v-1.45.2.tar.gz.sig) = 89c19dcc995472b958a1a6f5b5769331e014fc1d2fafd1abddb5edf78b32baf93135e2a57bee5c33de9f782c30970101921aea4b965ff308da9117850d717ba6 +SHA512 (virt-v2v-1.45.3.tar.gz) = 24606acb039e630d8cbe4befe232bf9f3e8a2064e931d9064adc59704d34b67269933e2b24cb9f996c31b8c16b4e4f2ebdd7f40c9d29bb0f4a9f3df98d8edf34 +SHA512 (virt-v2v-1.45.3.tar.gz.sig) = efbeb0b925b403e6973936a89125b169c7522fc5073a0b8978326de861819a3b8756e219a381e3eac3ee40d97cc16919286a797557e6391e301a0871b38628e7 diff --git a/virt-v2v.spec b/virt-v2v.spec index 01dbcad..625ccb6 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.2 -Release: 2%{?dist} +Version: 1.45.3 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -50,16 +50,17 @@ ExclusiveArch: x86_64 # Downstream (RHEL-only) patches. %if 0%{?rhel} -Patch9001: 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch -Patch9002: 0002-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch -Patch9003: 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch -Patch9004: 0004-RHEL-Fix-tests-for-libguestfs-winsupport.patch -Patch9005: 0005-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch -Patch9006: 0006-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch -Patch9007: 0007-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch -Patch9008: 0008-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch -Patch9009: 0009-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch -Patch9010: 0010-RHEL-9-Disable-o-glance.patch +Patch9001: 0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch +Patch9002: 0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch +Patch9003: 0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +Patch9004: 0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch +Patch9005: 0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +Patch9006: 0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch +Patch9007: 0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch +Patch9008: 0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +Patch9009: 0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +Patch9010: 0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +Patch9011: 0011-RHEL-9-Disable-o-glance.patch %endif %if 0%{patches_touch_autotools} @@ -286,6 +287,10 @@ popd %changelog +* Fri Aug 06 2021 Richard W.M. Jones - 1:1.45.3-1 +- New upstream development version 1.45.3. +- Rebase RHEL patches. + * Fri Jul 23 2021 Fedora Release Engineering - 1:1.45.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 4e3368f10c692635aa0d958a8d480b1968826577 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Sep 2021 14:53:40 +0100 Subject: [PATCH 027/183] New upstream development version 1.45.90 (preview of 2.0) --- ...correct-qemu-binary-for-o-qemu-mode-.patch | 33 ++ ...-Remove-o-rhv-upload-oa-preallocated.patch | 123 -------- ...-the-qemu-boot-oo-qemu-boot-option-R.patch | 70 +++-- ...load-Remove-restriction-on-oa-sparse.patch | 90 ------ ...-supported-sound-cards-to-match-RHEL.patch | 14 +- ...correct-qemu-binary-for-o-qemu-mode-.patch | 33 -- ...RHEL-Fixes-for-libguestfs-winsupport.patch | 35 ++- ...sk-force-VNC-as-display-RHBZ-1372671.patch | 26 ++ ...-mention-SUSE-Xen-hosts-RHBZ-1430203.patch | 4 +- ...-for-supported-v2v-hypervisors-guest.patch | 4 +- ...Disable-the-virt-v2v-in-place-option.patch | 288 ------------------ ...atch => 0008-RHEL-9-Disable-o-glance.patch | 70 ++--- ...sk-force-VNC-as-display-RHBZ-1372671.patch | 26 -- sources | 4 +- virt-v2v.spec | 50 +-- 15 files changed, 197 insertions(+), 673 deletions(-) create mode 100644 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch delete mode 100644 0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch rename 0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch => 0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch (58%) delete mode 100644 0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch rename 0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch => 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch (67%) delete mode 100644 0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch rename 0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch => 0004-RHEL-Fixes-for-libguestfs-winsupport.patch (61%) create mode 100644 0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch rename 0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch => 0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch (82%) rename 0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch => 0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch (94%) delete mode 100644 0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch rename 0011-RHEL-9-Disable-o-glance.patch => 0008-RHEL-9-Disable-o-glance.patch (75%) delete mode 100644 0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch diff --git a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch new file mode 100644 index 0000000..dffafb4 --- /dev/null +++ b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch @@ -0,0 +1,33 @@ +From f417ca536219b151284a5a0e28698bfa19a5c160 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Sun, 28 Sep 2014 19:14:43 +0100 +Subject: [PATCH 1/8] RHEL: v2v: Select correct qemu binary for -o qemu mode + (RHBZ#1147313). + +RHEL does not have qemu-system-x86_64 (etc), and in addition the +qemu binary is located in /usr/libexec. Encode the path to this +binary directly in the script. + +Note that we don't support people running qemu directly like this. +It's just for quick testing of converted VMs, and to help us with +support cases. +--- + output/output.ml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/output/output.ml b/output/output.ml +index 9c2d8853..92b03525 100644 +--- a/output/output.ml ++++ b/output/output.ml +@@ -1413,7 +1413,7 @@ and qemu_finalize dir source inspect target_meta + * module deals with shell and qemu comma quoting. + *) + let cmd = Qemuopts.create () in +- Qemuopts.set_binary_by_arch cmd (Some guestcaps.gcaps_arch); ++ Qemuopts.set_binary cmd "/usr/libexec/qemu-kvm"; + + let flag = Qemuopts.flag cmd + and arg = Qemuopts.arg cmd +-- +2.31.1 + diff --git a/0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch b/0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch deleted file mode 100644 index f922f3e..0000000 --- a/0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch +++ /dev/null @@ -1,123 +0,0 @@ -From 4d5509a98823cc0b8930678716b862adbd2c0b81 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Fri, 6 Aug 2021 13:01:28 +0100 -Subject: [PATCH 01/11] Revert "v2v: Remove -o rhv-upload -oa preallocated" - -This reverts commit 18084f90d9dd9092831cb3487039328981796291. ---- - v2v/cmdline.ml | 2 +- - v2v/output_rhv_upload.ml | 22 ++++++++++++++++++++-- - v2v/output_rhv_upload.mli | 7 ++++--- - v2v/rhv-upload-transfer.py | 1 + - 4 files changed, 26 insertions(+), 6 deletions(-) - -diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml -index 79d943df..5e7c01f8 100644 ---- a/v2v/cmdline.ml -+++ b/v2v/cmdline.ml -@@ -699,7 +699,7 @@ read the man page virt-v2v(1). - | Some os -> os in - if qemu_boot then - error_option_cannot_be_used_in_output_mode "rhv-upload" "--qemu-boot"; -- Output_rhv_upload.output_rhv_upload output_conn -+ Output_rhv_upload.output_rhv_upload output_alloc output_conn - output_password os - rhv_options, - output_format, output_alloc -diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml -index 6a632eaa..50baa595 100644 ---- a/v2v/output_rhv_upload.ml -+++ b/v2v/output_rhv_upload.ml -@@ -146,11 +146,22 @@ let error_unless_nbdkit_compiled_with_selinux config = - error (f_"nbdkit was compiled without SELinux support. You will have to recompile nbdkit with libselinux-devel installed, or else set SELinux to Permissive mode while doing the conversion.") - ) - -+(* Output sparse must be sparse. We may be able to -+ * lift this limitation in future, but it requires changes on the -+ * RHV side. See TODO file for details. XXX -+ *) -+let error_current_limitation required_param = -+ error (f_"rhv-upload: currently you must use ‘%s’. This restriction will be loosened in a future version.") required_param -+ -+let error_unless_output_alloc_sparse output_alloc = -+ if output_alloc <> Sparse then -+ error_current_limitation "-oa sparse" -+ - let json_optstring = function - | Some s -> JSON.String s - | None -> JSON.Null - --class output_rhv_upload output_conn -+class output_rhv_upload output_alloc output_conn - output_password output_storage - rhv_options = - (* Create a temporary directory which will be deleted on exit. *) -@@ -189,6 +200,9 @@ class output_rhv_upload output_conn - "output_conn", JSON.String output_conn; - "output_password", JSON.String output_password; - "output_storage", JSON.String output_storage; -+ "output_sparse", JSON.Bool (match output_alloc with -+ | Sparse -> true -+ | Preallocated -> false); - "rhv_cafile", json_optstring rhv_options.rhv_cafile; - "rhv_cluster", - JSON.String (Option.default "Default" rhv_options.rhv_cluster); -@@ -257,6 +271,7 @@ object - error_unless_nbdkit_min_version config; - error_unless_nbdkit_python_plugin_working plugin_script; - error_unless_nbdkit_compiled_with_selinux config; -+ error_unless_output_alloc_sparse output_alloc; - - (* Python code prechecks. *) - let json_params = match rhv_options.rhv_disk_uuids with -@@ -282,6 +297,9 @@ object - - method as_options = - "-o rhv-upload" ^ -+ (match output_alloc with -+ | Sparse -> "" (* default, don't need to print it *) -+ | Preallocated -> " -oa preallocated") ^ - sprintf " -oc %s -op %s -os %s" - output_conn output_password output_storage - -@@ -449,7 +467,7 @@ object - (* Create the metadata. *) - let ovf = - Create_ovf.create_ovf source inspect target_meta targets -- Sparse sd_uuid disk_uuids vol_uuids vm_uuid -+ output_alloc sd_uuid disk_uuids vol_uuids vm_uuid - OVirt in - let ovf = DOM.doc_to_string ovf in - -diff --git a/v2v/output_rhv_upload.mli b/v2v/output_rhv_upload.mli -index 01507dff..eb85a57d 100644 ---- a/v2v/output_rhv_upload.mli -+++ b/v2v/output_rhv_upload.mli -@@ -25,8 +25,9 @@ val print_output_options : unit -> unit - val parse_output_options : (string * string) list -> rhv_options - (** Print and parse rhv-upload -oo options. *) - --val output_rhv_upload : string -> string -> string -> rhv_options -> -- Types.output --(** [output_rhv_upload output_conn output_password output_storage rhv_options] -+val output_rhv_upload : Types.output_allocation -> string -> string -> -+ string -> rhv_options -> Types.output -+(** [output_rhv_upload output_alloc output_conn output_password output_storage -+ rhv_options] - creates and returns a new {!Types.output} object specialized for writing - output to oVirt or RHV directly via RHV APIs. *) -diff --git a/v2v/rhv-upload-transfer.py b/v2v/rhv-upload-transfer.py -index cf4f8807..5aebcd1d 100644 ---- a/v2v/rhv-upload-transfer.py -+++ b/v2v/rhv-upload-transfer.py -@@ -111,6 +111,7 @@ def create_disk(connection): - # size, based on qemu-img measure of the overlay. - initial_size=params['disk_size'], - provisioned_size=params['disk_size'], -+ # XXX Ignores params['output_sparse']. - # Handling this properly will be complex, see: - # https://www.redhat.com/archives/libguestfs/2018-March/msg00177.html - sparse=True, --- -2.31.1 - diff --git a/0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch b/0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch similarity index 58% rename from 0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch rename to 0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch index 9a77b34..15f4600 100644 --- a/0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch +++ b/0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch @@ -1,7 +1,7 @@ -From bb55b78b68e6e8039734eb1d7af22b455f8fbdc2 Mon Sep 17 00:00:00 2001 +From 00490feb06496ad4bf22dbc5493a7cf186476e9f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Sep 2014 10:50:27 +0100 -Subject: [PATCH 04/11] RHEL: v2v: Disable the --qemu-boot option +Subject: [PATCH 2/8] RHEL: v2v: Disable the --qemu-boot / -oo qemu-boot option (RHBZ#1147313). This cannot work because there is no Gtk or SDL output mode @@ -11,9 +11,10 @@ In addition you will have to edit the -display option in the qemu script. --- docs/virt-v2v-output-local.pod | 6 ++---- - docs/virt-v2v.pod | 13 ------------- - v2v/cmdline.ml | 3 ++- - 3 files changed, 4 insertions(+), 18 deletions(-) + docs/virt-v2v.pod | 12 ------------ + output/output.ml | 3 +++ + v2v/v2v.ml | 2 -- + 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/docs/virt-v2v-output-local.pod b/docs/virt-v2v-output-local.pod index a5f155cb..3a2e6238 100644 @@ -43,7 +44,7 @@ index a5f155cb..3a2e6238 100644 =item B<-o json -os> C diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index bdf4d716..83f6fd4d 100644 +index b25d678d..0a47b611 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod @@ -141,11 +141,6 @@ Since F contains the path(s) to the guest disk @@ -53,54 +54,59 @@ index bdf4d716..83f6fd4d 100644 -To convert a local disk image and immediately boot it in local -qemu, do: - -- virt-v2v -i disk disk.img -o qemu -os /var/tmp --qemu-boot +- virt-v2v -i disk disk.img -o qemu -os /var/tmp -oo qemu-boot - =head1 OPTIONS =over 4 -@@ -528,9 +523,6 @@ This is similar to I<-o local>, except that a shell script is written +@@ -511,9 +506,6 @@ This is similar to I<-o local>, except that a shell script is written which you can use to boot the guest in qemu. The converted disks and shell script are written to the directory specified by I<-os>. --When using this output mode, you can also specify the I<--qemu-boot> +-When using this output mode, you can also specify the I<-oo qemu-boot> -option which boots the guest under qemu immediately. - =item B<-o> B This is the same as I<-o rhv>. -@@ -775,11 +767,6 @@ Print information about the source guest and stop. This option is +@@ -769,10 +761,6 @@ Print information about the source guest and stop. This option is useful when you are setting up network and bridge maps. See L. -=item B<--qemu-boot> - --When using I<-o qemu> only, this boots the guest immediately after --virt-v2v finishes. +-This is the same as I<-oo qemu-boot>. - =item B<-q> =item B<--quiet> -diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml -index 5e7c01f8..ac10ec31 100644 ---- a/v2v/cmdline.ml -+++ b/v2v/cmdline.ml -@@ -276,7 +276,6 @@ let parse_cmdline () = - s_"Same as ‘-ip filename’"; - [ L"print-source" ], Getopt.Set print_source, - s_"Print source and stop"; -- [ L"qemu-boot" ], Getopt.Set qemu_boot, s_"Boot in qemu (-o qemu only)"; - [ L"root" ], Getopt.String ("ask|... ", set_root_choice), - s_"How to choose root filesystem"; - [ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"), -@@ -652,6 +651,8 @@ read the man page virt-v2v(1). - | Some d when not (is_directory d) -> - error (f_"-os %s: output directory does not exist or is not a directory") d - | Some d -> d in -+ if qemu_boot then -+ error (f_"-o qemu: the --qemu-boot option cannot be used in RHEL"); - Output_qemu.output_qemu os qemu_boot, - output_format, output_alloc +diff --git a/output/output.ml b/output/output.ml +index 92b03525..1414a521 100644 +--- a/output/output.ml ++++ b/output/output.ml +@@ -1346,6 +1346,9 @@ and qemu_parse_options cmdline = + ) cmdline.output_options; + let qemu_boot = !qemu_boot in ++ if qemu_boot then ++ error (f_"-o qemu: the -oo qemu-boot option cannot be used in RHEL"); ++ + (* -os must be set to a directory. *) + let output_storage = + match cmdline.output_storage with +diff --git a/v2v/v2v.ml b/v2v/v2v.ml +index a88e0509..1104295c 100644 +--- a/v2v/v2v.ml ++++ b/v2v/v2v.ml +@@ -218,8 +218,6 @@ let rec main () = + s_"Same as ‘-ip filename’"; + [ L"print-source" ], Getopt.Set print_source, + s_"Print source and stop"; +- [ L"qemu-boot" ], Getopt.Unit (fun () -> add_o_option "-oo" "qemu-boot"), +- s_"Boot in qemu (-o qemu only)"; + [ L"root" ], Getopt.String ("ask|... ", add_conv_option "--root"), + s_"How to choose root filesystem"; + [ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"), -- 2.31.1 diff --git a/0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch b/0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch deleted file mode 100644 index c1a1163..0000000 --- a/0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch +++ /dev/null @@ -1,90 +0,0 @@ -From abe3c7539b6221e8ab3cc35ee3d58b1aa06bbef4 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Mon, 14 May 2018 10:16:58 +0100 -Subject: [PATCH 02/11] RHEL: v2v: rhv-upload: Remove restriction on -oa - sparse. - -See: https://bugzilla.redhat.com/show_bug.cgi?id=1565681 -and the v2v-devel private thread "Do we already support migration using FC?" ---- - docs/virt-v2v-output-rhv.pod | 8 +------- - v2v/output_rhv_upload.ml | 10 +--------- - v2v/rhv-upload-transfer.py | 4 +--- - 3 files changed, 3 insertions(+), 19 deletions(-) - -diff --git a/docs/virt-v2v-output-rhv.pod b/docs/virt-v2v-output-rhv.pod -index dc6b2c0a..7b8fdc0f 100644 ---- a/docs/virt-v2v-output-rhv.pod -+++ b/docs/virt-v2v-output-rhv.pod -@@ -5,7 +5,7 @@ virt-v2v-output-rhv - Using virt-v2v to convert guests to oVirt or RHV - =head1 SYNOPSIS - - virt-v2v [-i* options] -o rhv-upload [-oc ENGINE_URL] -os STORAGE -- [-op PASSWORD] [-of raw] -+ [-op PASSWORD] - [-oo rhv-cafile=FILE] - [-oo rhv-cluster=CLUSTER] - [-oo rhv-direct] -@@ -79,12 +79,6 @@ username is not specified then virt-v2v defaults to using - C which is the typical superuser account for oVirt - instances. - --=item I<-of raw> -- --Currently you must use I<-of raw> and you cannot use I<-oa preallocated>. -- --These restrictions will be loosened in a future version. -- - =item I<-op> F - - A file containing a password to be used when connecting to the oVirt -diff --git a/v2v/output_rhv_upload.ml b/v2v/output_rhv_upload.ml -index 50baa595..be5e9851 100644 ---- a/v2v/output_rhv_upload.ml -+++ b/v2v/output_rhv_upload.ml -@@ -146,17 +146,10 @@ let error_unless_nbdkit_compiled_with_selinux config = - error (f_"nbdkit was compiled without SELinux support. You will have to recompile nbdkit with libselinux-devel installed, or else set SELinux to Permissive mode while doing the conversion.") - ) - --(* Output sparse must be sparse. We may be able to -- * lift this limitation in future, but it requires changes on the -- * RHV side. See TODO file for details. XXX -- *) -+(* Output format must be raw. *) - let error_current_limitation required_param = - error (f_"rhv-upload: currently you must use ‘%s’. This restriction will be loosened in a future version.") required_param - --let error_unless_output_alloc_sparse output_alloc = -- if output_alloc <> Sparse then -- error_current_limitation "-oa sparse" -- - let json_optstring = function - | Some s -> JSON.String s - | None -> JSON.Null -@@ -271,7 +264,6 @@ object - error_unless_nbdkit_min_version config; - error_unless_nbdkit_python_plugin_working plugin_script; - error_unless_nbdkit_compiled_with_selinux config; -- error_unless_output_alloc_sparse output_alloc; - - (* Python code prechecks. *) - let json_params = match rhv_options.rhv_disk_uuids with -diff --git a/v2v/rhv-upload-transfer.py b/v2v/rhv-upload-transfer.py -index 5aebcd1d..f38cd9c0 100644 ---- a/v2v/rhv-upload-transfer.py -+++ b/v2v/rhv-upload-transfer.py -@@ -111,10 +111,8 @@ def create_disk(connection): - # size, based on qemu-img measure of the overlay. - initial_size=params['disk_size'], - provisioned_size=params['disk_size'], -- # XXX Ignores params['output_sparse']. -- # Handling this properly will be complex, see: - # https://www.redhat.com/archives/libguestfs/2018-March/msg00177.html -- sparse=True, -+ sparse=params['output_sparse'], - storage_domains=[ - types.StorageDomain( - name=params['output_storage'], --- -2.31.1 - diff --git a/0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch similarity index 67% rename from 0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch rename to 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch index f93f057..39d35f8 100644 --- a/0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +++ b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch @@ -1,17 +1,17 @@ -From 49385571ce5967f8d9a102e935f201ee9c22326d Mon Sep 17 00:00:00 2001 +From 539e158e5dffdb0324a89b2a059b44ae51d2cc29 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 24 Apr 2015 09:45:41 -0400 -Subject: [PATCH 05/11] RHEL: Fix list of supported sound cards to match RHEL +Subject: [PATCH 3/8] RHEL: Fix list of supported sound cards to match RHEL qemu (RHBZ#1176493). --- - v2v/utils.ml | 5 +++-- + lib/utils.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -diff --git a/v2v/utils.ml b/v2v/utils.ml -index 7136e4be..a6c359f0 100644 ---- a/v2v/utils.ml -+++ b/v2v/utils.ml +diff --git a/lib/utils.ml b/lib/utils.ml +index 1eac3f3f..a478fc33 100644 +--- a/lib/utils.ml ++++ b/lib/utils.ml @@ -59,13 +59,14 @@ let kvm_arch = function (* Does qemu support the given sound card? *) let qemu_supports_sound_card = function diff --git a/0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch deleted file mode 100644 index b32b106..0000000 --- a/0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 0839ba57487b73cfb684ea495280db5d946f667a Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Sun, 28 Sep 2014 19:14:43 +0100 -Subject: [PATCH 03/11] RHEL: v2v: Select correct qemu binary for -o qemu mode - (RHBZ#1147313). - -RHEL does not have qemu-system-x86_64 (etc), and in addition the -qemu binary is located in /usr/libexec. Encode the path to this -binary directly in the script. - -Note that we don't support people running qemu directly like this. -It's just for quick testing of converted VMs, and to help us with -support cases. ---- - v2v/output_qemu.ml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/v2v/output_qemu.ml b/v2v/output_qemu.ml -index 12c56836..7391eda0 100644 ---- a/v2v/output_qemu.ml -+++ b/v2v/output_qemu.ml -@@ -79,7 +79,7 @@ object - * module deals with shell and qemu comma quoting. - *) - let cmd = Qemuopts.create () in -- Qemuopts.set_binary_by_arch cmd (Some guestcaps.gcaps_arch); -+ Qemuopts.set_binary cmd "/usr/libexec/qemu-kvm"; - - let flag = Qemuopts.flag cmd - and arg = Qemuopts.arg cmd --- -2.31.1 - diff --git a/0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch b/0004-RHEL-Fixes-for-libguestfs-winsupport.patch similarity index 61% rename from 0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch rename to 0004-RHEL-Fixes-for-libguestfs-winsupport.patch index 402b09e..45a5349 100644 --- a/0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch +++ b/0004-RHEL-Fixes-for-libguestfs-winsupport.patch @@ -1,15 +1,42 @@ -From db2150a5d790c35fb23c6d9d6b29e602482ce555 Mon Sep 17 00:00:00 2001 +From b4bab3eda2afabadcbf2e07501eab2049d1a3133 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 30 Aug 2015 03:21:57 -0400 -Subject: [PATCH 06/11] RHEL: Fix tests for libguestfs-winsupport. +Subject: [PATCH 4/8] RHEL: Fixes for libguestfs-winsupport. -It doesn't let us use guestfish for arbitrary Windows edits. +In tests we cannot use guestfish for arbitrary Windows edits. +In virt-v2v helpers we must set the program name to virt-v2v. --- + convert/convert.ml | 1 + + convert/windows_virtio.ml | 1 + test-data/phony-guests/make-windows-img.sh | 1 + tests/test-v2v-virtio-win-iso.sh | 8 +++++++- tests/test-v2v-windows-conversion.sh | 8 +++++++- - 3 files changed, 15 insertions(+), 2 deletions(-) + 5 files changed, 17 insertions(+), 2 deletions(-) +diff --git a/convert/convert.ml b/convert/convert.ml +index 07c7aee9..a4b0c60e 100644 +--- a/convert/convert.ml ++++ b/convert/convert.ml +@@ -190,6 +190,7 @@ helper-v2v-convert V2VDIR + + message (f_"Opening the source"); + let g = open_guestfs ~identifier:"v2v" () in ++ g#set_program "virt-v2v"; + g#set_memsize (g#get_memsize () * 2); + (* Setting the number of vCPUs allows parallel mkinitrd, but make + * sure this is not too large because each vCPU consumes guest RAM. +diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml +index f843dae2..6623d03d 100644 +--- a/convert/windows_virtio.ml ++++ b/convert/windows_virtio.ml +@@ -356,6 +356,7 @@ and copy_from_virtio_win g inspect srcdir destdir filter missing = + let g2 = + try + let g2 = open_guestfs ~identifier:"virtio_win" () in ++ g#set_program "virt-v2v"; + g2#add_drive_opts virtio_win ~readonly:true; + g2#launch (); + g2 diff --git a/test-data/phony-guests/make-windows-img.sh b/test-data/phony-guests/make-windows-img.sh index 30908a91..73cf5144 100755 --- a/test-data/phony-guests/make-windows-img.sh diff --git a/0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch new file mode 100644 index 0000000..6374372 --- /dev/null +++ b/0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch @@ -0,0 +1,26 @@ +From 4022a90a8974147000fb5053d7596066db1b82b9 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Thu, 2 Mar 2017 14:21:37 +0100 +Subject: [PATCH 5/8] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) + +The SDL output mode is not supported in RHEL's qemu-kvm. +--- + input/input.ml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/input/input.ml b/input/input.ml +index a8416eaf..9175a531 100644 +--- a/input/input.ml ++++ b/input/input.ml +@@ -270,7 +270,7 @@ and disk_source cmdline args = + s_features = [ "acpi"; "apic"; "pae" ]; + s_firmware = UnknownFirmware; (* causes virt-v2v to autodetect *) + s_display = +- Some { s_display_type = Window; s_keymap = None; s_password = None; ++ Some { s_display_type = VNC; s_keymap = None; s_password = None; + s_listen = LNoListen; s_port = None }; + s_video = None; + s_sound = None; +-- +2.31.1 + diff --git a/0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch b/0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch similarity index 82% rename from 0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch rename to 0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch index 06db995..7c54981 100644 --- a/0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +++ b/0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch @@ -1,7 +1,7 @@ -From aa5cf3ba5d10400ee6d6c63dd77c711b6fdec116 Mon Sep 17 00:00:00 2001 +From 7f77cb4a56eb8dcd26db9e81e0fb2f41777129c3 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 8 Mar 2017 11:03:40 +0100 -Subject: [PATCH 09/11] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) +Subject: [PATCH 6/8] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) They are not supported in RHEL. --- diff --git a/0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch b/0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch similarity index 94% rename from 0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch rename to 0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch index f00865c..712c684 100644 --- a/0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +++ b/0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch @@ -1,7 +1,7 @@ -From ccaae02ef3f081b544eca82f3652ca50ac5566a9 Mon Sep 17 00:00:00 2001 +From a4db166d7a5c480c765ee74340463db800533c73 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 26 Mar 2019 09:42:25 +0100 -Subject: [PATCH 10/11] RHEL: point to KB for supported v2v hypervisors/guests +Subject: [PATCH 7/8] RHEL: point to KB for supported v2v hypervisors/guests --- docs/virt-v2v-support.pod | 104 ++------------------------------------ diff --git a/0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch b/0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch deleted file mode 100644 index 66041e7..0000000 --- a/0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch +++ /dev/null @@ -1,288 +0,0 @@ -From 3b69cfa365c7b014ca81b09e857ab294cff04914 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Thu, 14 Jan 2016 11:53:42 -0500 -Subject: [PATCH 07/11] RHEL: v2v: Disable the virt-v2v --in-place option. - -This disables the virt-v2v --in-place option which we do not -wish to support in RHEL. -(See commit d0069559a939e47e5f29973ed9a69a13f0b58301). ---- - docs/test-v2v-docs.sh | 1 + - docs/virt-v2v.pod | 50 +---------------- - tests/Makefile.am | 2 - - tests/test-v2v-in-place.sh | 108 ------------------------------------- - v2v/cmdline.ml | 8 +-- - 5 files changed, 8 insertions(+), 161 deletions(-) - delete mode 100755 tests/test-v2v-in-place.sh - -diff --git a/docs/test-v2v-docs.sh b/docs/test-v2v-docs.sh -index 465df26f..ae1a6c68 100755 ---- a/docs/test-v2v-docs.sh -+++ b/docs/test-v2v-docs.sh -@@ -30,6 +30,7 @@ $srcdir/../podcheck.pl virt-v2v.pod virt-v2v \ - --debug-overlay,\ - --ic,\ - --if,\ -+--in-place,\ - --io,\ - --ip,\ - --it,\ -diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index 83f6fd4d..719a95b5 100644 ---- a/docs/virt-v2v.pod -+++ b/docs/virt-v2v.pod -@@ -8,10 +8,6 @@ virt-v2v - Convert a guest to use KVM - [-o mode] [other -o* options] - [guest|filename] - -- virt-v2v --in-place -- [-i mode] [other -i* options] -- [guest|filename] -- - =head1 DESCRIPTION - - Virt-v2v converts a single guest from a foreign hypervisor to run on -@@ -39,9 +35,6 @@ these sides of virt-v2v are documented separately in this manual. - - Virt-v2v normally copies from the input to the output, called "copying - mode". In this case the source guest is always left unchanged. --In-place conversion (I<--in-place>) only uses the I<-i*> options and --modifies the source guest in-place. (See L --below.) - - =head2 Other virt-v2v topics - -@@ -292,20 +285,6 @@ For I<-i disk> only, this specifies the format of the input disk - image. For other input methods you should specify the input - format in the metadata. - --=item B<--in-place> -- --Do not create an output virtual machine in the target hypervisor. --Instead, adjust the guest OS in the source VM to run in the input --hypervisor. -- --This mode is meant for integration with other toolsets, which take the --responsibility of converting the VM configuration, providing for --rollback in case of errors, transforming the storage, etc. -- --See L below. -- --Conflicts with all I<-o *> options. -- - =item B<-io> OPTION=VALUE - - Set input option(s) related to the current input mode or transport. -@@ -1298,8 +1277,8 @@ have at least 100 available inodes. - =head3 Minimum free space check in the host - - You must have sufficient free space in the host directory used to --store large temporary overlays (except in I<--in-place> mode). To --find out which directory this is, use: -+store large temporary overlays. To find out -+which directory this is, use: - - $ df -h "`guestfish get-cachedir`" - Filesystem Size Used Avail Use% Mounted on -@@ -1437,31 +1416,6 @@ that instead. - - - --=head2 In-place conversion -- --It is also possible to use virt-v2v in scenarios where a foreign VM --has already been imported into a KVM-based hypervisor, but still needs --adjustments in the guest to make it run in the new virtual hardware. -- --In that case it is assumed that a third-party tool has created the --target VM in the supported KVM-based hypervisor based on the source VM --configuration and contents, but using virtual devices more appropriate --for KVM (e.g. virtio storage and network, etc.). -- --Then, to make the guest OS boot and run in the changed environment, --one can use: -- -- virt-v2v -ic qemu:///system converted_vm --in-place -- --Virt-v2v will analyze the configuration of C in the --C libvirt instance, and apply various fixups to the --guest OS configuration to make it match the VM configuration. This --may include installing virtio drivers, configuring the bootloader, the --mountpoints, the network interfaces, and so on. -- --Should an error occur during the operation, virt-v2v exits with an --error code leaving the VM in an undefined state. -- - =head2 Machine readable output - - The I<--machine-readable> option can be used to make the output more -diff --git a/tests/Makefile.am b/tests/Makefile.am -index 41d38d30..9bbd86d6 100644 ---- a/tests/Makefile.am -+++ b/tests/Makefile.am -@@ -77,7 +77,6 @@ TESTS = \ - test-v2v-floppy.sh \ - test-v2v-i-disk.sh \ - test-v2v-i-ova.sh \ -- test-v2v-in-place.sh \ - test-v2v-mac.sh \ - test-v2v-machine-readable.sh \ - test-v2v-networks-and-bridges.sh \ -@@ -226,7 +225,6 @@ EXTRA_DIST += \ - test-v2v-i-vmx-3.vmx \ - test-v2v-i-vmx-4.vmx \ - test-v2v-i-vmx-5.vmx \ -- test-v2v-in-place.sh \ - test-v2v-it-vddk-io-query.sh \ - test-v2v-machine-readable.sh \ - test-v2v-mac-expected.xml \ -diff --git a/tests/test-v2v-in-place.sh b/tests/test-v2v-in-place.sh -deleted file mode 100755 -index 9da8fa63..00000000 ---- a/tests/test-v2v-in-place.sh -+++ /dev/null -@@ -1,108 +0,0 @@ --#!/bin/bash - --# libguestfs virt-v2v test script --# Copyright (C) 2014 Red Hat Inc. --# Copyright (C) 2015 Parallels IP Holdings GmbH. --# --# This program is free software; you can redistribute it and/or modify --# it under the terms of the GNU General Public License as published by --# the Free Software Foundation; either version 2 of the License, or --# (at your option) any later version. --# --# This program is distributed in the hope that it will be useful, --# but WITHOUT ANY WARRANTY; without even the implied warranty of --# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --# GNU General Public License for more details. --# --# You should have received a copy of the GNU General Public License --# along with this program; if not, write to the Free Software --# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -- --# Test --in-place. -- --unset CDPATH --export LANG=C --set -e -- --source ./functions.sh --set -e --set -x -- --skip_if_skipped --requires test -f ../test-data/phony-guests/windows.img -- --img_base="$abs_top_builddir/test-data/phony-guests/windows.img" -- --export VIRT_TOOLS_DATA_DIR="$srcdir/../test-data/fake-virt-tools" --export VIRTIO_WIN="$srcdir/../test-data/fake-virtio-win" -- --d=$PWD/test-v2v-in-place.d --rm -rf $d --cleanup_fn rm -r $d --mkdir $d -- --img="$d/test.qcow2" --rm -f $img --qemu-img create -f qcow2 -b $img_base -o compat=1.1,backing_fmt=raw $img --md5="$(do_md5 $img_base)" -- --libvirt_xml="$d/test.xml" --rm -f $libvirt_xml --n=windows-overlay --cat > $libvirt_xml < -- -- $n -- 1048576 -- -- hvm -- -- -- -- -- -- -- -- -- -- -- --EOF -- --$VG virt-v2v --debug-gc -i libvirt -ic "test://$libvirt_xml" $n --in-place -- --# Test that the drivers have been copied over into the guest --script="$d/test.fish" --expected="$d/expected" --response="$d/response" -- --mktest () --{ -- local cmd="$1" exp="$2" -- -- echo "echo '$cmd'" >> "$script" -- echo "$cmd" >> "$expected" -- -- echo "$cmd" >> "$script" -- echo "$exp" >> "$expected" --} -- --:> "$script" --:> "$expected" -- --firstboot_dir="/Program Files/Guestfs/Firstboot" --mktest "is-dir \"$firstboot_dir\"" true --mktest "is-file \"$firstboot_dir/firstboot.bat\"" true --mktest "is-dir \"$firstboot_dir/scripts\"" true --virtio_dir="/Windows/Drivers/VirtIO" --mktest "is-dir \"$virtio_dir\"" true --for drv in netkvm qxl vioscsi viostor; do -- for sfx in cat inf sys; do -- mktest "is-file \"$virtio_dir/$drv.$sfx\"" true -- done --done -- --guestfish --ro -a "$img" -i < "$script" > "$response" --diff -u "$expected" "$response" -- --# Test the base image remained untouched --test "$md5" = "$(do_md5 $img_base)" -diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml -index ac10ec31..01314580 100644 ---- a/v2v/cmdline.ml -+++ b/v2v/cmdline.ml -@@ -246,8 +246,7 @@ let parse_cmdline () = - s_"Use password from file to connect to input hypervisor"; - [ M"it" ], Getopt.String ("transport", set_string_option_once "-it" input_transport), - s_"Input transport"; -- [ L"in-place" ], Getopt.Set in_place, -- s_"Only tune the guest in the input VM"; -+ [ L"in-place" ], Getopt.Set in_place, Getopt.hidden_option_description; - [ L"mac" ], Getopt.String ("mac:network|bridge|ip:out", add_mac), - s_"Map NIC to network or bridge or assign static IP"; - [ S 'n'; L"network" ], Getopt.String ("in:out", add_network), -@@ -386,7 +385,6 @@ read the man page virt-v2v(1). - pr "vddk\n"; - pr "colours-option\n"; - pr "vdsm-compat-option\n"; -- pr "in-place\n"; - pr "io/oo\n"; - pr "mac-option\n"; - pr "bandwidth-option\n"; -@@ -556,6 +554,10 @@ read the man page virt-v2v(1). - error (f_"only ‘-it ssh’ can be used here") in - Input_vmx.input_vmx input_password input_transport arg in - -+ (* Prevent use of --in-place option in RHEL. *) -+ if in_place then -+ error (f_"--in-place cannot be used in RHEL"); -+ - (* Common error message. *) - let error_option_cannot_be_used_in_output_mode mode opt = - error (f_"-o %s: %s option cannot be used in this output mode") mode opt --- -2.31.1 - diff --git a/0011-RHEL-9-Disable-o-glance.patch b/0008-RHEL-9-Disable-o-glance.patch similarity index 75% rename from 0011-RHEL-9-Disable-o-glance.patch rename to 0008-RHEL-9-Disable-o-glance.patch index 1336f6c..8776133 100644 --- a/0011-RHEL-9-Disable-o-glance.patch +++ b/0008-RHEL-9-Disable-o-glance.patch @@ -1,16 +1,15 @@ -From 7edb403ee54153c64205915c0bd1d177c0094ee0 Mon Sep 17 00:00:00 2001 +From f801f4a34f9b136e2cb5af3b936948f1ecb88154 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 30 Jun 2021 11:15:52 +0100 -Subject: [PATCH 11/11] RHEL 9: Disable -o glance +Subject: [PATCH 8/8] RHEL 9: Disable -o glance Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1977539 --- docs/virt-v2v-output-openstack.pod | 56 ++---------------------------- - docs/virt-v2v.pod | 22 ------------ + docs/virt-v2v.pod | 20 ----------- + output/output.ml | 3 +- tests/test-v2v-o-glance.sh | 3 ++ - v2v/cmdline.ml | 3 -- - v2v/output_glance.ml | 2 +- - 5 files changed, 6 insertions(+), 80 deletions(-) + 4 files changed, 7 insertions(+), 75 deletions(-) diff --git a/docs/virt-v2v-output-openstack.pod b/docs/virt-v2v-output-openstack.pod index f5a3abad..1ab356e8 100644 @@ -100,16 +99,10 @@ index f5a3abad..1ab356e8 100644 =head1 AUTHOR diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index 719a95b5..2f4fe86c 100644 +index 0a47b611..c70bfef5 100644 --- a/docs/virt-v2v.pod +++ b/docs/virt-v2v.pod -@@ -422,20 +422,10 @@ interested in looking at the metadata. - This option is not compatible with I<-o libvirt> since it would create - a faulty guest (one with no disks). - --This option is not compatible with I<-o glance> for technical reasons. -- - =item B<-o> B +@@ -432,14 +432,6 @@ See L below. This is the same as I<-o local>. @@ -124,7 +117,7 @@ index 719a95b5..2f4fe86c 100644 =item B<-o> B Set the output method to I. -@@ -1148,11 +1138,6 @@ and output methods may use disk space, as outlined in the table below. +@@ -1163,11 +1155,6 @@ and output methods may use disk space, as outlined in the table below. This temporarily places a full copy of the uncompressed source disks in C<$VIRT_V2V_TMPDIR> (or F). @@ -136,7 +129,7 @@ index 719a95b5..2f4fe86c 100644 =item I<-o local> =item I<-o qemu> -@@ -1337,13 +1322,6 @@ instance. +@@ -1352,13 +1339,6 @@ instance. Because of how Cinder volumes are presented as F block devices, using I<-o openstack> normally requires that virt-v2v is run as root. @@ -150,6 +143,20 @@ index 719a95b5..2f4fe86c 100644 =item Writing to block devices This normally requires root. See the next section. +diff --git a/output/output.ml b/output/output.ml +index 1414a521..69768ff1 100644 +--- a/output/output.ml ++++ b/output/output.ml +@@ -75,7 +75,8 @@ let rec main () = + error (f_"%s option used more than once on the command line") "-om"; + match mode with + | "disk" -> output_mode := Some `Disk +- | "glance" -> output_mode := Some `Glance ++ | "glance" -> ++ error(f_"-o glance option has been removed from RHEL 9") + | "json" -> output_mode := Some `Json + | "libvirt" -> output_mode := Some `Libvirt + | "null" -> output_mode := Some `Null diff --git a/tests/test-v2v-o-glance.sh b/tests/test-v2v-o-glance.sh index c0db9115..074b5e16 100755 --- a/tests/test-v2v-o-glance.sh @@ -164,37 +171,6 @@ index c0db9115..074b5e16 100755 source ./functions.sh set -e set -x -diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml -index 01314580..e6c86b6f 100644 ---- a/v2v/cmdline.ml -+++ b/v2v/cmdline.ml -@@ -170,7 +170,6 @@ let parse_cmdline () = - if !output_mode <> `Not_set then - error (f_"%s option used more than once on the command line") "-o"; - match mode with -- | "glance" -> output_mode := `Glance - | "libvirt" -> output_mode := `Libvirt - | "disk" | "local" -> output_mode := `Local - | "json" -> output_mode := `JSON -@@ -323,8 +322,6 @@ let parse_cmdline () = - - virt-v2v -i disk disk.img -o local -os /var/tmp - -- virt-v2v -i disk disk.img -o glance -- - There is a companion front-end called \"virt-p2v\" which comes as an - ISO or CD image that can be booted on physical machines. - -diff --git a/v2v/output_glance.ml b/v2v/output_glance.ml -index 8c5426b9..3fce4e7a 100644 ---- a/v2v/output_glance.ml -+++ b/v2v/output_glance.ml -@@ -100,4 +100,4 @@ object - end - - let output_glance = new output_glance --let () = Modules_list.register_output_module "glance" -+(* let () = Modules_list.register_output_module "glance" *) -- 2.31.1 diff --git a/0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch deleted file mode 100644 index cd2c206..0000000 --- a/0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +++ /dev/null @@ -1,26 +0,0 @@ -From e57a5dafc00b3b5737824977aad0feb0ec497a1f Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Thu, 2 Mar 2017 14:21:37 +0100 -Subject: [PATCH 08/11] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) - -The SDL output mode is not supported in RHEL's qemu-kvm. ---- - v2v/input_disk.ml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/v2v/input_disk.ml b/v2v/input_disk.ml -index b3acb5f6..5b39dbe2 100644 ---- a/v2v/input_disk.ml -+++ b/v2v/input_disk.ml -@@ -88,7 +88,7 @@ class input_disk input_format disk = object - s_features = [ "acpi"; "apic"; "pae" ]; - s_firmware = UnknownFirmware; (* causes virt-v2v to autodetect *) - s_display = -- Some { s_display_type = Window; s_keymap = None; s_password = None; -+ Some { s_display_type = VNC; s_keymap = None; s_password = None; - s_listen = LNoListen; s_port = None }; - s_video = None; - s_sound = None; --- -2.31.1 - diff --git a/sources b/sources index 6a6c6fc..d4d5702 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.3.tar.gz) = 24606acb039e630d8cbe4befe232bf9f3e8a2064e931d9064adc59704d34b67269933e2b24cb9f996c31b8c16b4e4f2ebdd7f40c9d29bb0f4a9f3df98d8edf34 -SHA512 (virt-v2v-1.45.3.tar.gz.sig) = efbeb0b925b403e6973936a89125b169c7522fc5073a0b8978326de861819a3b8756e219a381e3eac3ee40d97cc16919286a797557e6391e301a0871b38628e7 +SHA512 (virt-v2v-1.45.90.tar.gz) = bbe5a6cbe949609c93bdbca0853aae6b9ca87882e49420a763440aab986bdd90a000181e9ec9b1271a42d052749e579f810a4c0122a5dbfa37ff81681147aacd +SHA512 (virt-v2v-1.45.90.tar.gz.sig) = 445b0a1f1db0abc86f3be31e39e9430536f5d62d73f56d88abf27c58ef554db7b0844f92ef1ae267dd27d5be9f5b80aadf1f7e6b1267c732f99a219639f7db9a diff --git a/virt-v2v.spec b/virt-v2v.spec index 625ccb6..7f4b6a3 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,7 +14,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.3 +Version: 1.45.90 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -50,17 +50,14 @@ ExclusiveArch: x86_64 # Downstream (RHEL-only) patches. %if 0%{?rhel} -Patch9001: 0001-Revert-v2v-Remove-o-rhv-upload-oa-preallocated.patch -Patch9002: 0002-RHEL-v2v-rhv-upload-Remove-restriction-on-oa-sparse.patch -Patch9003: 0003-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch -Patch9004: 0004-RHEL-v2v-Disable-the-qemu-boot-option-RHBZ-1147313.patch -Patch9005: 0005-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch -Patch9006: 0006-RHEL-Fix-tests-for-libguestfs-winsupport.patch -Patch9007: 0007-RHEL-v2v-Disable-the-virt-v2v-in-place-option.patch -Patch9008: 0008-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch -Patch9009: 0009-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch -Patch9010: 0010-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch -Patch9011: 0011-RHEL-9-Disable-o-glance.patch +Patch9001: 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +Patch9002: 0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch +Patch9003: 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +Patch9004: 0004-RHEL-Fixes-for-libguestfs-winsupport.patch +Patch9005: 0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +Patch9006: 0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +Patch9007: 0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +Patch9008: 0008-RHEL-9-Disable-o-glance.patch %endif %if 0%{patches_touch_autotools} @@ -71,16 +68,17 @@ BuildRequires: make BuildRequires: /usr/bin/pod2man BuildRequires: gcc BuildRequires: ocaml >= 4.01 -BuildRequires: libguestfs-devel >= 1:1.42 +BuildRequires: libguestfs-devel >= 1:1.42 BuildRequires: augeas-devel BuildRequires: bash-completion BuildRequires: file-devel BuildRequires: gettext-devel BuildRequires: jansson-devel +BuildRequires: libnbd-devel BuildRequires: libosinfo-devel -BuildRequires: libvirt-devel BuildRequires: libvirt-daemon-kvm +BuildRequires: libvirt-devel BuildRequires: libxml2-devel BuildRequires: pcre-devel BuildRequires: perl(Sys::Guestfs) @@ -90,6 +88,7 @@ BuildRequires: xorriso BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-libguestfs-devel +BuildRequires: ocaml-libnbd-devel BuildRequires: ocaml-fileutils-devel BuildRequires: ocaml-gettext-devel %if !0%{?rhel} @@ -117,7 +116,7 @@ Requires: gawk Requires: gzip Requires: unzip Requires: curl -Requires: /usr/bin/virsh +Requires: %{_bindir}/virsh # Ensure the UEFI firmware is available, to properly convert # EFI guests (RHBZ#1429643). @@ -128,14 +127,25 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -# Needed for -it vddk, and -o rhv-upload. -Requires: nbdkit +Requires: libnbd >= 1.8.2-2.el9 +Requires: %{_bindir}/qemu-nbd +Requires: %{_bindir}/nbdcopy +Requires: %{_bindir}/nbdinfo +Requires: nbdkit-server >= 1.26.5-1.el9 Requires: nbdkit-curl-plugin +Requires: nbdkit-file-plugin +Requires: nbdkit-nbd-plugin +Requires: nbdkit-null-plugin Requires: nbdkit-python-plugin Requires: nbdkit-ssh-plugin %ifarch x86_64 Requires: nbdkit-vddk-plugin %endif +Requires: nbdkit-cacheextents-filter +Requires: nbdkit-cow-filter >= 1.26.5-1.el9 +Requires: nbdkit-rate-filter +Requires: nbdkit-readahead-filter +Requires: nbdkit-retry-filter # For rhsrvany.exe, used to install firstboot scripts in Windows guests. Requires: mingw32-srvany >= 1.0-13 @@ -258,6 +268,9 @@ popd %files -f %{name}.lang %license COPYING %doc README +%{_bindir}/helper-v2v-convert +%{_bindir}/helper-v2v-input +%{_bindir}/helper-v2v-output %{_bindir}/virt-v2v %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* @@ -287,6 +300,9 @@ popd %changelog +* Tue Sep 21 2021 Richard W.M. Jones - 1:1.45.90-1 +- New upstream development version 1.45.90 (preview of 2.0) + * Fri Aug 06 2021 Richard W.M. Jones - 1:1.45.3-1 - New upstream development version 1.45.3. - Rebase RHEL patches. From ea395b60dc76d5db3625fc3b8968d93d4f94ce91 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 5 Oct 2021 11:36:31 +0100 Subject: [PATCH 028/183] OCaml 4.13.1 build --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 7f4b6a3..b86ea8f 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.45.90 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -300,6 +300,9 @@ popd %changelog +* Tue Oct 05 2021 Richard W.M. Jones - 1:1.45.90-2 +- OCaml 4.13.1 build + * Tue Sep 21 2021 Richard W.M. Jones - 1:1.45.90-1 - New upstream development version 1.45.90 (preview of 2.0) From 88e3f5af253d8345abe8e8e60422f09bf7e74060 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 23 Nov 2021 15:12:39 +0000 Subject: [PATCH 029/183] New upstream development version 1.45.91 (preview of 2.0) --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index d4d5702..af46769 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.90.tar.gz) = bbe5a6cbe949609c93bdbca0853aae6b9ca87882e49420a763440aab986bdd90a000181e9ec9b1271a42d052749e579f810a4c0122a5dbfa37ff81681147aacd -SHA512 (virt-v2v-1.45.90.tar.gz.sig) = 445b0a1f1db0abc86f3be31e39e9430536f5d62d73f56d88abf27c58ef554db7b0844f92ef1ae267dd27d5be9f5b80aadf1f7e6b1267c732f99a219639f7db9a +SHA512 (virt-v2v-1.45.91.tar.gz) = 41b1897b2e491dadce890623bb94e149c2921662f140c25281ad7c60f324438718cf05b61b6b8b56010e1245e45b1843cde3535307d02e269ee60ee4aa125cf8 +SHA512 (virt-v2v-1.45.91.tar.gz.sig) = 60c97207f8e8ec61b14a52aa8b1e6080fd9f5a0e795d62eff46b214249d8f6ee41e101b586fdb7c3a2a49c5a2a42f7d4dc55a292d5143f7e57527490bf8fcd42 diff --git a/virt-v2v.spec b/virt-v2v.spec index b86ea8f..450c957 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.90 -Release: 2%{?dist} +Version: 1.45.91 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -300,6 +300,9 @@ popd %changelog +* Tue Nov 23 2021 Richard W.M. Jones - 1:1.45.91-1 +- New upstream development version 1.45.91 (preview of 2.0) + * Tue Oct 05 2021 Richard W.M. Jones - 1:1.45.90-2 - OCaml 4.13.1 build From 7ba90de2bf297b3a9a527fe22aa79cd4f7295b08 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 23 Nov 2021 15:28:40 +0000 Subject: [PATCH 030/183] ExcludeArch %{arm} temporarily --- virt-v2v.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index 450c957..94036af 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -12,6 +12,9 @@ # The source directory. %global source_directory 1.45-development +# TEMPORARY while qemu is not available in Rawhide on armv7 +ExcludeArch: %{arm} + Name: virt-v2v Epoch: 1 Version: 1.45.91 From f8610faa00a5e3ec308e769fc516cfbdc833d687 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 25 Nov 2021 08:33:04 +0000 Subject: [PATCH 031/183] Revert "ExcludeArch %{arm} temporarily" This reverts commit 7ba90de2bf297b3a9a527fe22aa79cd4f7295b08. --- virt-v2v.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 94036af..450c957 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -12,9 +12,6 @@ # The source directory. %global source_directory 1.45-development -# TEMPORARY while qemu is not available in Rawhide on armv7 -ExcludeArch: %{arm} - Name: virt-v2v Epoch: 1 Version: 1.45.91 From 2e0afa9b9185dd3196712d8c29be18a194e09efc Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 25 Nov 2021 08:33:15 +0000 Subject: [PATCH 032/183] Bump release and rebuild --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 450c957..c77ac0c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.45.91 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -300,6 +300,9 @@ popd %changelog +* Thu Nov 25 2021 Richard W.M. Jones - 1:1.45.91-2 +- Bump release and rebuild + * Tue Nov 23 2021 Richard W.M. Jones - 1:1.45.91-1 - New upstream development version 1.45.91 (preview of 2.0) From 28215114449f071ef94214d505537062d542416a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Dec 2021 10:46:00 +0000 Subject: [PATCH 033/183] New upstream development version 1.45.92 (preview of 2.0) --- sources | 4 ++-- virt-v2v.spec | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sources b/sources index af46769..4db993f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.91.tar.gz) = 41b1897b2e491dadce890623bb94e149c2921662f140c25281ad7c60f324438718cf05b61b6b8b56010e1245e45b1843cde3535307d02e269ee60ee4aa125cf8 -SHA512 (virt-v2v-1.45.91.tar.gz.sig) = 60c97207f8e8ec61b14a52aa8b1e6080fd9f5a0e795d62eff46b214249d8f6ee41e101b586fdb7c3a2a49c5a2a42f7d4dc55a292d5143f7e57527490bf8fcd42 +SHA512 (virt-v2v-1.45.92.tar.gz) = 0a9166b023ea60d34c10891bd3610874929790526ddfad13d5514e34010b59d288a59918423ef3dd970ade435437a452bc31c2b225c72f8676fd9559254ccc58 +SHA512 (virt-v2v-1.45.92.tar.gz.sig) = d1bb3f101e1272e59616c971ce86675c2b35248f8a5e91dd623a31eff7a39974a88e9fd7bc14be80434e69e935222fcb6389908cd0da47a537bfdff9266614b5 diff --git a/virt-v2v.spec b/virt-v2v.spec index c77ac0c..10cf1c3 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.91 -Release: 2%{?dist} +Version: 1.45.92 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -268,9 +268,6 @@ popd %files -f %{name}.lang %license COPYING %doc README -%{_bindir}/helper-v2v-convert -%{_bindir}/helper-v2v-input -%{_bindir}/helper-v2v-output %{_bindir}/virt-v2v %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* @@ -300,6 +297,9 @@ popd %changelog +* Thu Dec 02 2021 Richard W.M. Jones - 1:1.45.92-1 +- New upstream development version 1.45.92 (preview of 2.0) + * Thu Nov 25 2021 Richard W.M. Jones - 1:1.45.91-2 - Bump release and rebuild From d58960176f1d6356a875056db5b71d3e244191a8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Dec 2021 13:05:59 +0000 Subject: [PATCH 034/183] Require openssh-clients scp >= 8.7p1 See: https://bugzilla.redhat.com/show_bug.cgi?id=2027673 https://github.com/libguestfs/virt-v2v/commit/e2af12ba69c4463bb73d30db63290a887cdd41eb --- virt-v2v.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index 10cf1c3..1bdb6ec 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -116,6 +116,7 @@ Requires: gawk Requires: gzip Requires: unzip Requires: curl +Requires: %{_bindir}/scp >= 8.7p1 Requires: %{_bindir}/virsh # Ensure the UEFI firmware is available, to properly convert From df4a127b931d513fa34fbfe585ef4de21b2fe756 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Dec 2021 13:21:25 +0000 Subject: [PATCH 035/183] Fix previous commit Apparently versioned filenames are not allowed: error: line 121: Versioned file name not permitted: Requires: /usr/bin/scp >= 8.7p1 --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 1bdb6ec..1effaa1 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -116,7 +116,7 @@ Requires: gawk Requires: gzip Requires: unzip Requires: curl -Requires: %{_bindir}/scp >= 8.7p1 +Requires: openssh-clients >= 8.7p1 Requires: %{_bindir}/virsh # Ensure the UEFI firmware is available, to properly convert From 3ef80726690e7f79e2b072d115a272f341fb1213 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 3 Dec 2021 17:17:46 +0000 Subject: [PATCH 036/183] New upstream development version 1.45.93 (preview of 2.0) --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 4db993f..fa0fd0a 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.92.tar.gz) = 0a9166b023ea60d34c10891bd3610874929790526ddfad13d5514e34010b59d288a59918423ef3dd970ade435437a452bc31c2b225c72f8676fd9559254ccc58 -SHA512 (virt-v2v-1.45.92.tar.gz.sig) = d1bb3f101e1272e59616c971ce86675c2b35248f8a5e91dd623a31eff7a39974a88e9fd7bc14be80434e69e935222fcb6389908cd0da47a537bfdff9266614b5 +SHA512 (virt-v2v-1.45.93.tar.gz) = d70ef9bdebf0c3579274ddbcce96681600eb263576c605fdf6f17cc6ae76bed6452a4c978e91ff662f7c2f4c6dc28fe760a49e545adce14ce5743c492bea8246 +SHA512 (virt-v2v-1.45.93.tar.gz.sig) = e2f6e203940490409bc234113e4b2d7cfd2be4ada08897fbd59eba52411f06bb30c4a7fba9b1ecf1c1ef9b3d5bed2f889703758e99820b2e3d4787835bc45958 diff --git a/virt-v2v.spec b/virt-v2v.spec index 1effaa1..818e841 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,7 +14,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.92 +Version: 1.45.93 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -298,6 +298,9 @@ popd %changelog +* Fri Dec 03 2021 Richard W.M. Jones - 1:1.45.93-1 +- New upstream development version 1.45.93 (preview of 2.0) + * Thu Dec 02 2021 Richard W.M. Jones - 1:1.45.92-1 - New upstream development version 1.45.92 (preview of 2.0) From b06ee3b61c34ae0f33391c43aee1c757f82aad64 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 7 Dec 2021 09:54:46 +0000 Subject: [PATCH 037/183] New upstream development version 1.45.94 (preview of 2.0) Requires nbdkit >= 1.28.3 / 1.29.9 Containing this fix: https://gitlab.com/nbdkit/nbdkit/-/commit/c6fe9cb5b4a45e026f6c45ff3f92a510731d87b9 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index fa0fd0a..589d3a0 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.93.tar.gz) = d70ef9bdebf0c3579274ddbcce96681600eb263576c605fdf6f17cc6ae76bed6452a4c978e91ff662f7c2f4c6dc28fe760a49e545adce14ce5743c492bea8246 -SHA512 (virt-v2v-1.45.93.tar.gz.sig) = e2f6e203940490409bc234113e4b2d7cfd2be4ada08897fbd59eba52411f06bb30c4a7fba9b1ecf1c1ef9b3d5bed2f889703758e99820b2e3d4787835bc45958 +SHA512 (virt-v2v-1.45.94.tar.gz) = d3a7644f08decf50074632df727605c9adcf7fa0eada39c5def99f6f682353a40355e48fe5e2207b976fa3bfa42127a226317f7502f32dc7cc0666efcabb44ce +SHA512 (virt-v2v-1.45.94.tar.gz.sig) = 61d4ba66ceea91312ca1b730179d6ce2a565f2bfab17c7ebd54f5f54f3ac176b922987f217fbb02b6906004ebefb22fb8e66e4c88da579352d643ddbbe175249 diff --git a/virt-v2v.spec b/virt-v2v.spec index 818e841..74eb119 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,7 +14,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.93 +Version: 1.45.94 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -132,7 +132,7 @@ Requires: libnbd >= 1.8.2-2.el9 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy Requires: %{_bindir}/nbdinfo -Requires: nbdkit-server >= 1.26.5-1.el9 +Requires: nbdkit-server >= 1.28.3-1.el9 Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin @@ -298,6 +298,9 @@ popd %changelog +* Tue Dec 07 2021 Richard W.M. Jones - 1:1.45.94-1 +- New upstream development version 1.45.94 (preview of 2.0) + * Fri Dec 03 2021 Richard W.M. Jones - 1:1.45.93-1 - New upstream development version 1.45.93 (preview of 2.0) From 41daf44a4db6f3ff2079336fb3c22102121f9874 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 7 Dec 2021 11:39:33 +0000 Subject: [PATCH 038/183] Add dependency on nbdkit-multi-conn-filter And update version of nbdkit-cow-filter required. --- virt-v2v.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 74eb119..c7013f0 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -143,7 +143,8 @@ Requires: nbdkit-ssh-plugin Requires: nbdkit-vddk-plugin %endif Requires: nbdkit-cacheextents-filter -Requires: nbdkit-cow-filter >= 1.26.5-1.el9 +Requires: nbdkit-cow-filter >= 1.28.3-1.el9 +Requires: nbdkit-multi-conn-filter Requires: nbdkit-rate-filter Requires: nbdkit-readahead-filter Requires: nbdkit-retry-filter From 8d832087f290c1833191dd1487dbd641b0c85360 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 18 Dec 2021 11:11:39 +0000 Subject: [PATCH 039/183] New upstream development version 1.45.95 (preview of 2.0) --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 589d3a0..f3c4a1b 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.94.tar.gz) = d3a7644f08decf50074632df727605c9adcf7fa0eada39c5def99f6f682353a40355e48fe5e2207b976fa3bfa42127a226317f7502f32dc7cc0666efcabb44ce -SHA512 (virt-v2v-1.45.94.tar.gz.sig) = 61d4ba66ceea91312ca1b730179d6ce2a565f2bfab17c7ebd54f5f54f3ac176b922987f217fbb02b6906004ebefb22fb8e66e4c88da579352d643ddbbe175249 +SHA512 (virt-v2v-1.45.95.tar.gz) = 2d408d98d8a67f0aed264cb15fb69d9e5ab4f9b31577ae58a0da7d180f705efb81997308fade3018d16b816a3e3e789927c1a1f03ddc9c02883c37ca0f70e3db +SHA512 (virt-v2v-1.45.95.tar.gz.sig) = cfa919ae26f9497f113c85fa320797eca6977cabc91048cbeacc97e596439fdc93fa9feba2fb3ed1164c7e221dc993344faa4ce07214ee2a697dbd0dc06daf77 diff --git a/virt-v2v.spec b/virt-v2v.spec index c7013f0..e4658cc 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,7 +14,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.94 +Version: 1.45.95 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -299,6 +299,9 @@ popd %changelog +* Sat Dec 18 2021 Richard W.M. Jones - 1:1.45.95-1 +- New upstream development version 1.45.95 (preview of 2.0) + * Tue Dec 07 2021 Richard W.M. Jones - 1:1.45.94-1 - New upstream development version 1.45.94 (preview of 2.0) From 66047589bf8ecd358e291f82118bfcdf6a63594c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 6 Jan 2022 14:30:59 +0000 Subject: [PATCH 040/183] New upstream development version 1.45.96 (preview of 2.0) --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index f3c4a1b..d40f0e3 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.95.tar.gz) = 2d408d98d8a67f0aed264cb15fb69d9e5ab4f9b31577ae58a0da7d180f705efb81997308fade3018d16b816a3e3e789927c1a1f03ddc9c02883c37ca0f70e3db -SHA512 (virt-v2v-1.45.95.tar.gz.sig) = cfa919ae26f9497f113c85fa320797eca6977cabc91048cbeacc97e596439fdc93fa9feba2fb3ed1164c7e221dc993344faa4ce07214ee2a697dbd0dc06daf77 +SHA512 (virt-v2v-1.45.96.tar.gz) = f4349ce19761db32905395a1ce4bb893eb68823808386edce656bcd452aac1c82d39a6af6e17f226c04e027199cb71b27c42a52bfc4b9153cb31e4c5c1988b49 +SHA512 (virt-v2v-1.45.96.tar.gz.sig) = b0bd15eef79267ca93c0af96e5af041fd006dc9e50e25a3afb6a08257bc5ac997690dd5daf993c9fa14428fff2a4e5cca5934adeafc537a47d17c833d004ab1b diff --git a/virt-v2v.spec b/virt-v2v.spec index e4658cc..c250864 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,7 +14,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.95 +Version: 1.45.96 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -299,6 +299,9 @@ popd %changelog +* Thu Jan 06 2022 Richard W.M. Jones - 1:1.45.96-1 +- New upstream development version 1.45.96 (preview of 2.0) + * Sat Dec 18 2021 Richard W.M. Jones - 1:1.45.95-1 - New upstream development version 1.45.95 (preview of 2.0) From 287af44206039e411b7d6e37ee09a1203203411f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Jan 2022 16:58:20 +0000 Subject: [PATCH 041/183] New upstream development version 1.45.97 (preview of 2.0) --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index d40f0e3..01f38c5 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.96.tar.gz) = f4349ce19761db32905395a1ce4bb893eb68823808386edce656bcd452aac1c82d39a6af6e17f226c04e027199cb71b27c42a52bfc4b9153cb31e4c5c1988b49 -SHA512 (virt-v2v-1.45.96.tar.gz.sig) = b0bd15eef79267ca93c0af96e5af041fd006dc9e50e25a3afb6a08257bc5ac997690dd5daf993c9fa14428fff2a4e5cca5934adeafc537a47d17c833d004ab1b +SHA512 (virt-v2v-1.45.97.tar.gz) = 9f3725099237e705142fe9563f73d34362771f2cb82af7fd976462f25a9301ec97cbecb5cd70a22903f6df16ab45354619a19e5369e29c86a58f19151664356a +SHA512 (virt-v2v-1.45.97.tar.gz.sig) = 6bc57719d5acbe8ccc895280bf3f585b31a1d87cc927d98f1f7a8a169634a69ca0787265d10e55616c0bcb430f63e8c39a41e65b439bc0ff2e90439c2f003ccd diff --git a/virt-v2v.spec b/virt-v2v.spec index c250864..a48721f 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,7 +14,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.96 +Version: 1.45.97 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -299,6 +299,9 @@ popd %changelog +* Mon Jan 17 2022 Richard W.M. Jones - 1:1.45.97-1 +- New upstream development version 1.45.97 (preview of 2.0) + * Thu Jan 06 2022 Richard W.M. Jones - 1:1.45.96-1 - New upstream development version 1.45.96 (preview of 2.0) From 1ef832f0538f7b01ba38019813a6b2489219e161 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jan 2022 04:04:27 +0000 Subject: [PATCH 042/183] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index a48721f..720e43a 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 1.45.97 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -299,6 +299,9 @@ popd %changelog +* Sat Jan 22 2022 Fedora Release Engineering - 1:1.45.97-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Mon Jan 17 2022 Richard W.M. Jones - 1:1.45.97-1 - New upstream development version 1.45.97 (preview of 2.0) From d1a170c6cef6d6921eb3ae5afaa1cb8e7f88cca9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 4 Feb 2022 17:16:36 +0000 Subject: [PATCH 043/183] OCaml 4.13.1 rebuild to remove package notes --- virt-v2v.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 720e43a..d567867 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -1,3 +1,4 @@ +%undefine _package_note_flags # If we should verify tarball signature with GPGv2. %global verify_tarball_signature 1 @@ -15,7 +16,7 @@ Name: virt-v2v Epoch: 1 Version: 1.45.97 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -299,6 +300,9 @@ popd %changelog +* Fri Feb 04 2022 Richard W.M. Jones - 1:1.45.97-3 +- OCaml 4.13.1 rebuild to remove package notes + * Sat Jan 22 2022 Fedora Release Engineering - 1:1.45.97-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 71c77c8ee46b7bb04000f7c93c22a321c09017d1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 10 Feb 2022 19:44:59 +0000 Subject: [PATCH 044/183] New upstream development version 1.45.98 (preview of 2.0) --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 01f38c5..8f6e432 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.97.tar.gz) = 9f3725099237e705142fe9563f73d34362771f2cb82af7fd976462f25a9301ec97cbecb5cd70a22903f6df16ab45354619a19e5369e29c86a58f19151664356a -SHA512 (virt-v2v-1.45.97.tar.gz.sig) = 6bc57719d5acbe8ccc895280bf3f585b31a1d87cc927d98f1f7a8a169634a69ca0787265d10e55616c0bcb430f63e8c39a41e65b439bc0ff2e90439c2f003ccd +SHA512 (virt-v2v-1.45.98.tar.gz) = a709ae109675064b0b96f8fa7e9d2ef37d9f557f1aa9d8f9152bb15a814e5539af4d5569b44a10229dbf7e62ff4d6f6361f71393ac6a614e3d737548ee131746 +SHA512 (virt-v2v-1.45.98.tar.gz.sig) = 1e98fb61bcdfcf2f8b9a3ab3b39d2b2dee73cdd40a43aefb97fe4671afa121373f7d8ba111e6a39a001e50901508341fed76ed0bd313df3991c81f1ead2868f2 diff --git a/virt-v2v.spec b/virt-v2v.spec index d567867..f10dbb2 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,8 +15,8 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.97 -Release: 3%{?dist} +Version: 1.45.98 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -300,6 +300,9 @@ popd %changelog +* Thu Feb 10 2022 Richard W.M. Jones - 1:1.45.98-1 +- New upstream development version 1.45.98 (preview of 2.0) + * Fri Feb 04 2022 Richard W.M. Jones - 1:1.45.97-3 - OCaml 4.13.1 rebuild to remove package notes From f7fec29fc3c2a916e331ee820b38c0172d92d333 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 15 Feb 2022 18:35:09 +0000 Subject: [PATCH 045/183] New upstream development version 1.45.99 (preview of 2.0) Requires nbdkit-blocksize-filter. --- sources | 4 ++-- virt-v2v.spec | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 8f6e432..1572551 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.98.tar.gz) = a709ae109675064b0b96f8fa7e9d2ef37d9f557f1aa9d8f9152bb15a814e5539af4d5569b44a10229dbf7e62ff4d6f6361f71393ac6a614e3d737548ee131746 -SHA512 (virt-v2v-1.45.98.tar.gz.sig) = 1e98fb61bcdfcf2f8b9a3ab3b39d2b2dee73cdd40a43aefb97fe4671afa121373f7d8ba111e6a39a001e50901508341fed76ed0bd313df3991c81f1ead2868f2 +SHA512 (virt-v2v-1.45.99.tar.gz) = 46fd087e584fee94a95f229ef860220201f75b85cf4cb4137349cc64e447094d5c1db192121095779f99a997336aa547ba7d2aed2d1778e381cd003a8ab83327 +SHA512 (virt-v2v-1.45.99.tar.gz.sig) = d34ca220bc2161357ddf32ccb46117fdbcb98347384e284027a02e67c2ebe9851b1e5deb3e59607d84916bb689dd5e053462d862aff3a813021493fd33f1f1b9 diff --git a/virt-v2v.spec b/virt-v2v.spec index f10dbb2..3c31b0c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 1.45.98 +Version: 1.45.99 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -143,6 +143,7 @@ Requires: nbdkit-ssh-plugin %ifarch x86_64 Requires: nbdkit-vddk-plugin %endif +Requires: nbdkit-blocksize-filter Requires: nbdkit-cacheextents-filter Requires: nbdkit-cow-filter >= 1.28.3-1.el9 Requires: nbdkit-multi-conn-filter @@ -300,6 +301,10 @@ popd %changelog +* Tue Feb 15 2022 Richard W.M. Jones - 1:1.45.99-1 +- New upstream development version 1.45.99 (preview of 2.0) +- Requires nbdkit-blocksize-filter. + * Thu Feb 10 2022 Richard W.M. Jones - 1:1.45.98-1 - New upstream development version 1.45.98 (preview of 2.0) From 1dc352f4e465c85fad41989cfab633f05fc62fac Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 9 Mar 2022 11:50:49 +0000 Subject: [PATCH 046/183] Add symlink to pnp_wait.exe from the virt tools directory For background on this change see: https://bugzilla.redhat.com/show_bug.cgi?id=1788823 --- virt-v2v.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 3c31b0c..085f95b 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -230,11 +230,13 @@ make V=1 %{?_smp_mflags} # Delete libtool crap. find $RPM_BUILD_ROOT -name '*.la' -delete -# Virt-tools data directory. This contains a symlink to rhsrvany.exe -# which is satisfied by the dependency on mingw32-srvany. +# Virt-tools data directory. This contains symlinks to rhsrvany.exe +# and pnp_wait.exe which are satisfied by the dependency on +# mingw32-srvany. mkdir -p $RPM_BUILD_ROOT%{_datadir}/virt-tools pushd $RPM_BUILD_ROOT%{_datadir}/virt-tools ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe +ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/pnp_wait.exe popd # Find locale files. From ba3ddbc0653d30c6d49b431b42e7b5a33e4f5e3a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 Mar 2022 14:19:38 +0000 Subject: [PATCH 047/183] New upstream stable branch version 2.0.0 New virt-v2v-in-place and release notes man pages. Remove the RHEL (downstream) patches which are out of date. --- ...correct-qemu-binary-for-o-qemu-mode-.patch | 33 ---- ...-the-qemu-boot-oo-qemu-boot-option-R.patch | 112 ----------- ...-supported-sound-cards-to-match-RHEL.patch | 34 ---- ...RHEL-Fixes-for-libguestfs-winsupport.patch | 104 ----------- ...sk-force-VNC-as-display-RHBZ-1372671.patch | 26 --- ...-mention-SUSE-Xen-hosts-RHBZ-1430203.patch | 26 --- ...-for-supported-v2v-hypervisors-guest.patch | 127 ------------- 0008-RHEL-9-Disable-o-glance.patch | 176 ------------------ sources | 4 +- virt-v2v.spec | 23 +-- 10 files changed, 11 insertions(+), 654 deletions(-) delete mode 100644 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch delete mode 100644 0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch delete mode 100644 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch delete mode 100644 0004-RHEL-Fixes-for-libguestfs-winsupport.patch delete mode 100644 0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch delete mode 100644 0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch delete mode 100644 0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch delete mode 100644 0008-RHEL-9-Disable-o-glance.patch diff --git a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch b/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch deleted file mode 100644 index dffafb4..0000000 --- a/0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch +++ /dev/null @@ -1,33 +0,0 @@ -From f417ca536219b151284a5a0e28698bfa19a5c160 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Sun, 28 Sep 2014 19:14:43 +0100 -Subject: [PATCH 1/8] RHEL: v2v: Select correct qemu binary for -o qemu mode - (RHBZ#1147313). - -RHEL does not have qemu-system-x86_64 (etc), and in addition the -qemu binary is located in /usr/libexec. Encode the path to this -binary directly in the script. - -Note that we don't support people running qemu directly like this. -It's just for quick testing of converted VMs, and to help us with -support cases. ---- - output/output.ml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/output/output.ml b/output/output.ml -index 9c2d8853..92b03525 100644 ---- a/output/output.ml -+++ b/output/output.ml -@@ -1413,7 +1413,7 @@ and qemu_finalize dir source inspect target_meta - * module deals with shell and qemu comma quoting. - *) - let cmd = Qemuopts.create () in -- Qemuopts.set_binary_by_arch cmd (Some guestcaps.gcaps_arch); -+ Qemuopts.set_binary cmd "/usr/libexec/qemu-kvm"; - - let flag = Qemuopts.flag cmd - and arg = Qemuopts.arg cmd --- -2.31.1 - diff --git a/0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch b/0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch deleted file mode 100644 index 15f4600..0000000 --- a/0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch +++ /dev/null @@ -1,112 +0,0 @@ -From 00490feb06496ad4bf22dbc5493a7cf186476e9f Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Tue, 30 Sep 2014 10:50:27 +0100 -Subject: [PATCH 2/8] RHEL: v2v: Disable the --qemu-boot / -oo qemu-boot option - (RHBZ#1147313). - -This cannot work because there is no Gtk or SDL output mode -in RHEL's qemu-kvm. - -In addition you will have to edit the -display option in the -qemu script. ---- - docs/virt-v2v-output-local.pod | 6 ++---- - docs/virt-v2v.pod | 12 ------------ - output/output.ml | 3 +++ - v2v/v2v.ml | 2 -- - 4 files changed, 5 insertions(+), 18 deletions(-) - -diff --git a/docs/virt-v2v-output-local.pod b/docs/virt-v2v-output-local.pod -index a5f155cb..3a2e6238 100644 ---- a/docs/virt-v2v-output-local.pod -+++ b/docs/virt-v2v-output-local.pod -@@ -9,7 +9,7 @@ or libvirt - - virt-v2v [-i* options] -o local -os DIRECTORY - -- virt-v2v [-i* options] -o qemu -os DIRECTORY [--qemu-boot] -+ virt-v2v [-i* options] -o qemu -os DIRECTORY - - virt-v2v [-i* options] -o json -os DIRECTORY - [-oo json-disks-pattern=PATTERN] -@@ -50,12 +50,10 @@ where C is the guest name. - - =item B<-o qemu -os> C - --=item B<-o qemu -os> C B<--qemu-boot> -- - This converts the guest to files in C. Unlike I<-o local> - above, a shell script is created which contains the raw qemu command - you would need to boot the guest. However the shell script is not --run, I you also add the I<--qemu-boot> option. -+run. - - =item B<-o json -os> C - -diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index b25d678d..0a47b611 100644 ---- a/docs/virt-v2v.pod -+++ b/docs/virt-v2v.pod -@@ -141,11 +141,6 @@ Since F contains the path(s) to the guest disk - image(s) you do not need to specify the name of the disk image on the - command line. - --To convert a local disk image and immediately boot it in local --qemu, do: -- -- virt-v2v -i disk disk.img -o qemu -os /var/tmp -oo qemu-boot -- - =head1 OPTIONS - - =over 4 -@@ -511,9 +506,6 @@ This is similar to I<-o local>, except that a shell script is written - which you can use to boot the guest in qemu. The converted disks and - shell script are written to the directory specified by I<-os>. - --When using this output mode, you can also specify the I<-oo qemu-boot> --option which boots the guest under qemu immediately. -- - =item B<-o> B - - This is the same as I<-o rhv>. -@@ -769,10 +761,6 @@ Print information about the source guest and stop. This option is - useful when you are setting up network and bridge maps. - See L. - --=item B<--qemu-boot> -- --This is the same as I<-oo qemu-boot>. -- - =item B<-q> - - =item B<--quiet> -diff --git a/output/output.ml b/output/output.ml -index 92b03525..1414a521 100644 ---- a/output/output.ml -+++ b/output/output.ml -@@ -1346,6 +1346,9 @@ and qemu_parse_options cmdline = - ) cmdline.output_options; - let qemu_boot = !qemu_boot in - -+ if qemu_boot then -+ error (f_"-o qemu: the -oo qemu-boot option cannot be used in RHEL"); -+ - (* -os must be set to a directory. *) - let output_storage = - match cmdline.output_storage with -diff --git a/v2v/v2v.ml b/v2v/v2v.ml -index a88e0509..1104295c 100644 ---- a/v2v/v2v.ml -+++ b/v2v/v2v.ml -@@ -218,8 +218,6 @@ let rec main () = - s_"Same as ‘-ip filename’"; - [ L"print-source" ], Getopt.Set print_source, - s_"Print source and stop"; -- [ L"qemu-boot" ], Getopt.Unit (fun () -> add_o_option "-oo" "qemu-boot"), -- s_"Boot in qemu (-o qemu only)"; - [ L"root" ], Getopt.String ("ask|... ", add_conv_option "--root"), - s_"How to choose root filesystem"; - [ L"vddk-config" ], Getopt.String ("filename", set_input_option_compat "vddk-config"), --- -2.31.1 - diff --git a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch b/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch deleted file mode 100644 index 39d35f8..0000000 --- a/0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 539e158e5dffdb0324a89b2a059b44ae51d2cc29 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Fri, 24 Apr 2015 09:45:41 -0400 -Subject: [PATCH 3/8] RHEL: Fix list of supported sound cards to match RHEL - qemu (RHBZ#1176493). - ---- - lib/utils.ml | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/lib/utils.ml b/lib/utils.ml -index 1eac3f3f..a478fc33 100644 ---- a/lib/utils.ml -+++ b/lib/utils.ml -@@ -59,13 +59,14 @@ let kvm_arch = function - (* Does qemu support the given sound card? *) - let qemu_supports_sound_card = function - | Types.AC97 -- | Types.ES1370 - | Types.ICH6 - | Types.ICH9 - | Types.PCSpeaker -+ -> true -+ | Types.ES1370 - | Types.SB16 - | Types.USBAudio -- -> true -+ -> false - - (* Find the UEFI firmware. *) - let find_uefi_firmware guest_arch = --- -2.31.1 - diff --git a/0004-RHEL-Fixes-for-libguestfs-winsupport.patch b/0004-RHEL-Fixes-for-libguestfs-winsupport.patch deleted file mode 100644 index 45a5349..0000000 --- a/0004-RHEL-Fixes-for-libguestfs-winsupport.patch +++ /dev/null @@ -1,104 +0,0 @@ -From b4bab3eda2afabadcbf2e07501eab2049d1a3133 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Sun, 30 Aug 2015 03:21:57 -0400 -Subject: [PATCH 4/8] RHEL: Fixes for libguestfs-winsupport. - -In tests we cannot use guestfish for arbitrary Windows edits. -In virt-v2v helpers we must set the program name to virt-v2v. ---- - convert/convert.ml | 1 + - convert/windows_virtio.ml | 1 + - test-data/phony-guests/make-windows-img.sh | 1 + - tests/test-v2v-virtio-win-iso.sh | 8 +++++++- - tests/test-v2v-windows-conversion.sh | 8 +++++++- - 5 files changed, 17 insertions(+), 2 deletions(-) - -diff --git a/convert/convert.ml b/convert/convert.ml -index 07c7aee9..a4b0c60e 100644 ---- a/convert/convert.ml -+++ b/convert/convert.ml -@@ -190,6 +190,7 @@ helper-v2v-convert V2VDIR - - message (f_"Opening the source"); - let g = open_guestfs ~identifier:"v2v" () in -+ g#set_program "virt-v2v"; - g#set_memsize (g#get_memsize () * 2); - (* Setting the number of vCPUs allows parallel mkinitrd, but make - * sure this is not too large because each vCPU consumes guest RAM. -diff --git a/convert/windows_virtio.ml b/convert/windows_virtio.ml -index f843dae2..6623d03d 100644 ---- a/convert/windows_virtio.ml -+++ b/convert/windows_virtio.ml -@@ -356,6 +356,7 @@ and copy_from_virtio_win g inspect srcdir destdir filter missing = - let g2 = - try - let g2 = open_guestfs ~identifier:"virtio_win" () in -+ g#set_program "virt-v2v"; - g2#add_drive_opts virtio_win ~readonly:true; - g2#launch (); - g2 -diff --git a/test-data/phony-guests/make-windows-img.sh b/test-data/phony-guests/make-windows-img.sh -index 30908a91..73cf5144 100755 ---- a/test-data/phony-guests/make-windows-img.sh -+++ b/test-data/phony-guests/make-windows-img.sh -@@ -37,6 +37,7 @@ fi - - # Create a disk image. - guestfish < "$script" - :> "$expected" - -+cat >> "$script" < "$response" -+guestfish --ro -a "$d/windows-sda" < "$script" > "$response" - diff -u "$expected" "$response" -diff --git a/tests/test-v2v-windows-conversion.sh b/tests/test-v2v-windows-conversion.sh -index aeab9a48..4b422c5b 100755 ---- a/tests/test-v2v-windows-conversion.sh -+++ b/tests/test-v2v-windows-conversion.sh -@@ -76,6 +76,12 @@ mktest () - :> "$script" - :> "$expected" - -+cat >> "$script" < "$response" -+guestfish --ro -a "$d/windows-sda" < "$script" > "$response" - diff -u "$expected" "$response" - - # We also update the Registry several times, for firstboot, and (ONLY --- -2.31.1 - diff --git a/0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch b/0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch deleted file mode 100644 index 6374372..0000000 --- a/0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 4022a90a8974147000fb5053d7596066db1b82b9 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Thu, 2 Mar 2017 14:21:37 +0100 -Subject: [PATCH 5/8] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671) - -The SDL output mode is not supported in RHEL's qemu-kvm. ---- - input/input.ml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/input/input.ml b/input/input.ml -index a8416eaf..9175a531 100644 ---- a/input/input.ml -+++ b/input/input.ml -@@ -270,7 +270,7 @@ and disk_source cmdline args = - s_features = [ "acpi"; "apic"; "pae" ]; - s_firmware = UnknownFirmware; (* causes virt-v2v to autodetect *) - s_display = -- Some { s_display_type = Window; s_keymap = None; s_password = None; -+ Some { s_display_type = VNC; s_keymap = None; s_password = None; - s_listen = LNoListen; s_port = None }; - s_video = None; - s_sound = None; --- -2.31.1 - diff --git a/0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch b/0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch deleted file mode 100644 index 7c54981..0000000 --- a/0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 7f77cb4a56eb8dcd26db9e81e0fb2f41777129c3 Mon Sep 17 00:00:00 2001 -From: Pino Toscano -Date: Wed, 8 Mar 2017 11:03:40 +0100 -Subject: [PATCH 6/8] RHEL: v2v: do not mention SUSE Xen hosts (RHBZ#1430203) - -They are not supported in RHEL. ---- - docs/virt-v2v-input-xen.pod | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/docs/virt-v2v-input-xen.pod b/docs/virt-v2v-input-xen.pod -index cd3210bf..e9f336a9 100644 ---- a/docs/virt-v2v-input-xen.pod -+++ b/docs/virt-v2v-input-xen.pod -@@ -12,7 +12,7 @@ virt-v2v-input-xen - Using virt-v2v to convert guests from Xen - =head1 DESCRIPTION - - This page documents how to use L to convert guests from --RHEL 5 Xen, or SLES and OpenSUSE Xen hosts. -+RHEL 5 Xen hosts. - - =head1 INPUT FROM XEN - --- -2.31.1 - diff --git a/0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch b/0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch deleted file mode 100644 index 712c684..0000000 --- a/0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch +++ /dev/null @@ -1,127 +0,0 @@ -From a4db166d7a5c480c765ee74340463db800533c73 Mon Sep 17 00:00:00 2001 -From: Pino Toscano -Date: Tue, 26 Mar 2019 09:42:25 +0100 -Subject: [PATCH 7/8] RHEL: point to KB for supported v2v hypervisors/guests - ---- - docs/virt-v2v-support.pod | 104 ++------------------------------------ - 1 file changed, 4 insertions(+), 100 deletions(-) - -diff --git a/docs/virt-v2v-support.pod b/docs/virt-v2v-support.pod -index 9815f51f..1ffc0f9d 100644 ---- a/docs/virt-v2v-support.pod -+++ b/docs/virt-v2v-support.pod -@@ -8,106 +8,10 @@ systems and guests in virt-v2v - This page documents which foreign hypervisors, virtualization - management systems and guest types that L can support. - --Note this page applies to upstream virt-v2v from --L and in downstream distributions of virt-v2v --sometimes features are intentionally removed, or are present but not --supported. -- --=head2 Hypervisors (Input) -- --=over 4 -- --=item VMware ESXi -- --Must be managed by VMware vCenter E 5.0 unless VDDK is available. -- --=item OVA exported from VMware -- --OVAs from other hypervisors will not work. -- --=item VMX from VMware -- --VMX files generated by other hypervisors will not work. -- --=item RHEL 5 Xen -- --=item SUSE Xen -- --=item Citrix Xen -- --Citrix Xen has not been recently tested. -- --=item Hyper-V -- --Not recently tested. Requires that you export the disk or use --L on Hyper-V. -- --=item Direct from disk images -- --Only disk images exported from supported hypervisors, and using --container formats supported by qemu. -- --=item Physical machines -- --Using the L tool. -- --=back -- --=head2 Hypervisors (Output) -- --QEMU and KVM only. -- --=head2 Virtualization management systems (Output) -- --=over 4 -- --=item OpenStack -- --=item Red Hat Virtualization (RHV) 4.1 and up -- --=item Local libvirt -- --And hence L, L, and similar tools. -- --=item Local disk -- --=back -- --=head2 Guests -- --=over 4 -- --=item Red Hat Enterprise Linux 3, 4, 5, 6, 7 -- --=item CentOS 3, 4, 5, 6, 7 -- --=item Scientific Linux 3, 4, 5, 6, 7 -- --=item Oracle Linux -- --=item Fedora -- --=item SLES 10 and up -- --=item OpenSUSE 10 and up -- --=item ALT Linux 9 and up -- --=item Debian 6 and up -- --=item Ubuntu 10.04, 12.04, 14.04, 16.04, and up -- --=item Windows XP to Windows 10 / Windows Server 2016 -- --We use Windows internal version numbers, see --L -- --Currently NT 5.2 to NT 6.3 are supported. -- --See L below for additional notes on converting Windows --guests. -- --=back -+For more information on supported hypervisors, and guest types in -+RHEL, please consult the following Knowledgebase article on these -+Red Hat Customer Portal: -+L. - - =head2 Guest firmware - --- -2.31.1 - diff --git a/0008-RHEL-9-Disable-o-glance.patch b/0008-RHEL-9-Disable-o-glance.patch deleted file mode 100644 index 8776133..0000000 --- a/0008-RHEL-9-Disable-o-glance.patch +++ /dev/null @@ -1,176 +0,0 @@ -From f801f4a34f9b136e2cb5af3b936948f1ecb88154 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Wed, 30 Jun 2021 11:15:52 +0100 -Subject: [PATCH 8/8] RHEL 9: Disable -o glance - -Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1977539 ---- - docs/virt-v2v-output-openstack.pod | 56 ++---------------------------- - docs/virt-v2v.pod | 20 ----------- - output/output.ml | 3 +- - tests/test-v2v-o-glance.sh | 3 ++ - 4 files changed, 7 insertions(+), 75 deletions(-) - -diff --git a/docs/virt-v2v-output-openstack.pod b/docs/virt-v2v-output-openstack.pod -index f5a3abad..1ab356e8 100644 ---- a/docs/virt-v2v-output-openstack.pod -+++ b/docs/virt-v2v-output-openstack.pod -@@ -10,13 +10,10 @@ virt-v2v-output-openstack - Using virt-v2v to convert guests to OpenStack - [-oo verify-server-certificate=false] - [-oo os-username=admin] [-oo os-*=*] - -- virt-v2v [-i* options] -o glance -- - =head1 DESCRIPTION - - This page documents how to use L to convert guests to run --on OpenStack. There are two output modes you can select, but only --I<-o openstack> should be used normally. -+on OpenStack. - - =over 4 - -@@ -27,15 +24,6 @@ Full description: L - This is the modern method for uploading to OpenStack via the REST API. - Guests can be directly converted into Cinder volumes. - --=item B<-o glance> -- --Full description: L -- --This is the old method for uploading to Glance. Unfortunately Glance --is not well suited to storing converted guests (since virt-v2v deals --with "pets" not templated "cattle"), so this method is not recommended --unless you really know what you are doing. -- - =back - - =head1 OUTPUT TO OPENSTACK -@@ -170,50 +158,10 @@ no Cinder volume type is used. - The following options are B supported with OpenStack: I<-oa>, - I<-of>. - --=head1 OUTPUT TO GLANCE -- --Note this is a legacy option. In most cases you should use --L instead. -- --To output to OpenStack Glance, use the I<-o glance> option. -- --This runs the L CLI program which must be installed on the --virt-v2v conversion host. For authentication to work, you will need --to set C environment variables. -- --Normally there is a file called C or C --which you can simply C to set everything up. -- --Virt-v2v adds metadata for the guest to Glance, describing such things --as the guest operating system and what drivers it requires. The --command C will display the metadata as "Property" --fields such as C and C. -- --=head2 Glance and sparseness -- --Glance image upload doesn't appear to correctly handle sparseness. --For this reason, using qcow2 will be faster and use less space on the --Glance server. Use the virt-v2v S> option. -- --=head2 Glance and multiple disks -- --If the guest has a single disk, then the name of the disk in Glance --will be the name of the guest. You can control this using the I<-on> --option. -- --Glance doesn't have a concept of associating multiple disks with a --single guest, and Nova doesn't allow you to boot a guest from multiple --Glance disks either. If the guest has multiple disks, then the first --(assumed to be the system disk) will have the name of the guest, and --the second and subsequent data disks will be called --C-disk2>, C-disk3> etc. It may be best to --leave the system disk in Glance, and import the data disks to Cinder. -- - =head1 SEE ALSO - - L, --L, --L. -+L. - - =head1 AUTHOR - -diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod -index 0a47b611..c70bfef5 100644 ---- a/docs/virt-v2v.pod -+++ b/docs/virt-v2v.pod -@@ -432,14 +432,6 @@ See L below. - - This is the same as I<-o local>. - --=item B<-o> B -- --This is a legacy option. You should probably use I<-o openstack> --instead. -- --Set the output method to OpenStack Glance. In this mode the converted --guest is uploaded to Glance. See L. -- - =item B<-o> B - - Set the output method to I. -@@ -1163,11 +1155,6 @@ and output methods may use disk space, as outlined in the table below. - This temporarily places a full copy of the uncompressed source disks - in C<$VIRT_V2V_TMPDIR> (or F). - --=item I<-o glance> -- --This temporarily places a full copy of the output disks in --C<$VIRT_V2V_TMPDIR> (or F). -- - =item I<-o local> - - =item I<-o qemu> -@@ -1352,13 +1339,6 @@ instance. - Because of how Cinder volumes are presented as F block devices, - using I<-o openstack> normally requires that virt-v2v is run as root. - --=item Writing to Glance -- --This does I need root (in fact it probably won’t work), but may --require either a special user and/or for you to source a script that --sets authentication environment variables. Consult the Glance --documentation. -- - =item Writing to block devices - - This normally requires root. See the next section. -diff --git a/output/output.ml b/output/output.ml -index 1414a521..69768ff1 100644 ---- a/output/output.ml -+++ b/output/output.ml -@@ -75,7 +75,8 @@ let rec main () = - error (f_"%s option used more than once on the command line") "-om"; - match mode with - | "disk" -> output_mode := Some `Disk -- | "glance" -> output_mode := Some `Glance -+ | "glance" -> -+ error(f_"-o glance option has been removed from RHEL 9") - | "json" -> output_mode := Some `Json - | "libvirt" -> output_mode := Some `Libvirt - | "null" -> output_mode := Some `Null -diff --git a/tests/test-v2v-o-glance.sh b/tests/test-v2v-o-glance.sh -index c0db9115..074b5e16 100755 ---- a/tests/test-v2v-o-glance.sh -+++ b/tests/test-v2v-o-glance.sh -@@ -20,6 +20,9 @@ - - set -e - -+# Feature is disabled in RHEL 9. -+exit 77 -+ - source ./functions.sh - set -e - set -x --- -2.31.1 - diff --git a/sources b/sources index 1572551..4f88c4c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-1.45.99.tar.gz) = 46fd087e584fee94a95f229ef860220201f75b85cf4cb4137349cc64e447094d5c1db192121095779f99a997336aa547ba7d2aed2d1778e381cd003a8ab83327 -SHA512 (virt-v2v-1.45.99.tar.gz.sig) = d34ca220bc2161357ddf32ccb46117fdbcb98347384e284027a02e67c2ebe9851b1e5deb3e59607d84916bb689dd5e053462d862aff3a813021493fd33f1f1b9 +SHA512 (virt-v2v-2.0.0.tar.gz) = 0ccf9e9141a0166f969383f9e103ffa11fa2ce00a5fbf4ada6c4480b888886a5a149b33d905f0f1947edaec14d16dd89a15ef53dd0cc042b29d473235430f5de +SHA512 (virt-v2v-2.0.0.tar.gz.sig) = e1c7e308043951c2aab59d288daa8cfd0da4794f566811b2bab6e138ea511f337e10ab2118973f08df1b29406e1bf12d09591805dd21621a6350b628715a9b99 diff --git a/virt-v2v.spec b/virt-v2v.spec index 085f95b..d90cceb 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -11,11 +11,11 @@ %endif # The source directory. -%global source_directory 1.45-development +%global source_directory 2.0-stable Name: virt-v2v Epoch: 1 -Version: 1.45.99 +Version: 2.0.0 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -49,18 +49,6 @@ ExcludeArch: %{ix86} ExclusiveArch: x86_64 %endif -# Downstream (RHEL-only) patches. -%if 0%{?rhel} -Patch9001: 0001-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch -Patch9002: 0002-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch -Patch9003: 0003-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch -Patch9004: 0004-RHEL-Fixes-for-libguestfs-winsupport.patch -Patch9005: 0005-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch -Patch9006: 0006-RHEL-v2v-do-not-mention-SUSE-Xen-hosts-RHBZ-1430203.patch -Patch9007: 0007-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch -Patch9008: 0008-RHEL-9-Disable-o-glance.patch -%endif - %if 0%{patches_touch_autotools} BuildRequires: autoconf, automake, libtool %endif @@ -279,10 +267,12 @@ popd %{_mandir}/man1/virt-v2v-hacking.1* %{_mandir}/man1/virt-v2v-input-vmware.1* %{_mandir}/man1/virt-v2v-input-xen.1* +%{_mandir}/man1/virt-v2v-in-place.1* %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* %{_mandir}/man1/virt-v2v-output-rhv.1* %{_mandir}/man1/virt-v2v-release-notes-1.42.1* +%{_mandir}/man1/virt-v2v-release-notes-2.0.1* %{_mandir}/man1/virt-v2v-support.1* %{_datadir}/virt-tools @@ -303,6 +293,11 @@ popd %changelog +* Mon Mar 14 2022 Richard W.M. Jones - 1:2.0.0-1 +- New upstream stable branch version 2.0.0 +- New virt-v2v-in-place and release notes man pages. +- Remove the RHEL (downstream) patches which are out of date. + * Tue Feb 15 2022 Richard W.M. Jones - 1:1.45.99-1 - New upstream development version 1.45.99 (preview of 2.0) - Requires nbdkit-blocksize-filter. From b30f630728e0974ef274ff86c398dac29070538b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 Mar 2022 14:58:55 +0000 Subject: [PATCH 048/183] Add virt-v2v-in-place binary Also don't use absolute symlinks because of this error: RPM build errors: absolute symlink: /usr/share/virt-tools/pnp_wait.exe -> /usr/i686-w64-mingw32/sys-root/mingw/bin/pnp_wait.exe absolute symlink: /usr/share/virt-tools/rhsrvany.exe -> /usr/i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe --- virt-v2v.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index d90cceb..f11a8f1 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -223,10 +223,16 @@ find $RPM_BUILD_ROOT -name '*.la' -delete # mingw32-srvany. mkdir -p $RPM_BUILD_ROOT%{_datadir}/virt-tools pushd $RPM_BUILD_ROOT%{_datadir}/virt-tools -ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe -ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/pnp_wait.exe +ln -sf ../../i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe +ln -sf ../../i686-w64-mingw32/sys-root/mingw/bin/pnp_wait.exe popd +%if 0%{?rhel} +# On RHEL remove virt-v2v-in-place. +rm $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place +rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* +%endif + # Find locale files. %find_lang %{name} @@ -263,11 +269,16 @@ popd %license COPYING %doc README %{_bindir}/virt-v2v +%if !0%{?rhel} +%{_bindir}/virt-v2v-in-place +%endif %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* %{_mandir}/man1/virt-v2v-input-vmware.1* %{_mandir}/man1/virt-v2v-input-xen.1* +%if !0%{?rhel} %{_mandir}/man1/virt-v2v-in-place.1* +%endif %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* %{_mandir}/man1/virt-v2v-output-rhv.1* @@ -297,6 +308,7 @@ popd - New upstream stable branch version 2.0.0 - New virt-v2v-in-place and release notes man pages. - Remove the RHEL (downstream) patches which are out of date. +- Don't use absolute symlinks. * Tue Feb 15 2022 Richard W.M. Jones - 1:1.45.99-1 - New upstream development version 1.45.99 (preview of 2.0) From 715f90f312fb1b97a9ac1c5b6ec841c438759a5c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 Mar 2022 15:39:30 +0000 Subject: [PATCH 049/183] Update dependencies to match release notes https://libguestfs.org/virt-v2v-release-notes-2.0.1.html#build-changes --- virt-v2v.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index f11a8f1..57f87c2 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -56,9 +56,9 @@ BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: /usr/bin/pod2man BuildRequires: gcc -BuildRequires: ocaml >= 4.01 +BuildRequires: ocaml >= 4.04 -BuildRequires: libguestfs-devel >= 1:1.42 +BuildRequires: libguestfs-devel >= 1:1.44 BuildRequires: augeas-devel BuildRequires: bash-completion BuildRequires: file-devel @@ -69,7 +69,7 @@ BuildRequires: libosinfo-devel BuildRequires: libvirt-daemon-kvm BuildRequires: libvirt-devel BuildRequires: libxml2-devel -BuildRequires: pcre-devel +BuildRequires: pcre2-devel BuildRequires: perl(Sys::Guestfs) BuildRequires: po4a BuildRequires: /usr/bin/virsh @@ -105,7 +105,7 @@ Requires: gawk Requires: gzip Requires: unzip Requires: curl -Requires: openssh-clients >= 8.7p1 +Requires: openssh-clients >= 8.8p1 Requires: %{_bindir}/virsh # Ensure the UEFI firmware is available, to properly convert @@ -119,7 +119,7 @@ Requires: edk2-aarch64 Requires: libnbd >= 1.8.2-2.el9 Requires: %{_bindir}/qemu-nbd -Requires: %{_bindir}/nbdcopy +Requires: %{_bindir}/nbdcopy >= 1.10 Requires: %{_bindir}/nbdinfo Requires: nbdkit-server >= 1.28.3-1.el9 Requires: nbdkit-curl-plugin From bc43f9d3fe2267ba6c73720ce353b26469cfdb07 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 14 Mar 2022 15:42:59 +0000 Subject: [PATCH 050/183] Fix nbdcopy versioned dependency error: line 122: Versioned file name not permitted: Requires: /usr/bin/nbdcopy >= 1.10 --- virt-v2v.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 57f87c2..ef09e6c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -117,9 +117,9 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -Requires: libnbd >= 1.8.2-2.el9 +Requires: libnbd >= 1.10 Requires: %{_bindir}/qemu-nbd -Requires: %{_bindir}/nbdcopy >= 1.10 +Requires: %{_bindir}/nbdcopy Requires: %{_bindir}/nbdinfo Requires: nbdkit-server >= 1.28.3-1.el9 Requires: nbdkit-curl-plugin From 071890f38aab88df3168f40110143a8367620a48 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 23 Mar 2022 13:57:25 +0000 Subject: [PATCH 051/183] New upstream stable branch version 2.0.1 Fixes security issue when running virt-v2v as root (RHBZ#2066773). --- sources | 4 ++-- virt-v2v.spec | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 4f88c4c..5e35c01 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.0.0.tar.gz) = 0ccf9e9141a0166f969383f9e103ffa11fa2ce00a5fbf4ada6c4480b888886a5a149b33d905f0f1947edaec14d16dd89a15ef53dd0cc042b29d473235430f5de -SHA512 (virt-v2v-2.0.0.tar.gz.sig) = e1c7e308043951c2aab59d288daa8cfd0da4794f566811b2bab6e138ea511f337e10ab2118973f08df1b29406e1bf12d09591805dd21621a6350b628715a9b99 +SHA512 (virt-v2v-2.0.1.tar.gz) = ca976c1ceba3ef9c759dd3b43effcbc15e50eaa0ec3c2e84e0e5ca03afe222f992602cf24f6a0567c63d605afc3da2628c15901c62b2de3e23dda31d84b6a191 +SHA512 (virt-v2v-2.0.1.tar.gz.sig) = c17c0d07800db8019ad5bc64dce71322fb8066a4c5e35f8861e8eb9d2db1dedb8df01d82e5dbd01361386c5ce7d9da2210de72a1981d6d229f587e036f0a3077 diff --git a/virt-v2v.spec b/virt-v2v.spec index ef09e6c..015d95c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.0.0 +Version: 2.0.1 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -304,6 +304,10 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %changelog +* Wed Mar 23 2022 Richard W.M. Jones - 1:2.0.1-1 +- New upstream stable branch version 2.0.1 +- Fixes security issue when running virt-v2v as root (RHBZ#2066773). + * Mon Mar 14 2022 Richard W.M. Jones - 1:2.0.0-1 - New upstream stable branch version 2.0.0 - New virt-v2v-in-place and release notes man pages. From 3c02e4033d630c178d4963eaedd3266552294026 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 4 Apr 2022 13:50:43 +0100 Subject: [PATCH 052/183] New upstream stable branch version 2.0.2 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 5e35c01..9432f8c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.0.1.tar.gz) = ca976c1ceba3ef9c759dd3b43effcbc15e50eaa0ec3c2e84e0e5ca03afe222f992602cf24f6a0567c63d605afc3da2628c15901c62b2de3e23dda31d84b6a191 -SHA512 (virt-v2v-2.0.1.tar.gz.sig) = c17c0d07800db8019ad5bc64dce71322fb8066a4c5e35f8861e8eb9d2db1dedb8df01d82e5dbd01361386c5ce7d9da2210de72a1981d6d229f587e036f0a3077 +SHA512 (virt-v2v-2.0.2.tar.gz) = 63a198e407df47dc4afffeb147453449e36d9f82952fef5af490888f8708a44f3a75d1dcd233e2a1fe9b58715f61a9875dac9c406a1fced08da6574bf577ffe9 +SHA512 (virt-v2v-2.0.2.tar.gz.sig) = 6dc0da82c92243fc11071c569dd49a11a035589722a00b5a7d592f2266ba30eb7ded02746bfd6a88f1cb78d116ac1f6f4de5708f3bd226b9585fd7e0bbe02e05 diff --git a/virt-v2v.spec b/virt-v2v.spec index 015d95c..fd56ab7 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.0.1 +Version: 2.0.2 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -304,6 +304,9 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %changelog +* Mon Apr 04 2022 Richard W.M. Jones - 1:2.0.2-1 +- New upstream stable branch version 2.0.2 + * Wed Mar 23 2022 Richard W.M. Jones - 1:2.0.1-1 - New upstream stable branch version 2.0.1 - Fixes security issue when running virt-v2v as root (RHBZ#2066773). From 56f912639fc27c83b16d0a384d68f6aea4bbee5a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 12 Apr 2022 12:05:45 +0100 Subject: [PATCH 053/183] New upstream development version 2.1.1 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 9432f8c..f40178d 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.0.2.tar.gz) = 63a198e407df47dc4afffeb147453449e36d9f82952fef5af490888f8708a44f3a75d1dcd233e2a1fe9b58715f61a9875dac9c406a1fced08da6574bf577ffe9 -SHA512 (virt-v2v-2.0.2.tar.gz.sig) = 6dc0da82c92243fc11071c569dd49a11a035589722a00b5a7d592f2266ba30eb7ded02746bfd6a88f1cb78d116ac1f6f4de5708f3bd226b9585fd7e0bbe02e05 +SHA512 (virt-v2v-2.1.1.tar.gz) = f4ec00a0a630b40f51c90801884b15de618c212334e94737d0f32f064c834f4e177cd88441b473c2e1a8db9a5a67781ca45a91c6c3d42accb8470f92dfbe5ba4 +SHA512 (virt-v2v-2.1.1.tar.gz.sig) = b7418f06dd0796cfcf368e4b6ed2e7cdd87c53b0a354bd54fc5581a5ea17aac61bd93f2f3c7c492881ee53a22f9cf9a876bf8e7ebb5223a908ea5225b8886d24 diff --git a/virt-v2v.spec b/virt-v2v.spec index fd56ab7..9af1c66 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -11,11 +11,11 @@ %endif # The source directory. -%global source_directory 2.0-stable +%global source_directory 2.1-development Name: virt-v2v Epoch: 1 -Version: 2.0.2 +Version: 2.1.1 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -304,6 +304,9 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %changelog +* Tue Apr 12 2022 Richard W.M. Jones - 1:2.1.1-1 +- New upstream development version 2.1.1 + * Mon Apr 04 2022 Richard W.M. Jones - 1:2.0.2-1 - New upstream stable branch version 2.0.2 From efe47b57c3d1c3e86da8347d71f34ff82f61d1e7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 26 Apr 2022 10:55:44 +0100 Subject: [PATCH 054/183] New upstream development version 2.1.2 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index f40178d..a1e1c6f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.1.tar.gz) = f4ec00a0a630b40f51c90801884b15de618c212334e94737d0f32f064c834f4e177cd88441b473c2e1a8db9a5a67781ca45a91c6c3d42accb8470f92dfbe5ba4 -SHA512 (virt-v2v-2.1.1.tar.gz.sig) = b7418f06dd0796cfcf368e4b6ed2e7cdd87c53b0a354bd54fc5581a5ea17aac61bd93f2f3c7c492881ee53a22f9cf9a876bf8e7ebb5223a908ea5225b8886d24 +SHA512 (virt-v2v-2.1.2.tar.gz) = 614e7838045defb68604f3a1fff7793cac42a34ed1a3dfbae402e319d99d76adf81cfaea22583c4b0a3f2491b57bc0992ee78cf09409c38ce32b53d78cf1e365 +SHA512 (virt-v2v-2.1.2.tar.gz.sig) = 1376bb450f912c296a7f2e580b1aaa79b957303ce7ab5e1c4c30c0d11aa15dc03604541decf2327be87106a149f4e5e65dc37dce52eeb5ceed45525810e84abc diff --git a/virt-v2v.spec b/virt-v2v.spec index 9af1c66..af29be7 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.1 +Version: 2.1.2 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -304,6 +304,9 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %changelog +* Tue Apr 26 2022 Richard W.M. Jones - 1:2.1.2-1 +- New upstream development version 2.1.2 + * Tue Apr 12 2022 Richard W.M. Jones - 1:2.1.1-1 - New upstream development version 2.1.1 From 91effd144894597e93059c79ba4587167b8886bd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 28 Apr 2022 17:42:56 +0100 Subject: [PATCH 055/183] +BR ocaml-libvirt-devel --- virt-v2v.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index af29be7..0fc0fdc 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -77,6 +77,7 @@ BuildRequires: xorriso BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-libguestfs-devel +BuildRequires: ocaml-libvirt-devel BuildRequires: ocaml-libnbd-devel BuildRequires: ocaml-fileutils-devel BuildRequires: ocaml-gettext-devel From 8eba39402e2c31fc70e056c3d323d18143a30b7e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 12 May 2022 15:35:15 +0100 Subject: [PATCH 056/183] New upstream development version 2.1.3 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index a1e1c6f..6c5a1f7 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.2.tar.gz) = 614e7838045defb68604f3a1fff7793cac42a34ed1a3dfbae402e319d99d76adf81cfaea22583c4b0a3f2491b57bc0992ee78cf09409c38ce32b53d78cf1e365 -SHA512 (virt-v2v-2.1.2.tar.gz.sig) = 1376bb450f912c296a7f2e580b1aaa79b957303ce7ab5e1c4c30c0d11aa15dc03604541decf2327be87106a149f4e5e65dc37dce52eeb5ceed45525810e84abc +SHA512 (virt-v2v-2.1.3.tar.gz) = 8f0c3779953dab651a65568799c86cf7ffa09729e768f8a7ee349796655d13b4cd4d601d0772689ac8cb8ae689cb9e448a5aaf005d7e2abfe9adf8fe3be28a11 +SHA512 (virt-v2v-2.1.3.tar.gz.sig) = 974ee49c3e652eef2e112432512c8900301f8ff479225a0177a17a2aa40d72e6785fd22e0dea4f787ffec937790732e37b4a22bb9a9bb517684229bc57eeb5e2 diff --git a/virt-v2v.spec b/virt-v2v.spec index 0fc0fdc..e3270e0 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.2 +Version: 2.1.3 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -305,6 +305,9 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %changelog +* Thu May 12 2022 Richard W.M. Jones - 1:2.1.3-1 +- New upstream development version 2.1.3 + * Tue Apr 26 2022 Richard W.M. Jones - 1:2.1.2-1 - New upstream development version 2.1.2 From cb7aba7e976065a151b8e935bb502b148103fd02 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 26 May 2022 12:43:47 +0100 Subject: [PATCH 057/183] New upstream development version 2.1.4 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 6c5a1f7..0fd9fab 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.3.tar.gz) = 8f0c3779953dab651a65568799c86cf7ffa09729e768f8a7ee349796655d13b4cd4d601d0772689ac8cb8ae689cb9e448a5aaf005d7e2abfe9adf8fe3be28a11 -SHA512 (virt-v2v-2.1.3.tar.gz.sig) = 974ee49c3e652eef2e112432512c8900301f8ff479225a0177a17a2aa40d72e6785fd22e0dea4f787ffec937790732e37b4a22bb9a9bb517684229bc57eeb5e2 +SHA512 (virt-v2v-2.1.4.tar.gz) = 968819f477900cb9f421fcc94c3522b600b0921190806ca86ded87f8638a962621405ec3ef17cbf84d910bcaa4497751549aefdeef22561f31524e06e3a29c0d +SHA512 (virt-v2v-2.1.4.tar.gz.sig) = 918efdcc591ce74992d13171cef9b4fb7b295e6a193688dec2559467f47c4123182ee82b499d9b75804093fa5ff95a4c7ec2ff96da26bf4ccd12240a35c5493c diff --git a/virt-v2v.spec b/virt-v2v.spec index e3270e0..8398875 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.3 +Version: 2.1.4 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -305,6 +305,9 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %changelog +* Thu May 26 2022 Richard W.M. Jones - 1:2.1.4-1 +- New upstream development version 2.1.4 + * Thu May 12 2022 Richard W.M. Jones - 1:2.1.3-1 - New upstream development version 2.1.3 From 1180dbb9125efb9733a95786576b7a6465683099 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 8 Jun 2022 12:49:45 +0100 Subject: [PATCH 058/183] Add Requires python3 / platform-python (RHBZ#2094779) --- virt-v2v.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index 8398875..7b85ea6 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -118,6 +118,11 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif +%if !0%{?rhel} +Requires: python3 +%else +Requires: platform-python +%endif Requires: libnbd >= 1.10 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy From 76a47e52e46ec6a9b387e1b6e5845479ff52da44 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 8 Jun 2022 14:27:33 +0100 Subject: [PATCH 059/183] Remove nbdkit-readahead-filter as it is no longer used --- virt-v2v.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 7b85ea6..b248e34 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -142,7 +142,6 @@ Requires: nbdkit-cacheextents-filter Requires: nbdkit-cow-filter >= 1.28.3-1.el9 Requires: nbdkit-multi-conn-filter Requires: nbdkit-rate-filter -Requires: nbdkit-readahead-filter Requires: nbdkit-retry-filter # For rhsrvany.exe, used to install firstboot scripts in Windows guests. From 754f31a25a2a4ba7df374f808cd0f92f5af12239 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 8 Jun 2022 12:50:04 +0100 Subject: [PATCH 060/183] Enable the tests --- virt-v2v.spec | 56 +++++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index b248e34..4ffce39 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -16,7 +16,7 @@ Name: virt-v2v Epoch: 1 Version: 2.1.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -85,7 +85,14 @@ BuildRequires: ocaml-gettext-devel BuildRequires: ocaml-ounit-devel %endif +# These are for running our limited test. +BuildRequires: %{_bindir}/qemu-nbd +BuildRequires: %{_bindir}/nbdcopy +BuildRequires: %{_bindir}/nbdinfo +BuildRequires: nbdkit-file-plugin +BuildRequires: nbdkit-null-plugin BuildRequires: nbdkit-python-plugin +BuildRequires: nbdkit-cow-filter >= 1.28.3-1.el9 %if 0%{verify_tarball_signature} BuildRequires: gnupg2 @@ -243,31 +250,27 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %check -# All tests fail at the moment because of bugs in libvirt blockdev. -# # Tests fail on both armv7 and ppc64le in Fedora 31 because the kernel -# # cannot boot on qemu. -# %ifnarch %{arm} ppc64le +%ifarch x86_64 +# Only run the tests with non-debug (ie. non-Rawhide) kernels. +# XXX This tests for any debug kernel installed. +if grep CONFIG_DEBUG_MUTEXES=y /lib/modules/*/config ; then + echo "Skipping tests because debug kernel is installed" + exit 0 +fi -# # On x86_64 this single test fails with: "virt-v2v: warning: the -# # target hypervisor does not support a x86_64 KVM guest". Missing -# # BuildRequires? -# %ifarch x86_64 -# truncate -s 0 tests/test-v2v-o-libvirt.sh -# %endif +# Make sure we can see the debug messages (RHBZ#1230160). +export LIBGUESTFS_DEBUG=1 +export LIBGUESTFS_TRACE=1 -# # This test fails in mock. -# truncate -s 0 tests/test-v2v-oa-option.sh - -# # Make sure we can see the debug messages (RHBZ#1230160). -# export LIBGUESTFS_DEBUG=1 -# export LIBGUESTFS_TRACE=1 - -# make %{?_smp_mflags} check || { -# cat tests/test-suite.log -# exit 1 -# } - -# %endif +# The built in tests take a very long time to run under TCG (in Koji), +# so just perform a very simple conversion to check things are +# working. +make -C test-data/phony-guests windows.img +./run virt-v2v -v -x -i disk test-data/phony-guests/windows.img -o null +# XXX Enable in virt-v2v >= 2.1.5 +#make -C test-data/phony-guests fedora.img +#./run virt-v2v -v -x -i disk test-data/phony-guests/fedora.img -o null +%endif %files -f %{name}.lang @@ -309,6 +312,11 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %changelog +* Wed Jun 08 2022 Richard W.M. Jones - 1:2.1.4-2 +- Add Requires python3 / platform-python (RHBZ#2094779) +- Remove nbdkit-readahead-filter as it is no longer used +- Enable the tests + * Thu May 26 2022 Richard W.M. Jones - 1:2.1.4-1 - New upstream development version 2.1.4 From 5b1f7b0dca3cf34cf97823d275362499580a6734 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 11 Jun 2022 10:36:54 +0100 Subject: [PATCH 061/183] New upstream development version 2.1.5 Add Requires python3 / platform-python (RHBZ#2094779) Remove nbdkit-readahead-filter as it is no longer used Enable the tests --- sources | 4 ++-- virt-v2v.spec | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sources b/sources index 0fd9fab..8b8968c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.4.tar.gz) = 968819f477900cb9f421fcc94c3522b600b0921190806ca86ded87f8638a962621405ec3ef17cbf84d910bcaa4497751549aefdeef22561f31524e06e3a29c0d -SHA512 (virt-v2v-2.1.4.tar.gz.sig) = 918efdcc591ce74992d13171cef9b4fb7b295e6a193688dec2559467f47c4123182ee82b499d9b75804093fa5ff95a4c7ec2ff96da26bf4ccd12240a35c5493c +SHA512 (virt-v2v-2.1.5.tar.gz) = 27be08b02fe22681ca7bb35a0a3243697c55bd555f336f78cf0a120ef09ae67cd37b2a05bff38782287acf5605452957b52966163303b336a0d48d0555d70bf0 +SHA512 (virt-v2v-2.1.5.tar.gz.sig) = 15a0038588e751ddf4e19cf225991fbf36f4c96fdcc986a8a685f79067b208e168154301b58bd6046a87680caa3165a8b0908c73912c8f3cee14ce83e76bd9ee diff --git a/virt-v2v.spec b/virt-v2v.spec index 4ffce39..1c4a1b9 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,8 +15,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.4 -Release: 2%{?dist} +Version: 2.1.5 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -267,9 +267,8 @@ export LIBGUESTFS_TRACE=1 # working. make -C test-data/phony-guests windows.img ./run virt-v2v -v -x -i disk test-data/phony-guests/windows.img -o null -# XXX Enable in virt-v2v >= 2.1.5 -#make -C test-data/phony-guests fedora.img -#./run virt-v2v -v -x -i disk test-data/phony-guests/fedora.img -o null +make -C test-data/phony-guests fedora.img +./run virt-v2v -v -x -i disk test-data/phony-guests/fedora.img -o null %endif @@ -312,7 +311,8 @@ make -C test-data/phony-guests windows.img %changelog -* Wed Jun 08 2022 Richard W.M. Jones - 1:2.1.4-2 +* Sat Jun 11 2022 Richard W.M. Jones - 1:2.1.5-1 +- New upstream development version 2.1.5 - Add Requires python3 / platform-python (RHBZ#2094779) - Remove nbdkit-readahead-filter as it is no longer used - Enable the tests From 4adf248ad7e022238ace51d08bad465873746957 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 17 Jun 2022 13:05:43 +0100 Subject: [PATCH 062/183] New upstream development version 2.1.6 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 8b8968c..28d655a 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.5.tar.gz) = 27be08b02fe22681ca7bb35a0a3243697c55bd555f336f78cf0a120ef09ae67cd37b2a05bff38782287acf5605452957b52966163303b336a0d48d0555d70bf0 -SHA512 (virt-v2v-2.1.5.tar.gz.sig) = 15a0038588e751ddf4e19cf225991fbf36f4c96fdcc986a8a685f79067b208e168154301b58bd6046a87680caa3165a8b0908c73912c8f3cee14ce83e76bd9ee +SHA512 (virt-v2v-2.1.6.tar.gz) = d61e1b9228ca1cadb563c0d38cbad458851dee7ca7882ba78006c5c24ace3b61a4d4b181788d344cfe90a0548c0b81784e0365f3b016fa2faba2a6ecdd8957e1 +SHA512 (virt-v2v-2.1.6.tar.gz.sig) = 96b95596ff59e464417d714e0e2d08d834a1cf1f21c2e01edd3ca0eaa9f5b1f2a23835689345a6d01486830463e01d211cede343f580307875d10ccbb8a427eb diff --git a/virt-v2v.spec b/virt-v2v.spec index 1c4a1b9..19a8318 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.5 +Version: 2.1.6 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -311,6 +311,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Fri Jun 17 2022 Richard W.M. Jones - 1:2.1.6-1 +- New upstream development version 2.1.6 + * Sat Jun 11 2022 Richard W.M. Jones - 1:2.1.5-1 - New upstream development version 2.1.5 - Add Requires python3 / platform-python (RHBZ#2094779) From 7fbfa0974edb8bd5ed16db3d0fa62870ac41c8e2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 19 Jun 2022 12:18:06 +0100 Subject: [PATCH 063/183] OCaml 4.14.0 rebuild --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 19a8318..5e8f7c0 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -16,7 +16,7 @@ Name: virt-v2v Epoch: 1 Version: 2.1.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -311,6 +311,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Sun Jun 19 2022 Richard W.M. Jones - 1:2.1.6-2 +- OCaml 4.14.0 rebuild + * Fri Jun 17 2022 Richard W.M. Jones - 1:2.1.6-1 - New upstream development version 2.1.6 From a0b231bb848dfd3c5ba8e96ae05f12d1c7698f3d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 5 Jul 2022 13:58:04 +0100 Subject: [PATCH 064/183] New upstream development version 2.1.7 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 28d655a..6059cae 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.6.tar.gz) = d61e1b9228ca1cadb563c0d38cbad458851dee7ca7882ba78006c5c24ace3b61a4d4b181788d344cfe90a0548c0b81784e0365f3b016fa2faba2a6ecdd8957e1 -SHA512 (virt-v2v-2.1.6.tar.gz.sig) = 96b95596ff59e464417d714e0e2d08d834a1cf1f21c2e01edd3ca0eaa9f5b1f2a23835689345a6d01486830463e01d211cede343f580307875d10ccbb8a427eb +SHA512 (virt-v2v-2.1.7.tar.gz) = d3388afc595f30fb6a3baf9007286ed7c594aa465f8da56a51d2e74c909ff0125e95cf2cb7ced3935deff8715a5e42967f2e93f2ff2785c67952f42d1018df77 +SHA512 (virt-v2v-2.1.7.tar.gz.sig) = 34353bbd3f152dcea6e0bebb80f0d42c79b206a1ddbce9766300fb70011603cffe710f9d8ae00ca1762ecdf9c9ee3911836b6cbb478d7c1dad7f69ef57050878 diff --git a/virt-v2v.spec b/virt-v2v.spec index 5e8f7c0..7aae48f 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,8 +15,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.6 -Release: 2%{?dist} +Version: 2.1.7 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -311,6 +311,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Tue Jul 05 2022 Richard W.M. Jones - 1:2.1.7-1 +- New upstream development version 2.1.7 + * Sun Jun 19 2022 Richard W.M. Jones - 1:2.1.6-2 - OCaml 4.14.0 rebuild From 898c0086da8515f3afb98dd94c8e8f6ec198233f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 11:59:43 +0000 Subject: [PATCH 065/183] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 7aae48f..0cb02b9 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -16,7 +16,7 @@ Name: virt-v2v Epoch: 1 Version: 2.1.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -311,6 +311,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Sat Jul 23 2022 Fedora Release Engineering - 1:2.1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Tue Jul 05 2022 Richard W.M. Jones - 1:2.1.7-1 - New upstream development version 2.1.7 From 55ac73a3a65ef9fc561a9bb7a970446522608cff Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 1 Aug 2022 15:23:21 +0100 Subject: [PATCH 066/183] New upstream development version 2.1.8 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 6059cae..3b32d44 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.7.tar.gz) = d3388afc595f30fb6a3baf9007286ed7c594aa465f8da56a51d2e74c909ff0125e95cf2cb7ced3935deff8715a5e42967f2e93f2ff2785c67952f42d1018df77 -SHA512 (virt-v2v-2.1.7.tar.gz.sig) = 34353bbd3f152dcea6e0bebb80f0d42c79b206a1ddbce9766300fb70011603cffe710f9d8ae00ca1762ecdf9c9ee3911836b6cbb478d7c1dad7f69ef57050878 +SHA512 (virt-v2v-2.1.8.tar.gz) = 4d7742de31928a92ebb6db43d74bcf1715d6cb50f0c396e5c2546a4d907790099bdbe03f15e44938f972047418d612653433e97dd84f5b8d9ef2efc036f77c3d +SHA512 (virt-v2v-2.1.8.tar.gz.sig) = 5477d12b5cc075ced6c701f5c3a521f181313a7f41f06c2c4ea0cb9ca96f74f81eb79e60b56ba755da7a6b7f3da111e80b0eef72f48f06a0dd77c4bd32fcb402 diff --git a/virt-v2v.spec b/virt-v2v.spec index 0cb02b9..5f10519 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,8 +15,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.7 -Release: 2%{?dist} +Version: 2.1.8 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -311,6 +311,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Mon Aug 01 2022 Richard W.M. Jones - 1:2.1.8-1 +- New upstream development version 2.1.8 + * Sat Jul 23 2022 Fedora Release Engineering - 1:2.1.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From c4fd3776bccc8ea8fefc0311f08bfe01c45ae02e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 23 Aug 2022 11:59:28 +0100 Subject: [PATCH 067/183] Add BR glibc-static As part of the test we build a small static binary which acts like 'rpm' inside our test VM. This needs glibc-static. We only run this test on x86-64. --- virt-v2v.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 5f10519..cb967a4 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -16,7 +16,7 @@ Name: virt-v2v Epoch: 1 Version: 2.1.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -93,6 +93,9 @@ BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin BuildRequires: nbdkit-python-plugin BuildRequires: nbdkit-cow-filter >= 1.28.3-1.el9 +%ifarch x86_64 +BuildRequires: glibc-static +%endif %if 0%{verify_tarball_signature} BuildRequires: gnupg2 @@ -311,6 +314,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Tue Aug 23 2022 Richard W.M. Jones - 1:2.1.8-2 +- Add BR glibc-static for tests on x86_64. + * Mon Aug 01 2022 Richard W.M. Jones - 1:2.1.8-1 - New upstream development version 2.1.8 From 2871ca26489afe94640232282dd6453dd39e38d9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 11 Oct 2022 16:47:32 +0100 Subject: [PATCH 068/183] New upstream development version 2.1.9 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 3b32d44..a3bdaf4 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.8.tar.gz) = 4d7742de31928a92ebb6db43d74bcf1715d6cb50f0c396e5c2546a4d907790099bdbe03f15e44938f972047418d612653433e97dd84f5b8d9ef2efc036f77c3d -SHA512 (virt-v2v-2.1.8.tar.gz.sig) = 5477d12b5cc075ced6c701f5c3a521f181313a7f41f06c2c4ea0cb9ca96f74f81eb79e60b56ba755da7a6b7f3da111e80b0eef72f48f06a0dd77c4bd32fcb402 +SHA512 (virt-v2v-2.1.9.tar.gz) = be07e9bbf6e0b2e66823f9a9402c9f550cfd847fd4801bc7071809a00af160ea054dc7540694f78e758238ba67be60fe35fc4144dd24264777bbd7d6a92bfdad +SHA512 (virt-v2v-2.1.9.tar.gz.sig) = b6b08fa7b0627ae1008eedaa0c1d8d350ed18f488bc4a022fafc8b4206fd47a2c3ef20b70de935b97d336c926a4a7ef48602afe244fa7f17fdb6a1a942fb8583 diff --git a/virt-v2v.spec b/virt-v2v.spec index cb967a4..f19134f 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,8 +15,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.8 -Release: 2%{?dist} +Version: 2.1.9 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -314,6 +314,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Tue Oct 11 2022 Richard W.M. Jones - 1:2.1.9-1 +- New upstream development version 2.1.9 + * Tue Aug 23 2022 Richard W.M. Jones - 1:2.1.8-2 - Add BR glibc-static for tests on x86_64. From cceac096a80e960b806186d2d072f5d0e7f4e9e7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 26 Nov 2022 15:41:35 +0000 Subject: [PATCH 069/183] New upstream development version 2.1.10 New tool: virt-v2v-inspector --- sources | 4 ++-- virt-v2v.spec | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sources b/sources index a3bdaf4..7ca8a13 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.9.tar.gz) = be07e9bbf6e0b2e66823f9a9402c9f550cfd847fd4801bc7071809a00af160ea054dc7540694f78e758238ba67be60fe35fc4144dd24264777bbd7d6a92bfdad -SHA512 (virt-v2v-2.1.9.tar.gz.sig) = b6b08fa7b0627ae1008eedaa0c1d8d350ed18f488bc4a022fafc8b4206fd47a2c3ef20b70de935b97d336c926a4a7ef48602afe244fa7f17fdb6a1a942fb8583 +SHA512 (virt-v2v-2.1.10.tar.gz) = e783acb401e281f7b6bce52c2093a23b4464f269236f4ca36e6c1a9b0bbb57984e4bb0063ad967fbeb8e0c41080949b80eecc2d29503db4a0cf71f400e42e568 +SHA512 (virt-v2v-2.1.10.tar.gz.sig) = e4bbd6442fb02ee62205dfb9f1518f1668a74be087f0d7790d4c9d5e9a8163634fedff0cc20c542508710f51e812a34a811f5a809e70cfa9e085e3dbab92d5ed diff --git a/virt-v2v.spec b/virt-v2v.spec index f19134f..30e1251 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.9 +Version: 2.1.10 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -282,6 +282,7 @@ make -C test-data/phony-guests fedora.img %if !0%{?rhel} %{_bindir}/virt-v2v-in-place %endif +%{_bindir}/virt-v2v-inspector %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* %{_mandir}/man1/virt-v2v-input-vmware.1* @@ -289,6 +290,7 @@ make -C test-data/phony-guests fedora.img %if !0%{?rhel} %{_mandir}/man1/virt-v2v-in-place.1* %endif +%{_mandir}/man1/virt-v2v-inspector.1* %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* %{_mandir}/man1/virt-v2v-output-rhv.1* @@ -314,6 +316,10 @@ make -C test-data/phony-guests fedora.img %changelog +* Sat Nov 26 2022 Richard W.M. Jones - 1:2.1.10-1 +- New upstream development version 2.1.10 +- New tool: virt-v2v-inspector + * Tue Oct 11 2022 Richard W.M. Jones - 1:2.1.9-1 - New upstream development version 2.1.9 From eda3bba64d0476db1da5a6cd4652c13f2992d8ca Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 10 Dec 2022 12:40:50 +0000 Subject: [PATCH 070/183] New upstream development version 2.1.11 --- sources | 4 ++-- virt-v2v.spec | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/sources b/sources index 7ca8a13..6ea1fbe 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.10.tar.gz) = e783acb401e281f7b6bce52c2093a23b4464f269236f4ca36e6c1a9b0bbb57984e4bb0063ad967fbeb8e0c41080949b80eecc2d29503db4a0cf71f400e42e568 -SHA512 (virt-v2v-2.1.10.tar.gz.sig) = e4bbd6442fb02ee62205dfb9f1518f1668a74be087f0d7790d4c9d5e9a8163634fedff0cc20c542508710f51e812a34a811f5a809e70cfa9e085e3dbab92d5ed +SHA512 (virt-v2v-2.1.11.tar.gz) = 239cf084a60f7652558a9aacc681820030e7de195386c43847ee450899af199d24850e128291625d82731cdf95c7625bc1318fac6f059dd10ed2225882b7ff52 +SHA512 (virt-v2v-2.1.11.tar.gz.sig) = 15d156d78424196708ff03c6af455908ffce9e88355ba6ea4a8fbdffed026443b0a500b63308534086cbe609145bfefcbbf79278cc71183f54ae3b5a7bd5364c diff --git a/virt-v2v.spec b/virt-v2v.spec index 30e1251..6e6e1a7 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.10 +Version: 2.1.11 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -58,7 +58,7 @@ BuildRequires: /usr/bin/pod2man BuildRequires: gcc BuildRequires: ocaml >= 4.04 -BuildRequires: libguestfs-devel >= 1:1.44 +BuildRequires: libguestfs-devel >= 1:1.49.8-1 BuildRequires: augeas-devel BuildRequires: bash-completion BuildRequires: file-devel @@ -101,8 +101,8 @@ BuildRequires: glibc-static BuildRequires: gnupg2 %endif -Requires: libguestfs%{?_isa} >= 1:1.42 -Requires: guestfs-tools >= 1.42 +Requires: libguestfs%{?_isa} >= 1:1.49.8-1 +Requires: guestfs-tools >= 1:1.49.7-1 # XFS is the default filesystem in Fedora and RHEL. Requires: libguestfs-xfs @@ -316,6 +316,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Sat Dec 10 2022 Richard W.M. Jones - 1:2.1.11-1 +- New upstream development version 2.1.11 + * Sat Nov 26 2022 Richard W.M. Jones - 1:2.1.10-1 - New upstream development version 2.1.10 - New tool: virt-v2v-inspector From d5dbc41678e499d8a52fbc25057954460b7f4405 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 10 Dec 2022 14:47:46 +0000 Subject: [PATCH 071/183] Remove bogus guestfs-tools 1: (Epoch) prefix in dependency guestfs-tools main package does not have an Epoch. --- virt-v2v.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 6e6e1a7..33efda0 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -16,7 +16,7 @@ Name: virt-v2v Epoch: 1 Version: 2.1.11 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -102,7 +102,7 @@ BuildRequires: gnupg2 %endif Requires: libguestfs%{?_isa} >= 1:1.49.8-1 -Requires: guestfs-tools >= 1:1.49.7-1 +Requires: guestfs-tools >= 1.49.7-1 # XFS is the default filesystem in Fedora and RHEL. Requires: libguestfs-xfs @@ -316,7 +316,7 @@ make -C test-data/phony-guests fedora.img %changelog -* Sat Dec 10 2022 Richard W.M. Jones - 1:2.1.11-1 +* Sat Dec 10 2022 Richard W.M. Jones - 1:2.1.11-2 - New upstream development version 2.1.11 * Sat Nov 26 2022 Richard W.M. Jones - 1:2.1.10-1 From 060522be72119166a62c58597ade6e757b7e9977 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 6 Jan 2023 11:08:44 +0000 Subject: [PATCH 072/183] New upstream development version 2.1.12 Add release notes for future virt-v2v 2.2 --- sources | 4 ++-- virt-v2v.spec | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 6ea1fbe..e2fdb85 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.11.tar.gz) = 239cf084a60f7652558a9aacc681820030e7de195386c43847ee450899af199d24850e128291625d82731cdf95c7625bc1318fac6f059dd10ed2225882b7ff52 -SHA512 (virt-v2v-2.1.11.tar.gz.sig) = 15d156d78424196708ff03c6af455908ffce9e88355ba6ea4a8fbdffed026443b0a500b63308534086cbe609145bfefcbbf79278cc71183f54ae3b5a7bd5364c +SHA512 (virt-v2v-2.1.12.tar.gz) = 2d7532d5f9730fef398d00092d884d018e35ed10279dab0d16f9f95f4059ec856ba81b475c37822cfe56364f48f6fca30635d2af4433f23ef5b496bb97e2aaa8 +SHA512 (virt-v2v-2.1.12.tar.gz.sig) = 965da728175330b6525d31be7bf24144f2e08a34614d03ab8d274e3b939ed6c46cd6834384159951637b9f11c0816038f54ac66aed5bdd87444232670170ed85 diff --git a/virt-v2v.spec b/virt-v2v.spec index 33efda0..9d15ef5 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,8 +15,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.1.11 -Release: 2%{?dist} +Version: 2.1.12 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -296,6 +296,7 @@ make -C test-data/phony-guests fedora.img %{_mandir}/man1/virt-v2v-output-rhv.1* %{_mandir}/man1/virt-v2v-release-notes-1.42.1* %{_mandir}/man1/virt-v2v-release-notes-2.0.1* +%{_mandir}/man1/virt-v2v-release-notes-2.2.1* %{_mandir}/man1/virt-v2v-support.1* %{_datadir}/virt-tools @@ -316,6 +317,10 @@ make -C test-data/phony-guests fedora.img %changelog +* Fri Jan 06 2023 Richard W.M. Jones - 1:2.1.12-1 +- New upstream development version 2.1.12 +- Add release notes for future virt-v2v 2.2 + * Sat Dec 10 2022 Richard W.M. Jones - 1:2.1.11-2 - New upstream development version 2.1.11 From cf3e580f28366350d2d4b0f3cedeee8f754619e9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 10 Jan 2023 15:06:27 +0000 Subject: [PATCH 073/183] New stable branch version 2.2.0 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index e2fdb85..511b99b 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.1.12.tar.gz) = 2d7532d5f9730fef398d00092d884d018e35ed10279dab0d16f9f95f4059ec856ba81b475c37822cfe56364f48f6fca30635d2af4433f23ef5b496bb97e2aaa8 -SHA512 (virt-v2v-2.1.12.tar.gz.sig) = 965da728175330b6525d31be7bf24144f2e08a34614d03ab8d274e3b939ed6c46cd6834384159951637b9f11c0816038f54ac66aed5bdd87444232670170ed85 +SHA512 (virt-v2v-2.2.0.tar.gz) = 8251d8b232cc93d2ebd8a9d21d6807795559928c557a34dbc84a72473f548df85268521b7a803ef26b3abe2ef21170ab8d8d923a99d5228b761586d43bebb81f +SHA512 (virt-v2v-2.2.0.tar.gz.sig) = 40ceb183c48d673dcd2a42b394ade98753f5cb2abc6978c7ba33c461dee77c4b1c461cce55fa188d594297c47e9d8cff9d01e8eabd63fdc2eadeea65327156c2 diff --git a/virt-v2v.spec b/virt-v2v.spec index 9d15ef5..246f084 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -11,11 +11,11 @@ %endif # The source directory. -%global source_directory 2.1-development +%global source_directory 2.2-stable Name: virt-v2v Epoch: 1 -Version: 2.1.12 +Version: 2.2.0 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -317,6 +317,9 @@ make -C test-data/phony-guests fedora.img %changelog +* Tue Jan 10 2023 Richard W.M. Jones - 1:2.2.0-1 +- New stable branch version 2.2.0 + * Fri Jan 06 2023 Richard W.M. Jones - 1:2.1.12-1 - New upstream development version 2.1.12 - Add release notes for future virt-v2v 2.2 From dcd10a79fda9f52c09ce7ce7c11268d99e300953 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 10 Jan 2023 15:41:07 +0000 Subject: [PATCH 074/183] Make %check section compatible with RHEL On RHEL, windows.img is created zero sized. Change the test so it checks the image size is > 0 before running the test. --- virt-v2v.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 246f084..08dfd85 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -268,10 +268,12 @@ export LIBGUESTFS_TRACE=1 # The built in tests take a very long time to run under TCG (in Koji), # so just perform a very simple conversion to check things are # working. -make -C test-data/phony-guests windows.img -./run virt-v2v -v -x -i disk test-data/phony-guests/windows.img -o null -make -C test-data/phony-guests fedora.img -./run virt-v2v -v -x -i disk test-data/phony-guests/fedora.img -o null +for f in windows.img fedora.img; do + make -C test-data/phony-guests $f + if -s test-data/phony-guests/$f; then + ./run virt-v2v -v -x -i disk test-data/phony-guests/$f -o null + fi +done %endif From 8d307c79fbe6049c3eed022a29a0ae1b178e12a6 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 17 Jan 2023 10:47:10 +0000 Subject: [PATCH 075/183] New development branch version 2.3.1 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 511b99b..2bed168 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.2.0.tar.gz) = 8251d8b232cc93d2ebd8a9d21d6807795559928c557a34dbc84a72473f548df85268521b7a803ef26b3abe2ef21170ab8d8d923a99d5228b761586d43bebb81f -SHA512 (virt-v2v-2.2.0.tar.gz.sig) = 40ceb183c48d673dcd2a42b394ade98753f5cb2abc6978c7ba33c461dee77c4b1c461cce55fa188d594297c47e9d8cff9d01e8eabd63fdc2eadeea65327156c2 +SHA512 (virt-v2v-2.3.1.tar.gz) = 7e5737a0a47096377db190c25dcc1b5640ee54675060f1627e8464ff8a11198adffa6c87fabc70ffeca89c04e6180ab5b1a66e2ff185afdb1c6e24181a8ea1c5 +SHA512 (virt-v2v-2.3.1.tar.gz.sig) = b686102f851cc415b91c6fbc9cf0ff623646cb6db9aef736451e6ac2f5f160076b73baa52d2ad2db1af32612b350375a3d64b63b181b7eaaebc7a9984c07e3ad diff --git a/virt-v2v.spec b/virt-v2v.spec index 08dfd85..c8c5058 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -11,11 +11,11 @@ %endif # The source directory. -%global source_directory 2.2-stable +%global source_directory 2.3-development Name: virt-v2v Epoch: 1 -Version: 2.2.0 +Version: 2.3.1 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -319,6 +319,9 @@ done %changelog +* Tue Jan 17 2023 Richard W.M. Jones - 1:2.3.1-1 +- New development branch version 2.3.1 + * Tue Jan 10 2023 Richard W.M. Jones - 1:2.2.0-1 - New stable branch version 2.2.0 From 367ef1d16e2c65c7a993933a67867c58a62406ac Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 19 Jan 2023 11:09:07 +0000 Subject: [PATCH 076/183] New development branch version 2.3.2 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 2bed168..9e6470d 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.1.tar.gz) = 7e5737a0a47096377db190c25dcc1b5640ee54675060f1627e8464ff8a11198adffa6c87fabc70ffeca89c04e6180ab5b1a66e2ff185afdb1c6e24181a8ea1c5 -SHA512 (virt-v2v-2.3.1.tar.gz.sig) = b686102f851cc415b91c6fbc9cf0ff623646cb6db9aef736451e6ac2f5f160076b73baa52d2ad2db1af32612b350375a3d64b63b181b7eaaebc7a9984c07e3ad +SHA512 (virt-v2v-2.3.2.tar.gz) = 69773079df7266b09074919c67be47d563512d71f1296ec2f1894f4608dd7d1e8781331a8b8ecd5f77a08408433c00924e9c25810d79b253955ac13ef10b48c5 +SHA512 (virt-v2v-2.3.2.tar.gz.sig) = f1eb6ee115873ee98c292a8768f17c1a5ce4d83b02e476f1bdb33093b6e375193621ad74ea484a224c674b66b58c5f257df77104a82f3f08d41e104346fb5779 diff --git a/virt-v2v.spec b/virt-v2v.spec index c8c5058..8d99004 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.3.1 +Version: 2.3.2 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -319,6 +319,9 @@ done %changelog +* Thu Jan 19 2023 Richard W.M. Jones - 1:2.3.2-1 +- New development branch version 2.3.2 + * Tue Jan 17 2023 Richard W.M. Jones - 1:2.3.1-1 - New development branch version 2.3.1 From 1f21f51f2e3a4e8e1ec8bba0cfee6a970967ed52 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 24 Jan 2023 18:32:38 +0000 Subject: [PATCH 077/183] Rebuild OCaml packages for F38 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 8d99004..1721c9c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -16,7 +16,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -319,6 +319,9 @@ done %changelog +* Tue Jan 24 2023 Richard W.M. Jones - 1:2.3.2-2 +- Rebuild OCaml packages for F38 + * Thu Jan 19 2023 Richard W.M. Jones - 1:2.3.2-1 - New development branch version 2.3.2 From 32e3130e0f5790f8d6e4f2a4387c67ff471857f2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 6 Feb 2023 14:54:20 +0000 Subject: [PATCH 078/183] New development branch version 2.3.3 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 9e6470d..158e29b 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.2.tar.gz) = 69773079df7266b09074919c67be47d563512d71f1296ec2f1894f4608dd7d1e8781331a8b8ecd5f77a08408433c00924e9c25810d79b253955ac13ef10b48c5 -SHA512 (virt-v2v-2.3.2.tar.gz.sig) = f1eb6ee115873ee98c292a8768f17c1a5ce4d83b02e476f1bdb33093b6e375193621ad74ea484a224c674b66b58c5f257df77104a82f3f08d41e104346fb5779 +SHA512 (virt-v2v-2.3.3.tar.gz) = 7ad5e64c2a1ad96e8d2cd0cfaa5844042c09632cee1ab28217a7eaf51e5449172beb41b9b46fa1e5924256787fe8540786fa16ba62278bf6db5687facf510348 +SHA512 (virt-v2v-2.3.3.tar.gz.sig) = 33cb1fbf3fcf953559ca8410810425a3925e96a87082e37a1f0b6d16ca67a3da0b0b37f3115bf26a3305233d814c3634852c6aabb341c00c88d0ff77161b0e24 diff --git a/virt-v2v.spec b/virt-v2v.spec index 1721c9c..4d939d5 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,8 +15,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.3.2 -Release: 2%{?dist} +Version: 2.3.3 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPLv2+ @@ -319,6 +319,9 @@ done %changelog +* Mon Feb 06 2023 Richard W.M. Jones - 1:2.3.3-1 +- New development branch version 2.3.3 + * Tue Jan 24 2023 Richard W.M. Jones - 1:2.3.2-2 - Rebuild OCaml packages for F38 From 0aacc5e2aacee5885f66e4f4342c805b84dc358a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 19 Apr 2023 12:38:25 +0100 Subject: [PATCH 079/183] New development branch version 2.3.4 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 158e29b..495870b 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.3.tar.gz) = 7ad5e64c2a1ad96e8d2cd0cfaa5844042c09632cee1ab28217a7eaf51e5449172beb41b9b46fa1e5924256787fe8540786fa16ba62278bf6db5687facf510348 -SHA512 (virt-v2v-2.3.3.tar.gz.sig) = 33cb1fbf3fcf953559ca8410810425a3925e96a87082e37a1f0b6d16ca67a3da0b0b37f3115bf26a3305233d814c3634852c6aabb341c00c88d0ff77161b0e24 +SHA512 (virt-v2v-2.3.4.tar.gz) = 0ed49b4bcfc17d1ef769eb740fc70f16d1c8a53b0f6135e758bbc7bbad619302ec158db17bba7673bcfcf702c90f324c34135a4fc3221f7324af0b1780d9d75f +SHA512 (virt-v2v-2.3.4.tar.gz.sig) = 6a59411c1a9fa14ee065076d1e96df4071eccbef6415c70889f02234fd3fe4daba854e70b1b7c761d3017f1c8ebf640fa4c1663da35b1c5763e350f1eb6adf10 diff --git a/virt-v2v.spec b/virt-v2v.spec index 4d939d5..f6b2b8c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.3.3 +Version: 2.3.4 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -319,6 +319,9 @@ done %changelog +* Wed Apr 19 2023 Richard W.M. Jones - 1:2.3.4-1 +- New development branch version 2.3.4 + * Mon Feb 06 2023 Richard W.M. Jones - 1:2.3.3-1 - New development branch version 2.3.3 From 686b6069737102c2a0e081163592ccfbeaaa273f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 5 Jun 2023 15:10:20 +0100 Subject: [PATCH 080/183] Migrated to SPDX license --- virt-v2v.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index f6b2b8c..8d5bd80 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -16,10 +16,10 @@ Name: virt-v2v Epoch: 1 Version: 2.3.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM -License: GPLv2+ +License: GPL-2.0-or-later AND LGPL-2.0-or-later URL: https://github.com/libguestfs/virt-v2v Source0: http://download.libguestfs.org/virt-v2v/%{source_directory}/%{name}-%{version}.tar.gz @@ -319,6 +319,9 @@ done %changelog +* Mon Jun 05 2023 Richard W.M. Jones - 1:2.3.4-2 +- Migrated to SPDX license + * Wed Apr 19 2023 Richard W.M. Jones - 1:2.3.4-1 - New development branch version 2.3.4 From 20323cd1bc9ba938d03525205cce6a9567657cf4 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 7 Jun 2023 01:34:10 -0400 Subject: [PATCH 081/183] Fix installation on newer RHEL libguestfs-winsupport is not available in ELN, only RHEL. platform-python was limited to RHEL 8, but was virtually provided by python3 in RHEL 9 for compatibility. --- virt-v2v.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 8d5bd80..8cd6f7c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -107,7 +107,7 @@ Requires: guestfs-tools >= 1.49.7-1 # XFS is the default filesystem in Fedora and RHEL. Requires: libguestfs-xfs -%if 0%{?rhel} +%if 0%{?rhel} && ! 0%{?eln} # For Windows conversions on RHEL. Requires: libguestfs-winsupport >= 7.2 %endif @@ -128,7 +128,7 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -%if !0%{?rhel} +%if 0%{?rhel} != 8 Requires: python3 %else Requires: platform-python @@ -321,6 +321,7 @@ done %changelog * Mon Jun 05 2023 Richard W.M. Jones - 1:2.3.4-2 - Migrated to SPDX license +- Fix installation on newer RHEL * Wed Apr 19 2023 Richard W.M. Jones - 1:2.3.4-1 - New development branch version 2.3.4 From 484ddbffba8195998c3e3b9e329247d6377d9917 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 10 Jul 2023 22:52:00 -0600 Subject: [PATCH 082/183] OCaml 5.0.0 rebuild --- virt-v2v-ocaml5.patch | 17 +++++++++++++++++ virt-v2v.spec | 9 +++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 virt-v2v-ocaml5.patch diff --git a/virt-v2v-ocaml5.patch b/virt-v2v-ocaml5.patch new file mode 100644 index 0000000..1ed5a80 --- /dev/null +++ b/virt-v2v-ocaml5.patch @@ -0,0 +1,17 @@ +--- virt-v2v-2.3.4/common/mlstdutils/std_utils.ml.orig 2023-02-20 12:00:29.154785477 -0700 ++++ virt-v2v-2.3.4/common/mlstdutils/std_utils.ml 2023-07-10 09:34:10.295869331 -0600 +@@ -341,12 +341,12 @@ module List = struct + | x::xs, y::ys, z::zs -> (x, y, z) :: combine3 xs ys zs + | _ -> invalid_arg "combine3" + +- let rec assoc_lbl ?(cmp = Pervasives.compare) ~default x = function ++ let rec assoc_lbl ?(cmp = Stdlib.compare) ~default x = function + | [] -> default + | (y, y') :: _ when cmp x y = 0 -> y' + | _ :: ys -> assoc_lbl ~cmp ~default x ys + +- let uniq ?(cmp = Pervasives.compare) xs = ++ let uniq ?(cmp = Stdlib.compare) xs = + let rec loop acc = function + | [] -> acc + | [x] -> x :: acc diff --git a/virt-v2v.spec b/virt-v2v.spec index 8cd6f7c..02a2e8a 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -1,4 +1,3 @@ -%undefine _package_note_flags # If we should verify tarball signature with GPGv2. %global verify_tarball_signature 1 @@ -16,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -32,6 +31,9 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh +# Adapt to OCaml 5.0.0 +Patch0: %{name}-ocaml5.patch + %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather @@ -319,6 +321,9 @@ done %changelog +* Mon Jul 10 2023 Jerry James - 1:2.3.4-3 +- OCaml 5.0.0 rebuild + * Mon Jun 05 2023 Richard W.M. Jones - 1:2.3.4-2 - Migrated to SPDX license - Fix installation on newer RHEL From 6f4ec77358c4c4207cb7d41aebb7c48599c525c6 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 12 Jul 2023 14:00:35 +0100 Subject: [PATCH 083/183] OCaml 5.0 rebuild for Fedora 39 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 02a2e8a..34deebf 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -321,6 +321,9 @@ done %changelog +* Wed Jul 12 2023 Richard W.M. Jones - 1:2.3.4-4 +- OCaml 5.0 rebuild for Fedora 39 + * Mon Jul 10 2023 Jerry James - 1:2.3.4-3 - OCaml 5.0.0 rebuild From 2eb925871d8f44f9d0113be289122eb58b038bf0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 14 Jul 2023 15:13:46 +0100 Subject: [PATCH 084/183] New development branch version 2.3.5 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 495870b..921a9a3 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.4.tar.gz) = 0ed49b4bcfc17d1ef769eb740fc70f16d1c8a53b0f6135e758bbc7bbad619302ec158db17bba7673bcfcf702c90f324c34135a4fc3221f7324af0b1780d9d75f -SHA512 (virt-v2v-2.3.4.tar.gz.sig) = 6a59411c1a9fa14ee065076d1e96df4071eccbef6415c70889f02234fd3fe4daba854e70b1b7c761d3017f1c8ebf640fa4c1663da35b1c5763e350f1eb6adf10 +SHA512 (virt-v2v-2.3.5.tar.gz) = 30829a8e88a773476198f96c7355bcbc715fa95ca2b3be5427de6e1ff1db05e7e22312e7e7d60b4b0e7c556ddd54f517206332b65f8b8649cbb05ec96304373e +SHA512 (virt-v2v-2.3.5.tar.gz.sig) = bab80165cebc9e71387769949123f577d5a587bce8e3a7bf9973a0a9b9bee0b2b4a32a98d73d9de97774edd68098debf6d0a60aec4c529c0b3efdd239eb555d6 diff --git a/virt-v2v.spec b/virt-v2v.spec index 34deebf..9d034ee 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.3.4 -Release: 4%{?dist} +Version: 2.3.5 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -321,6 +321,9 @@ done %changelog +* Fri Jul 14 2023 Richard W.M. Jones - 1:2.3.5-1 +- New development branch version 2.3.5 + * Wed Jul 12 2023 Richard W.M. Jones - 1:2.3.4-4 - OCaml 5.0 rebuild for Fedora 39 From 19b8f91663ffcab93ce369c0ad88a478f2bc63a7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 14 Jul 2023 15:23:16 +0100 Subject: [PATCH 085/183] Remove OCaml 5 patch Equivalent change is now upstream. --- virt-v2v-ocaml5.patch | 17 ----------------- virt-v2v.spec | 5 +---- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 virt-v2v-ocaml5.patch diff --git a/virt-v2v-ocaml5.patch b/virt-v2v-ocaml5.patch deleted file mode 100644 index 1ed5a80..0000000 --- a/virt-v2v-ocaml5.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- virt-v2v-2.3.4/common/mlstdutils/std_utils.ml.orig 2023-02-20 12:00:29.154785477 -0700 -+++ virt-v2v-2.3.4/common/mlstdutils/std_utils.ml 2023-07-10 09:34:10.295869331 -0600 -@@ -341,12 +341,12 @@ module List = struct - | x::xs, y::ys, z::zs -> (x, y, z) :: combine3 xs ys zs - | _ -> invalid_arg "combine3" - -- let rec assoc_lbl ?(cmp = Pervasives.compare) ~default x = function -+ let rec assoc_lbl ?(cmp = Stdlib.compare) ~default x = function - | [] -> default - | (y, y') :: _ when cmp x y = 0 -> y' - | _ :: ys -> assoc_lbl ~cmp ~default x ys - -- let uniq ?(cmp = Pervasives.compare) xs = -+ let uniq ?(cmp = Stdlib.compare) xs = - let rec loop acc = function - | [] -> acc - | [x] -> x :: acc diff --git a/virt-v2v.spec b/virt-v2v.spec index 9d034ee..963e6b5 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ %global patches_touch_autotools %{nil} %else # On RHEL the downstream patches always touch autotools files. -%global patches_touch_autotools 1 +%global patches_touch_autotools %{nil} %endif # The source directory. @@ -31,9 +31,6 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh -# Adapt to OCaml 5.0.0 -Patch0: %{name}-ocaml5.patch - %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather From 53cd9839461dc95f8d8df1150a5ec1cd2d997ecb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jul 2023 17:44:59 +0000 Subject: [PATCH 086/183] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 963e6b5..4dbd440 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -318,6 +318,9 @@ done %changelog +* Sat Jul 22 2023 Fedora Release Engineering - 1:2.3.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Fri Jul 14 2023 Richard W.M. Jones - 1:2.3.5-1 - New development branch version 2.3.5 From 71520a8e8f788f15e4d24003854f5ed15fa78ddc Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 5 Oct 2023 16:34:50 +0100 Subject: [PATCH 087/183] OCaml 5.1 rebuild for Fedora 40 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 4dbd440..421e193 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.5 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -318,6 +318,9 @@ done %changelog +* Thu Oct 05 2023 Richard W.M. Jones - 1:2.3.5-3 +- OCaml 5.1 rebuild for Fedora 40 + * Sat Jul 22 2023 Fedora Release Engineering - 1:2.3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 8f1820aa6f1f715c8b6c1ce5b13dfade2586db06 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 20 Oct 2023 16:49:41 -0400 Subject: [PATCH 088/183] Use mingw-srvany-redistributable srvany provides only mingw32 executables used by virt-v2v. However, by virtue of being installed in the mingw32 directory hierarchy, it is handled as other mingw packages, and ends up pulling in mingw toolchain components which are not needed for running virt-v2v. A new mingw-srvany-redistributable subpackage now provides those binaries outside of the mingw32 paths, avoiding unnecessary mingw dependency detection, and directly into the location where virt-v2v expects them. --- virt-v2v.spec | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 421e193..0f30cf6 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -154,7 +154,7 @@ Requires: nbdkit-rate-filter Requires: nbdkit-retry-filter # For rhsrvany.exe, used to install firstboot scripts in Windows guests. -Requires: mingw32-srvany >= 1.0-13 +Requires: mingw-srvany-redistributable >= 1.1-6 # On RHEL, virtio-win should be used to install virtio drivers # and qemu-ga in converted guests. (RHBZ#1972644) @@ -232,15 +232,6 @@ make V=1 %{?_smp_mflags} # Delete libtool crap. find $RPM_BUILD_ROOT -name '*.la' -delete -# Virt-tools data directory. This contains symlinks to rhsrvany.exe -# and pnp_wait.exe which are satisfied by the dependency on -# mingw32-srvany. -mkdir -p $RPM_BUILD_ROOT%{_datadir}/virt-tools -pushd $RPM_BUILD_ROOT%{_datadir}/virt-tools -ln -sf ../../i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe -ln -sf ../../i686-w64-mingw32/sys-root/mingw/bin/pnp_wait.exe -popd - %if 0%{?rhel} # On RHEL remove virt-v2v-in-place. rm $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place @@ -299,7 +290,6 @@ done %{_mandir}/man1/virt-v2v-release-notes-2.0.1* %{_mandir}/man1/virt-v2v-release-notes-2.2.1* %{_mandir}/man1/virt-v2v-support.1* -%{_datadir}/virt-tools %files bash-completion @@ -318,6 +308,9 @@ done %changelog +* Fri Oct 20 2023 Yaakov Selkowitz - 1:2.3.5-4 +- Use mingw-srvany-redistributable + * Thu Oct 05 2023 Richard W.M. Jones - 1:2.3.5-3 - OCaml 5.1 rebuild for Fedora 40 From 5b1d48a6d91df0dc9832cb2aaf926fda52b5dc3d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Nov 2023 11:25:19 +0000 Subject: [PATCH 089/183] New development branch version 2.3.6 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 921a9a3..3c8ab31 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.5.tar.gz) = 30829a8e88a773476198f96c7355bcbc715fa95ca2b3be5427de6e1ff1db05e7e22312e7e7d60b4b0e7c556ddd54f517206332b65f8b8649cbb05ec96304373e -SHA512 (virt-v2v-2.3.5.tar.gz.sig) = bab80165cebc9e71387769949123f577d5a587bce8e3a7bf9973a0a9b9bee0b2b4a32a98d73d9de97774edd68098debf6d0a60aec4c529c0b3efdd239eb555d6 +SHA512 (virt-v2v-2.3.6.tar.gz) = 214839bd9667dff73eae0cf7dda2f9cb8999654df387c363595e9cbd1eddc6febe73926356dfee26d18ed0f823e1fc21433278428cd083803080635ab5a20eaa +SHA512 (virt-v2v-2.3.6.tar.gz.sig) = b1a0dcff0633231d3edcd5ce46708a2a864e300396290f9dd015552f6a8ac9c5bef0da96d340f313c17f68b35f7f55f2d9db35cb507672b9dc10c85473811aa1 diff --git a/virt-v2v.spec b/virt-v2v.spec index 0f30cf6..57bae9a 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.3.5 -Release: 4%{?dist} +Version: 2.3.6 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -308,6 +308,9 @@ done %changelog +* Thu Nov 02 2023 Richard W.M. Jones - 1:2.3.6-1 +- New development branch version 2.3.6 + * Fri Oct 20 2023 Yaakov Selkowitz - 1:2.3.5-4 - Use mingw-srvany-redistributable From 1b882146a35d63fa4a6ae44a2737d20c243fad02 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 27 Nov 2023 14:38:49 +0000 Subject: [PATCH 090/183] Fix build for libxml2 2.12.1 --- 0001-common-Update-submodule.patch | 28 ++++++++++++++++++++++++++++ virt-v2v.spec | 7 ++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0001-common-Update-submodule.patch diff --git a/0001-common-Update-submodule.patch b/0001-common-Update-submodule.patch new file mode 100644 index 0000000..4a2c17e --- /dev/null +++ b/0001-common-Update-submodule.patch @@ -0,0 +1,28 @@ +From ef769cb91b54a6d4f1309518d7048b2c46559cc8 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Mon, 27 Nov 2023 14:08:01 +0000 +Subject: [PATCH] common: Update submodule + +Pick up this commit required by libxml2 2.12.1: + + mlxml: Include for xmlReadMemory +--- + common | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Submodule common e711121607..6185aa8431: +diff --git a/common/mlxml/xml-c.c b/common/mlxml/xml-c.c +index 715c3bb..e024bd8 100644 +--- a/common/mlxml/xml-c.c ++++ b/common/mlxml/xml-c.c +@@ -34,6 +34,7 @@ + #include + #include + ++#include + #include + #include + #include +-- +2.42.0 + diff --git a/virt-v2v.spec b/virt-v2v.spec index 57bae9a..c1680c9 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -48,6 +48,8 @@ ExcludeArch: %{ix86} ExclusiveArch: x86_64 %endif +Patch: 0001-common-Update-submodule.patch + %if 0%{patches_touch_autotools} BuildRequires: autoconf, automake, libtool %endif @@ -308,6 +310,9 @@ done %changelog +* Mon Nov 27 2023 Richard W.M. Jones - 1:2.3.6-2 +- Fix build for libxml2 2.12.1 + * Thu Nov 02 2023 Richard W.M. Jones - 1:2.3.6-1 - New development branch version 2.3.6 From 3777fa33c6449e38d33d78ca05480f5346ab8889 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 9 Dec 2023 11:51:02 +0000 Subject: [PATCH 091/183] New development branch version 2.3.7 --- 0001-common-Update-submodule.patch | 28 ---------------------------- sources | 4 ++-- virt-v2v.spec | 9 +++++---- 3 files changed, 7 insertions(+), 34 deletions(-) delete mode 100644 0001-common-Update-submodule.patch diff --git a/0001-common-Update-submodule.patch b/0001-common-Update-submodule.patch deleted file mode 100644 index 4a2c17e..0000000 --- a/0001-common-Update-submodule.patch +++ /dev/null @@ -1,28 +0,0 @@ -From ef769cb91b54a6d4f1309518d7048b2c46559cc8 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Mon, 27 Nov 2023 14:08:01 +0000 -Subject: [PATCH] common: Update submodule - -Pick up this commit required by libxml2 2.12.1: - - mlxml: Include for xmlReadMemory ---- - common | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Submodule common e711121607..6185aa8431: -diff --git a/common/mlxml/xml-c.c b/common/mlxml/xml-c.c -index 715c3bb..e024bd8 100644 ---- a/common/mlxml/xml-c.c -+++ b/common/mlxml/xml-c.c -@@ -34,6 +34,7 @@ - #include - #include - -+#include - #include - #include - #include --- -2.42.0 - diff --git a/sources b/sources index 3c8ab31..fc0a319 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.6.tar.gz) = 214839bd9667dff73eae0cf7dda2f9cb8999654df387c363595e9cbd1eddc6febe73926356dfee26d18ed0f823e1fc21433278428cd083803080635ab5a20eaa -SHA512 (virt-v2v-2.3.6.tar.gz.sig) = b1a0dcff0633231d3edcd5ce46708a2a864e300396290f9dd015552f6a8ac9c5bef0da96d340f313c17f68b35f7f55f2d9db35cb507672b9dc10c85473811aa1 +SHA512 (virt-v2v-2.3.7.tar.gz) = 7b17319c2dbcb594a98d0f2b0605ea9fd6cd6c01fd9cc21f8964b438a280d2c39cb5badb7d992e65d3823a44c8d662a00bdf8b7922991c078cd34d5943db4c1f +SHA512 (virt-v2v-2.3.7.tar.gz.sig) = 2b66218532f8e85804b4cdf059cabb9b64b4619c4c238cca41682581af073fba2389ebad6874ad756c0d382f09e1ca7bc4b89441f7c298406c44ea2a6729dc25 diff --git a/virt-v2v.spec b/virt-v2v.spec index c1680c9..0971e40 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.3.6 -Release: 2%{?dist} +Version: 2.3.7 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -48,8 +48,6 @@ ExcludeArch: %{ix86} ExclusiveArch: x86_64 %endif -Patch: 0001-common-Update-submodule.patch - %if 0%{patches_touch_autotools} BuildRequires: autoconf, automake, libtool %endif @@ -310,6 +308,9 @@ done %changelog +* Sat Dec 09 2023 Richard W.M. Jones - 1:2.3.7-1 +- New development branch version 2.3.7 + * Mon Nov 27 2023 Richard W.M. Jones - 1:2.3.6-2 - Fix build for libxml2 2.12.1 From 04f4df603174d1b4c1fed8de94709710d3aaad37 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 9 Dec 2023 13:10:44 +0000 Subject: [PATCH 092/183] Fixes a crash in virt-v2v and virt-customize --- 0001-Update-common-submodule.patch | 29 +++++++++++++++++++++++++++++ virt-v2v.spec | 7 +++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 0001-Update-common-submodule.patch diff --git a/0001-Update-common-submodule.patch b/0001-Update-common-submodule.patch new file mode 100644 index 0000000..4915cc8 --- /dev/null +++ b/0001-Update-common-submodule.patch @@ -0,0 +1,29 @@ +From 056401c8c6db33536c477078008649054f347a9c Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Sat, 9 Dec 2023 12:59:13 +0000 +Subject: [PATCH] Update common submodule + +Pick up this bug fix: + + mltools/libosinfo-c.c: Fix off-by-one error +--- + common | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Submodule common cd29aee912..0dba002c20: +diff --git a/common/mltools/libosinfo-c.c b/common/mltools/libosinfo-c.c +index 93357fd..a48c898 100644 +--- a/common/mltools/libosinfo-c.c ++++ b/common/mltools/libosinfo-c.c +@@ -296,7 +296,7 @@ v2v_osinfo_os_get_device_drivers (value osv) + + driver = OSINFO_DEVICE_DRIVER(osinfo_list_get_nth (OSINFO_LIST(list), i)); + +- vi = caml_alloc (6, 0); ++ vi = caml_alloc (7, 0); + str = osinfo_device_driver_get_architecture (driver); + copyv = caml_copy_string (str); + Store_field (vi, 0, copyv); +-- +2.43.0 + diff --git a/virt-v2v.spec b/virt-v2v.spec index 0971e40..4f9b7ef 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -31,6 +31,9 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh +# Fixes a crash in virt-v2v and virt-customize +Patch: 0001-Update-common-submodule.patch + %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather @@ -308,7 +311,7 @@ done %changelog -* Sat Dec 09 2023 Richard W.M. Jones - 1:2.3.7-1 +* Sat Dec 09 2023 Richard W.M. Jones - 1:2.3.7-2 - New development branch version 2.3.7 * Mon Nov 27 2023 Richard W.M. Jones - 1:2.3.6-2 From ba6123fc75adbfd1d44ac6b9d0ab299ab5975a33 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 11 Dec 2023 17:19:35 +0000 Subject: [PATCH 093/183] Fix broken tests 'if test -s ...' Thanks: Laszlo Ersek --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 4f9b7ef..f82a763 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -263,7 +263,7 @@ export LIBGUESTFS_TRACE=1 # working. for f in windows.img fedora.img; do make -C test-data/phony-guests $f - if -s test-data/phony-guests/$f; then + if test -s test-data/phony-guests/$f; then ./run virt-v2v -v -x -i disk test-data/phony-guests/$f -o null fi done From df9fe268dbf9a4363c4ef37b1e1675adc7a8fb88 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 12 Dec 2023 16:05:37 +0000 Subject: [PATCH 094/183] OCaml 5.1.1 rebuild for Fedora 40 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index f82a763..218caa0 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -311,6 +311,9 @@ done %changelog +* Tue Dec 12 2023 Richard W.M. Jones - 1:2.3.7-3 +- OCaml 5.1.1 rebuild for Fedora 40 + * Sat Dec 09 2023 Richard W.M. Jones - 1:2.3.7-2 - New development branch version 2.3.7 From a6ffe0a668b44a95725c3bae07a3a1b47605b2b5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 14 Dec 2023 11:28:46 +0000 Subject: [PATCH 095/183] BR mingw-srvany-redistributable This is needed to run the limited test, else you will see: virt-v2v: error: One of rhsrvany.exe or pvvxsvc.exe is missing in /usr/share/virt-tools. One of them is required in order to install Windows firstboot scripts. You can get one by building rhsrvany (https://github.com/rwmjones/rhsrvany) I'm not quite sure why this error has cropped up now. Perhaps pulled in by an indirect dependency before? --- virt-v2v.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index 218caa0..26debda 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -95,6 +95,7 @@ BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin BuildRequires: nbdkit-python-plugin BuildRequires: nbdkit-cow-filter >= 1.28.3-1.el9 +BuildRequires: mingw-srvany-redistributable >= 1.1-6 %ifarch x86_64 BuildRequires: glibc-static %endif From 6f1854e2fb0623603b2c0f9a92d1ba71ff4dd2f5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 18 Dec 2023 15:33:44 +0000 Subject: [PATCH 096/183] OCaml 5.1.1 + s390x code gen fix for Fedora 40 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 26debda..8d4532f 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.3.7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -312,6 +312,9 @@ done %changelog +* Mon Dec 18 2023 Richard W.M. Jones - 1:2.3.7-4 +- OCaml 5.1.1 + s390x code gen fix for Fedora 40 + * Tue Dec 12 2023 Richard W.M. Jones - 1:2.3.7-3 - OCaml 5.1.1 rebuild for Fedora 40 From 354d96158433508e6c51d7a907c90ef55b51d293 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 19 Dec 2023 15:51:14 +0000 Subject: [PATCH 097/183] New development branch version 2.3.8 --- 0001-Update-common-submodule.patch | 29 ----------------------------- sources | 4 ++-- virt-v2v.spec | 10 +++++----- 3 files changed, 7 insertions(+), 36 deletions(-) delete mode 100644 0001-Update-common-submodule.patch diff --git a/0001-Update-common-submodule.patch b/0001-Update-common-submodule.patch deleted file mode 100644 index 4915cc8..0000000 --- a/0001-Update-common-submodule.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 056401c8c6db33536c477078008649054f347a9c Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Sat, 9 Dec 2023 12:59:13 +0000 -Subject: [PATCH] Update common submodule - -Pick up this bug fix: - - mltools/libosinfo-c.c: Fix off-by-one error ---- - common | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Submodule common cd29aee912..0dba002c20: -diff --git a/common/mltools/libosinfo-c.c b/common/mltools/libosinfo-c.c -index 93357fd..a48c898 100644 ---- a/common/mltools/libosinfo-c.c -+++ b/common/mltools/libosinfo-c.c -@@ -296,7 +296,7 @@ v2v_osinfo_os_get_device_drivers (value osv) - - driver = OSINFO_DEVICE_DRIVER(osinfo_list_get_nth (OSINFO_LIST(list), i)); - -- vi = caml_alloc (6, 0); -+ vi = caml_alloc (7, 0); - str = osinfo_device_driver_get_architecture (driver); - copyv = caml_copy_string (str); - Store_field (vi, 0, copyv); --- -2.43.0 - diff --git a/sources b/sources index fc0a319..ced2dc0 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.7.tar.gz) = 7b17319c2dbcb594a98d0f2b0605ea9fd6cd6c01fd9cc21f8964b438a280d2c39cb5badb7d992e65d3823a44c8d662a00bdf8b7922991c078cd34d5943db4c1f -SHA512 (virt-v2v-2.3.7.tar.gz.sig) = 2b66218532f8e85804b4cdf059cabb9b64b4619c4c238cca41682581af073fba2389ebad6874ad756c0d382f09e1ca7bc4b89441f7c298406c44ea2a6729dc25 +SHA512 (virt-v2v-2.3.8.tar.gz) = b5ac52131f7aeee5dbe33861081100ae5de0e39bde138b57a75dd5f0351881bffbcbca86558ee0f103f9839d758908740908dcdb37831f6d39c82422b5188352 +SHA512 (virt-v2v-2.3.8.tar.gz.sig) = 6a31e54a3689d294c1de4111e4a153179255eebc7ff43769b8e38938f45311e911976e7cfdd664a1ca16a71b9788c6fd004dbe5585509948ce9dc078bd28e263 diff --git a/virt-v2v.spec b/virt-v2v.spec index 8d4532f..a553d13 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.3.7 -Release: 4%{?dist} +Version: 2.3.8 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -31,9 +31,6 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh -# Fixes a crash in virt-v2v and virt-customize -Patch: 0001-Update-common-submodule.patch - %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather @@ -312,6 +309,9 @@ done %changelog +* Tue Dec 19 2023 Richard W.M. Jones - 1:2.3.8-1 +- New development branch version 2.3.8 + * Mon Dec 18 2023 Richard W.M. Jones - 1:2.3.7-4 - OCaml 5.1.1 + s390x code gen fix for Fedora 40 From 557617d39a5060d0d6aab3939e54adaecf9aaf81 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 4 Jan 2024 18:02:07 +0000 Subject: [PATCH 098/183] New stable branch version 2.4.0 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index ced2dc0..cfd35cf 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.3.8.tar.gz) = b5ac52131f7aeee5dbe33861081100ae5de0e39bde138b57a75dd5f0351881bffbcbca86558ee0f103f9839d758908740908dcdb37831f6d39c82422b5188352 -SHA512 (virt-v2v-2.3.8.tar.gz.sig) = 6a31e54a3689d294c1de4111e4a153179255eebc7ff43769b8e38938f45311e911976e7cfdd664a1ca16a71b9788c6fd004dbe5585509948ce9dc078bd28e263 +SHA512 (virt-v2v-2.4.0.tar.gz) = c59c613bcc2474c1efec6a68401d3c1dd4dd6f0e8bfdbc0f77ff2fff2191982c35d14944ca1727aee31e111361ab498e0c0e0d840099a340d05603a36f6e6639 +SHA512 (virt-v2v-2.4.0.tar.gz.sig) = 4b1bd638f0e5489ed4fe076d0b2d2c7e7a7514bca8a4d44f201253147adfbb2d97a4b9b35f884520c6dfbb94f84733d7a61981fbba5e2ecc636eb5d64635658c diff --git a/virt-v2v.spec b/virt-v2v.spec index a553d13..47de2f2 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -10,11 +10,11 @@ %endif # The source directory. -%global source_directory 2.3-development +%global source_directory 2.4-stable Name: virt-v2v Epoch: 1 -Version: 2.3.8 +Version: 2.4.0 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -309,6 +309,9 @@ done %changelog +* Thu Jan 4 2024 Richard W.M. Jones - 1:2.4.0-1 +- New stable branch version 2.4.0 + * Tue Dec 19 2023 Richard W.M. Jones - 1:2.3.8-1 - New development branch version 2.3.8 From f979570668af2cedadd01a1e7eb91b0a655a4b38 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 4 Jan 2024 18:14:11 +0000 Subject: [PATCH 099/183] Add new virt-v2v-release-notes-2.4(1) man page to %files --- virt-v2v.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index 47de2f2..6b908d3 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -290,6 +290,7 @@ done %{_mandir}/man1/virt-v2v-release-notes-1.42.1* %{_mandir}/man1/virt-v2v-release-notes-2.0.1* %{_mandir}/man1/virt-v2v-release-notes-2.2.1* +%{_mandir}/man1/virt-v2v-release-notes-2.4.1* %{_mandir}/man1/virt-v2v-support.1* From faab6c711a3b183d60b3f6bbd267e8ca3fac8bab Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 18 Jan 2024 17:29:25 +0000 Subject: [PATCH 100/183] New development branch version 2.5.1 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index cfd35cf..52f9962 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.4.0.tar.gz) = c59c613bcc2474c1efec6a68401d3c1dd4dd6f0e8bfdbc0f77ff2fff2191982c35d14944ca1727aee31e111361ab498e0c0e0d840099a340d05603a36f6e6639 -SHA512 (virt-v2v-2.4.0.tar.gz.sig) = 4b1bd638f0e5489ed4fe076d0b2d2c7e7a7514bca8a4d44f201253147adfbb2d97a4b9b35f884520c6dfbb94f84733d7a61981fbba5e2ecc636eb5d64635658c +SHA512 (virt-v2v-2.5.1.tar.gz) = 999fdbae02007bcaf0e6e5d5d919cdcd2114b906bce1da9df427ffca65376ee7ca9455dbe50fa1449eabaa7cbae445dcd7e6c757ddca068fa0487797f353af15 +SHA512 (virt-v2v-2.5.1.tar.gz.sig) = 8988bc47aadb1b7aa10888e16ea3d19d39ce40167ebe89f2be7503fb17f6d002716b3d516469ea0b8584d6d7f735ba666fad9925c5de0bef82b634d57227a2c5 diff --git a/virt-v2v.spec b/virt-v2v.spec index 6b908d3..db18d72 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -10,11 +10,11 @@ %endif # The source directory. -%global source_directory 2.4-stable +%global source_directory 2.5-development Name: virt-v2v Epoch: 1 -Version: 2.4.0 +Version: 2.5.1 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -310,6 +310,9 @@ done %changelog +* Thu Jan 18 2024 Richard W.M. Jones - 1:2.5.1-1 +- New development branch version 2.5.1 + * Thu Jan 4 2024 Richard W.M. Jones - 1:2.4.0-1 - New stable branch version 2.4.0 From 1dba3b8c1b757d41f9948ee0be87771796abc822 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jan 2024 07:57:58 +0000 Subject: [PATCH 101/183] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index db18d72..8b8d19d 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -310,6 +310,9 @@ done %changelog +* Sat Jan 27 2024 Fedora Release Engineering - 1:2.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Jan 18 2024 Richard W.M. Jones - 1:2.5.1-1 - New development branch version 2.5.1 From 8d27cb1379a7e26812349929a42b4b00b0ce704b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 12 Mar 2024 10:01:12 +0000 Subject: [PATCH 102/183] New development branch version 2.5.2 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 52f9962..f24bd8c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.1.tar.gz) = 999fdbae02007bcaf0e6e5d5d919cdcd2114b906bce1da9df427ffca65376ee7ca9455dbe50fa1449eabaa7cbae445dcd7e6c757ddca068fa0487797f353af15 -SHA512 (virt-v2v-2.5.1.tar.gz.sig) = 8988bc47aadb1b7aa10888e16ea3d19d39ce40167ebe89f2be7503fb17f6d002716b3d516469ea0b8584d6d7f735ba666fad9925c5de0bef82b634d57227a2c5 +SHA512 (virt-v2v-2.5.2.tar.gz) = 2b0eedb58b8e2f6f5550147b4bae0fab2b82e671b711d88cc7f0b43b0e83ed4a6db4218f35b3edbb4d94731602d5bf88045bd371748bff6ec38cca6f85e28cfc +SHA512 (virt-v2v-2.5.2.tar.gz.sig) = 89f5de8b490d01b7c19a0ee29bf2c5d538f4a1067d573e20d889394bae346ce5f0515300bdcaeae1517067dde43410e53e213f5ac413b1d9644b0538df565132 diff --git a/virt-v2v.spec b/virt-v2v.spec index 8b8d19d..d503e43 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -14,8 +14,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.1 -Release: 2%{?dist} +Version: 2.5.2 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -310,6 +310,9 @@ done %changelog +* Tue Mar 12 2024 Richard W.M. Jones - 1:2.5.2-1 +- New development branch version 2.5.2 + * Sat Jan 27 2024 Fedora Release Engineering - 1:2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From db13600d9d85572bdea518e510348f44776d4dd5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 12 Mar 2024 10:10:39 +0000 Subject: [PATCH 103/183] BR bash-completion-devel (new in Rawhide) --- virt-v2v.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index d503e43..2495d8b 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -59,7 +59,7 @@ BuildRequires: ocaml >= 4.04 BuildRequires: libguestfs-devel >= 1:1.49.8-1 BuildRequires: augeas-devel -BuildRequires: bash-completion +BuildRequires: bash-completion, bash-completion-devel BuildRequires: file-devel BuildRequires: gettext-devel BuildRequires: jansson-devel @@ -312,6 +312,7 @@ done %changelog * Tue Mar 12 2024 Richard W.M. Jones - 1:2.5.2-1 - New development branch version 2.5.2 +- BR bash-completion-devel (new in Rawhide) * Sat Jan 27 2024 Fedora Release Engineering - 1:2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From c66f3a4d6857d318f59c39b1942dae87603d0625 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 25 Mar 2024 11:17:03 +0000 Subject: [PATCH 104/183] Use %{bash_completions_dir} macro --- virt-v2v.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 2495d8b..2287307 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -15,7 +15,7 @@ Name: virt-v2v Epoch: 1 Version: 2.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -296,7 +296,7 @@ done %files bash-completion %license COPYING -%{_datadir}/bash-completion/completions/virt-v2v +%{bash_completions_dir}/virt-v2v %files man-pages-ja @@ -310,6 +310,9 @@ done %changelog +* Mon Mar 25 2024 Richard W.M. Jones - 1:2.5.2-2 +- Use %%{bash_completions_dir} macro + * Tue Mar 12 2024 Richard W.M. Jones - 1:2.5.2-1 - New development branch version 2.5.2 - BR bash-completion-devel (new in Rawhide) From aae2f9ce73a44ab56b6b69206ab54f9763e27a61 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 11 Apr 2024 17:55:14 +0100 Subject: [PATCH 105/183] Unconditionally run autoreconf --- virt-v2v.spec | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 2287307..c7eb533 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -1,14 +1,6 @@ # If we should verify tarball signature with GPGv2. %global verify_tarball_signature 1 -# If there are patches which touch autotools files, set this to 1. -%if !0%{?rhel} -%global patches_touch_autotools %{nil} -%else -# On RHEL the downstream patches always touch autotools files. -%global patches_touch_autotools %{nil} -%endif - # The source directory. %global source_directory 2.5-development @@ -48,10 +40,7 @@ ExcludeArch: %{ix86} ExclusiveArch: x86_64 %endif -%if 0%{patches_touch_autotools} BuildRequires: autoconf, automake, libtool -%endif - BuildRequires: make BuildRequires: /usr/bin/pod2man BuildRequires: gcc @@ -211,9 +200,7 @@ for %{name}. %endif %autosetup -p1 -%if 0%{patches_touch_autotools} -autoreconf -i -%endif +autoreconf -fiv %build From 3417df1151664b751c424e0bdb55eb5b044204fb Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 11 Apr 2024 17:56:13 +0100 Subject: [PATCH 106/183] New development branch version 2.5.3 --- sources | 4 ++-- virt-v2v.spec | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sources b/sources index f24bd8c..bd7cbc4 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.2.tar.gz) = 2b0eedb58b8e2f6f5550147b4bae0fab2b82e671b711d88cc7f0b43b0e83ed4a6db4218f35b3edbb4d94731602d5bf88045bd371748bff6ec38cca6f85e28cfc -SHA512 (virt-v2v-2.5.2.tar.gz.sig) = 89f5de8b490d01b7c19a0ee29bf2c5d538f4a1067d573e20d889394bae346ce5f0515300bdcaeae1517067dde43410e53e213f5ac413b1d9644b0538df565132 +SHA512 (virt-v2v-2.5.3.tar.gz) = 9f6e0618db7c6e57192ad83aeb9f4978935aa387fabe62e952c5ea473fe88973323fb02d43eac615dca33b88590f8a824a3ea761691d273e6853674974c193da +SHA512 (virt-v2v-2.5.3.tar.gz.sig) = c4fc7f3ff201501bdeda1202268da9fa9d393131762a28f38e0addd6397ba2f92a1c4bf811672cac66b54f095293e90a757786f2aec14c2f73da8035403c6b19 diff --git a/virt-v2v.spec b/virt-v2v.spec index c7eb533..97966eb 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.2 -Release: 2%{?dist} +Version: 2.5.3 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -297,6 +297,10 @@ done %changelog +* Thu Apr 11 2024 Richard W.M. Jones - 1:2.5.3-1 +- New development branch version 2.5.3 +- Unconditionally run autoreconf. + * Mon Mar 25 2024 Richard W.M. Jones - 1:2.5.2-2 - Use %%{bash_completions_dir} macro From 5d4370f7888a20b2b953ad92db59dc4999b4df61 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 12 Apr 2024 22:12:58 +0100 Subject: [PATCH 107/183] Fix bytecode compilation (RHBZ#2274708) --- ...pilation-to-output-whole-exe-instead.patch | 31 +++++++++++++++++++ virt-v2v.spec | 3 ++ 2 files changed, 34 insertions(+) create mode 100644 0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch diff --git a/0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch b/0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch new file mode 100644 index 0000000..382d18f --- /dev/null +++ b/0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch @@ -0,0 +1,31 @@ +From 5eeae696b2c56230d5d5fed5c86b7bf2b3942d4e Mon Sep 17 00:00:00 2001 +From: Jerry James +Date: Fri, 12 Apr 2024 20:11:50 +0100 +Subject: [PATCH] Fix bytecode compilation to output whole exe instead of using + -custom + +These binaries are more resistant to being stripped. + +Reported-by: Ilya Leoshkevich +Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2274708 +(cherry picked from guestfs-tools commit c249fd5caca8f1eed439f83e2bb1af46c8a28a27) +--- + subdir-rules.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/subdir-rules.mk b/subdir-rules.mk +index 78d574a813..e969f357b7 100644 +--- a/subdir-rules.mk ++++ b/subdir-rules.mk +@@ -47,7 +47,7 @@ $(top_builddir)/generator/generator: + + if !HAVE_OCAMLOPT + MLARCHIVE = cma +-LINK_CUSTOM_OCAMLC_ONLY = -custom ++LINK_CUSTOM_OCAMLC_ONLY = -output-complete-exe + BEST = c + else + MLARCHIVE = cmxa +-- +2.44.0 + diff --git a/virt-v2v.spec b/virt-v2v.spec index 97966eb..74d7c31 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -23,6 +23,9 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh +# Fix bytecode compilation (RHBZ#2274708) +Patch: 0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch + %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather From c087ce454eb4da068dc2d6e10c19378b7862a2e9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 12 Apr 2024 22:15:18 +0100 Subject: [PATCH 108/183] Bump release - Fix bytecode compilation (RHBZ#2274708) --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 74d7c31..3e1db3d 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.5.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -300,6 +300,9 @@ done %changelog +* Fri Apr 12 2024 Richard W.M. Jones - 1:2.5.3-2 +- Fix bytecode compilation (RHBZ#2274708) + * Thu Apr 11 2024 Richard W.M. Jones - 1:2.5.3-1 - New development branch version 2.5.3 - Unconditionally run autoreconf. From 6084b1f112d62ae9f28a47e877b755b84a6f2a18 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 16 Apr 2024 13:02:33 +0100 Subject: [PATCH 109/183] gating: Match any version of RHEL --- gating.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gating.yaml b/gating.yaml index 8c4c77a..336c565 100755 --- a/gating.yaml +++ b/gating.yaml @@ -1,6 +1,6 @@ --- !Policy product_versions: - - rhel-9 + - rhel-* decision_context: osci_compose_gate rules: - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} From 8aab9f5c68fc11366152d0b98676d91544c997d8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 25 Apr 2024 15:23:35 +0100 Subject: [PATCH 110/183] New upstream development version 2.5.4 --- ...pilation-to-output-whole-exe-instead.patch | 31 ------------------- sources | 4 +-- virt-v2v.spec | 10 +++--- 3 files changed, 7 insertions(+), 38 deletions(-) delete mode 100644 0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch diff --git a/0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch b/0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch deleted file mode 100644 index 382d18f..0000000 --- a/0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 5eeae696b2c56230d5d5fed5c86b7bf2b3942d4e Mon Sep 17 00:00:00 2001 -From: Jerry James -Date: Fri, 12 Apr 2024 20:11:50 +0100 -Subject: [PATCH] Fix bytecode compilation to output whole exe instead of using - -custom - -These binaries are more resistant to being stripped. - -Reported-by: Ilya Leoshkevich -Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2274708 -(cherry picked from guestfs-tools commit c249fd5caca8f1eed439f83e2bb1af46c8a28a27) ---- - subdir-rules.mk | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/subdir-rules.mk b/subdir-rules.mk -index 78d574a813..e969f357b7 100644 ---- a/subdir-rules.mk -+++ b/subdir-rules.mk -@@ -47,7 +47,7 @@ $(top_builddir)/generator/generator: - - if !HAVE_OCAMLOPT - MLARCHIVE = cma --LINK_CUSTOM_OCAMLC_ONLY = -custom -+LINK_CUSTOM_OCAMLC_ONLY = -output-complete-exe - BEST = c - else - MLARCHIVE = cmxa --- -2.44.0 - diff --git a/sources b/sources index bd7cbc4..9c7906f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.3.tar.gz) = 9f6e0618db7c6e57192ad83aeb9f4978935aa387fabe62e952c5ea473fe88973323fb02d43eac615dca33b88590f8a824a3ea761691d273e6853674974c193da -SHA512 (virt-v2v-2.5.3.tar.gz.sig) = c4fc7f3ff201501bdeda1202268da9fa9d393131762a28f38e0addd6397ba2f92a1c4bf811672cac66b54f095293e90a757786f2aec14c2f73da8035403c6b19 +SHA512 (virt-v2v-2.5.4.tar.gz) = ea872978eefc9feacb6048bb217449804612e5cc68bfbd1f20e5aaf637ca7ca8be92798ba1cbc1d2d6ddbf6a07628e79beea7db1966150675d9fbda9d4361b7a +SHA512 (virt-v2v-2.5.4.tar.gz.sig) = 02780e8ae0bdff8c5b22b52bdd24d5f9dfa2d808b792abf7f8bcaa8c4e2c12ea52d3f2cd2c64b8a261437db69409f9ea1d12ac182dbc96e2bb5441a434ac7f84 diff --git a/virt-v2v.spec b/virt-v2v.spec index 3e1db3d..135d2ac 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.3 -Release: 2%{?dist} +Version: 2.5.4 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -23,9 +23,6 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh -# Fix bytecode compilation (RHBZ#2274708) -Patch: 0001-Fix-bytecode-compilation-to-output-whole-exe-instead.patch - %if !0%{?rhel} # libguestfs hasn't been built on i686 for a while since there is no # kernel built for this architecture any longer and libguestfs rather @@ -300,6 +297,9 @@ done %changelog +* Thu Apr 25 2024 Richard W.M. Jones - 1:2.5.4-1 +- New upstream development version 2.5.4 + * Fri Apr 12 2024 Richard W.M. Jones - 1:2.5.3-2 - Fix bytecode compilation (RHBZ#2274708) From 8b3ce3589904d3514618751ff940c2f93149e599 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 29 May 2024 22:39:22 +0100 Subject: [PATCH 111/183] OCaml 5.2.0 for Fedora 41 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 135d2ac..d4a2486 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.5.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -297,6 +297,9 @@ done %changelog +* Wed May 29 2024 Richard W.M. Jones - 1:2.5.4-2 +- OCaml 5.2.0 for Fedora 41 + * Thu Apr 25 2024 Richard W.M. Jones - 1:2.5.4-1 - New upstream development version 2.5.4 From 5c0984165191c0758931c85b0ff848100a486881 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 19 Jun 2024 17:00:53 +0100 Subject: [PATCH 112/183] OCaml 5.2.0 ppc64le fix --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index d4a2486..d53c07c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.5.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -297,6 +297,9 @@ done %changelog +* Wed Jun 19 2024 Richard W.M. Jones - 1:2.5.4-3 +- OCaml 5.2.0 ppc64le fix + * Wed May 29 2024 Richard W.M. Jones - 1:2.5.4-2 - OCaml 5.2.0 for Fedora 41 From f722fff7336eab416641291ba753b50a9375a836 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 19 Jun 2024 17:55:42 +0100 Subject: [PATCH 113/183] BR glibc-utils Avoids this error with latest glibc: ERROR: ld.so: object 'libc_malloc_debug.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. --- virt-v2v.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index d53c07c..ec9a263 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -74,6 +74,7 @@ BuildRequires: ocaml-ounit-devel %endif # These are for running our limited test. +BuildRequires: glibc-utils BuildRequires: %{_bindir}/qemu-nbd BuildRequires: %{_bindir}/nbdcopy BuildRequires: %{_bindir}/nbdinfo From 41bc8532d0c2dd6ee325d8579db7d231afc46cfe Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 8 Jul 2024 10:38:25 +0100 Subject: [PATCH 114/183] RHEL 10: Remove virt-v2v-input-xen.1* and virt-v2v-output-rhv.1* See: https://issues.redhat.com/browse/RHEL-36712 https://issues.redhat.com/browse/RHEL-37687 --- virt-v2v.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index ec9a263..ba74fbd 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -267,14 +267,16 @@ done %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* %{_mandir}/man1/virt-v2v-input-vmware.1* -%{_mandir}/man1/virt-v2v-input-xen.1* %if !0%{?rhel} +%{_mandir}/man1/virt-v2v-input-xen.1* %{_mandir}/man1/virt-v2v-in-place.1* %endif %{_mandir}/man1/virt-v2v-inspector.1* %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* +%if !0%{?rhel} %{_mandir}/man1/virt-v2v-output-rhv.1* +%endif %{_mandir}/man1/virt-v2v-release-notes-1.42.1* %{_mandir}/man1/virt-v2v-release-notes-2.0.1* %{_mandir}/man1/virt-v2v-release-notes-2.2.1* From 37f4f2f35dc14de187f53abc82c0e0054c315243 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 9 Jul 2024 11:25:24 +0100 Subject: [PATCH 115/183] Install virt-v2v-in-place as unsupported tool on RHEL On RHEL we want to ship virt-v2v-in-place, but it is not supported, so move it to libexec and remove the documentation. Fixes: https://issues.redhat.com/browse/RHEL-40903 --- virt-v2v.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index ba74fbd..3ea2d2c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -222,8 +222,10 @@ make V=1 %{?_smp_mflags} find $RPM_BUILD_ROOT -name '*.la' -delete %if 0%{?rhel} -# On RHEL remove virt-v2v-in-place. -rm $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place +# On RHEL move virt-v2v-in-place to libexec since it is not supported, +# and remove the documentation. +mkdir -p $RPM_BUILD_ROOT%{_libexecdir} +mv $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place $RPM_BUILD_ROOT%{_libexecdir}/ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* %endif @@ -262,6 +264,8 @@ done %{_bindir}/virt-v2v %if !0%{?rhel} %{_bindir}/virt-v2v-in-place +%else +%{_libexecdir}/virt-v2v-in-place %endif %{_bindir}/virt-v2v-inspector %{_mandir}/man1/virt-v2v.1* From 4ca1dbba4b7aba2b9eb4fc93a7a740922524e958 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 11 Jul 2024 12:28:07 +0100 Subject: [PATCH 116/183] New upstream development version 2.5.5 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 9c7906f..d3310de 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.4.tar.gz) = ea872978eefc9feacb6048bb217449804612e5cc68bfbd1f20e5aaf637ca7ca8be92798ba1cbc1d2d6ddbf6a07628e79beea7db1966150675d9fbda9d4361b7a -SHA512 (virt-v2v-2.5.4.tar.gz.sig) = 02780e8ae0bdff8c5b22b52bdd24d5f9dfa2d808b792abf7f8bcaa8c4e2c12ea52d3f2cd2c64b8a261437db69409f9ea1d12ac182dbc96e2bb5441a434ac7f84 +SHA512 (virt-v2v-2.5.5.tar.gz) = 06c8ba67cb604387c5aa371815b0be333378eac2bc3672f6f5c61d6914ed93b49d72355a9e549aca1e3f6d4bf07b357b800aa4e30cd7fe14de05d39f1c4a4007 +SHA512 (virt-v2v-2.5.5.tar.gz.sig) = 74397d5d890018ac604d1f563ec2d2298c34dd01b406a90d8e3db52a0f80696938dd7d93a08c93130780a2b6e9f47c74c9eb9be5b7c7c2e0a4fdf72561d40d08 diff --git a/virt-v2v.spec b/virt-v2v.spec index 3ea2d2c..4a55552 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.4 -Release: 3%{?dist} +Version: 2.5.5 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -304,6 +304,9 @@ done %changelog +* Thu Jul 11 2024 Richard W.M. Jones - 1:2.5.5-1 +- New upstream development version 2.5.5 + * Wed Jun 19 2024 Richard W.M. Jones - 1:2.5.4-3 - OCaml 5.2.0 ppc64le fix From 0a9c525871cdf5b77b751c7f82b82e68effac836 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 11 Jul 2024 12:46:58 +0100 Subject: [PATCH 117/183] Fix basic test on RHEL 10 --- tests/basic-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic-test.sh b/tests/basic-test.sh index 17fc7c3..71929e0 100755 --- a/tests/basic-test.sh +++ b/tests/basic-test.sh @@ -7,7 +7,7 @@ set -x # team using a mix of automated and manual testing. # Fix libvirt. -systemctl restart libvirtd +systemctl restart virtqemud virtsecretd virtstoraged virtnetworkd virt-builder fedora-30 virt-v2v -i disk fedora-30.img -o null From fec9e2b674bb95fbc3c3d37262fda4e8ceb986e8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 17 Jul 2024 11:51:23 +0100 Subject: [PATCH 118/183] Remove python dependencies for RHEL 10 Only used by -o rhv-upload which has been removed. --- virt-v2v.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 4a55552..8341ec4 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -80,7 +80,9 @@ BuildRequires: %{_bindir}/nbdcopy BuildRequires: %{_bindir}/nbdinfo BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin +%if !0%{?rhel} BuildRequires: nbdkit-python-plugin +%endif BuildRequires: nbdkit-cow-filter >= 1.28.3-1.el9 BuildRequires: mingw-srvany-redistributable >= 1.1-6 %ifarch x86_64 @@ -118,10 +120,11 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -%if 0%{?rhel} != 8 +%if !0%{?rhel} Requires: python3 -%else +%elif %{?rhel} == 9 Requires: platform-python +# Python is not needed by RHEL 10. %endif Requires: libnbd >= 1.10 Requires: %{_bindir}/qemu-nbd @@ -132,7 +135,9 @@ Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin Requires: nbdkit-null-plugin +%if !0%{?rhel} Requires: nbdkit-python-plugin +%endif Requires: nbdkit-ssh-plugin %ifarch x86_64 Requires: nbdkit-vddk-plugin From 6b78c8afd5070c21cec3ccac88956f3ad6b23249 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 08:53:08 +0000 Subject: [PATCH 119/183] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 8341ec4..3ce3f15 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.5.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -309,6 +309,9 @@ done %changelog +* Sat Jul 20 2024 Fedora Release Engineering - 1:2.5.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Thu Jul 11 2024 Richard W.M. Jones - 1:2.5.5-1 - New upstream development version 2.5.5 From c3753c426c7cf96745770819dac1ca52ce138c39 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 22 Jul 2024 15:01:48 +0100 Subject: [PATCH 120/183] Depend on /usr/bin/python3 instead of python3 for -o rhv-upload scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_dependencies Thanks: Miro Hrončok --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 3ce3f15..9061b00 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -121,7 +121,7 @@ Requires: edk2-aarch64 %endif %if !0%{?rhel} -Requires: python3 +Requires: /usr/bin/python3 %elif %{?rhel} == 9 Requires: platform-python # Python is not needed by RHEL 10. From fe16fdb390579f4aff2abd03fcbf7963fb5c8b3c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Jul 2024 17:03:30 +0100 Subject: [PATCH 121/183] New upstream development version 2.5.6 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index d3310de..8cd4356 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.5.tar.gz) = 06c8ba67cb604387c5aa371815b0be333378eac2bc3672f6f5c61d6914ed93b49d72355a9e549aca1e3f6d4bf07b357b800aa4e30cd7fe14de05d39f1c4a4007 -SHA512 (virt-v2v-2.5.5.tar.gz.sig) = 74397d5d890018ac604d1f563ec2d2298c34dd01b406a90d8e3db52a0f80696938dd7d93a08c93130780a2b6e9f47c74c9eb9be5b7c7c2e0a4fdf72561d40d08 +SHA512 (virt-v2v-2.5.6.tar.gz) = 86cc41042518d1ea62627c6fa0605f42dcc397e7ddc3c549bcdc3f54e3703426c14f8b42e102483afb0fad818ff569e1440042c624e9fecf3d04f14233b7a3f5 +SHA512 (virt-v2v-2.5.6.tar.gz.sig) = 39d7fcdb88b1abe325b3f3c2e8bda506fb8ecf41d5adb09e7c6bcd84f881cb73a897c1556735c49e420955ae0cc79614c42930495088d8ae6a3bc0cf39ff93f9 diff --git a/virt-v2v.spec b/virt-v2v.spec index 9061b00..fbd233b 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.5 -Release: 2%{?dist} +Version: 2.5.6 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -309,6 +309,9 @@ done %changelog +* Tue Jul 30 2024 Richard W.M. Jones - 1:2.5.6-1 +- New upstream development version 2.5.6 + * Sat Jul 20 2024 Fedora Release Engineering - 1:2.5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From c7a2f1f49aec901277541c5e26e6b6b1ffcc8c01 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 13 Aug 2024 11:57:34 +0100 Subject: [PATCH 122/183] New upstream development version 2.5.7 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 8cd4356..085af98 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.6.tar.gz) = 86cc41042518d1ea62627c6fa0605f42dcc397e7ddc3c549bcdc3f54e3703426c14f8b42e102483afb0fad818ff569e1440042c624e9fecf3d04f14233b7a3f5 -SHA512 (virt-v2v-2.5.6.tar.gz.sig) = 39d7fcdb88b1abe325b3f3c2e8bda506fb8ecf41d5adb09e7c6bcd84f881cb73a897c1556735c49e420955ae0cc79614c42930495088d8ae6a3bc0cf39ff93f9 +SHA512 (virt-v2v-2.5.7.tar.gz) = a0543d3823e29b08c01490040b608dc49d1710ca15498bcd6e8442ed318d42117d04954b044a9db6c9a87d05db700f8d57ffd0cbac540f070cf855cc78bffe5f +SHA512 (virt-v2v-2.5.7.tar.gz.sig) = f5f4e4e91d79c5852cd421a3af1c2e1d58d832eac96076bc91783944ebc511d4f609d29354096adc5751928248364be57def2aafdb597dd6aa1d16d3a034b4a9 diff --git a/virt-v2v.spec b/virt-v2v.spec index fbd233b..60f55a3 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.6 +Version: 2.5.7 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -309,6 +309,9 @@ done %changelog +* Tue Aug 13 2024 Richard W.M. Jones - 1:2.5.7-1 +- New upstream development version 2.5.7 + * Tue Jul 30 2024 Richard W.M. Jones - 1:2.5.6-1 - New upstream development version 2.5.6 From 8935660aa2368d661fc0694970dc84e2c552796b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 20 Aug 2024 12:19:25 +0100 Subject: [PATCH 123/183] New upstream development version 2.5.8 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 085af98..9789f5b 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.7.tar.gz) = a0543d3823e29b08c01490040b608dc49d1710ca15498bcd6e8442ed318d42117d04954b044a9db6c9a87d05db700f8d57ffd0cbac540f070cf855cc78bffe5f -SHA512 (virt-v2v-2.5.7.tar.gz.sig) = f5f4e4e91d79c5852cd421a3af1c2e1d58d832eac96076bc91783944ebc511d4f609d29354096adc5751928248364be57def2aafdb597dd6aa1d16d3a034b4a9 +SHA512 (virt-v2v-2.5.8.tar.gz) = 48540aafe029ae61d6cffa5bb949324646561c73d6d4fdcc2662664b9fdf631239a94a768f82097304f047f2b28025c6fecd083d2a53c168c72ddf68733f3b0a +SHA512 (virt-v2v-2.5.8.tar.gz.sig) = afc66be86b8e3234c0a0592df7f2ee2a214c9338c0eed19fa4d56db7d680e0c6b0c1766a0790a152378cce2edc60be7111fa8e027223202974e070b7f7939eac diff --git a/virt-v2v.spec b/virt-v2v.spec index 60f55a3..a4ad46a 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.7 +Version: 2.5.8 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -309,6 +309,9 @@ done %changelog +* Tue Aug 20 2024 Richard W.M. Jones - 1:2.5.8-1 +- New upstream development version 2.5.8 + * Tue Aug 13 2024 Richard W.M. Jones - 1:2.5.7-1 - New upstream development version 2.5.7 From 325d55230c464e058edd559bcb020fa04bbdd1a3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 29 Aug 2024 15:42:16 +0100 Subject: [PATCH 124/183] New upstream development version 2.5.9 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 9789f5b..80b1d9e 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.8.tar.gz) = 48540aafe029ae61d6cffa5bb949324646561c73d6d4fdcc2662664b9fdf631239a94a768f82097304f047f2b28025c6fecd083d2a53c168c72ddf68733f3b0a -SHA512 (virt-v2v-2.5.8.tar.gz.sig) = afc66be86b8e3234c0a0592df7f2ee2a214c9338c0eed19fa4d56db7d680e0c6b0c1766a0790a152378cce2edc60be7111fa8e027223202974e070b7f7939eac +SHA512 (virt-v2v-2.5.9.tar.gz) = 93c557439f69e1ab75ad7caf6bd42e3877aff9454f844dad99d9296bbc2caa45a319ae5688c8f184acd5702cd7e732627591db2ff39292af62a6f61bba76d597 +SHA512 (virt-v2v-2.5.9.tar.gz.sig) = 2d687146ad6d6c3ab9791ac5c064f4f6cfb97209e08a081c51104bf9c3aba5cb9e00689692fd70831caa5c6405b40e5e67b8f4f92ec95200ac3d97dd4c3ce298 diff --git a/virt-v2v.spec b/virt-v2v.spec index a4ad46a..5439ee8 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.8 +Version: 2.5.9 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -309,6 +309,9 @@ done %changelog +* Thu Aug 29 2024 Richard W.M. Jones - 1:2.5.9-1 +- New upstream development version 2.5.9 + * Tue Aug 20 2024 Richard W.M. Jones - 1:2.5.8-1 - New upstream development version 2.5.8 From 0cc7156fdfd6b900d6c6a468f5eab4730a49fdd3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 10 Sep 2024 10:53:46 +0100 Subject: [PATCH 125/183] New upstream development version 2.5.10 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 80b1d9e..86e77c6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.9.tar.gz) = 93c557439f69e1ab75ad7caf6bd42e3877aff9454f844dad99d9296bbc2caa45a319ae5688c8f184acd5702cd7e732627591db2ff39292af62a6f61bba76d597 -SHA512 (virt-v2v-2.5.9.tar.gz.sig) = 2d687146ad6d6c3ab9791ac5c064f4f6cfb97209e08a081c51104bf9c3aba5cb9e00689692fd70831caa5c6405b40e5e67b8f4f92ec95200ac3d97dd4c3ce298 +SHA512 (virt-v2v-2.5.10.tar.gz) = 3dfe32df4c0a552c2e416cf310bc0f5576b6a9e4e8224437a66ae3779b8beaef2bca60db3ca77f4ccf6c2a1266641c3112b2be9ad5f9492de234b69e7c43be6d +SHA512 (virt-v2v-2.5.10.tar.gz.sig) = 74ddedf4b9d999ee0f8b631a684b8edee5ea52f579f779863373b35bf778fc42f4dd07566251a0e748b65b4285c5c3dfe9006935bd7815a78bb0eb6ef8638ef4 diff --git a/virt-v2v.spec b/virt-v2v.spec index 5439ee8..63b3f49 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.9 +Version: 2.5.10 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -309,6 +309,9 @@ done %changelog +* Tue Sep 10 2024 Richard W.M. Jones - 1:2.5.10-1 +- New upstream development version 2.5.10 + * Thu Aug 29 2024 Richard W.M. Jones - 1:2.5.9-1 - New upstream development version 2.5.9 From 90d18ab510a2403cfc634056ca9c17584196d7be Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 10 Sep 2024 23:16:25 -0400 Subject: [PATCH 126/183] Fix ELN build These manpages are excludes in %files, as these features are not supported on RHEL. --- virt-v2v.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index 63b3f49..8c2576f 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -232,6 +232,9 @@ find $RPM_BUILD_ROOT -name '*.la' -delete mkdir -p $RPM_BUILD_ROOT%{_libexecdir} mv $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place $RPM_BUILD_ROOT%{_libexecdir}/ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* +# these are also not supported on RHEL +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-input-xen.1* +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-output-rhv.1* %endif # Find locale files. From ff66613be20c4af9a93e4f9b43a9635d077948de Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 3 Oct 2024 13:22:26 +0100 Subject: [PATCH 127/183] New upstream development version 2.5.11 --- sources | 4 ++-- virt-v2v.spec | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sources b/sources index 86e77c6..4a90e65 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.10.tar.gz) = 3dfe32df4c0a552c2e416cf310bc0f5576b6a9e4e8224437a66ae3779b8beaef2bca60db3ca77f4ccf6c2a1266641c3112b2be9ad5f9492de234b69e7c43be6d -SHA512 (virt-v2v-2.5.10.tar.gz.sig) = 74ddedf4b9d999ee0f8b631a684b8edee5ea52f579f779863373b35bf778fc42f4dd07566251a0e748b65b4285c5c3dfe9006935bd7815a78bb0eb6ef8638ef4 +SHA512 (virt-v2v-2.5.11.tar.gz) = 275529228b6d1cb630ee84053d5c77ee984eb60521d2079ec364a3fa529e77ff628c340de6ad0b1e29b43b06a2004df07e929a3e3f0bd47f7d84d8ca5e803ca5 +SHA512 (virt-v2v-2.5.11.tar.gz.sig) = cc6298fecce15a319756188ea41eabd4177ae16144416aa7ded3dbb0a0bb24611f8f2dc35c5f263163b9050fc2406f427a9004f38f94bddbbdf3750033ba3871 diff --git a/virt-v2v.spec b/virt-v2v.spec index 8c2576f..b21901c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.5.10 +Version: 2.5.11 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -290,9 +290,7 @@ done %{_mandir}/man1/virt-v2v-output-rhv.1* %endif %{_mandir}/man1/virt-v2v-release-notes-1.42.1* -%{_mandir}/man1/virt-v2v-release-notes-2.0.1* -%{_mandir}/man1/virt-v2v-release-notes-2.2.1* -%{_mandir}/man1/virt-v2v-release-notes-2.4.1* +%{_mandir}/man1/virt-v2v-release-notes-2.*.1* %{_mandir}/man1/virt-v2v-support.1* @@ -312,6 +310,9 @@ done %changelog +* Thu Oct 03 2024 Richard W.M. Jones - 1:2.5.11-1 +- New upstream development version 2.5.11 + * Tue Sep 10 2024 Richard W.M. Jones - 1:2.5.10-1 - New upstream development version 2.5.10 From a53ed8e5fc9a76fa7689ea81a22ca660b5d77603 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 8 Oct 2024 15:00:56 +0100 Subject: [PATCH 128/183] New upstream stable version 2.6.0 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 4a90e65..2a2aa81 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.5.11.tar.gz) = 275529228b6d1cb630ee84053d5c77ee984eb60521d2079ec364a3fa529e77ff628c340de6ad0b1e29b43b06a2004df07e929a3e3f0bd47f7d84d8ca5e803ca5 -SHA512 (virt-v2v-2.5.11.tar.gz.sig) = cc6298fecce15a319756188ea41eabd4177ae16144416aa7ded3dbb0a0bb24611f8f2dc35c5f263163b9050fc2406f427a9004f38f94bddbbdf3750033ba3871 +SHA512 (virt-v2v-2.6.0.tar.gz) = bc7ecf99e66bae057eaf5d7c82ca38ded4aa6ef8732544bc7079f2894c9c79542a415fede02cf8c2cb7e83756683457c705f816b1da57e5ca9565350b9376a73 +SHA512 (virt-v2v-2.6.0.tar.gz.sig) = 630166caf41d48ac2efca646611248263e58a4e7e644a7606b647911164a39a449ae3916d05248d48e80925f3f9179b1cfb850001b0f3dd30a48c301d62b11a0 diff --git a/virt-v2v.spec b/virt-v2v.spec index b21901c..9bd1e65 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -2,11 +2,11 @@ %global verify_tarball_signature 1 # The source directory. -%global source_directory 2.5-development +%global source_directory 2.6-stable Name: virt-v2v Epoch: 1 -Version: 2.5.11 +Version: 2.6.0 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -310,6 +310,9 @@ done %changelog +* Tue Oct 08 2024 Richard W.M. Jones - 1:2.6.0-1 +- New upstream stable version 2.6.0 + * Thu Oct 03 2024 Richard W.M. Jones - 1:2.5.11-1 - New upstream development version 2.5.11 From 6fddb7b7d939d6053247e535e3f2b4460fec3eb1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 22 Oct 2024 13:41:23 +0100 Subject: [PATCH 129/183] Rebuild for Jansson 2.14 (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/3PYINSQGKQ4BB25NQUI2A2UCGGLAG5ND/) --- virt-v2v.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 9bd1e65..cc7aa74 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.6.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -310,6 +310,10 @@ done %changelog +* Tue Oct 22 2024 Richard W.M. Jones - 1:2.6.0-2 +- Rebuild for Jansson 2.14 + (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/3PYINSQGKQ4BB25NQUI2A2UCGGLAG5ND/) + * Tue Oct 08 2024 Richard W.M. Jones - 1:2.6.0-1 - New upstream stable version 2.6.0 From c28b7c26fcdafa0c4294311c7ddf59e1cf5206d3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 22 Oct 2024 17:53:22 +0100 Subject: [PATCH 130/183] New upstream development version 2.7.1 Replace jansson with json-c --- sources | 4 ++-- virt-v2v.spec | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/sources b/sources index 2a2aa81..09dd863 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.6.0.tar.gz) = bc7ecf99e66bae057eaf5d7c82ca38ded4aa6ef8732544bc7079f2894c9c79542a415fede02cf8c2cb7e83756683457c705f816b1da57e5ca9565350b9376a73 -SHA512 (virt-v2v-2.6.0.tar.gz.sig) = 630166caf41d48ac2efca646611248263e58a4e7e644a7606b647911164a39a449ae3916d05248d48e80925f3f9179b1cfb850001b0f3dd30a48c301d62b11a0 +SHA512 (virt-v2v-2.7.1.tar.gz) = 11f5528a48208050fda9c64c8aa6dcfd28352e26c96f15059ef66230577e87cae79286dbe035ee5fdf3c43398cba1f94569e11ff3871b26f21e7a6265a4bfa6d +SHA512 (virt-v2v-2.7.1.tar.gz.sig) = a73bce78f116f68565e1288c130c0ea4adc4e1d87174f72fc9aeff747c541afd16404d59d12d0431d50b83a9d0dbe5ff12dddbfed97d2e1d431212a895078cad diff --git a/virt-v2v.spec b/virt-v2v.spec index cc7aa74..641acbf 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -2,12 +2,12 @@ %global verify_tarball_signature 1 # The source directory. -%global source_directory 2.6-stable +%global source_directory 2.7-development Name: virt-v2v Epoch: 1 -Version: 2.6.0 -Release: 2%{?dist} +Version: 2.7.1 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -51,7 +51,7 @@ BuildRequires: augeas-devel BuildRequires: bash-completion, bash-completion-devel BuildRequires: file-devel BuildRequires: gettext-devel -BuildRequires: jansson-devel +BuildRequires: json-c-devel BuildRequires: libnbd-devel BuildRequires: libosinfo-devel BuildRequires: libvirt-daemon-kvm @@ -310,6 +310,10 @@ done %changelog +* Tue Oct 22 2024 Richard W.M. Jones - 1:2.7.1-1 +- New upstream development version 2.7.1 +- Replace jansson with json-c + * Tue Oct 22 2024 Richard W.M. Jones - 1:2.6.0-2 - Rebuild for Jansson 2.14 (https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/3PYINSQGKQ4BB25NQUI2A2UCGGLAG5ND/) From 501cdb20ae8ee363a10c742359b631335e5eb03f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 18 Nov 2024 14:52:32 +0000 Subject: [PATCH 131/183] New upstream development version 2.7.2 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 09dd863..2e52a3d 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.1.tar.gz) = 11f5528a48208050fda9c64c8aa6dcfd28352e26c96f15059ef66230577e87cae79286dbe035ee5fdf3c43398cba1f94569e11ff3871b26f21e7a6265a4bfa6d -SHA512 (virt-v2v-2.7.1.tar.gz.sig) = a73bce78f116f68565e1288c130c0ea4adc4e1d87174f72fc9aeff747c541afd16404d59d12d0431d50b83a9d0dbe5ff12dddbfed97d2e1d431212a895078cad +SHA512 (virt-v2v-2.7.2.tar.gz) = 19e3277af13734462c871db7b6d09f003a326c093dcbb97da19ca575708a21f3735992a9f870cb895f12ccafa3b6ecb3337d9a5fbbe3151df6e2d801d91e89c0 +SHA512 (virt-v2v-2.7.2.tar.gz.sig) = e71a07b5f35a00e917255936743afd9feced3ab6a4ada106ed42d309feca1ef1f7da1476910f041500c28ab12eeb7eaeffe94b6df6d535fcfe6a102ef8bbfab6 diff --git a/virt-v2v.spec b/virt-v2v.spec index 641acbf..d6655ab 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.1 +Version: 2.7.2 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -310,6 +310,9 @@ done %changelog +* Mon Nov 18 2024 Richard W.M. Jones - 1:2.7.2-1 +- New upstream development version 2.7.2 + * Tue Oct 22 2024 Richard W.M. Jones - 1:2.7.1-1 - New upstream development version 2.7.1 - Replace jansson with json-c From 36d6e0b700a1ab296b65934c42646e81be3fbf3b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 2 Dec 2024 18:35:02 +0000 Subject: [PATCH 132/183] New upstream development version 2.7.3 New upstream development version 2.7.3 New upstream development version 2.7.3 New upstream development version 2.7.3 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 2e52a3d..60712b5 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.2.tar.gz) = 19e3277af13734462c871db7b6d09f003a326c093dcbb97da19ca575708a21f3735992a9f870cb895f12ccafa3b6ecb3337d9a5fbbe3151df6e2d801d91e89c0 -SHA512 (virt-v2v-2.7.2.tar.gz.sig) = e71a07b5f35a00e917255936743afd9feced3ab6a4ada106ed42d309feca1ef1f7da1476910f041500c28ab12eeb7eaeffe94b6df6d535fcfe6a102ef8bbfab6 +SHA512 (virt-v2v-2.7.3.tar.gz) = 669717474536fe73c5ed0fdf9598da66f59ef9b3a4795eab3ce670e48027fe5b29236d8c7012921e122df9b1a21a35f98ee6cd7f92f1b64dba34f164a5ed02b3 +SHA512 (virt-v2v-2.7.3.tar.gz.sig) = b2641d21078eae317bfa14f81c830496210bc943929402235357b64938e30d3de187fe7bbee80cc08742883bbb69ee399215a1227123d91960cc9a28f153268d diff --git a/virt-v2v.spec b/virt-v2v.spec index d6655ab..fd8d1f2 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.2 +Version: 2.7.3 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -310,6 +310,9 @@ done %changelog +* Mon Dec 02 2024 Richard W.M. Jones - 1:2.7.3-1 +- New upstream development version 2.7.3 + * Mon Nov 18 2024 Richard W.M. Jones - 1:2.7.2-1 - New upstream development version 2.7.2 From d0673fc50f554aff55cea09110524ed4e8b7ea51 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 9 Dec 2024 17:43:29 +0000 Subject: [PATCH 133/183] New upstream development version 2.7.4 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 60712b5..c15d1c4 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.3.tar.gz) = 669717474536fe73c5ed0fdf9598da66f59ef9b3a4795eab3ce670e48027fe5b29236d8c7012921e122df9b1a21a35f98ee6cd7f92f1b64dba34f164a5ed02b3 -SHA512 (virt-v2v-2.7.3.tar.gz.sig) = b2641d21078eae317bfa14f81c830496210bc943929402235357b64938e30d3de187fe7bbee80cc08742883bbb69ee399215a1227123d91960cc9a28f153268d +SHA512 (virt-v2v-2.7.4.tar.gz) = b59df1d26929ef6ed1e2599e044d3fd6e05df4c37f2854f2c567554918e0b106ffbd535be50b9bc32dbfc9d3fc5feadf157e51d394f5989449f6eb18b0a3d8dc +SHA512 (virt-v2v-2.7.4.tar.gz.sig) = a28b5c6c6ff7599bfb771ee649101745dcfff9b9e51846b7c057764565dbb5c0c80ac22e2167f875df88e466a251f760e951ee7b92672fca6b49c4d3bd8db143 diff --git a/virt-v2v.spec b/virt-v2v.spec index fd8d1f2..c217851 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.3 +Version: 2.7.4 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -310,6 +310,9 @@ done %changelog +* Mon Dec 09 2024 Richard W.M. Jones - 1:2.7.4-1 +- New upstream development version 2.7.4 + * Mon Dec 02 2024 Richard W.M. Jones - 1:2.7.3-1 - New upstream development version 2.7.3 From 0c56c2baacb52f2856745037a3215debf7227fb6 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Fri, 10 Jan 2025 14:40:37 -0700 Subject: [PATCH 134/183] OCaml 5.3.0 rebuild for Fedora 42 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index c217851..2aae3b9 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.7.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -310,6 +310,9 @@ done %changelog +* Fri Jan 10 2025 Jerry James - 1:2.7.4-2 +- OCaml 5.3.0 rebuild for Fedora 42 + * Mon Dec 09 2024 Richard W.M. Jones - 1:2.7.4-1 - New upstream development version 2.7.4 From 5cf65da2df2703100ce661e235cac5e54c1b4d99 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 19 Jan 2025 14:28:22 +0000 Subject: [PATCH 135/183] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 2aae3b9..1838740 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.7.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -310,6 +310,9 @@ done %changelog +* Sun Jan 19 2025 Fedora Release Engineering - 1:2.7.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Jan 10 2025 Jerry James - 1:2.7.4-2 - OCaml 5.3.0 rebuild for Fedora 42 From ec7068338036acf2760cda65ac5dc285d5c42d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Sat, 1 Feb 2025 19:58:09 +0100 Subject: [PATCH 136/183] Add explicit BR: libxcrypt-devel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Esser --- virt-v2v.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 1838740..487daec 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.7.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -56,6 +56,7 @@ BuildRequires: libnbd-devel BuildRequires: libosinfo-devel BuildRequires: libvirt-daemon-kvm BuildRequires: libvirt-devel +BuildRequires: libxcrypt-devel BuildRequires: libxml2-devel BuildRequires: pcre2-devel BuildRequires: perl(Sys::Guestfs) @@ -310,6 +311,9 @@ done %changelog +* Sat Feb 01 2025 Björn Esser - 1:2.7.4-4 +- Add explicit BR: libxcrypt-devel + * Sun Jan 19 2025 Fedora Release Engineering - 1:2.7.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From ea0459111dcd66abd1b10153ddb67d3f0ba57cfb Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 4 Feb 2025 15:12:04 +0000 Subject: [PATCH 137/183] Bump and rebuild (RHBZ#2341511) Move to OCaml 4.08, new baseline version upstream. --- virt-v2v.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 487daec..d8f51d6 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.7.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -44,7 +44,7 @@ BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: /usr/bin/pod2man BuildRequires: gcc -BuildRequires: ocaml >= 4.04 +BuildRequires: ocaml >= 4.08 BuildRequires: libguestfs-devel >= 1:1.49.8-1 BuildRequires: augeas-devel @@ -311,6 +311,9 @@ done %changelog +* Tue Feb 04 2025 Richard W.M. Jones - 1:2.7.4-5 +- Bump and rebuild (RHBZ#2341511) + * Sat Feb 01 2025 Björn Esser - 1:2.7.4-4 - Add explicit BR: libxcrypt-devel From 938ffd31a882d343e64f13864659513b5baefa23 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 5 Feb 2025 15:26:39 +0000 Subject: [PATCH 138/183] New upstream development version 2.7.5 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index c15d1c4..b1d2f7f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.4.tar.gz) = b59df1d26929ef6ed1e2599e044d3fd6e05df4c37f2854f2c567554918e0b106ffbd535be50b9bc32dbfc9d3fc5feadf157e51d394f5989449f6eb18b0a3d8dc -SHA512 (virt-v2v-2.7.4.tar.gz.sig) = a28b5c6c6ff7599bfb771ee649101745dcfff9b9e51846b7c057764565dbb5c0c80ac22e2167f875df88e466a251f760e951ee7b92672fca6b49c4d3bd8db143 +SHA512 (virt-v2v-2.7.5.tar.gz) = e852fcfd1229023f3f5ae3cbfe6a76f8c13400fe2fb70609ebeaa5edb6d87acd0ab4bcc614a24940de18545972a038045cfa03262fca1b85b163d56924d52cac +SHA512 (virt-v2v-2.7.5.tar.gz.sig) = 45cd3c8be8f6bb0e2c7aea42b0d9694d3e2820bdc346faebf368c07e1de8f872c45e5a2fcd852c15e759942d80772fd40bcdf7dd52d3a771d06d62d2ada30a42 diff --git a/virt-v2v.spec b/virt-v2v.spec index d8f51d6..438610f 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.4 -Release: 5%{?dist} +Version: 2.7.5 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -311,6 +311,9 @@ done %changelog +* Wed Feb 05 2025 Richard W.M. Jones - 1:2.7.5-1 +- New upstream development version 2.7.5 + * Tue Feb 04 2025 Richard W.M. Jones - 1:2.7.4-5 - Bump and rebuild (RHBZ#2341511) From 68cc862c48dce79772a43f7ade941e0e58f4e7e7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 13 Feb 2025 09:54:55 +0000 Subject: [PATCH 139/183] New upstream development version 2.7.6 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index b1d2f7f..bd53cbf 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.5.tar.gz) = e852fcfd1229023f3f5ae3cbfe6a76f8c13400fe2fb70609ebeaa5edb6d87acd0ab4bcc614a24940de18545972a038045cfa03262fca1b85b163d56924d52cac -SHA512 (virt-v2v-2.7.5.tar.gz.sig) = 45cd3c8be8f6bb0e2c7aea42b0d9694d3e2820bdc346faebf368c07e1de8f872c45e5a2fcd852c15e759942d80772fd40bcdf7dd52d3a771d06d62d2ada30a42 +SHA512 (virt-v2v-2.7.6.tar.gz) = da70b2ceb0ddf691e2558c17d18f61814027dddaff2b7c83211139fa3690df00abf61c67a3a0e164591f400a47fd8c12f4ef8b97ee3b6b61bbefd156d9c30141 +SHA512 (virt-v2v-2.7.6.tar.gz.sig) = 2ad432847ca5653fede175911cfa873eb5a2479d6ccb317a7104650e8e5ec4a8c930588221f4aef7c4cadc0411a1220b2c51a676c0187276bf20d8e34b50a890 diff --git a/virt-v2v.spec b/virt-v2v.spec index 438610f..bc3dffa 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.5 +Version: 2.7.6 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -311,6 +311,9 @@ done %changelog +* Thu Feb 13 2025 Richard W.M. Jones - 1:2.7.6-1 +- New upstream development version 2.7.6 + * Wed Feb 05 2025 Richard W.M. Jones - 1:2.7.5-1 - New upstream development version 2.7.5 From 1765b12755ea534df67cd326766a1af00a7c4163 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 27 Feb 2025 09:37:21 +0000 Subject: [PATCH 140/183] Bump and rebuild for ocaml-gettext 0.5.0 --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index bc3dffa..fdbaab8 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.7.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -311,6 +311,9 @@ done %changelog +* Thu Feb 27 2025 Richard W.M. Jones - 1:2.7.6-2 +- Bump and rebuild for ocaml-gettext 0.5.0 + * Thu Feb 13 2025 Richard W.M. Jones - 1:2.7.6-1 - New upstream development version 2.7.6 From 27be67588bde942689b5ae0fa70235c5e6ef010f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 27 Feb 2025 18:24:35 +0000 Subject: [PATCH 141/183] New upstream development version 2.7.7 Disable gettext support in Fedora Rawhide --- sources | 4 ++-- virt-v2v.spec | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/sources b/sources index bd53cbf..dcc29aa 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.6.tar.gz) = da70b2ceb0ddf691e2558c17d18f61814027dddaff2b7c83211139fa3690df00abf61c67a3a0e164591f400a47fd8c12f4ef8b97ee3b6b61bbefd156d9c30141 -SHA512 (virt-v2v-2.7.6.tar.gz.sig) = 2ad432847ca5653fede175911cfa873eb5a2479d6ccb317a7104650e8e5ec4a8c930588221f4aef7c4cadc0411a1220b2c51a676c0187276bf20d8e34b50a890 +SHA512 (virt-v2v-2.7.7.tar.gz) = 05f4cedb45c6a3596b4ec4922f018497a4852a1a20b14161068e556003d19ee5cf2737ce408515a9e701df88551008b1a674ecfe37ba547a16dfe6a91b139d7e +SHA512 (virt-v2v-2.7.7.tar.gz.sig) = b9466b9971fcd02fbece5c511a5d3264128d5293ae39607e1d7a5c38358aa84a9cfc62a5a9d60205b4c6b6a4685d887ed13163aa166380866ad478a9fd80187a diff --git a/virt-v2v.spec b/virt-v2v.spec index fdbaab8..23a8cb5 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.6 -Release: 2%{?dist} +Version: 2.7.7 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -69,7 +69,11 @@ BuildRequires: ocaml-libguestfs-devel BuildRequires: ocaml-libvirt-devel BuildRequires: ocaml-libnbd-devel BuildRequires: ocaml-fileutils-devel +%if 0%{?fedora} <= 42 +# Disable ocaml-gettext-devel in Rawhide temporarily. +# https://src.fedoraproject.org/rpms/ocaml-gettext/pull-request/3 BuildRequires: ocaml-gettext-devel +%endif %if !0%{?rhel} BuildRequires: ocaml-ounit-devel %endif @@ -311,6 +315,10 @@ done %changelog +* Thu Feb 27 2025 Richard W.M. Jones - 1:2.7.7-1 +- New upstream development version 2.7.7 +- Disable gettext support in Fedora Rawhide + * Thu Feb 27 2025 Richard W.M. Jones - 1:2.7.6-2 - Bump and rebuild for ocaml-gettext 0.5.0 From dba25ec5fb8761d0825a1dd47e0da8f1b28fa4db Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 11 Mar 2025 15:39:14 +0000 Subject: [PATCH 142/183] New upstream development version 2.7.8 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index dcc29aa..11899f8 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.7.tar.gz) = 05f4cedb45c6a3596b4ec4922f018497a4852a1a20b14161068e556003d19ee5cf2737ce408515a9e701df88551008b1a674ecfe37ba547a16dfe6a91b139d7e -SHA512 (virt-v2v-2.7.7.tar.gz.sig) = b9466b9971fcd02fbece5c511a5d3264128d5293ae39607e1d7a5c38358aa84a9cfc62a5a9d60205b4c6b6a4685d887ed13163aa166380866ad478a9fd80187a +SHA512 (virt-v2v-2.7.8.tar.gz) = 0f8696f995f1c7b5816129f9b33bb7ab659eba2dd401fbd103aed253bccc0a061c3d9818bce6c143036df7f2d7b5b03957fda934bfb0d6fe6667cd040d857766 +SHA512 (virt-v2v-2.7.8.tar.gz.sig) = 56884ae3cc470b034fd1fa480a74a132e9467f33c77c15e4a902c0ce05e732f7489203a34ab0cee8079f3a679c2dfc2b2102d14eb99ee4cf5fa1bebb282e933e diff --git a/virt-v2v.spec b/virt-v2v.spec index 23a8cb5..8248270 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.7 +Version: 2.7.8 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -315,6 +315,9 @@ done %changelog +* Tue Mar 11 2025 Richard W.M. Jones - 1:2.7.8-1 +- New upstream development version 2.7.8 + * Thu Feb 27 2025 Richard W.M. Jones - 1:2.7.7-1 - New upstream development version 2.7.7 - Disable gettext support in Fedora Rawhide From bc0707eb3b37df61844865b05a2e8decb971282b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 18 Mar 2025 15:38:43 +0000 Subject: [PATCH 143/183] Fix use of rhel macro With RPM 4.14.3 from SUSE I got this error: error: line 130: Unknown tag: %elif == 9 After correcting %{?rhel} -> 0%{?rhel}, this error appeared instead: error: line 130: Unknown tag: %elif 0 == 9 --- virt-v2v.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 8248270..2f1d8a6 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -127,10 +127,12 @@ Requires: edk2-aarch64 %if !0%{?rhel} Requires: /usr/bin/python3 -%elif %{?rhel} == 9 +%else +%if 0%{?rhel} == 9 Requires: platform-python # Python is not needed by RHEL 10. %endif +%endif Requires: libnbd >= 1.10 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy From fbf3a55ceb2c859ea1609c7e463929eb7a7c3826 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 22 Mar 2025 10:10:33 +0000 Subject: [PATCH 144/183] New upstream development version 2.7.9 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 11899f8..dccc1d5 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.8.tar.gz) = 0f8696f995f1c7b5816129f9b33bb7ab659eba2dd401fbd103aed253bccc0a061c3d9818bce6c143036df7f2d7b5b03957fda934bfb0d6fe6667cd040d857766 -SHA512 (virt-v2v-2.7.8.tar.gz.sig) = 56884ae3cc470b034fd1fa480a74a132e9467f33c77c15e4a902c0ce05e732f7489203a34ab0cee8079f3a679c2dfc2b2102d14eb99ee4cf5fa1bebb282e933e +SHA512 (virt-v2v-2.7.9.tar.gz) = bf52305e06d9119dcb5ceee6d9cf8289c610e222dbd1abb89ef52e78750d5559a3b597ebccf20e9107ccde8f8fa031113c9b877b0e528302cb4f5230df0769cb +SHA512 (virt-v2v-2.7.9.tar.gz.sig) = b26a6a6ca914dd1dc750883127dacffc7f43d46398e8867046854634ed35089e4bb0fcc68cc483d206d63817f5d15833d244f7d172f73e129ac0d5b0d034511c diff --git a/virt-v2v.spec b/virt-v2v.spec index 2f1d8a6..2433598 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.8 +Version: 2.7.9 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -317,6 +317,9 @@ done %changelog +* Sat Mar 22 2025 Richard W.M. Jones - 1:2.7.9-1 +- New upstream development version 2.7.9 + * Tue Mar 11 2025 Richard W.M. Jones - 1:2.7.8-1 - New upstream development version 2.7.8 From f575eed3ef0a89cd575c3c9b616bed3b8a44d297 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 22 Mar 2025 11:14:34 +0000 Subject: [PATCH 145/183] New upstream version 2.7.10 The upstream 2.7.9 tarball contained a mistake that meant it required hivexregedit to build. 2.7.10 fixes this. --- sources | 4 ++-- virt-v2v.spec | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sources b/sources index dccc1d5..05e0263 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.9.tar.gz) = bf52305e06d9119dcb5ceee6d9cf8289c610e222dbd1abb89ef52e78750d5559a3b597ebccf20e9107ccde8f8fa031113c9b877b0e528302cb4f5230df0769cb -SHA512 (virt-v2v-2.7.9.tar.gz.sig) = b26a6a6ca914dd1dc750883127dacffc7f43d46398e8867046854634ed35089e4bb0fcc68cc483d206d63817f5d15833d244f7d172f73e129ac0d5b0d034511c +SHA512 (virt-v2v-2.7.10.tar.gz) = dc45a1af2ee19f8952d84e3d4da95993c6cfe45e488df4160e87bae702ef970a0d752a85cdd90a9c6a0a350708f3f16f2658eacb9820810a14da989d4b773926 +SHA512 (virt-v2v-2.7.10.tar.gz.sig) = 4b3defa5619d8a212a5c0f62a41f2a88256acb115721b36b576ff24d9503c522a7f3bcaa34c16505bda7e1a42959cd40dcc0fb05ee43364647487f629d636e13 diff --git a/virt-v2v.spec b/virt-v2v.spec index 2433598..817ee96 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.9 +Version: 2.7.10 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -317,8 +317,8 @@ done %changelog -* Sat Mar 22 2025 Richard W.M. Jones - 1:2.7.9-1 -- New upstream development version 2.7.9 +* Sat Mar 22 2025 Richard W.M. Jones - 1:2.7.10-1 +- New upstream development version 2.7.10 * Tue Mar 11 2025 Richard W.M. Jones - 1:2.7.8-1 - New upstream development version 2.7.8 From 87a7e3cd66dbffc6d86f13d0313228a983375258 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 3 Apr 2025 09:47:17 +0100 Subject: [PATCH 146/183] Enable ocaml-gettext again --- virt-v2v.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 817ee96..a82065b 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.7.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -69,11 +69,7 @@ BuildRequires: ocaml-libguestfs-devel BuildRequires: ocaml-libvirt-devel BuildRequires: ocaml-libnbd-devel BuildRequires: ocaml-fileutils-devel -%if 0%{?fedora} <= 42 -# Disable ocaml-gettext-devel in Rawhide temporarily. -# https://src.fedoraproject.org/rpms/ocaml-gettext/pull-request/3 BuildRequires: ocaml-gettext-devel -%endif %if !0%{?rhel} BuildRequires: ocaml-ounit-devel %endif @@ -317,6 +313,9 @@ done %changelog +* Thu Apr 03 2025 Richard W.M. Jones - 1:2.7.10-2 +- Enable ocaml-gettext again + * Sat Mar 22 2025 Richard W.M. Jones - 1:2.7.10-1 - New upstream development version 2.7.10 From e94005d4aef6d2446f2a85c1abbced066ee98e65 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 3 Apr 2025 10:06:44 +0100 Subject: [PATCH 147/183] Remove oUnit --- virt-v2v.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index a82065b..ea26923 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -70,9 +70,6 @@ BuildRequires: ocaml-libvirt-devel BuildRequires: ocaml-libnbd-devel BuildRequires: ocaml-fileutils-devel BuildRequires: ocaml-gettext-devel -%if !0%{?rhel} -BuildRequires: ocaml-ounit-devel -%endif # These are for running our limited test. BuildRequires: glibc-utils From eef1115428363cf4d2ab5129bec30c2c8989adce Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 3 Apr 2025 12:53:44 +0100 Subject: [PATCH 148/183] New upstream development version 2.7.11 --- sources | 4 ++-- virt-v2v.spec | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sources b/sources index 05e0263..7d00cdb 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.10.tar.gz) = dc45a1af2ee19f8952d84e3d4da95993c6cfe45e488df4160e87bae702ef970a0d752a85cdd90a9c6a0a350708f3f16f2658eacb9820810a14da989d4b773926 -SHA512 (virt-v2v-2.7.10.tar.gz.sig) = 4b3defa5619d8a212a5c0f62a41f2a88256acb115721b36b576ff24d9503c522a7f3bcaa34c16505bda7e1a42959cd40dcc0fb05ee43364647487f629d636e13 +SHA512 (virt-v2v-2.7.11.tar.gz) = eb26d09dcd5a47969f1e94ebf26d0f71a3e618ca35c21d093c42b195c30cf6c548001bb04c9d395469bda7bfb7cef396c84e09920dde768fc4b8fcda127abd84 +SHA512 (virt-v2v-2.7.11.tar.gz.sig) = e2d9337e5d487b8542af25b67242e8b2155fede46339c7e8861ed0171bf9e97e93d0eea439acf0132c731d67412ae7237ce3341ae68e8a4f639471b5c8fd665b diff --git a/virt-v2v.spec b/virt-v2v.spec index ea26923..5e38d39 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.10 -Release: 2%{?dist} +Version: 2.7.11 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -310,8 +310,10 @@ done %changelog -* Thu Apr 03 2025 Richard W.M. Jones - 1:2.7.10-2 +* Thu Apr 03 2025 Richard W.M. Jones - 1:2.7.11-1 +- New upstream development version 2.7.11 - Enable ocaml-gettext again +- Remove oUnit * Sat Mar 22 2025 Richard W.M. Jones - 1:2.7.10-1 - New upstream development version 2.7.10 From b9cfcbc1bd184d4622b45823bfb8346a4e0754c0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 15 Apr 2025 17:02:45 +0100 Subject: [PATCH 149/183] New upstream development version 2.7.12 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 7d00cdb..7ea33b9 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.11.tar.gz) = eb26d09dcd5a47969f1e94ebf26d0f71a3e618ca35c21d093c42b195c30cf6c548001bb04c9d395469bda7bfb7cef396c84e09920dde768fc4b8fcda127abd84 -SHA512 (virt-v2v-2.7.11.tar.gz.sig) = e2d9337e5d487b8542af25b67242e8b2155fede46339c7e8861ed0171bf9e97e93d0eea439acf0132c731d67412ae7237ce3341ae68e8a4f639471b5c8fd665b +SHA512 (virt-v2v-2.7.12.tar.gz) = 0de36782f19570ca48610e6d8a277ec6d3ed77f1dbe084bbc485fa21b380282c71311de650eaa2c1bff8f17e2073a9b5fd97bca67d576ba7c83a4b0c0a6d2d91 +SHA512 (virt-v2v-2.7.12.tar.gz.sig) = ec991f3e6444b9fa58a6b645649458c13b3ba76833d75087a0cdb733d628ef5f82ac6ed8ab35a7ec8b0bd4cd086faa62db1877a769c9832a71038c3161ac5531 diff --git a/virt-v2v.spec b/virt-v2v.spec index 5e38d39..ec82921 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.11 +Version: 2.7.12 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -310,6 +310,9 @@ done %changelog +* Tue Apr 15 2025 Richard W.M. Jones - 1:2.7.12-1 +- New upstream development version 2.7.12 + * Thu Apr 03 2025 Richard W.M. Jones - 1:2.7.11-1 - New upstream development version 2.7.11 - Enable ocaml-gettext again From d82a76fce56b7cea77fa05e88f189a29a6daef11 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 29 Apr 2025 16:40:22 +0100 Subject: [PATCH 150/183] New upstream development version 2.7.13 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 7ea33b9..28cdd76 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.12.tar.gz) = 0de36782f19570ca48610e6d8a277ec6d3ed77f1dbe084bbc485fa21b380282c71311de650eaa2c1bff8f17e2073a9b5fd97bca67d576ba7c83a4b0c0a6d2d91 -SHA512 (virt-v2v-2.7.12.tar.gz.sig) = ec991f3e6444b9fa58a6b645649458c13b3ba76833d75087a0cdb733d628ef5f82ac6ed8ab35a7ec8b0bd4cd086faa62db1877a769c9832a71038c3161ac5531 +SHA512 (virt-v2v-2.7.13.tar.gz) = c7dc3cbafcdefa15cf0abd9b13aa2e99705f316725daca93213b7bd913905358106de3a965fbf79edd3248054c85898ee4867abad1e7de062c1e24c54e14823d +SHA512 (virt-v2v-2.7.13.tar.gz.sig) = ac1e107f2c4364791d1bcd0a96c352351178ed0cc80ffd0167f894248607fff3110b6073c4949168df42e32c01a8f1062200d729cc54c2dc2fe40603af0ab0e6 diff --git a/virt-v2v.spec b/virt-v2v.spec index ec82921..67e7ef7 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.12 +Version: 2.7.13 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -143,9 +143,9 @@ Requires: nbdkit-ssh-plugin Requires: nbdkit-vddk-plugin %endif Requires: nbdkit-blocksize-filter -Requires: nbdkit-cacheextents-filter Requires: nbdkit-cow-filter >= 1.28.3-1.el9 Requires: nbdkit-multi-conn-filter +Requires: nbdkit-noextents-filter Requires: nbdkit-rate-filter Requires: nbdkit-retry-filter @@ -310,6 +310,9 @@ done %changelog +* Tue Apr 29 2025 Richard W.M. Jones - 1:2.7.13-1 +- New upstream development version 2.7.13 + * Tue Apr 15 2025 Richard W.M. Jones - 1:2.7.12-1 - New upstream development version 2.7.12 From a9f381c640f661ae0426ea88df5d473897372fda Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 7 May 2025 12:32:57 +0100 Subject: [PATCH 151/183] New upstream development version 2.7.14 New tool: virt-v2v-open --- sources | 4 ++-- virt-v2v.spec | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 28cdd76..b333fe4 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.13.tar.gz) = c7dc3cbafcdefa15cf0abd9b13aa2e99705f316725daca93213b7bd913905358106de3a965fbf79edd3248054c85898ee4867abad1e7de062c1e24c54e14823d -SHA512 (virt-v2v-2.7.13.tar.gz.sig) = ac1e107f2c4364791d1bcd0a96c352351178ed0cc80ffd0167f894248607fff3110b6073c4949168df42e32c01a8f1062200d729cc54c2dc2fe40603af0ab0e6 +SHA512 (virt-v2v-2.7.14.tar.gz) = 9043e55f9072a1a7bd418c9ba3fb6703db853641a8a3cfaca53973be0cd05b7db29626fdaa497019b48f63e4e164e5932ec136a19a30005179c5fb34b59d3c91 +SHA512 (virt-v2v-2.7.14.tar.gz.sig) = 492ab121a8d47cbf5187cd7b1c0e9523897397998a58072685c10944d9440a8c602f6c375c599ebabad3f50048e89957bbefff7da707305c1b4a129e0e7efcdc diff --git a/virt-v2v.spec b/virt-v2v.spec index 67e7ef7..f040b94 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.13 +Version: 2.7.14 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -276,6 +276,7 @@ done %{_libexecdir}/virt-v2v-in-place %endif %{_bindir}/virt-v2v-inspector +%{_bindir}/virt-v2v-open %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* %{_mandir}/man1/virt-v2v-input-vmware.1* @@ -284,6 +285,7 @@ done %{_mandir}/man1/virt-v2v-in-place.1* %endif %{_mandir}/man1/virt-v2v-inspector.1* +%{_mandir}/man1/virt-v2v-open.1* %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* %if !0%{?rhel} @@ -310,6 +312,10 @@ done %changelog +* Wed May 07 2025 Richard W.M. Jones - 1:2.7.14-1 +- New upstream development version 2.7.14 +- New tool: virt-v2v-open + * Tue Apr 29 2025 Richard W.M. Jones - 1:2.7.13-1 - New upstream development version 2.7.13 From 959a529547ea36b42c5415e4314c2d370886b581 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 12 May 2025 17:13:28 +0100 Subject: [PATCH 152/183] New upstream development version 2.7.15 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index b333fe4..f30eb94 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.14.tar.gz) = 9043e55f9072a1a7bd418c9ba3fb6703db853641a8a3cfaca53973be0cd05b7db29626fdaa497019b48f63e4e164e5932ec136a19a30005179c5fb34b59d3c91 -SHA512 (virt-v2v-2.7.14.tar.gz.sig) = 492ab121a8d47cbf5187cd7b1c0e9523897397998a58072685c10944d9440a8c602f6c375c599ebabad3f50048e89957bbefff7da707305c1b4a129e0e7efcdc +SHA512 (virt-v2v-2.7.15.tar.gz) = 3762a48dbb8ebb04e39496a816b6a367b78fb6a1137f5bc7b11c369692f80790afea8a0314a0f2e5dfbd9891f055f3f163e77fb6203029f1b2c17c444e3b7343 +SHA512 (virt-v2v-2.7.15.tar.gz.sig) = 1e9d2bab8a1cb757cd3222c2f77f4ff887fffd3b82ce380ce9b9850f183a31c1686f054b5b48cf0dad286d0fc5c5a12a7fe5a8b708b9f3b1b1ab0227ff35bac3 diff --git a/virt-v2v.spec b/virt-v2v.spec index f040b94..b9a6dd1 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.14 +Version: 2.7.15 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -312,6 +312,9 @@ done %changelog +* Mon May 12 2025 Richard W.M. Jones - 1:2.7.15-1 +- New upstream development version 2.7.15 + * Wed May 07 2025 Richard W.M. Jones - 1:2.7.14-1 - New upstream development version 2.7.14 - New tool: virt-v2v-open From 670ec36027beb4579ccf9426315dddd1609b59b6 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 12 May 2025 18:58:41 +0100 Subject: [PATCH 153/183] Rename virt-v2v-output-rhv(1) -> virt-v2v-output-ovirt(1) --- virt-v2v.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index b9a6dd1..9373baf 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -234,7 +234,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place $RPM_BUILD_ROOT%{_libexecdir}/ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* # these are also not supported on RHEL rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-input-xen.1* -rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-output-rhv.1* +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-output-ovirt.1* %endif # Find locale files. @@ -289,7 +289,7 @@ done %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* %if !0%{?rhel} -%{_mandir}/man1/virt-v2v-output-rhv.1* +%{_mandir}/man1/virt-v2v-output-ovirt.1* %endif %{_mandir}/man1/virt-v2v-release-notes-1.42.1* %{_mandir}/man1/virt-v2v-release-notes-2.*.1* From b04c24f962fdd2e38ab53370c43e4218190c10a4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 19 May 2025 15:08:45 +0100 Subject: [PATCH 154/183] New upstream development version 2.7.16 --- sources | 4 ++-- virt-v2v.spec | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sources b/sources index f30eb94..ddc954d 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.15.tar.gz) = 3762a48dbb8ebb04e39496a816b6a367b78fb6a1137f5bc7b11c369692f80790afea8a0314a0f2e5dfbd9891f055f3f163e77fb6203029f1b2c17c444e3b7343 -SHA512 (virt-v2v-2.7.15.tar.gz.sig) = 1e9d2bab8a1cb757cd3222c2f77f4ff887fffd3b82ce380ce9b9850f183a31c1686f054b5b48cf0dad286d0fc5c5a12a7fe5a8b708b9f3b1b1ab0227ff35bac3 +SHA512 (virt-v2v-2.7.16.tar.gz) = 321512ab4773616d0ff8ad21268617e20097a8f6b44850497fce2d5830727c49aca82b0142eca775447522b1d29edef82afd062cf01c2c84388b0193a73902f8 +SHA512 (virt-v2v-2.7.16.tar.gz.sig) = da589c28af55801305a9fbe2463907a91ec7cf75ba438096ab844065cb7b0ad44208541260047bcd6bdd938230689bc4c685f4ca6cb95fc095eaa660213d9687 diff --git a/virt-v2v.spec b/virt-v2v.spec index 9373baf..a8fe4e7 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.15 +Version: 2.7.16 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -46,7 +46,7 @@ BuildRequires: /usr/bin/pod2man BuildRequires: gcc BuildRequires: ocaml >= 4.08 -BuildRequires: libguestfs-devel >= 1:1.49.8-1 +BuildRequires: libguestfs-devel >= 1:1.55.12-1 BuildRequires: augeas-devel BuildRequires: bash-completion, bash-completion-devel BuildRequires: file-devel @@ -91,7 +91,7 @@ BuildRequires: glibc-static BuildRequires: gnupg2 %endif -Requires: libguestfs%{?_isa} >= 1:1.49.8-1 +Requires: libguestfs%{?_isa} >= 1:1.55.12-1 Requires: guestfs-tools >= 1.49.7-1 # XFS is the default filesystem in Fedora and RHEL. @@ -312,6 +312,9 @@ done %changelog +* Mon May 19 2025 Richard W.M. Jones - 1:2.7.16-1 +- New upstream development version 2.7.16 + * Mon May 12 2025 Richard W.M. Jones - 1:2.7.15-1 - New upstream development version 2.7.15 From 5d3dce2ea50b1b91064304793269d0b5e61460b2 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 19 May 2025 16:43:07 +0100 Subject: [PATCH 155/183] Add temporary workaround for bug in gettext --- virt-v2v.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index a8fe4e7..cd2f164 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -206,6 +206,9 @@ for %{name}. %endif %autosetup -p1 +# ACLOCAL_PATH is temporarily required to work around +# https://bugzilla.redhat.com/show_bug.cgi?id=2366708 +export ACLOCAL_PATH=/usr/share/gettext/m4/ autoreconf -fiv From 0950fa2dd44fbe9bc781a310fe5f64ecf0b34d2e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 3 Jun 2025 16:34:56 +0100 Subject: [PATCH 156/183] New upstream development version 2.7.17 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index ddc954d..4ebab14 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.16.tar.gz) = 321512ab4773616d0ff8ad21268617e20097a8f6b44850497fce2d5830727c49aca82b0142eca775447522b1d29edef82afd062cf01c2c84388b0193a73902f8 -SHA512 (virt-v2v-2.7.16.tar.gz.sig) = da589c28af55801305a9fbe2463907a91ec7cf75ba438096ab844065cb7b0ad44208541260047bcd6bdd938230689bc4c685f4ca6cb95fc095eaa660213d9687 +SHA512 (virt-v2v-2.7.17.tar.gz) = 72b476ca6f0198ddd1ac9f52b834bc6720374b86d52014a3707ba42a0bfdb2098a8a8f76bae6b01c222c1d83c60909e472fc4ad000e057faad337fce49299a15 +SHA512 (virt-v2v-2.7.17.tar.gz.sig) = a196e3e2100777a714c11e9adb7f8bf49bb626b57ec5ec7db9bf459a2942d3523fd4801aacffc0354357b5054fd69e1dfc222c7a254ff6b53f55d8832dea8295 diff --git a/virt-v2v.spec b/virt-v2v.spec index cd2f164..a4b256d 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.7.16 +Version: 2.7.17 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -315,6 +315,9 @@ done %changelog +* Tue Jun 03 2025 Richard W.M. Jones - 1:2.7.17-1 +- New upstream development version 2.7.17 + * Mon May 19 2025 Richard W.M. Jones - 1:2.7.16-1 - New upstream development version 2.7.16 From 689bbb8b49fe0261c4e7bd8717f8630497b3ed55 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 11 Jun 2025 14:47:45 +0100 Subject: [PATCH 157/183] New upstream stable version 2.8.0 Finetune BRs to match upstream. --- sources | 4 ++-- virt-v2v.spec | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/sources b/sources index 4ebab14..87f7673 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.7.17.tar.gz) = 72b476ca6f0198ddd1ac9f52b834bc6720374b86d52014a3707ba42a0bfdb2098a8a8f76bae6b01c222c1d83c60909e472fc4ad000e057faad337fce49299a15 -SHA512 (virt-v2v-2.7.17.tar.gz.sig) = a196e3e2100777a714c11e9adb7f8bf49bb626b57ec5ec7db9bf459a2942d3523fd4801aacffc0354357b5054fd69e1dfc222c7a254ff6b53f55d8832dea8295 +SHA512 (virt-v2v-2.8.0.tar.gz) = b4ceb8694a418fc4c1dd0951ddabe332cbce4e9b75137ab5a186a22d1ad0d1e09476aa51b44fd6da3016d3d45b69b2c0ee40941b5f0a2cf25f3f3df514b3dd25 +SHA512 (virt-v2v-2.8.0.tar.gz.sig) = cd79caaea2edb345f641f6be7ffda3f58322d788aa716cde0654dc7f340f13303c437a7e8dd7507ed01e502257a0b808977e5b93c88b7b26669b9c0ba32753a7 diff --git a/virt-v2v.spec b/virt-v2v.spec index a4b256d..fa206c3 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -2,11 +2,11 @@ %global verify_tarball_signature 1 # The source directory. -%global source_directory 2.7-development +%global source_directory 2.8-stable Name: virt-v2v Epoch: 1 -Version: 2.7.17 +Version: 2.8.0 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -46,13 +46,13 @@ BuildRequires: /usr/bin/pod2man BuildRequires: gcc BuildRequires: ocaml >= 4.08 -BuildRequires: libguestfs-devel >= 1:1.55.12-1 +BuildRequires: libguestfs-devel >= 1:1.56.0-1 BuildRequires: augeas-devel BuildRequires: bash-completion, bash-completion-devel -BuildRequires: file-devel +BuildRequires: file BuildRequires: gettext-devel BuildRequires: json-c-devel -BuildRequires: libnbd-devel +BuildRequires: libnbd-devel >= 1.14 BuildRequires: libosinfo-devel BuildRequires: libvirt-daemon-kvm BuildRequires: libvirt-devel @@ -315,6 +315,10 @@ done %changelog +* Wed Jun 11 2025 Richard W.M. Jones - 1:2.8.0-1 +- New upstream stable version 2.8.0 +- Finetune BRs to match upstream. + * Tue Jun 03 2025 Richard W.M. Jones - 1:2.7.17-1 - New upstream development version 2.7.17 From b406c18f55bc4e608e9d0489a89ea55ca740cdd8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 26 Jun 2025 16:26:03 +0100 Subject: [PATCH 158/183] New upstream stable version 2.8.1 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index 87f7673..55ec579 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.8.0.tar.gz) = b4ceb8694a418fc4c1dd0951ddabe332cbce4e9b75137ab5a186a22d1ad0d1e09476aa51b44fd6da3016d3d45b69b2c0ee40941b5f0a2cf25f3f3df514b3dd25 -SHA512 (virt-v2v-2.8.0.tar.gz.sig) = cd79caaea2edb345f641f6be7ffda3f58322d788aa716cde0654dc7f340f13303c437a7e8dd7507ed01e502257a0b808977e5b93c88b7b26669b9c0ba32753a7 +SHA512 (virt-v2v-2.8.1.tar.gz) = 70da68563e870955ca013e6d55be8f56ad65dde6f84909f06fae7ab928227a566e8949bb90e839fffce2ad4ebc604b2cfa1c5547394c8d1bd092bb95f9e6435c +SHA512 (virt-v2v-2.8.1.tar.gz.sig) = 1236dd21272c53dbafb4cd0ac4177bcf73600ff52ea8949b878793eafb1829a67880043c6e03c2d82c691d986ea8a7daa60508f4ae22345c961a939b3b6a43b0 diff --git a/virt-v2v.spec b/virt-v2v.spec index fa206c3..b2742dc 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.8.0 +Version: 2.8.1 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -315,6 +315,9 @@ done %changelog +* Thu Jun 26 2025 Richard W.M. Jones - 1:2.8.1-1 +- New upstream stable version 2.8.1 + * Wed Jun 11 2025 Richard W.M. Jones - 1:2.8.0-1 - New upstream stable version 2.8.0 - Finetune BRs to match upstream. From d99c2b9523d8fa1b2cbbcb2529ab7df28e20e629 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sat, 12 Jul 2025 16:38:48 -0600 Subject: [PATCH 159/183] Rebuild to fix OCaml dependencies --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index b2742dc..b314f17 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.8.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -315,6 +315,9 @@ done %changelog +* Sat Jul 12 2025 Jerry James - 1:2.8.1-2 +- Rebuild to fix OCaml dependencies + * Thu Jun 26 2025 Richard W.M. Jones - 1:2.8.1-1 - New upstream stable version 2.8.1 From 5b7f91c42fa4271cf98577b8ea7724e96c489048 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 13 Jul 2025 13:03:31 +0100 Subject: [PATCH 160/183] New upstream development version 2.9.1 --- sources | 4 ++-- virt-v2v.spec | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sources b/sources index 55ec579..9c7b034 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.8.1.tar.gz) = 70da68563e870955ca013e6d55be8f56ad65dde6f84909f06fae7ab928227a566e8949bb90e839fffce2ad4ebc604b2cfa1c5547394c8d1bd092bb95f9e6435c -SHA512 (virt-v2v-2.8.1.tar.gz.sig) = 1236dd21272c53dbafb4cd0ac4177bcf73600ff52ea8949b878793eafb1829a67880043c6e03c2d82c691d986ea8a7daa60508f4ae22345c961a939b3b6a43b0 +SHA512 (virt-v2v-2.9.1.tar.gz) = af44995b7bfbfd58263773600f3dcdf1ab4c221fd5a2a3137a63e12f33e8a9d017f6c11e623c8b1e268a23475222b764121fc9cb546639a508a7304305f40ea0 +SHA512 (virt-v2v-2.9.1.tar.gz.sig) = 587d6ae2933a634ee105ff50e2dbcb65105e0e417e57a1a5bae99b55380cff5ff99854eec161bcf7f2b9557529de43b83dab0cf78c57dc6a61a485c9fd23c475 diff --git a/virt-v2v.spec b/virt-v2v.spec index b314f17..52dbe65 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -2,12 +2,12 @@ %global verify_tarball_signature 1 # The source directory. -%global source_directory 2.8-stable +%global source_directory 2.9-development Name: virt-v2v Epoch: 1 -Version: 2.8.1 -Release: 2%{?dist} +Version: 2.9.1 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -315,6 +315,9 @@ done %changelog +* Sun Jul 13 2025 Richard W.M. Jones - 1:2.9.1-1 +- New upstream development version 2.9.1 + * Sat Jul 12 2025 Jerry James - 1:2.8.1-2 - Rebuild to fix OCaml dependencies From 69d7d754bc64df2a3c6127d754620c18db284678 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sun, 13 Jul 2025 13:00:12 -0600 Subject: [PATCH 161/183] Rebuild to fix OCaml dependencies again --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 52dbe65..02ce801 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -315,6 +315,9 @@ done %changelog +* Sun Jul 13 2025 Jerry James - 1:2.9.1-2 +- Rebuild to fix OCaml dependencies again + * Sun Jul 13 2025 Richard W.M. Jones - 1:2.9.1-1 - New upstream development version 2.9.1 From 10c9afdfa8009357ed1944271184773df489e7d8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 16 Jul 2025 13:37:40 +0100 Subject: [PATCH 162/183] New upstream development version 2.9.2 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 9c7b034..0286d0c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.1.tar.gz) = af44995b7bfbfd58263773600f3dcdf1ab4c221fd5a2a3137a63e12f33e8a9d017f6c11e623c8b1e268a23475222b764121fc9cb546639a508a7304305f40ea0 -SHA512 (virt-v2v-2.9.1.tar.gz.sig) = 587d6ae2933a634ee105ff50e2dbcb65105e0e417e57a1a5bae99b55380cff5ff99854eec161bcf7f2b9557529de43b83dab0cf78c57dc6a61a485c9fd23c475 +SHA512 (virt-v2v-2.9.2.tar.gz) = 62e635322322ffefe17639c3eff036a96c2ba2eb7df2276b0d902138070b6b459bc71d757f4c1b2aa71869c8620bc67cb4094db6d7341c4202c24c83c3ae7b1a +SHA512 (virt-v2v-2.9.2.tar.gz.sig) = d122260fd4cf17efe08396c52e211480b34f5117e14a291673c8d4669122e4e524becd5e12afb66b8c7903a8e531f58d38ea93fa42e03a7fcf47407acab9c2fb diff --git a/virt-v2v.spec b/virt-v2v.spec index 02ce801..e3c34cf 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.9.1 -Release: 2%{?dist} +Version: 2.9.2 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -315,6 +315,9 @@ done %changelog +* Wed Jul 16 2025 Richard W.M. Jones - 1:2.9.2-1 +- New upstream development version 2.9.2 + * Sun Jul 13 2025 Jerry James - 1:2.9.1-2 - Rebuild to fix OCaml dependencies again From 25e2eae876a4e86c84e74c064ecced2fdc985e0c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 19 Jul 2025 17:01:43 +0100 Subject: [PATCH 163/183] Bump minimum version of nbdkit to 1.45.1, matching current Rawhide Bump minimum version of nbdcopy to 1.22, matching current Fedora 42 Bump minimum version of libguestfs to 1.56 Bump minimum version of guestfs-tools to 1.54 Also: - Remove nbdkit-noextents-filter, option removed from virt-v2v 2.9.1 - Add nbdkit-count-filter, added in nbdkit 1.45 - Drop BR nbdkit-python-plugin, as it is not needed by our test --- virt-v2v.spec | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index e3c34cf..2ac4bd1 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.9.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -46,13 +46,13 @@ BuildRequires: /usr/bin/pod2man BuildRequires: gcc BuildRequires: ocaml >= 4.08 -BuildRequires: libguestfs-devel >= 1:1.56.0-1 +BuildRequires: libguestfs-devel >= 1:1.56 BuildRequires: augeas-devel BuildRequires: bash-completion, bash-completion-devel BuildRequires: file BuildRequires: gettext-devel BuildRequires: json-c-devel -BuildRequires: libnbd-devel >= 1.14 +BuildRequires: libnbd-devel >= 1.22 BuildRequires: libosinfo-devel BuildRequires: libvirt-daemon-kvm BuildRequires: libvirt-devel @@ -76,12 +76,10 @@ BuildRequires: glibc-utils BuildRequires: %{_bindir}/qemu-nbd BuildRequires: %{_bindir}/nbdcopy BuildRequires: %{_bindir}/nbdinfo +BuildRequires: nbdkit-server >= 1.45.1 BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin -%if !0%{?rhel} -BuildRequires: nbdkit-python-plugin -%endif -BuildRequires: nbdkit-cow-filter >= 1.28.3-1.el9 +BuildRequires: nbdkit-cow-filter BuildRequires: mingw-srvany-redistributable >= 1.1-6 %ifarch x86_64 BuildRequires: glibc-static @@ -91,8 +89,8 @@ BuildRequires: glibc-static BuildRequires: gnupg2 %endif -Requires: libguestfs%{?_isa} >= 1:1.55.12-1 -Requires: guestfs-tools >= 1.49.7-1 +Requires: libguestfs%{?_isa} >= 1:1.56 +Requires: guestfs-tools >= 1.54 # XFS is the default filesystem in Fedora and RHEL. Requires: libguestfs-xfs @@ -126,11 +124,11 @@ Requires: platform-python # Python is not needed by RHEL 10. %endif %endif -Requires: libnbd >= 1.10 +Requires: libnbd >= 1.22 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy Requires: %{_bindir}/nbdinfo -Requires: nbdkit-server >= 1.28.3-1.el9 +Requires: nbdkit-server >= 1.45.1 Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin @@ -143,9 +141,9 @@ Requires: nbdkit-ssh-plugin Requires: nbdkit-vddk-plugin %endif Requires: nbdkit-blocksize-filter -Requires: nbdkit-cow-filter >= 1.28.3-1.el9 +Requires: nbdkit-count-filter +Requires: nbdkit-cow-filter Requires: nbdkit-multi-conn-filter -Requires: nbdkit-noextents-filter Requires: nbdkit-rate-filter Requires: nbdkit-retry-filter @@ -315,6 +313,15 @@ done %changelog +* Sat Jul 19 2025 Richard W.M. Jones - 1:2.9.2-2 +- Bump minimum version of nbdkit to 1.45.1, matching current Rawhide +- Bump minimum version of nbdcopy to 1.22, matching current Fedora 42 +- Bump minimum version of libguestfs to 1.56 +- Bump minimum version of guestfs-tools to 1.54 +- Remove nbdkit-noextents-filter, option removed from virt-v2v 2.9.1 +- Add nbdkit-count-filter, added in nbdkit 1.45 +- Drop BR nbdkit-python-plugin, as it is not needed by our test + * Wed Jul 16 2025 Richard W.M. Jones - 1:2.9.2-1 - New upstream development version 2.9.2 From 71d5e395b29695ce42e3532016d2e03d6b1e15ba Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 20:09:05 +0000 Subject: [PATCH 164/183] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 2ac4bd1..63e6fff 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -7,7 +7,7 @@ Name: virt-v2v Epoch: 1 Version: 2.9.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -313,6 +313,9 @@ done %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1:2.9.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sat Jul 19 2025 Richard W.M. Jones - 1:2.9.2-2 - Bump minimum version of nbdkit to 1.45.1, matching current Rawhide - Bump minimum version of nbdcopy to 1.22, matching current Fedora 42 From 3a85108e5c431bfd7ce9ad2cb044e14d0ab1a892 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 15 Aug 2025 11:00:49 +0100 Subject: [PATCH 165/183] New upstream development version 2.9.3 Ensure minimum libguestfs is 1.57.1 (for guestfs_setfiles) --- sources | 4 ++-- virt-v2v.spec | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/sources b/sources index 0286d0c..e4b0acb 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.2.tar.gz) = 62e635322322ffefe17639c3eff036a96c2ba2eb7df2276b0d902138070b6b459bc71d757f4c1b2aa71869c8620bc67cb4094db6d7341c4202c24c83c3ae7b1a -SHA512 (virt-v2v-2.9.2.tar.gz.sig) = d122260fd4cf17efe08396c52e211480b34f5117e14a291673c8d4669122e4e524becd5e12afb66b8c7903a8e531f58d38ea93fa42e03a7fcf47407acab9c2fb +SHA512 (virt-v2v-2.9.3.tar.gz) = 9565f850e8e88fc6248bcdd0aba6e9fa098023abe343b7dea2f1564bd2ecf2912ce7afa1faf6f2c68021617304432b1cb60ab9b6e522e4b1ae47c79abc3264f6 +SHA512 (virt-v2v-2.9.3.tar.gz.sig) = 8f2b1d65c9cace756596357e9e16560bfa6ae1de0dcdb4a5353bf964831f9dcd25c512be94fa49e4ba81ea889169f77dc63415bfe3f6925ac37067b69e628cb1 diff --git a/virt-v2v.spec b/virt-v2v.spec index 63e6fff..345a670 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,8 +6,8 @@ Name: virt-v2v Epoch: 1 -Version: 2.9.2 -Release: 3%{?dist} +Version: 2.9.3 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -46,7 +46,7 @@ BuildRequires: /usr/bin/pod2man BuildRequires: gcc BuildRequires: ocaml >= 4.08 -BuildRequires: libguestfs-devel >= 1:1.56 +BuildRequires: libguestfs-devel >= 1:1.57.1-1 BuildRequires: augeas-devel BuildRequires: bash-completion, bash-completion-devel BuildRequires: file @@ -89,7 +89,7 @@ BuildRequires: glibc-static BuildRequires: gnupg2 %endif -Requires: libguestfs%{?_isa} >= 1:1.56 +Requires: libguestfs%{?_isa} >= 1:1.57.1-1 Requires: guestfs-tools >= 1.54 # XFS is the default filesystem in Fedora and RHEL. @@ -313,6 +313,10 @@ done %changelog +* Fri Aug 15 2025 Richard W.M. Jones - 1:2.9.3-1 +- New upstream development version 2.9.3 +- Ensure minimum libguestfs is 1.57.1 (for guestfs_setfiles) + * Fri Jul 25 2025 Fedora Release Engineering - 1:2.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 72edbc55f8e493a089bfd5e79bdafee2480fdb9b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 27 Aug 2025 10:03:26 +0100 Subject: [PATCH 166/183] New upstream development version 2.9.4 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index e4b0acb..e4dbf84 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.3.tar.gz) = 9565f850e8e88fc6248bcdd0aba6e9fa098023abe343b7dea2f1564bd2ecf2912ce7afa1faf6f2c68021617304432b1cb60ab9b6e522e4b1ae47c79abc3264f6 -SHA512 (virt-v2v-2.9.3.tar.gz.sig) = 8f2b1d65c9cace756596357e9e16560bfa6ae1de0dcdb4a5353bf964831f9dcd25c512be94fa49e4ba81ea889169f77dc63415bfe3f6925ac37067b69e628cb1 +SHA512 (virt-v2v-2.9.4.tar.gz) = eb25a103c4f4af72bb6be6cb32e9014997532b53ca3a5319abdbfa5d8187d32cd7caae3a812b5f066ddc348303a2957a926524b016e66100d6ca785dcd1d02a2 +SHA512 (virt-v2v-2.9.4.tar.gz.sig) = ed927b57b78469781275849843c1ca6d557791d83362a7f02db47eba13d2ea0345f7959e918fd8d83d4c69459312a077fcf202c6dba2f35ae4408634fee1285a diff --git a/virt-v2v.spec b/virt-v2v.spec index 345a670..dbc2260 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -6,7 +6,7 @@ Name: virt-v2v Epoch: 1 -Version: 2.9.3 +Version: 2.9.4 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -313,6 +313,9 @@ done %changelog +* Wed Aug 27 2025 Richard W.M. Jones - 1:2.9.4-1 +- New upstream development version 2.9.4 + * Fri Aug 15 2025 Richard W.M. Jones - 1:2.9.3-1 - New upstream development version 2.9.3 - Ensure minimum libguestfs is 1.57.1 (for guestfs_setfiles) From 26965f881b5c76fc2f77c7e255d3c9579279f58d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 29 Aug 2025 10:34:15 +0100 Subject: [PATCH 167/183] New upstream development version 2.9.4 Use new ./configure --disable/--enable flags for excluding RHEL features --- sources | 4 +- virt-v2v.spec | 106 +++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 85 insertions(+), 25 deletions(-) diff --git a/sources b/sources index e4dbf84..a005b1c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.4.tar.gz) = eb25a103c4f4af72bb6be6cb32e9014997532b53ca3a5319abdbfa5d8187d32cd7caae3a812b5f066ddc348303a2957a926524b016e66100d6ca785dcd1d02a2 -SHA512 (virt-v2v-2.9.4.tar.gz.sig) = ed927b57b78469781275849843c1ca6d557791d83362a7f02db47eba13d2ea0345f7959e918fd8d83d4c69459312a077fcf202c6dba2f35ae4408634fee1285a +SHA512 (virt-v2v-2.9.5.tar.gz) = 035a9bcbae6143364bd5b0c5236520a89e1d2543e46c4fdfaba1fe0f71db09af8899e75f67669f77318340dce54bcdc4810462e97c2913ef2663f9bc0264398d +SHA512 (virt-v2v-2.9.5.tar.gz.sig) = bc7963e14432b945b688d3efc88d8df13a7a3960c949add5a4de6c128a5db9b2f769333b12e9a255e96663a932d1789de8a1253d6934610d81f376205941b3a5 diff --git a/virt-v2v.spec b/virt-v2v.spec index dbc2260..cd09cf2 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -4,9 +4,47 @@ # The source directory. %global source_directory 2.9-development +%if !0%{?rhel} +# Optional features enabled in this build for Fedora. +%global with_block_driver 1 +%global with_glance 1 +%global with_ovirt 1 +%global with_xen 1 + +# libguestfs hasn't been built on i686 for a while since there is no +# kernel built for this architecture any longer and libguestfs rather +# fundamentally depends on the kernel. Therefore we must exclude this +# arch. Note there is no bug filed for this because we do not ever +# expect that libguestfs or virt-v2v will be available on i686 so +# there is nothing that needs fixing. +ExcludeArch: %{ix86} + +# Version extra string for Fedora. +%global version_extra fedora=%{fedora},release=%{release} + +%else + +# Optional features enabled in this build for RHEL. +%global with_block_driver 0 +%global with_glance 0 +%global with_ovirt 0 +%global with_xen 0 + +# Architectures where virt-v2v is shipped on RHEL: +# +# not on aarch64 because it is not useful there +# not on %%{power64} because of RHBZ#1287826 +# not on s390x because it is not useful there +ExclusiveArch: x86_64 + +# Version extra string for RHEL. +%global version_extra rhel=%{rhel},release=%{release} + +%endif + Name: virt-v2v Epoch: 1 -Version: 2.9.4 +Version: 2.9.5 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -23,23 +61,6 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh -%if !0%{?rhel} -# libguestfs hasn't been built on i686 for a while since there is no -# kernel built for this architecture any longer and libguestfs rather -# fundamentally depends on the kernel. Therefore we must exclude this -# arch. Note there is no bug filed for this because we do not ever -# expect that libguestfs or virt-v2v will be available on i686 so -# there is nothing that needs fixing. -ExcludeArch: %{ix86} -%else -# Architectures where virt-v2v is shipped on RHEL: -# -# not on aarch64 because it is not useful there -# not on %%{power64} because of RHBZ#1287826 -# not on s390x because it is not useful there -ExclusiveArch: x86_64 -%endif - BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: /usr/bin/pod2man @@ -212,11 +233,27 @@ autoreconf -fiv %build %configure \ -%if !0%{?rhel} - --with-extra="fedora=%{fedora},release=%{release}" \ +%if %{with_block_driver} + --enable-block-driver \ %else - --with-extra="rhel=%{rhel},release=%{release}" \ + --disable-block-driver \ %endif +%if %{with_glance} + --enable-glance \ +%else + --disable-glance \ +%endif +%if %{with_ovirt} + --enable-ovirt \ +%else + --disable-ovirt \ +%endif +%if %{with_xen} + --enable-xen \ +%else + --disable-xen \ +%endif + --with-extra="%{version_extra}" make V=1 %{?_smp_mflags} @@ -243,6 +280,23 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-output-ovirt.1* %check +# Check that the binary runs and the features match those configured. +./run virt-v2v --version +./run virt-v2v --machine-readable | tee machine-readable.out +grep "virt-v2v-2.0" machine-readable.out +grep "input:disk" machine-readable.out +%if %{with_block_driver} +grep "block-driver-option" machine-readable.out +%endif +%if %{with_glance} +grep "output:glance" machine-readable.out +%endif +%if %{with_ovirt} +grep "output:ovirt$" machine-readable.out +grep "output:ovirt-upload" machine-readable.out +grep "output:vdsm" machine-readable.out +%endif + %ifarch x86_64 # Only run the tests with non-debug (ie. non-Rawhide) kernels. # XXX This tests for any debug kernel installed. @@ -281,15 +335,17 @@ done %{_mandir}/man1/virt-v2v.1* %{_mandir}/man1/virt-v2v-hacking.1* %{_mandir}/man1/virt-v2v-input-vmware.1* -%if !0%{?rhel} +%if %{with_xen} %{_mandir}/man1/virt-v2v-input-xen.1* +%endif +%if !0%{?rhel} %{_mandir}/man1/virt-v2v-in-place.1* %endif %{_mandir}/man1/virt-v2v-inspector.1* %{_mandir}/man1/virt-v2v-open.1* %{_mandir}/man1/virt-v2v-output-local.1* %{_mandir}/man1/virt-v2v-output-openstack.1* -%if !0%{?rhel} +%if %{with_ovirt} %{_mandir}/man1/virt-v2v-output-ovirt.1* %endif %{_mandir}/man1/virt-v2v-release-notes-1.42.1* @@ -313,6 +369,10 @@ done %changelog +* Fri Aug 29 2025 Richard W.M. Jones - 1:2.9.5-1 +- New upstream development version 2.9.4 +- Use new ./configure --disable/--enable flags for excluding RHEL features + * Wed Aug 27 2025 Richard W.M. Jones - 1:2.9.4-1 - New upstream development version 2.9.4 From 66650d837a4229eaec71ef73631d3a3b7d5b4fdd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 29 Aug 2025 10:55:37 +0100 Subject: [PATCH 168/183] Fix version number in changelog --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index cd09cf2..f06e022 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -370,7 +370,7 @@ done %changelog * Fri Aug 29 2025 Richard W.M. Jones - 1:2.9.5-1 -- New upstream development version 2.9.4 +- New upstream development version 2.9.5 - Use new ./configure --disable/--enable flags for excluding RHEL features * Wed Aug 27 2025 Richard W.M. Jones - 1:2.9.4-1 From 520c690092220eb65c15ecbb9ebc132458b63208 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 29 Aug 2025 11:07:23 +0100 Subject: [PATCH 169/183] Add missing perl dependencies Previously some of these were pulled in implicitly. However IPC::Run3 is a new dependency of podwrapper and we need to be explicit about that one. --- virt-v2v.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-v2v.spec b/virt-v2v.spec index f06e022..c937dac 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -64,6 +64,9 @@ Source3: copy-patches.sh BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: /usr/bin/pod2man +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(IPC::Run3) BuildRequires: gcc BuildRequires: ocaml >= 4.08 From 1fa63ef939c375b0d8d5b72fc2a6570d7f1a8c32 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 29 Aug 2025 13:09:22 +0100 Subject: [PATCH 170/183] Require nbdkit-python-plugin only if we built oVirt support --- virt-v2v.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index c937dac..4481f45 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -140,7 +140,7 @@ Requires: edk2-ovmf Requires: edk2-aarch64 %endif -%if !0%{?rhel} +%if !%{with_ovirt} Requires: /usr/bin/python3 %else %if 0%{?rhel} == 9 @@ -157,7 +157,7 @@ Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin Requires: nbdkit-null-plugin -%if !0%{?rhel} +%if !%{with_ovirt} Requires: nbdkit-python-plugin %endif Requires: nbdkit-ssh-plugin From 4a4aa3a93881e4d716231fa016fc4f893bde8ee1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 29 Aug 2025 13:05:42 +0100 Subject: [PATCH 171/183] Unify Fedora and RHEL 10.2 spec files --- virt-v2v.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 4481f45..2a9018e 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -72,7 +72,10 @@ BuildRequires: ocaml >= 4.08 BuildRequires: libguestfs-devel >= 1:1.57.1-1 BuildRequires: augeas-devel -BuildRequires: bash-completion, bash-completion-devel +BuildRequires: bash-completion +%if !0%{?rhel} +BuildRequires: bash-completion-devel +%endif BuildRequires: file BuildRequires: gettext-devel BuildRequires: json-c-devel @@ -142,11 +145,6 @@ Requires: edk2-aarch64 %if !%{with_ovirt} Requires: /usr/bin/python3 -%else -%if 0%{?rhel} == 9 -Requires: platform-python -# Python is not needed by RHEL 10. -%endif %endif Requires: libnbd >= 1.22 Requires: %{_bindir}/qemu-nbd From 030036337929546c950207af6775c960eb660c91 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 1 Sep 2025 09:39:16 +0100 Subject: [PATCH 172/183] RHEL: Unnecessary to delete input-xen and output-ovirt man pages Since RHEL is compiled with_xen == 0 && with_ovirt == 0, the project should not generate these files, so deleting them should not be necessary. --- virt-v2v.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 2a9018e..6063de4 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -271,9 +271,6 @@ find $RPM_BUILD_ROOT -name '*.la' -delete mkdir -p $RPM_BUILD_ROOT%{_libexecdir} mv $RPM_BUILD_ROOT%{_bindir}/virt-v2v-in-place $RPM_BUILD_ROOT%{_libexecdir}/ rm $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-in-place.1* -# these are also not supported on RHEL -rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-input-xen.1* -rm -f $RPM_BUILD_ROOT%{_mandir}/man1/virt-v2v-output-ovirt.1* %endif # Find locale files. From 4a7db747882488105c4bde7aae87206091671b1e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 9 Sep 2025 21:34:06 +0100 Subject: [PATCH 173/183] New upstream development version 2.9.6 --- sources | 4 ++-- virt-v2v.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sources b/sources index a005b1c..f972117 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.5.tar.gz) = 035a9bcbae6143364bd5b0c5236520a89e1d2543e46c4fdfaba1fe0f71db09af8899e75f67669f77318340dce54bcdc4810462e97c2913ef2663f9bc0264398d -SHA512 (virt-v2v-2.9.5.tar.gz.sig) = bc7963e14432b945b688d3efc88d8df13a7a3960c949add5a4de6c128a5db9b2f769333b12e9a255e96663a932d1789de8a1253d6934610d81f376205941b3a5 +SHA512 (virt-v2v-2.9.6.tar.gz) = 983c784d5190c0590f83357dea1ccb2c1f9a528a26f39122b24ef35dd0209151e89acb749f11cb0d7201d33ada31330f858becc049d11790229cadcaa306bcc4 +SHA512 (virt-v2v-2.9.6.tar.gz.sig) = 28199a3d7d38148b16033831c5b26f3e5013d47d769dbd7e5571deb64e4bf094e31c8df62f5c55a0bae621b19a5011b209917d671e7c34531e6b95d304d88aaf diff --git a/virt-v2v.spec b/virt-v2v.spec index 6063de4..83d26a8 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -44,7 +44,7 @@ ExclusiveArch: x86_64 Name: virt-v2v Epoch: 1 -Version: 2.9.5 +Version: 2.9.6 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -367,6 +367,9 @@ done %changelog +* Tue Sep 9 2025 Richard W.M. Jones - 1:2.9.6-1 +- New upstream development version 2.9.6 + * Fri Aug 29 2025 Richard W.M. Jones - 1:2.9.5-1 - New upstream development version 2.9.5 - Use new ./configure --disable/--enable flags for excluding RHEL features From 792368a646919e24c8adb0e1a24e804dd6214371 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 20 Sep 2025 17:25:20 +0100 Subject: [PATCH 174/183] New upstream development version 2.9.7 Ignore non-upstream patch to improve Windows conversions --- 0001-Update-common-submodule.patch | 48 ++++++++++++++++++++++++++++++ sources | 4 +-- virt-v2v.spec | 10 ++++++- 3 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 0001-Update-common-submodule.patch diff --git a/0001-Update-common-submodule.patch b/0001-Update-common-submodule.patch new file mode 100644 index 0000000..a9cbd58 --- /dev/null +++ b/0001-Update-common-submodule.patch @@ -0,0 +1,48 @@ +From 6e15298cb5e7438ecda8fd5c08f2a5ec868e97a7 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Sat, 20 Sep 2025 17:20:25 +0100 +Subject: [PATCH] Update common submodule + + Richard W.M. Jones (2): + daemon, generator: Use power of 2 for initial size of Hashtbl.create + mlcustomize/inject_virtio_win.ml: Use viostor.inf instead of guestor +--- + common | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Submodule common 5be8d55214..ebcd4d5ecc: +diff --git a/common/mlcustomize/customize_run.ml b/common/mlcustomize/customize_run.ml +index ff719f4..64afd3a 100644 +--- a/common/mlcustomize/customize_run.ml ++++ b/common/mlcustomize/customize_run.ml +@@ -97,7 +97,7 @@ let run (g : G.guestfs) root (ops : ops) = + ) in + + (* Store the passwords and set them all at the end. *) +- let passwords = Hashtbl.create 13 in ++ let passwords = Hashtbl.create 16 in + let set_password user pw = + if Hashtbl.mem passwords user then + error (f_"multiple --root-password/--password options set the \ +diff --git a/common/mlcustomize/inject_virtio_win.ml b/common/mlcustomize/inject_virtio_win.ml +index b26b14d..114df06 100644 +--- a/common/mlcustomize/inject_virtio_win.ml ++++ b/common/mlcustomize/inject_virtio_win.ml +@@ -310,8 +310,13 @@ and ddb_regedits inspect drv_name drv_pciid = + * one must add keys into the DriverDatabase. + *) + ++ let winarch = ++ match inspect.i_arch with ++ | "i386" -> "x86" | "x86_64" -> "amd64" ++ | _ -> assert false in ++ + let drv_inf = "guestor.inf" in +- let drv_inf_label = drv_inf ^ "_tmp" in ++ let drv_inf_label = sprintf "%s_%s_0000000000000000" drv_inf winarch in + let drv_config = "guestor_conf" in + + [ +-- +2.50.1 + diff --git a/sources b/sources index f972117..d9ef2db 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.6.tar.gz) = 983c784d5190c0590f83357dea1ccb2c1f9a528a26f39122b24ef35dd0209151e89acb749f11cb0d7201d33ada31330f858becc049d11790229cadcaa306bcc4 -SHA512 (virt-v2v-2.9.6.tar.gz.sig) = 28199a3d7d38148b16033831c5b26f3e5013d47d769dbd7e5571deb64e4bf094e31c8df62f5c55a0bae621b19a5011b209917d671e7c34531e6b95d304d88aaf +SHA512 (virt-v2v-2.9.7.tar.gz) = 55e517ec9b5a5850b1bf5f4ac14df307e1ffa0fb8b3f836c05964a091a204de7f9931ca7572618ba6e9f5902c7e4f524de76c3e4c725a302d0007d2fb4a26326 +SHA512 (virt-v2v-2.9.7.tar.gz.sig) = 0a7b49b809a6c08c7722d4d1029aecf6cf170b8bdf5e8e4bef37c401fa0212d2770760cfc4c77169d34d6f473a9f367eeedb9406005c7e0bf9d77c5034c8477b diff --git a/virt-v2v.spec b/virt-v2v.spec index 83d26a8..3eaebc5 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -44,7 +44,7 @@ ExclusiveArch: x86_64 Name: virt-v2v Epoch: 1 -Version: 2.9.6 +Version: 2.9.7 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -61,6 +61,10 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh +# Improve Windows conversions. Not upstream yet. +# https://github.com/libguestfs/libguestfs-common/pull/17 +Patch: 0001-Update-common-submodule.patch + BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: /usr/bin/pod2man @@ -367,6 +371,10 @@ done %changelog +* Sat Sep 20 2025 Richard W.M. Jones - 1:2.9.7-1 +- New upstream development version 2.9.7 +- Ignore non-upstream patch to improve Windows conversions + * Tue Sep 9 2025 Richard W.M. Jones - 1:2.9.6-1 - New upstream development version 2.9.6 From 9ba178aca41062fe1e9f0e85775399723cefb6f4 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 20 Sep 2025 18:07:17 +0100 Subject: [PATCH 175/183] Fix changelog of previous commit --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 3eaebc5..fb693b7 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -373,7 +373,7 @@ done %changelog * Sat Sep 20 2025 Richard W.M. Jones - 1:2.9.7-1 - New upstream development version 2.9.7 -- Ignore non-upstream patch to improve Windows conversions +- Backport non-upstream patch to improve Windows conversions * Tue Sep 9 2025 Richard W.M. Jones - 1:2.9.6-1 - New upstream development version 2.9.6 From f5b4a662695021d26418b3bb26aaff2850f699e9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 22 Sep 2025 15:47:18 +0100 Subject: [PATCH 176/183] New upstream development version 2.9.8 Remove Windows conversion patch which is now upstream. --- 0001-Update-common-submodule.patch | 48 ------------------------------ sources | 4 +-- virt-v2v.spec | 10 +++---- 3 files changed, 7 insertions(+), 55 deletions(-) delete mode 100644 0001-Update-common-submodule.patch diff --git a/0001-Update-common-submodule.patch b/0001-Update-common-submodule.patch deleted file mode 100644 index a9cbd58..0000000 --- a/0001-Update-common-submodule.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 6e15298cb5e7438ecda8fd5c08f2a5ec868e97a7 Mon Sep 17 00:00:00 2001 -From: "Richard W.M. Jones" -Date: Sat, 20 Sep 2025 17:20:25 +0100 -Subject: [PATCH] Update common submodule - - Richard W.M. Jones (2): - daemon, generator: Use power of 2 for initial size of Hashtbl.create - mlcustomize/inject_virtio_win.ml: Use viostor.inf instead of guestor ---- - common | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Submodule common 5be8d55214..ebcd4d5ecc: -diff --git a/common/mlcustomize/customize_run.ml b/common/mlcustomize/customize_run.ml -index ff719f4..64afd3a 100644 ---- a/common/mlcustomize/customize_run.ml -+++ b/common/mlcustomize/customize_run.ml -@@ -97,7 +97,7 @@ let run (g : G.guestfs) root (ops : ops) = - ) in - - (* Store the passwords and set them all at the end. *) -- let passwords = Hashtbl.create 13 in -+ let passwords = Hashtbl.create 16 in - let set_password user pw = - if Hashtbl.mem passwords user then - error (f_"multiple --root-password/--password options set the \ -diff --git a/common/mlcustomize/inject_virtio_win.ml b/common/mlcustomize/inject_virtio_win.ml -index b26b14d..114df06 100644 ---- a/common/mlcustomize/inject_virtio_win.ml -+++ b/common/mlcustomize/inject_virtio_win.ml -@@ -310,8 +310,13 @@ and ddb_regedits inspect drv_name drv_pciid = - * one must add keys into the DriverDatabase. - *) - -+ let winarch = -+ match inspect.i_arch with -+ | "i386" -> "x86" | "x86_64" -> "amd64" -+ | _ -> assert false in -+ - let drv_inf = "guestor.inf" in -- let drv_inf_label = drv_inf ^ "_tmp" in -+ let drv_inf_label = sprintf "%s_%s_0000000000000000" drv_inf winarch in - let drv_config = "guestor_conf" in - - [ --- -2.50.1 - diff --git a/sources b/sources index d9ef2db..5a8739c 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.7.tar.gz) = 55e517ec9b5a5850b1bf5f4ac14df307e1ffa0fb8b3f836c05964a091a204de7f9931ca7572618ba6e9f5902c7e4f524de76c3e4c725a302d0007d2fb4a26326 -SHA512 (virt-v2v-2.9.7.tar.gz.sig) = 0a7b49b809a6c08c7722d4d1029aecf6cf170b8bdf5e8e4bef37c401fa0212d2770760cfc4c77169d34d6f473a9f367eeedb9406005c7e0bf9d77c5034c8477b +SHA512 (virt-v2v-2.9.8.tar.gz) = b8f07f8fe451375aa6500861566c6d80dbcc38226ce8319444838087c433759274577303355b9445bfc09e9dcd51b809c599232f0f7ddb49fb33fbf8210f1031 +SHA512 (virt-v2v-2.9.8.tar.gz.sig) = 974568808749d78ad9120f262722feffec1aabec7817473fc63565750dfdf9d9eda96ef3cc6ab8de2f1490fba7a2e296b0e6ef908abff0384df24ec4f4bada15 diff --git a/virt-v2v.spec b/virt-v2v.spec index fb693b7..68416e2 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -44,7 +44,7 @@ ExclusiveArch: x86_64 Name: virt-v2v Epoch: 1 -Version: 2.9.7 +Version: 2.9.8 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -61,10 +61,6 @@ Source2: libguestfs.keyring # Maintainer script which helps with handling patches. Source3: copy-patches.sh -# Improve Windows conversions. Not upstream yet. -# https://github.com/libguestfs/libguestfs-common/pull/17 -Patch: 0001-Update-common-submodule.patch - BuildRequires: autoconf, automake, libtool BuildRequires: make BuildRequires: /usr/bin/pod2man @@ -371,6 +367,10 @@ done %changelog +* Mon Sep 22 2025 Richard W.M. Jones - 1:2.9.8-1 +- New upstream development version 2.9.8 +- Remove Windows conversion patch which is now upstream. + * Sat Sep 20 2025 Richard W.M. Jones - 1:2.9.7-1 - New upstream development version 2.9.7 - Backport non-upstream patch to improve Windows conversions From 790400f357e36761367678decd53f01be94d1479 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 25 Sep 2025 10:54:37 -0400 Subject: [PATCH 177/183] Fix bash-completion conditional ELN (the future RHEL 11) tracks rawhide and therefore also has bash-completion-devel and the %bash_completions_dir macro. --- virt-v2v.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 68416e2..060016d 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -73,7 +73,7 @@ BuildRequires: ocaml >= 4.08 BuildRequires: libguestfs-devel >= 1:1.57.1-1 BuildRequires: augeas-devel BuildRequires: bash-completion -%if !0%{?rhel} +%if 0%{?fedora} || 0%{?rhel} >= 11 BuildRequires: bash-completion-devel %endif BuildRequires: file From a0f001aa68f950fd6596934dbc01970c0505962e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 14 Oct 2025 09:21:09 +0100 Subject: [PATCH 178/183] OCaml 5.4.0 rebuild --- virt-v2v.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 060016d..3c0f719 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -45,7 +45,7 @@ ExclusiveArch: x86_64 Name: virt-v2v Epoch: 1 Version: 2.9.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -367,6 +367,9 @@ done %changelog +* Tue Oct 14 2025 Richard W.M. Jones - 1:2.9.8-2 +- OCaml 5.4.0 rebuild + * Mon Sep 22 2025 Richard W.M. Jones - 1:2.9.8-1 - New upstream development version 2.9.8 - Remove Windows conversion patch which is now upstream. From 5af6be536a9658b15273f62c033f93b0f0bbb62c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 16 Oct 2025 17:50:24 +0100 Subject: [PATCH 179/183] New upstream development version 2.9.9 --- sources | 4 ++-- virt-v2v.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sources b/sources index 5a8739c..19e488a 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.8.tar.gz) = b8f07f8fe451375aa6500861566c6d80dbcc38226ce8319444838087c433759274577303355b9445bfc09e9dcd51b809c599232f0f7ddb49fb33fbf8210f1031 -SHA512 (virt-v2v-2.9.8.tar.gz.sig) = 974568808749d78ad9120f262722feffec1aabec7817473fc63565750dfdf9d9eda96ef3cc6ab8de2f1490fba7a2e296b0e6ef908abff0384df24ec4f4bada15 +SHA512 (virt-v2v-2.9.9.tar.gz) = 82a73de492bc3565ad09cd9981d63459482872b4d3ebf376a15d8681698ae4caeb181ca4a84e0cd68b852b886346009f5350a268761f7ca7db9ac589af92938c +SHA512 (virt-v2v-2.9.9.tar.gz.sig) = dbd8b9702baa1b69f69c3aff52d95e6c2a0a1ef8f066248f3e33990ffefe429409b80001041389692dd24faf8628557d79173cc098e3fce1c5890feb27229bc5 diff --git a/virt-v2v.spec b/virt-v2v.spec index 3c0f719..165bd9c 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -44,8 +44,8 @@ ExclusiveArch: x86_64 Name: virt-v2v Epoch: 1 -Version: 2.9.8 -Release: 2%{?dist} +Version: 2.9.9 +Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM License: GPL-2.0-or-later AND LGPL-2.0-or-later @@ -367,6 +367,9 @@ done %changelog +* Thu Oct 16 2025 Richard W.M. Jones - 1:2.9.9-1 +- New upstream development version 2.9.9 + * Tue Oct 14 2025 Richard W.M. Jones - 1:2.9.8-2 - OCaml 5.4.0 rebuild From 7ba7c6543851970522074c426acaa5324dd1332d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 20 Oct 2025 15:06:42 +0100 Subject: [PATCH 180/183] Bump minimum nbdkit version to 1.45.11 This will be the new minimum in the next development version of virt-v2v. --- virt-v2v.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 165bd9c..388d5f9 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -103,7 +103,7 @@ BuildRequires: glibc-utils BuildRequires: %{_bindir}/qemu-nbd BuildRequires: %{_bindir}/nbdcopy BuildRequires: %{_bindir}/nbdinfo -BuildRequires: nbdkit-server >= 1.45.1 +BuildRequires: nbdkit-server >= 1.45.11 BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin BuildRequires: nbdkit-cow-filter @@ -150,7 +150,7 @@ Requires: libnbd >= 1.22 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy Requires: %{_bindir}/nbdinfo -Requires: nbdkit-server >= 1.45.1 +Requires: nbdkit-server >= 1.45.11 Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin From b07fed3631cf8afde580707c80034f1ca20dc8e1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 4 Nov 2025 16:37:14 +0000 Subject: [PATCH 181/183] New upstream development version 2.9.10 Requires libguestfs 1.57.6 for new inspection APIs. --- sources | 4 ++-- virt-v2v.spec | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sources b/sources index 19e488a..b452ce6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.9.tar.gz) = 82a73de492bc3565ad09cd9981d63459482872b4d3ebf376a15d8681698ae4caeb181ca4a84e0cd68b852b886346009f5350a268761f7ca7db9ac589af92938c -SHA512 (virt-v2v-2.9.9.tar.gz.sig) = dbd8b9702baa1b69f69c3aff52d95e6c2a0a1ef8f066248f3e33990ffefe429409b80001041389692dd24faf8628557d79173cc098e3fce1c5890feb27229bc5 +SHA512 (virt-v2v-2.9.10.tar.gz) = 950b5320413de5b398785ce98645833a770acd68ad289c86a6ea2dbe019a40c4642063cba0f6d4e7988d4521b045feb83dd7551f0ebfdba6d964757473cafcb3 +SHA512 (virt-v2v-2.9.10.tar.gz.sig) = 467a105c9469ca67c3254155682a87021610a057bc8124e1644d522bf540a944234a7118751a4f1c1308ec5bbd91904445a0223443607426f7decae2dd40c65f diff --git a/virt-v2v.spec b/virt-v2v.spec index 388d5f9..6d17d45 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -44,7 +44,7 @@ ExclusiveArch: x86_64 Name: virt-v2v Epoch: 1 -Version: 2.9.9 +Version: 2.9.10 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -70,7 +70,7 @@ BuildRequires: perl(IPC::Run3) BuildRequires: gcc BuildRequires: ocaml >= 4.08 -BuildRequires: libguestfs-devel >= 1:1.57.1-1 +BuildRequires: libguestfs-devel >= 1:1.57.6-1 BuildRequires: augeas-devel BuildRequires: bash-completion %if 0%{?fedora} || 0%{?rhel} >= 11 @@ -116,7 +116,7 @@ BuildRequires: glibc-static BuildRequires: gnupg2 %endif -Requires: libguestfs%{?_isa} >= 1:1.57.1-1 +Requires: libguestfs%{?_isa} >= 1:1.57.6-1 Requires: guestfs-tools >= 1.54 # XFS is the default filesystem in Fedora and RHEL. @@ -367,6 +367,10 @@ done %changelog +* Tue Nov 4 2025 Richard W.M. Jones - 1:2.9.10-1 +- New upstream development version 2.9.10 +- Requires libguestfs 1.57.6 for new inspection APIs. + * Thu Oct 16 2025 Richard W.M. Jones - 1:2.9.9-1 - New upstream development version 2.9.9 From 1a5178ef0ccbf93ca30775013885db83f8e47c63 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 6 Jan 2026 11:01:45 +0000 Subject: [PATCH 182/183] New upstream stable branch version 2.10.0 Requires libguestfs >= 1.58.0 and nbdkit >= 1.46. --- sources | 4 ++-- virt-v2v.spec | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/sources b/sources index b452ce6..8fc8fc9 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (virt-v2v-2.9.10.tar.gz) = 950b5320413de5b398785ce98645833a770acd68ad289c86a6ea2dbe019a40c4642063cba0f6d4e7988d4521b045feb83dd7551f0ebfdba6d964757473cafcb3 -SHA512 (virt-v2v-2.9.10.tar.gz.sig) = 467a105c9469ca67c3254155682a87021610a057bc8124e1644d522bf540a944234a7118751a4f1c1308ec5bbd91904445a0223443607426f7decae2dd40c65f +SHA512 (virt-v2v-2.10.0.tar.gz) = 035f2181c1cc5f482e96d3e21b513b95939ca224d71ac6ad938842d5af5d60ef07db1600d2ccb609dc2042b1c74088f6f39ffbe595cb51e80278ecb50c314515 +SHA512 (virt-v2v-2.10.0.tar.gz.sig) = cb6301224ef00577a9cd0fc8fa504e583eb447341bd3849e6854f2d78ae72ca39bca68b70f30efd3d1d64480acf161c5e4bc9ba943595ef4dd2a654c3268aa66 diff --git a/virt-v2v.spec b/virt-v2v.spec index 6d17d45..7557908 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -2,7 +2,7 @@ %global verify_tarball_signature 1 # The source directory. -%global source_directory 2.9-development +%global source_directory 2.10-stable %if !0%{?rhel} # Optional features enabled in this build for Fedora. @@ -44,7 +44,7 @@ ExclusiveArch: x86_64 Name: virt-v2v Epoch: 1 -Version: 2.9.10 +Version: 2.10.0 Release: 1%{?dist} Summary: Convert a virtual machine to run on KVM @@ -70,7 +70,7 @@ BuildRequires: perl(IPC::Run3) BuildRequires: gcc BuildRequires: ocaml >= 4.08 -BuildRequires: libguestfs-devel >= 1:1.57.6-1 +BuildRequires: libguestfs-devel >= 1:1.58.0-1 BuildRequires: augeas-devel BuildRequires: bash-completion %if 0%{?fedora} || 0%{?rhel} >= 11 @@ -103,7 +103,7 @@ BuildRequires: glibc-utils BuildRequires: %{_bindir}/qemu-nbd BuildRequires: %{_bindir}/nbdcopy BuildRequires: %{_bindir}/nbdinfo -BuildRequires: nbdkit-server >= 1.45.11 +BuildRequires: nbdkit-server >= 1.46.1 BuildRequires: nbdkit-file-plugin BuildRequires: nbdkit-null-plugin BuildRequires: nbdkit-cow-filter @@ -116,7 +116,7 @@ BuildRequires: glibc-static BuildRequires: gnupg2 %endif -Requires: libguestfs%{?_isa} >= 1:1.57.6-1 +Requires: libguestfs%{?_isa} >= 1:1.58.0-1 Requires: guestfs-tools >= 1.54 # XFS is the default filesystem in Fedora and RHEL. @@ -150,7 +150,7 @@ Requires: libnbd >= 1.22 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy Requires: %{_bindir}/nbdinfo -Requires: nbdkit-server >= 1.45.11 +Requires: nbdkit-server >= 1.46.1 Requires: nbdkit-curl-plugin Requires: nbdkit-file-plugin Requires: nbdkit-nbd-plugin @@ -367,6 +367,10 @@ done %changelog +* Tue Jan 06 2026 Richard W.M. Jones - 1:2.10.0-1 +- New upstream stable branch version 2.10.0 +- Requires libguestfs >= 1.58.0 and nbdkit >= 1.46. + * Tue Nov 4 2025 Richard W.M. Jones - 1:2.9.10-1 - New upstream development version 2.9.10 - Requires libguestfs 1.57.6 for new inspection APIs. From daaa263ad1b2d452da262945e0033122daeb247d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 13 Jan 2026 10:50:17 +0000 Subject: [PATCH 183/183] Hard depend on libnbd >= 1.24 This is not actually necessary for Fedora. But for RHEL 10.2, where we partially backported some 1.24 APIs to libnbd 1.22, the libnbd 1.22 package now provides LIBNBD_1.24 versioned symbols. However not all of them, so for example virt-v2v can fail with: virt-v2v: symbol lookup error: virt-v2v: undefined symbol: nbd_get_handle_size, version LIBNBD_1.24 Practically this means that you can update virt-v2v to RHEL 10.2, but leave libnbd from RHEL 10.1, and virt-v2v will then fail to run. Adding a hard dependency avoids this problem, and is fine for Fedora too. Related: https://issues.redhat.com/browse/RHEL-140894 --- virt-v2v.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-v2v.spec b/virt-v2v.spec index 7557908..9309b31 100644 --- a/virt-v2v.spec +++ b/virt-v2v.spec @@ -79,7 +79,7 @@ BuildRequires: bash-completion-devel BuildRequires: file BuildRequires: gettext-devel BuildRequires: json-c-devel -BuildRequires: libnbd-devel >= 1.22 +BuildRequires: libnbd-devel >= 1.24 BuildRequires: libosinfo-devel BuildRequires: libvirt-daemon-kvm BuildRequires: libvirt-devel @@ -146,7 +146,7 @@ Requires: edk2-aarch64 %if !%{with_ovirt} Requires: /usr/bin/python3 %endif -Requires: libnbd >= 1.22 +Requires: libnbd >= 1.24 Requires: %{_bindir}/qemu-nbd Requires: %{_bindir}/nbdcopy Requires: %{_bindir}/nbdinfo