- Update to virt-v2v 2.5.9 (jsc#PED-8910)

* convert: More robust qemu-ga installation, change paths
    mlcustomize: Use Start-Process -Wait to run qemu-ga installer
    mlcustomize: Add Firstboot.firstboot_dir function
    mlcustomize: Place powershell scripts into <firstboot_dir>\Temp
  * common: mlcustomize: Inject qemu-ga & blnsvr into
    <firstboot_dir>/Temp
  * Pull in a fix to make Windows firstboot more reliable.
    mlcustomize: Add some comments to firstboot batch file
    mlcustomize: Reboot Windows between each firstboot script
  * convert: windows: Don't wait indefinitely for netkvm.sys
  * convert: windows: Allow increasing verboseness of driver
    installation
  * convert: windows: Online all virtio disks at first boot
  * convert: windows: Ignore sriov drivers on virtio-win disk
- Update to virt-v2v 2.5.6 (jsc#PED-8910)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-v2v?expand=0&rev=65
This commit is contained in:
Charles Arnold 2024-08-29 21:03:50 +00:00 committed by Git OBS Bridge
commit 5817d10b5e
12 changed files with 652 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

BIN
virt-v2v-2.4.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

17
virt-v2v-2.4.0.tar.gz.sig Normal file
View File

@ -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-----

3
virt-v2v-2.5.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca8d3a9273520649267b7dc2dcadf69cb96023248110838c010dddf2886a3f83
size 7371324

17
virt-v2v-2.5.5.tar.gz.sig Normal file
View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmaPwJIRHHJpY2hAYW5u
ZXhpYS5vcmcACgkQkXOPc+G3aKBpCxAAszrSDlqc3M+iGWelYd037lvxdDrgY+OW
Znp7gYK+JXsik9wjuKjHjV3Uz0VyMbRmkMxS6TBxlfK7jxPrfoDNPYkDLTAGJncm
MJBNE8j7nUoV1HwfkJF5ldHkjKZj3woM5dGSbm122yuratn9Irgnze35V2IGwOj0
uI/ZlRY3rSmDD0nDoQZvVTejq/Yok155VdU0GYevUauqZHuYVpZS+ewI1LB2rUFI
3kSK5Cer2K4lkggML2pOgbNbqrVP4oXOJ3uUxxoNdBaJUHHOe6+5KWZ1hRZRRzcz
RQB9jLi3mdk6FmpCWupnj9534JlLvbssh+a6rDYi2oi1hFgIPT36nuA6f8xD2e1z
ShgYAa1WSVahuWa2H525f9P7UbrwPUcM2miDqM9HinYY6RKho/Ww6jayHrIMfjwH
oAWqFmeBBNLZcxOiEQS2VPtqRWoLJm1LCCHLBVFqGj5DTxAzTA8fxqVJDh2YDTiw
03SQtdwPl1sNNlcQk1bzwPzlnfFHKPCQMJJSg2gHfybziwUH3hwQswjRIQnnNqL+
BadmmA2q23YyQQKjMOgZ9LH+E3aDCSV9bMpSQrodMyoulH7V3XdXIgcwoql8yUsP
NMMCmvDAvtzD2QsqKmFwkzpfU4q/957TCV7GWbG+jIZ7G8jWhOH62GliN6l06ogl
6TWCwY31s0g=
=xmxH
-----END PGP SIGNATURE-----

3
virt-v2v-2.5.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8dd7e86c99af963588b650a458543398e005c64ae94fe0e7d194f194a2e528d
size 7363733

17
virt-v2v-2.5.6.tar.gz.sig Normal file
View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmapDYsRHHJpY2hAYW5u
ZXhpYS5vcmcACgkQkXOPc+G3aKATow//dAt+/eD4WANTgt82gOK5VLuhlp/il6/L
IsErVntOsmAlr1Ukag6lAFmrQrxDHbRo1g9w+P3dabEbedqeAy0vlyE7feifbzfn
8dAGAYJBPqyhG5w5Y1YKU/ZfJF5OjxuD9kjn5YTBNmNNva2wqrb4vQqLfmfhpMlx
hf3xMlqJ3plXvaqPFk69BzSgA1hKP9Z/f522RQs9lRq+aSP00zatLX9DK5oXynas
6DbInkrfUjbMaENoYcuUzC1w45DUcTcq6Or36+h86G78yIkQpfwlS82G0/f4wVnv
QlD5pC6dCmowuCrr5/xMoYt5ah7L+qcEUIRJ4uB0xQgQtQV32eLIFjpcHsN973ot
ji2ievMtoM5Ncu2Hq1R02Hvx5PUvVZamEpEWf+HzqJl2VATw2F63CMALLjxR6mw4
WORi90ZLQWtbt7lJgZEI29WOabuBWGG/cn+01gWLh8swqQpAgkGsbJhCxNXLiUfy
0PE7K+zoWVZzSiuOVeIh1Gn2p75gSTRQXfY+l+IfPPfOUBOuNN+w1J5HRUaT7ZAk
zBbPGFA2Y6x2zR9TD5n87QftXF6LPhf715qh5URI4Wl0pE+C9gxhQk+nf1aMKJ5J
/fOAtU8N+PtZPUm95NTaQxpkraspwHmhLRygWzA7wUGANmVUiX0fE3qgxW9NE2bI
paYjGigt040=
=FGlR
-----END PGP SIGNATURE-----

3
virt-v2v-2.5.9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00cc0b0559fd2d06f20d23e15a48e8cfd1cb249085f5d8a6b7b8033d5e31fb43
size 7405691

17
virt-v2v-2.5.9.tar.gz.sig Normal file
View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJFBAABCAAvFiEE93dPsa0HSn6Mh2fqkXOPc+G3aKAFAmbQhcIRHHJpY2hAYW5u
ZXhpYS5vcmcACgkQkXOPc+G3aKDvWhAArXEur0Rcc5YXi1CU+zWrcO0jdH1/MZAL
l5y/cz50Kd6y0chyPkgDL9tL42IRhNJHTtS7Fhv1lz7+Gq3cBSg1bOrjzXCW+azI
pin4mKBB6npPsBsIl6pLzjG//UzlKHNBqbxi+piOWFWDGi4DCdY/1Uknh3r7Booo
B6QVwUWVLT7BPq3UsDd9rJa84s/UmAoi/DLTvmuXQ5CFyJHms5Lb8hi1IgfurgKN
DfsrNPCjt75fdhSmcfXoaA0dHGkBk8JH1plJtZd/I6XoMhFDwaOKFy/uV/gbddwF
Y/cxSKHefU3NZfCVIPgaEFOhFFNFYXUJdQdK+RRX227PSKihZfttB3kn1cjJ8MSo
JwX4albAlnVBCigLZx2wqw8IySxlFKnn5RNk/4HNwFxjC3pmZNhiNvP98IwRRKVx
cIRpS/WK0ITku3ntyP5T3CNUPP8kr0HmmZBHe8oPvh5Y1ghxsEigos/0cPuGzPeN
DAgYmlchX8sNUUauSzQectfHFHt0nPND+vVfil0pyjG4naSyaFipuGle4IH1BDbY
VYSnoDfUM36V/o3zeCA7FHW5r8A4ZAXWJNCBaCiMrtXC9rBQY3dRMFLS+WCFcF4P
eR+TCTBg/ju0QzAZU4RsvTykPHJBmw1kv/9kTHCk+8anB/NaE+Wzw5OOb7Nmf+yo
xRwGE8T9b+k=
=V8Of
-----END PGP SIGNATURE-----

324
virt-v2v.changes Normal file
View File

@ -0,0 +1,324 @@
-------------------------------------------------------------------
Thu Aug 29 14:54:30 MDT 2024 - carnold@suse.com
- Update to virt-v2v 2.5.9 (jsc#PED-8910)
* convert: More robust qemu-ga installation, change paths
mlcustomize: Use Start-Process -Wait to run qemu-ga installer
mlcustomize: Add Firstboot.firstboot_dir function
mlcustomize: Place powershell scripts into <firstboot_dir>\Temp
* common: mlcustomize: Inject qemu-ga & blnsvr into
<firstboot_dir>/Temp
* Pull in a fix to make Windows firstboot more reliable.
mlcustomize: Add some comments to firstboot batch file
mlcustomize: Reboot Windows between each firstboot script
* convert: windows: Don't wait indefinitely for netkvm.sys
* convert: windows: Allow increasing verboseness of driver
installation
* convert: windows: Online all virtio disks at first boot
* convert: windows: Ignore sriov drivers on virtio-win disk
-------------------------------------------------------------------
Tue Aug 6 10:31:04 MDT 2024 - carnold@suse.com
- Update to virt-v2v 2.5.6 (jsc#PED-8910)
* -i ova: Ignore dot-underscore-files in OVA files
* mlcustomize: firstboot: Use Linux path for Powershell script path
* mlcustomize: firstboot: Use powershell.exe instead of path
* mlcustomize: firstboot: Use Powershell -NoProfile flag
* mlcustomize: Revert delay installation of qemu-ga MSI
* --mac: Allow gw and len fields to be empty
* Debugging enhancements
-------------------------------------------------------------------
Mon Jul 15 11:07:17 MDT 2024 - carnold@suse.com
- Update to virt-v2v 2.5.5 (jsc#PED-6305)
* -i vmx: Remove scp -T option
* -i vmx: Refactor ssh/scp code into a new module
* -i vmx: Simplify scp wrapper
* -i vmx: Add the input password to vmx_source
* -i vmx: Remove dependency of ssh.ml on Xml.uri
* -i vmx: Replace external ssh/scp with nbdkit-ssh-plugin
* input/nbdkit_ssh: Make retry filter optional
* input/nbdkit_ssh: Make password parameter optional
* input/ssh: Use nbdinfo --can connect (instead of --size)
* add CircleLinux to supported distros
* Add support for LoongArch
* -o rhv-upload: fix rhv-upload function to work with keycloak
instead of basic auth only (#43)
* -o rhv-upload: Add context if parsing params fails (#47)
* -o rhv-upload: clarify debug message
* -o rhv-upload: Dump the JSON before parsing
* -o rhv-upload: Output outside of the with block
* -o rhv-upload: Improve host id logging
* -o rhv-upload: Don't share transfer.json (#49)
* -o rhv-upload: Add O_TRUNC to truncate JSON file if it exists
* -o kubevirt: Add os firmware field in output
* -o kubevirt: Add CPU model & topology when available
* -o kubevirt: Add network interfaces to output
* -o kubevirt: Add an RNG device if virtio-rng driver in the
guest
* -o kubevirt: Use virtio-transitional for ancient guests
* -o kubevirt: Add support for sound device
* -o kubevirt: Add metadata labels
* -o kubevirt: Create a VirtualMachine instead of a
VirtualMachineInstance
* -o libvirt: Use <os firmware='efi'> finally
* -i ova: Use the detected firmware type when absent rather than
default (#53)
* Fix bytecode compilation to output whole exe instead of using
-custom
* convert: windows: Install blnsvr from virtio-win
-------------------------------------------------------------------
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 <clock offset="utc|localtime"/>.
* -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ć <predivan@mts.rs>
- 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 <jengelh@inai.de>
- 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ć <predivan@mts.rs>
- Update to version 1.43.2
* No upstream provided Changelog.
-------------------------------------------------------------------
Thu Oct 1 07:16:12 UTC 2020 - Predrag Ivanović <predivan@mts.rs>
- 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

224
virt-v2v.spec Normal file
View File

@ -0,0 +1,224 @@
#
# 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
%global source_directory 2.5-development
Name: virt-v2v
Version: 2.5.9
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: libnbd
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