-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-10.0
-
None
-
nbdkit-1.40.4-3.el10
-
No
-
Moderate
-
rhel-virt-tools
-
ssg_virtualization
-
None
-
False
-
False
-
-
None
-
None
-
Pass
-
Automated
-
-
x86_64
-
None
Description of problem:
virt-v2v cannot convert a guest from VMware via vddk if the guest contains a disk with a non-integer size
Version-Release number of selected component (if applicable):
virt-v2v-2.7.1-2.el10.x86_64
libguestfs-1.54.0-5.el10.x86_64
guestfs-tools-1.52.2-2.el10.x86_64
nbdkit-server-1.40.4-2.el10.x86_64
libnbd-1.20.3-2.el10.x86_64
libvirt-libs-10.10.0-2.el10.x86_64
qemu-img-9.1.0-8.el10.x86_64
How reproducible:
100%
Steps:
1.Prepare a guest with two disks on VMware and the size of one of the disks is not an integer, pls refer to screenshot 'disk-size-102.4MB.png'
2. Convert the guest from VMware by virt-v2v with vddk
# virt-v2v -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.3 -io vddk-thumbprint=86:25:2F:5E:74:5C:43:D9:28:62:31:E0:1F:BB:1F:FD:AC:18:A5:93 -ip /home/passwd Auto-esx7.0-rhel8.7-x86_64-rhv -o null [ 0.0] Setting up the source: -i libvirt -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk Auto-esx7.0-rhel8.7-x86_64-rhv [ 2.6] Opening the source [ 10.4] Inspecting the source [ 52.8] Checking for sufficient free disk space in the guest [ 52.8] Converting Red Hat Enterprise Linux 8.7 Beta (Ootpa) (rhel8.7) to run on KVM virt-v2v: This guest has virtio drivers installed. [ 178.0] Setting a random seed [ 178.0] SELinux relabelling [ 270.3] Mapping filesystem data to avoid copying unused and blank areas [ 270.8] Closing the overlay [ 271.1] Assigning disks to buses [ 271.1] Checking if the guest needs BIOS or UEFI to boot [ 271.1] Setting up the destination: -o null [ 273.0] Copying disk 1/2 █ 100% [****************************************] [ 957.2] Copying disk 2/2 nbdkit: error: VixDiskLib_QueryAllocatedBlocks: One of the parameters was invalid nbdkit: error: VixDiskLib_QueryAllocatedBlocks: One of the parameters was invalid nbdkit: error: VixDiskLib_QueryAllocatedBlocks: One of the parameters was invalid nbdkit: error: VixDiskLib_QueryAllocatedBlocks: One of the parameters was invalid nbdkit: error: VixDiskLib_QueryAllocatedBlocks: One of the parameters was invalid nbdkit: error: VixDiskLib_QueryAllocatedBlocks: One of the parameters was invalid nbd+unix:///?socket=/tmp/v2v.LIfDUv/in1: nbd_block_status_64: block-status: command failed: Input/output error virt-v2v: error: nbdcopy exited with non-zero error code 1 If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...]
Actual Result:
As above description
Excepted Result:
Fix the bug
Additional info:
1. virt-v2v can convert guests from VMware via vddk if the guest contains a disk with integer size, pls refer to screenshot 'disk-size-104MB.png'
# virt-v2v -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.3 -io vddk-thumbprint=86:25:2F:5E:74:5C:43:D9:28:62:31:E0:1F:BB:1F:FD:AC:18:A5:93 -ip /home/passwd Auto-esx7.0-rhel8.7-x86_64-rhv -o null [ 0.0] Setting up the source: -i libvirt -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk Auto-esx7.0-rhel8.7-x86_64-rhv [ 2.6] Opening the source [ 7.2] Inspecting the source [ 16.1] Checking for sufficient free disk space in the guest [ 16.1] Converting Red Hat Enterprise Linux 8.7 Beta (Ootpa) (rhel8.7) to run on KVM virt-v2v: This guest has virtio drivers installed. [ 57.1] Setting a random seed [ 57.2] SELinux relabelling [ 84.4] Mapping filesystem data to avoid copying unused and blank areas [ 84.9] Closing the overlay [ 85.2] Assigning disks to buses [ 85.2] Checking if the guest needs BIOS or UEFI to boot [ 85.2] Setting up the destination: -o null [ 87.0] Copying disk 1/2 █ 100% [****************************************] [ 280.1] Copying disk 2/2 █ 100% [****************************************] [ 282.6] Creating output metadata [ 282.6] Finishing off
- clones
-
RHEL-71694 virt-v2v cannot convert a guest from VMware via vddk if the guest contains a disk with a non-integer size [rhel9.6]
-
- Closed
-
- links to
-
RHBA-2024:139441 nbdkit bug fix and enhancement update