Bug 2089609

Summary: Virt-v2v can't convert rhel8.6 guest from VMware on rhel8.7
Product: Red Hat Enterprise Linux 8 Reporter: mxie <mxie>
Component: virt-v2vAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: tingting zheng <tzheng>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.7CC: chhu, hongzliu, juzhou, tyan, tzheng, vwu, xiaodwan
Target Milestone: rcKeywords: Automation
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-24 08:05:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mxie@redhat.com 2022-05-24 07:17:15 UTC
Description of problem:
Virt-v2v can't convert rhel8.6 guest from VMware on rhel8.7

Version-Release number of selected component (if applicable):
virt-v2v-1.42.0-19.module+el8.7.0+15006+42c9ed21.x86_64
libguestfs-1.44.0-7.module+el8.7.0+15229+b143b6f1.x86_64
libvirt-libs-8.0.0-7.module+el8.7.0+15262+04e62783.x86_64
qemu-img-6.2.0-13.module+el8.7.0+15131+941fbd8d.x86_64
nbdkit-1.24.0-4.module+el8.6.0+14480+c0a3aa0f.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Convert a rhel8.6 guest from VMware via vddk7.0.3 by v2v
# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -it vddk  -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21
[   1.7] Creating an overlay to protect the source from being modified
[   2.5] Opening the overlay
[   7.0] Inspecting the overlay
[  48.2] Checking for sufficient free disk space in the guest
[  48.2] Estimating space required on target for each disk
[  48.2] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: error: no installed kernel packages were found.

This probably indicates that virt-v2v was unable to inspect this guest 
properly.

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]

2.Convert a rhel8.6 guest from VMware via vddk6.7 by v2v

# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -it vddk -io vddk-libdir=/home/vddk6.7 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64 -it vddk  -io vddk-libdir=/home/vddk6.7 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21
[   1.7] Creating an overlay to protect the source from being modified
[   2.3] Opening the overlay
[   6.8] Inspecting the overlay
[  46.3] Checking for sufficient free disk space in the guest
[  46.3] Estimating space required on target for each disk
[  46.3] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: error: no installed kernel packages were found.

This probably indicates that virt-v2v was unable to inspect this guest 
properly.

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]

3.Convert a rhel8.6 guest from VMware without vddk by v2v
#  virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64  -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.6-x86_64
[   2.7] Creating an overlay to protect the source from being modified
[   3.7] Opening the overlay
[  35.3] Inspecting the overlay
[ 298.1] Checking for sufficient free disk space in the guest
[ 298.1] Estimating space required on target for each disk
[ 298.1] Converting Red Hat Enterprise Linux 8.6 (Ootpa) to run on KVM
virt-v2v: error: no installed kernel packages were found.

This probably indicates that virt-v2v was unable to inspect this guest 
properly.

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]


Actual results:
As above description

Expected results:
Virt-v2v can convert rhel8.6 guest from VMware on rhel8.7

Additional info:
1.Virt-v2v can convert rhel8.5 guest from VMware on rhel8.7

# virt-v2v -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.5-x86_64 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21 -ip /home/passwd
[   0.0] Opening the source -i libvirt -ic vpx://root.227.27/data/10.73.199.217/?no_verify=1 esx7.0-rhel8.5-x86_64 -it vddk  -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=76:75:59:0E:32:F5:1E:58:69:93:75:5A:7B:51:32:C5:D1:6D:F1:21
[   1.7] Creating an overlay to protect the source from being modified
[   2.5] Opening the overlay
[   7.0] Inspecting the overlay
[  15.6] Checking for sufficient free disk space in the guest
[  15.6] Estimating space required on target for each disk
[  15.6] Converting Red Hat Enterprise Linux 8.5 (Ootpa) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 104.6] Mapping filesystem data to avoid copying unused and blank areas
[ 105.3] Closing the overlay
[ 105.6] Assigning disks to buses
[ 105.6] Checking if the guest needs BIOS or UEFI to boot
[ 105.6] Initializing the target -o libvirt -os default
[ 105.6] Copying disk 1/1 to /var/lib/libvirt/images/esx7.0-rhel8.5-x86_64-sda (raw)
^C  (21.55/100%)


2.Can't reproduce the bug on rhel9.1
virt-v2v-2.0.5-1.el9.x86_64
libguestfs-1.48.2-2.el9.x86_64
guestfs-tools-1.48.1-1.el9.x86_64
nbdkit-server-1.30.5-1.el9.x86_64
libnbd-1.12.2-1.el9.x86_64

Comment 4 Xiaodai Wang 2022-05-24 08:00:16 UTC
chroot: /sysroot: running 'librpm'
error: db5 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db5 - Resource temporarily unavailable (11)
error: cannot open Packages database in 
error: db5 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db5 - Resource temporarily unavailable (11)
error: cannot open Packages database in 
librpm returned 0 installed packages

This is similar with https://bugzilla.redhat.com/show_bug.cgi?id=2038786.

Comment 5 Richard W.M. Jones 2022-05-24 08:05:45 UTC
I agree.  Let's continue looking at this in bug 2089623, since
the two bugs are basically the same thing.

*** This bug has been marked as a duplicate of bug 2089623 ***