From befc6765facb90b5e59c904c0110eeaa515dfbf35ac26450b104a630d49de61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 21 Jun 2024 19:53:56 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main virt-v2v revision 88cbdcfd4d5cd46ab86d6e9d2a5a2f7d --- .gitattributes | 23 ++++ virt-v2v-2.4.0.tar.gz | 3 + virt-v2v-2.4.0.tar.gz.sig | 17 +++ virt-v2v.changes | 252 ++++++++++++++++++++++++++++++++++++++ virt-v2v.spec | 222 +++++++++++++++++++++++++++++++++ 5 files changed, 517 insertions(+) create mode 100644 .gitattributes create mode 100644 virt-v2v-2.4.0.tar.gz create mode 100644 virt-v2v-2.4.0.tar.gz.sig create mode 100644 virt-v2v.changes create mode 100644 virt-v2v.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/virt-v2v-2.4.0.tar.gz b/virt-v2v-2.4.0.tar.gz new file mode 100644 index 0000000..32ec2d7 --- /dev/null +++ b/virt-v2v-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c413cfc874c8ced3a84d9d63c8e9265930ef1746e653a8a9d432e1363dcecf47 +size 7702259 diff --git a/virt-v2v-2.4.0.tar.gz.sig b/virt-v2v-2.4.0.tar.gz.sig new file mode 100644 index 0000000..6cea853 --- /dev/null +++ b/virt-v2v-2.4.0.tar.gz.sig @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- + +iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmWW5kYRHHJpY2hAYW5u +ZXhpYS5vcmcACgkQkXOPc+G3aKBddxAAvM08lmWH0IlpLwKX06TwnVERt8fXD++p +bjRrfj2mOoayoN/B1oE61laCdZgCzPtN6MC/aW94LITaGJWHi7YYqdgdRgL1NqeC +n0tu8t14XsCT1xTIOa1ndb018+a5ppIcOnmGAj4naM5uA50rgRwChdSOTP/H10+J +93M2rvvak8aVdeWEhnMJyqWG2mFJ0YselJ+cMu66XFBkK7wg4UwCzzJ4Blqb1Igd +W/wctLDLqPVAxI85P/2p2dt+N4vzOnT/jr+dFxXOJg99E6iwa3qPCdzGHmszjhyC +uNhq/pWMt5tSk34IwYduyk1b9mlx9dCQsyREwrVomsdZD+XrUZHhrGrlcVJDfT07 +2DCkVnGAoH0DRmz3t69KJS9U1JgzkaTDNaezkLlIZ7VZOdaC5nK74efnN0yinBkJ +9GhmR0qbk4/QVKeNWSftu4Rd9OUtRSaEMH0kO/S42vl3fW59u+ZGMEz26Ar4x/q7 +jLx3vKfduJbpvberc3kQ2p9jQbUjlyFOTtnTAf84ckyIkvEMwpEhlyfchctPji/K +IaJ4Yd0KnKiLg/GH9Eon79cadAV2hzvYb2FZYI1RcrbRH+nZvGLgSbvHobqESERT +hBBXrAhaazRdxbOVqwMV9d+lq4llzUJJMOVCsK/PLnigrl5OCLQNQ2IVBbPv8WFD +VMg/9mGiUj0= +=lbFv +-----END PGP SIGNATURE----- diff --git a/virt-v2v.changes b/virt-v2v.changes new file mode 100644 index 0000000..5b1f0a4 --- /dev/null +++ b/virt-v2v.changes @@ -0,0 +1,252 @@ +------------------------------------------------------------------- +Tue May 7 08:59:53 MDT 2024 - carnold@suse.com + +- bsc#1223444 - New virt-v2v dependency on btrfsprogs causes error + with zypper dup on systems without btrfs installed + Drop Requires on the following packages and move them into + libguestfs-appliance + btrfsprogs, curl, dhcp-client, e2fsprogs, gptfdisk + ntfsprogs, xfsprogs + +------------------------------------------------------------------- +Fri Apr 19 09:03:27 MDT 2024 - carnold@suse.com + +- Add Requires for dhcp-client +- Add conditional x86_64 arch Requires for nbdkit-vddk-plugin + +------------------------------------------------------------------- +Thu Apr 18 10:06:56 MDT 2024 - carnold@suse.com + +- bsc#1223093 - virt-v2v needs nbdkit and libnbd on SLE15-SP6 to + function correctly + Add Requires on libnbd and all nbdkit packages. The nbdkit + packages are required for remote execution. + Added Requires on btrfsprogs + +------------------------------------------------------------------- +Fri Mar 29 13:18:43 MDT 2024 - carnold@suse.com + +- Add Requires on gptfdisk and libguestfs-winsupport for + converting windows VMs. + +------------------------------------------------------------------- +Fri Jan 19 14:58:36 UTC 2024 - olaf@aepfle.de + +- Relax the openssh requirement. Options passed to scp are known + by openssh 8.4 +- Move autoreconf from prep to build, to simplify quilt setup. + +------------------------------------------------------------------- +Thu Jan 4 13:38:59 MST 2024 - carnold@suse.com + +- Update to virt-v2v 2.4.0 (jsc#PED-6305) + * New --block-driver option which can be used to choose to + install either virtio-blk or virtio-scsi drivers + * The virt-v2v --key option now recognizes LVM names like + /dev/mapper/rhel_bootp--73--75--123-root + * The --key option also supports a new --key all:... selector to + try the same key on all devices. + * Conversions now set the host-model CPU in the output metadata, + except where the source hypervisor overrides this. The + exception is -o qemu mode which uses -cpu host. + * virt-v2v will now look for bootloader configuration in + /boot/grub/grub.cfg for UEFI guests + * Invoke pnputil (if available) to install drivers, fixing some + Windows conversions + * Skip SELinux relabelling if the guest has disabled SELinux + * Several output modes now generate metadata to indicate whether + the guest requires the RTC to be set to UTC (Linux) or + localtime (most Windows). For example with -o libvirt this + generates . + * -i ova mode is now less strict about parsing the manifest file, + which helps when converting some non-conforming OVA files. + * Input modes using -it ssh now use the correct quoting + * -i vmx mode now rejects VMDK files explicitly, reducing a + source of user confusion + * Multiple fixes to -o kubevirt mode. Also implement -oo + compressed for this mode. + * -o libvirt mode now supports Rocky Linux + * -o openstack documentation for cloud configurations fixed + * -o rhv-upload mode has an improved error when the -os parameter + is invalid or missing + * Remove support for RHEL 3 + * Various language translation updates +- Drop patches + fix-compiler-error-Stdlib.stderr.patch + fix-linker-error.patch + +------------------------------------------------------------------- +Thu Nov 30 22:22:22 UTC 2023 - olaf@aepfle.de + +- Remove obsolete requirement for ocaml-gettext-stub-devel +- Require OCaml 4.07+ +- Align ExclusiveArch with libguestfs + +------------------------------------------------------------------- +Wed Feb 8 16:08:19 MST 2023 - carnold@suse.com + +- Update to virt-v2v 2.2.0 + * New virt-v2v-inspector(1) tool. This tool can be used before + conversion to collect facts about the source guest, such as + number of disks, and to estimate the disk space required after + conversion. + * Add support for NVMe devices and SATA hard disks when importing + from VMware VMX files (Laszlo Ersek). + * Add support for importing to KubeVirt using the new + experimental -o kubevirt mode. + * Windows 11 guests are now supported. + * Rocky Linux guest support has been added (Andrey Drobyshev). + * The -o json mode was removed. It was intended to be used with + KubeVirt but was never actually used there. Use -o kubevirt + instead. + * Numerous bug fixes and build changes + +------------------------------------------------------------------- +Tue Oct 4 14:00:46 MDT 2022 - carnold@suse.com + +- jsc#PED-2113 [Virt Tools] Refresh Virtualization Tools for Xen + and KVM Management + +------------------------------------------------------------------- +Tue Jul 12 16:03:38 MDT 2022 - carnold@suse.com + +- Update to version 2.0.7 + * This is a bug fix release + fix-compiler-error-Stdlib.stderr.patch +- Drop patch contained in new tarball + CVE-2022-2211-options-fix-buffer-overflow-in-get_keys.patch + +------------------------------------------------------------------- +Wed Jun 29 09:51:03 MDT 2022 - carnold@suse.com + +- bsc#1201064 - Libguestfs: Buffer overflow in get_keys leads + to DOS - CVE-2022-2211 + CVE-2022-2211-options-fix-buffer-overflow-in-get_keys.patch + +------------------------------------------------------------------- +Thu May 26 11:39:38 MDT 2022 - carnold@suse.com + +- Update to version 2.0.6 + * This is a bug fix release on top of 2.0.5 + +------------------------------------------------------------------- +Thu May 12 14:40:29 MDT 2022 - carnold@suse.com + +- Update to version 2.0.5 + * Virt-v2v has been modularised allowing external programs to + examine the state of the conversion and inject their own + copying step. Further enhancements will be made to this new + architecture in forthcoming releases. + * The command line is almost identical apart from some debugging + features that were removed (see below). The only significant + difference is that the output format (-of) now has to be + specified if it is different from the input format, whereas + previous versions of virt-v2v would use the same output format + as input format automatically. + * A lot of time was spent improving the performance of virt-v2v + in common cases. + * Implement conversion of ALT Linux guests (Mikhail Gordeev). + * Many bug fixes and performance enhancements were made to oVirt + imageio output (Nir Soffer). + * There is a new virt-v2v-in-place(1) tool which replaces the + existing virt-v2v --in-place option. + * Virt-v2v can now convert guests which use LUKS encrypted + logical volumes (Laszlo Ersek). + * Option -oo rhv-direct has been replaced by -oo rhv-proxy, and + direct mode (which is much faster) is now the default when + writing to oVirt, with proxy mode available for restricted + network configurations (thanks: Nir Soffer). + * The following command line options were removed: + --print-estimate, --debug-overlays, --no-copy. + * Virt-v2v no longer installs the RHEV-APT tool in Windows + guests. This tool was deprecated and then removed in oVirt 4.3. + * Deprecated tool virt-v2v-copy-to-local has been removed. + This was deprecated in November 2018. + +------------------------------------------------------------------- +Thu Jan 6 15:56:46 MST 2022 - carnold@suse.com + +- Update to version 1.44.2 + * This is a bug fix release + virt-v2v-1.44.2.tar.gz.sig +- Drop virt-v2v-1.44.0.tar.gz.sig + +------------------------------------------------------------------- +Thu Sep 16 11:58:59 MDT 2021 - carnold@suse.com + +- Fix ocaml linker error due to unresolved 'rpl_free'. For + comparison, see libguestfs commit 489b14b75e. + fix-linker-error.patch + +------------------------------------------------------------------- +Fri May 7 14:34:45 MDT 2021 - carnold@suse.com + +- Update to version 1.44.0 + Include virt-v2v-1.44.0.tar.gz.sig + * windows: Allow qxldod.inf as synonym for qxl.inf + * -i ova: Set LANG=C and --no-auto-compress when running tar. + * Increase required free space in Windows to 100 MB + * Tidy up error messages when mounting a virtio-win ISO + +------------------------------------------------------------------- +Thu Apr 29 09:37:35 UTC 2021 - Predrag Ivanović + +- Update to version 1.43.5 + * No upstream provided Changelog +- Package changes + * Switch BuildRequires pcre-devel to pcre2-devel + * Ran spec-cleaner + +------------------------------------------------------------------- +Wed Feb 10 22:47:57 UTC 2021 - Jan Engelhardt + +- Remove old specfile macros and constructs. + +------------------------------------------------------------------- +Thu Jan 28 15:20:40 MST 2021 - carnold@suse.com + +- Update to version 1.43.3 + * Support for ALT Linux 9 and up added + * Many upstream bug fixes + * Language file fixes and updates + +------------------------------------------------------------------- +Thu Dec 3 12:41:55 UTC 2020 - Predrag Ivanović + +- Update to version 1.43.2 + * No upstream provided Changelog. + +------------------------------------------------------------------- +Thu Oct 1 07:16:12 UTC 2020 - Predrag Ivanović + +- Fix rpmbuild 'directories not owned by package' error on Leap +- Fix Requires referencing wrong/non-existing packages + +------------------------------------------------------------------- +Mon Jul 20 19:53:29 MDT 2020 - carnold@suse.com + +- Update to version 1.43.1 + * Several bug fixes +- Drop fix-redefinition-error.patch + +------------------------------------------------------------------- +Tue May 5 14:48:39 MDT 2020 - carnold@suse.com + +- Fix error: redefinition of 'glib_autoptr_clear_OsinfoList' + fix-redefinition-error.patch + +------------------------------------------------------------------- +Wed Apr 22 16:10:29 MDT 2020 - carnold@suse.com + +- Initial package of virt-v2v version 1.42.0 + * The rhv-upload output mode of virt-v2v is not listed as output + driver, as virt-p2v does not provide all the GUI elements to + properly use it + * Virt-v2v is checked as requirement for the functional tests, + in addition to guestfish, and virt-customize + * Virt-p2v-make-disk now sets p2v.local as hostname in the + generated disk image + * Document p2v as initial password for the root user on the disk + image generated by virt-p2v-make-disk, virt-p2v-make-kickstart, + and virt-p2v-make-kiwi + diff --git a/virt-v2v.spec b/virt-v2v.spec new file mode 100644 index 0000000..48a3dfc --- /dev/null +++ b/virt-v2v.spec @@ -0,0 +1,222 @@ +# +# spec file for package virt-v2v +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# +# needsbinariesforbuild + + +# If there are patches which touch autotools files, set this to 1. +%global patches_touch_autotools 1 +# The source directory. +%global source_directory 2.4-stable +Name: virt-v2v +Version: 2.4.0 +Release: 0 +Summary: Tools to convert a virtual machine to run on KVM +License: GPL-2.0-or-later +Group: System/Management +URL: https://github.com/libguestfs/virt-v2v +Source0: https://download.libguestfs.org/virt-v2v/%{source_directory}/%{name}-%{version}.tar.gz +Source1: https://download.libguestfs.org/virt-v2v/%{source_directory}/%{name}-%{version}.tar.gz.sig + +BuildRequires: augeas-devel +BuildRequires: file-devel +#BuildRequires: /usr/bin/pod2man +BuildRequires: gcc +BuildRequires: gettext-devel +BuildRequires: glib2-devel +BuildRequires: libguestfs-devel >= 1.49 +BuildRequires: libjansson-devel +BuildRequires: libosinfo-devel +BuildRequires: libvirt-devel +BuildRequires: libxml2-devel +BuildRequires: mkisofs +BuildRequires: ocaml-fileutils-devel +BuildRequires: ocaml-findlib-devel +BuildRequires: ocaml-gettext-devel +BuildRequires: ocaml-hivex-devel +BuildRequires: ocaml-libguestfs +BuildRequires: ocaml-libguestfs-devel +BuildRequires: ocaml-libvirt-devel +BuildRequires: ocaml-ounit-devel +BuildRequires: pcre2-devel +BuildRequires: pkgconfig +BuildRequires: po4a +BuildRequires: qemu-tools +BuildRequires: ocaml(ocaml_base_version) >= 4.07 +BuildRequires: perl(Sys::Guestfs) +BuildRequires: pkgconfig(bash-completion) >= 2.0 +BuildRequires: pkgconfig(libnbd) +Requires: %{_bindir}/gawk +Requires: %{_bindir}/gzip +Requires: %{_bindir}/qemu-nbd +Requires: %{_bindir}/virsh +Requires: guestfs-tools >= 1.49 +Requires: libguestfs >= 1.49 +Requires: libguestfs-winsupport +Requires: libguestfs0 >= 1.49 +Requires: libnbd +Requires: nbdkit +Requires: nbdkit-curl-plugin +Requires: nbdkit-nbd-plugin +Requires: nbdkit-python-plugin +Requires: nbdkit-ssh-plugin +%ifarch x86_64 +Requires: nbdkit-vddk-plugin +%endif +Requires: openssh-clients +Requires: ovmf +Requires: unzip +# Build only for architectures that have a kernel +ExclusiveArch: x86_64 ppc64le s390x aarch64 riscv64 +%if 0%{patches_touch_autotools} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +%endif + +%description +Virt-v2v converts a single guest from a foreign hypervisor to run on +KVM. It can read Linux and Windows guests running on VMware, Xen, +Hyper-V and some other hypervisors, and convert them to KVM managed by +libvirt, OpenStack, oVirt, Red Hat Virtualisation (RHV) or several +other targets. It can modify the guest to make it bootable on KVM and +install virtio drivers so it will run quickly. + +%package bash-completion +Summary: Bash tab-completion for %{name} +Group: System/Management +Requires: %{name} = %{version}-%{release} +Requires: bash-completion >= 2.0 +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description bash-completion +Install this package if you want intelligent bash tab-completion +for %{name}. + +%package man-pages-ja +Summary: Japanese (ja) man pages for %{name} +Group: System/Management +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description man-pages-ja +%{name}-man-pages-ja contains Japanese (ja) man pages +for %{name}. + +%package man-pages-uk +Summary: Ukrainian (uk) man pages for %{name} +Group: System/Management +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description man-pages-uk +%{name}-man-pages-uk contains Ukrainian (uk) man pages +for %{name}. + +%prep +%autosetup -p1 + +%build +%if 0%{patches_touch_autotools} +autoreconf -fi +%endif +%configure +%make_build + +%install +%make_install + +# Delete libtool crap. +find %{buildroot} -type f -name "*.la" -delete -print + +# Virt-tools data directory. This contains a symlink to rhsrvany.exe +# which is satisfied by the dependency on mingw32-srvany. +mkdir -p %{buildroot}/%{_datadir}/virt-tools + +# Delete the v2v test harness (except for the man page). +#rm -r %{buildroot}/%{_libdir}/ocaml/v2v_test_harness +#rm -r %{buildroot}/%{_libdir}/ocaml/stublibs/dllv2v_test_harness* + +# Find locale files. +%find_lang %{name} + +%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 + +# # 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 + +# # 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 + +%files -f %{name}.lang +%license COPYING +#doc README +%{_bindir}/virt-v2v +%{_bindir}/virt-v2v-in-place +%{_bindir}/virt-v2v-inspector +%{_mandir}/man1/virt-v2v.1%{?ext_man} +%{_mandir}/man1/virt-v2v-in-place.1%{?ext_man} +%{_mandir}/man1/virt-v2v-hacking.1%{?ext_man} +%{_mandir}/man1/virt-v2v-input-vmware.1%{?ext_man} +%{_mandir}/man1/virt-v2v-input-xen.1%{?ext_man} +%{_mandir}/man1/virt-v2v-output-local.1%{?ext_man} +%{_mandir}/man1/virt-v2v-output-openstack.1%{?ext_man} +%{_mandir}/man1/virt-v2v-output-rhv.1%{?ext_man} +%{_mandir}/man1/virt-v2v-release-notes-1.42.1%{?ext_man} +%{_mandir}/man1/virt-v2v-release-notes-2.0.1%{?ext_man} +%{_mandir}/man1/virt-v2v-release-notes-2.4.1%{?ext_man} +%{_mandir}/man1/virt-v2v-support.1%{?ext_man} +%{_mandir}/man1/virt-v2v-inspector.1.gz +%{_mandir}/man1/virt-v2v-release-notes-2.2.1.gz +%{_datadir}/virt-tools + +%files bash-completion +%license COPYING +%{_datadir}/bash-completion/completions/virt-v2v + +%files man-pages-ja +%license COPYING +%lang(ja) %{_mandir}/ja/man1/*.1* +%dir %{_mandir}/ja +%dir %{_mandir}/ja/man1/ + +%files man-pages-uk +%license COPYING +%lang(uk) %{_mandir}/uk/man1/*.1* +%dir %{_mandir}/uk +%dir %{_mandir}/uk/man1/ + +%changelog