setfiles runs out of memory in glibc fts_read (doc fix)

resolves: RHEL-125116
This commit is contained in:
Richard W.M. Jones 2025-10-31 10:19:43 +00:00
parent fb087ef595
commit bf59719e6a
12 changed files with 223 additions and 21 deletions

View File

@ -0,0 +1,28 @@
From 9142adb017be27f2f5af5cbc6cf61d3bb6437acc Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 30 Oct 2025 17:38:08 +0000
Subject: [PATCH] docs: Remove left over internal link to resource requirements
section
This link was broken, but also points (if it was fixed) to the head of
the current section so it's not useful. Remove the sentence entirely.
Fixes: commit a8da179db521a8b677fd7977b5a844d3af65ffba
---
docs/virt-v2v.pod | 3 ---
1 file changed, 3 deletions(-)
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
index d530d54b..e459ae1b 100644
--- a/docs/virt-v2v.pod
+++ b/docs/virt-v2v.pod
@@ -1068,9 +1068,6 @@ conversion at all unless at least 1GB is available there. You can
change the directory that virt-v2v uses by setting
C<$VIRT_V2V_TMPDIR>.
-See also L</Resource requirements> above and L</ENVIRONMENT VARIABLES>
-below.
-
=head2 Running virt-v2v as root or non-root
Nothing in virt-v2v inherently needs root access, and it will run just

View File

@ -0,0 +1,110 @@
From b2195e0715af90f572135295e65da22f9f18d0c7 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 30 Oct 2025 17:47:16 +0000
Subject: [PATCH] docs: Put all headings at level 2 inside NOTES section
We were not consistent in our headings inside this section, with some
operating system notes using:
=head2 RHEL 4: SELinux relabel appears to hang forever
and others using:
=head2 Windows
=head3 System disk on a Dynamic Disk is not supported
Put all the headings at level 2 (except one which is really nested).
---
docs/virt-v2v.pod | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
index e459ae1b..cba578c2 100644
--- a/docs/virt-v2v.pod
+++ b/docs/virt-v2v.pod
@@ -1374,9 +1374,7 @@ You can use the L<chattr(1)> command before converting the guest:
and then restore it (I<+i>) after conversion.
-=head2 Debian and Ubuntu
-
-=head3 "warning: could not determine a way to update the configuration of Grub2"
+=head2 Debian/Ubuntu: "warning: could not determine a way to update the configuration of Grub2"
Currently, virt-v2v has no way to set the default kernel in Debian
and Ubuntu guests using GRUB 2 as bootloader. This means that
@@ -1386,7 +1384,7 @@ A recommended procedure is, before using virt-v2v, to check that the
boot kernel is the best kernel available in the guest (for example
by making sure the guest is up-to-date).
-=head3 "vsyscall attempted with vsyscall=none"
+=head2 Debian: "vsyscall attempted with vsyscall=none"
When run on a recent Debian host virt-v2v may fail to convert guests
which were created before 2013. In the debugging output you will see
@@ -1405,9 +1403,7 @@ running virt-v2v:
For more information, see L<https://bugzilla.redhat.com/1592061>
-=head2 Windows
-
-=head3 System disk on a Dynamic Disk is not supported
+=head2 Windows: System disk on a Dynamic Disk is not supported
If the Windows system disk (the drive containing C<\windows>) is
located on a Dynamic Disk then it cannot be converted. Data disks —
@@ -1416,7 +1412,7 @@ the Windows operating system — may be Dynamic Disks.
See L<https://bugzilla.redhat.com/2140548>.
-=head3 Windows E<ge> 8 Fast Startup is incompatible with virt-v2v
+=head2 Windows E<ge> 8 Fast Startup is incompatible with virt-v2v
Guests which use the Windows E<ge> 8 "Fast Startup" feature (or guests
which are hibernated) cannot be converted with virt-v2v. You will see
@@ -1436,7 +1432,7 @@ able to convert it.
For more information, see:
L<guestfs(3)/WINDOWS HIBERNATION AND WINDOWS 8 FAST STARTUP>.
-=head3 Boot failure: 0x0000007B
+=head2 Windows: Boot failure: 0x0000007B
This boot failure is caused by Windows being unable to find or load
the right disk driver (eg. F<viostor.sys>). If you experience this
@@ -1490,7 +1486,7 @@ loaded.
=back
-=head3 OpenStack and Windows reactivation
+=head2 OpenStack and Windows reactivation
OpenStack does not offer stable device / PCI addresses to guests.
Every time it creates or starts a guest, it regenerates the libvirt
@@ -1518,7 +1514,7 @@ This can also prevent booting with a 7B error [see previous section]
if the guest has group policy containing
C<Device Installation Restrictions>.
-=head3 Support for SHA-2 certificates in Windows 7 and Windows Server 2008 R2
+=head2 Support for SHA-2 certificates in Windows 7 and Windows Server 2008 R2
Later versions of the Windows virtio drivers are signed using SHA-2
certificates (instead of SHA-1). The original shipping Windows 7 and
@@ -1532,7 +1528,7 @@ before converting the guest.
For further information see:
L<https://bugzilla.redhat.com/show_bug.cgi?id=1624878>
-=head3 After conversion, Windows guest cannot be upgraded
+=head2 After conversion, Windows guest cannot be upgraded
After successful conversion, the Windows guest cannot be upgraded to a
later release of Windows (eg. from Windows Server 2016 to 2019).
@@ -1568,7 +1564,7 @@ entries.
For further information see:
L<https://issues.redhat.com/browse/MTV-2256>
-=head3 "Activation of partially decrypted BITLK device is not supported"
+=head2 Windows: "Activation of partially decrypted BITLK device is not supported"
This error from L<cryptsetup(8)> may occur for Windows 11 guests that
have a virtual TPM. Even if Bitlocker is not activated, the disk is

View File

@ -0,0 +1,59 @@
From 9bb2e7d4705811f0e227103c14757895e5f591d9 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 30 Oct 2025 17:48:39 +0000
Subject: [PATCH] docs: Add more description for --memsize option
The adjustable --memsize option, which increases the amount of memory
available in the appliance, is necessary to work around at least one
unfixable setfiles / glibc bug. Document in more detail what this
option does in a new section, and mention this issue. (As the issue
can't be fixed properly, this is a documentation-only fix).
Fixes: https://issues.redhat.com/browse/RHEL-125116
---
docs/virt-v2v.pod | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
index cba578c2..3d5fcba8 100644
--- a/docs/virt-v2v.pod
+++ b/docs/virt-v2v.pod
@@ -447,6 +447,8 @@ Change the amount of memory allocated when doing the conversion.
Virt-v2v will usually choose a suitable default. Increase this if you
see that the conversion step is running out of memory.
+See also L</Adjusting memory available for conversion>.
+
=item B<-n> in:out
=item B<-n> out
@@ -987,11 +989,27 @@ alleviate this.
=head2 Compute power and RAM
+Virt-v2v can be run in a virtual machine, but may run faster on bare
+metal.
+
Virt-v2v is not especially compute or RAM intensive. If you are
running many parallel conversions, then you may consider allocating
-one CPU core and 2 GB of RAM per running instance.
+one CPU core and 2 GB of RAM per running instance. (You may adjust
+the amount of memory used by conversion, see the next heading.)
-Virt-v2v can be run in a virtual machine.
+=head2 Adjusting memory available for conversion
+
+Virt-v2v I<--memsize=N> can be used to increase the amount of memory
+available to do conversion. This rarely needs to be adjusted, but can
+help to workaround some conversion problems.
+
+=head3 Linux: setfiles runs out of memory when relabelling
+
+For Linux guests that use SELinux, setfiles can run out of memory if a
+single directory contains millions of files. As there is no simple
+way for virt-v2v to detect this problem in advance, you may have to
+use I<--memsize=4000> (or larger) to convert such guests. For details
+see L<https://issues.redhat.com/browse/RHEL-125116>
=head2 Trimming

View File

@ -1,4 +1,4 @@
From c3e533d76715766c90be4204b3badb2044e1abc7 Mon Sep 17 00:00:00 2001
From 681e32b4c9b6eb5cda7cba6bc7420a8bfcdb8ae1 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sun, 30 Aug 2015 03:21:57 -0400
Subject: [PATCH] RHEL: Fixes for libguestfs-winsupport.

View File

@ -1,4 +1,4 @@
From 32038f4b47a8d016e0197a11671065cb65d69ab7 Mon Sep 17 00:00:00 2001
From f7bd84153c6f579ac257d7ddda0c0c15adec0c94 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sun, 28 Sep 2014 19:14:43 +0100
Subject: [PATCH] RHEL: v2v: Select correct qemu binary for -o qemu mode

View File

@ -1,4 +1,4 @@
From af2d46307e9f1f70379fd500744d1017d93ffd03 Mon Sep 17 00:00:00 2001
From 075e3aac91a8a22fc3af41ca42cea5f8ed73fc8e Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 30 Sep 2014 10:50:27 +0100
Subject: [PATCH] RHEL: v2v: Disable the --qemu-boot / -oo qemu-boot option
@ -43,7 +43,7 @@ index 49f00754..bdf12c5d 100644
=item B<-o null>
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
index d530d54b..a4f2538c 100644
index 3d5fcba8..f9e24e6d 100644
--- a/docs/virt-v2v.pod
+++ b/docs/virt-v2v.pod
@@ -167,11 +167,6 @@ Since F<guest-domain.xml> contains the path(s) to the guest disk
@ -58,7 +58,7 @@ index d530d54b..a4f2538c 100644
=head1 OPTIONS
=over 4
@@ -574,9 +569,6 @@ This is similar to I<-o local>, except that a shell script is written
@@ -576,9 +571,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>.
@ -68,7 +68,7 @@ index d530d54b..a4f2538c 100644
ifelse(ENABLE_OVIRT, yes, `
=item B<-o> B<vdsm>
@@ -649,11 +641,6 @@ For I<-o openstack> (L<virt-v2v-output-openstack(1)>) only, set a guest ID
@@ -651,11 +643,6 @@ For I<-o openstack> (L<virt-v2v-output-openstack(1)>) only, set a guest ID
which is saved on each Cinder volume in the C<virt_v2v_guest_id>
volume property.

View File

@ -1,4 +1,4 @@
From 0b85940bcb3a70bd3bfb04211e4dcdc48e2e6d8e Mon Sep 17 00:00:00 2001
From 603d391a43250b3a495bdb354410db6a2ddff0ec Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Fri, 24 Apr 2015 09:45:41 -0400
Subject: [PATCH] RHEL: Fix list of supported sound cards to match RHEL qemu

View File

@ -1,4 +1,4 @@
From 2b9b33d5fa0fc6ef7dd242bd53f611332c5cd5f8 Mon Sep 17 00:00:00 2001
From d9a2246094ba73ff4e04e182f84da53c168d4f0f Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 2 Mar 2017 14:21:37 +0100
Subject: [PATCH] RHEL: v2v: -i disk: force VNC as display (RHBZ#1372671)

View File

@ -1,4 +1,4 @@
From 7133f0ae77f3238e2f7cc406edcc79857a949e32 Mon Sep 17 00:00:00 2001
From ff5af0f6426cd11c6afdabe32adb343615e83bd2 Mon Sep 17 00:00:00 2001
From: Pino Toscano <ptoscano@redhat.com>
Date: Tue, 26 Mar 2019 09:42:25 +0100
Subject: [PATCH] RHEL: point to KB for supported v2v hypervisors/guests

View File

@ -1,4 +1,4 @@
From 634d606d09ecff6543ed03f25f8535d8eda5c186 Mon Sep 17 00:00:00 2001
From d912ca753f83b526657a3ce76535d48caa1cf85b Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 5 Jul 2022 11:58:09 +0100
Subject: [PATCH] RHEL: tests: Remove btrfs test

View File

@ -1,4 +1,4 @@
From dc9fff82294985a89b0f17637cdf4ca4e730a071 Mon Sep 17 00:00:00 2001
From 35465901ea8b140550b8a6d2cdc0f8920151da61 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 9 Jul 2024 11:30:09 +0100
Subject: [PATCH] RHEL: Add warning about virt-v2v-in-place not being supported

View File

@ -45,7 +45,7 @@ ExclusiveArch: x86_64
Name: virt-v2v
Epoch: 1
Version: 2.9.9
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
@ -71,14 +71,17 @@ Patch0003: 0003-test-data-phony-guests-make-windows-img.sh-Minor-twe.patch
Patch0004: 0004-test-data-phony-guests-Create-one-Windows-UEFI-image.patch
Patch0005: 0005-convert-windows-Fix-ESP-conversion-if-C-Windows-Temp.patch
Patch0006: 0006-tests-Add-a-test-of-Windows-UEFI-conversion.patch
Patch0007: 0007-RHEL-Fixes-for-libguestfs-winsupport.patch
Patch0008: 0008-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch
Patch0009: 0009-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch
Patch0010: 0010-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch
Patch0011: 0011-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch
Patch0012: 0012-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch
Patch0013: 0013-RHEL-tests-Remove-btrfs-test.patch
Patch0014: 0014-RHEL-Add-warning-about-virt-v2v-in-place-not-being-s.patch
Patch0007: 0007-docs-Remove-left-over-internal-link-to-resource-requ.patch
Patch0008: 0008-docs-Put-all-headings-at-level-2-inside-NOTES-sectio.patch
Patch0009: 0009-docs-Add-more-description-for-memsize-option.patch
Patch0010: 0010-RHEL-Fixes-for-libguestfs-winsupport.patch
Patch0011: 0011-RHEL-v2v-Select-correct-qemu-binary-for-o-qemu-mode-.patch
Patch0012: 0012-RHEL-v2v-Disable-the-qemu-boot-oo-qemu-boot-option-R.patch
Patch0013: 0013-RHEL-Fix-list-of-supported-sound-cards-to-match-RHEL.patch
Patch0014: 0014-RHEL-v2v-i-disk-force-VNC-as-display-RHBZ-1372671.patch
Patch0015: 0015-RHEL-point-to-KB-for-supported-v2v-hypervisors-guest.patch
Patch0016: 0016-RHEL-tests-Remove-btrfs-test.patch
Patch0017: 0017-RHEL-Add-warning-about-virt-v2v-in-place-not-being-s.patch
BuildRequires: autoconf, automake, libtool
BuildRequires: make
@ -388,7 +391,7 @@ done
%changelog
* Tue Oct 28 2025 Richard W.M. Jones <rjones@redhat.com> - 1:2.9.9-3
* Fri Oct 31 2025 Richard W.M. Jones <rjones@redhat.com> - 1:2.9.9-4
- Rebase to virt-v2v 2.9.9
resolves: RHEL-111241
- Tighten permissions on windows C:\Program Files\Guestfs
@ -409,6 +412,8 @@ done
resolves: RHEL-122753
- Fix ESP conversion if C:\Windows\Temp has alternate case
resolves: RHEL-124569
- setfiles runs out of memory in glibc fts_read (doc fix)
resolves: RHEL-125116
* Thu Aug 21 2025 Richard W.M. Jones <rjones@redhat.com> - 1:2.8.1-9
- Rebase to virt-v2v 2.8.1