-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-10.2
-
None
-
None
-
None
-
1
-
rhel-virt-tools
-
None
-
False
-
False
-
-
None
-
Virt-tools for next sprint
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
-
x86_64
-
None
What were you trying to do that didn't work?
v2v fails to create the disk on target if the source guest contains specific characters like '*+_/'
Please provide the package NVR for which the bug is seen:
virt-v2v-2.9.10-2.el10.x86_64
libguestfs-1.57.6-2.el10.x86_64
guestfs-tools-1.54.0-7.el10.x86_64
libvirt-libs-11.10.0-1.el10.x86_64
nbdkit-1.45.12-2.el10.x86_64
libnbd-1.24.0-1.el10.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
- Prepare a guest with specific characters like '*+_/' on VMware
- Convert the guest from VMware to local libvirt by virt-v2v
# virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk9.0.0 -io vddk-thumbprint=C3:83:1D:C0:6D:4C:47:83:5A:B9:6E:0E:FA:5A:15:22:B4:75:D5:7E -ip /home/passwd 'esx8.0-rhel9.6-x86_64-efi-disk-name-contains-specical-chars-*+_/' [ 0.0] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1 -it vddk esx8.0-rhel9.6-x86_64-efi-disk-name-contains-specical-chars-*+_/ [ 1.7] Opening the source [ 30.7] Checking filesystem integrity before conversion [ 31.0] Detecting if this guest uses BIOS or UEFI to boot [ 31.4] Inspecting the source [ 39.2] Detecting the boot device [ 39.3] Checking for sufficient free disk space in the guest [ 39.3] Converting Red Hat Enterprise Linux 9.6 Beta (Plow) (rhel9.6) to run on KVM ** (process:357149): WARNING **: 03:43:04.276: Entity http://pcisig.com/pci/1af4/1012 referenced but not defined virt-v2v: This guest has virtio drivers installed. [ 96.4] Setting a random seed [ 96.4] SELinux relabelling [ 122.9] Mapping filesystem data to avoid copying unused and blank areas [ 124.3] Checking filesystem integrity after conversion [ 124.7] Closing the overlay [ 124.9] Assigning disks to buses [ 124.9] Checking if the guest needs BIOS or UEFI to boot virt-v2v: This guest requires UEFI on the target to boot. [ 124.9] Setting up the destination: -o libvirt virt-v2v: error: libguestfs error: cannot create raw file: /var/lib/libvirt/images/esx8.0-rhel9.6-x86_64-efi-disk-name-contains-specical-chars-*+_/-sda: No such file or directory If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...]
Expected results
As above description
Actual results
Fix the bug
Additional info:
1. The guest with special characters '%\' can be converted by virt-v2v successfully
# virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk9.0.0 -io vddk-thumbprint=C3:83:1D:C0:6D:4C:47:83:5A:B9:6E:0E:FA:5A:15:22:B4:75:D5:7E -ip /home/passwd 'Auto-esx8.0-rhel9.4-0-efi-test-%-\\-m' [ 0.0] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.213.134/data/cluster/10.73.212.36/?no_verify=1 -it vddk Auto-esx8.0-rhel9.4-0-efi-test-%-\\-m [ 1.7] Opening the source [ 44.0] Checking filesystem integrity before conversion [ 74.6] Detecting if this guest uses BIOS or UEFI to boot [ 75.0] Inspecting the source [ 84.0] Detecting the boot device [ 84.2] Checking for sufficient free disk space in the guest [ 84.2] Converting Red Hat Enterprise Linux 9.4 Beta (Plow) (rhel9.4) to run on KVM ** (process:357813): WARNING **: 03:57:57.473: Entity http://pcisig.com/pci/1af4/1012 referenced but not defined virt-v2v: This guest has virtio drivers installed. [ 153.4] Setting a random seed [ 153.5] SELinux relabelling [ 158.5] Mapping filesystem data to avoid copying unused and blank areas [ 159.7] Checking filesystem integrity after conversion [ 161.7] Closing the overlay [ 162.0] Assigning disks to buses [ 162.0] Checking if the guest needs BIOS or UEFI to boot virt-v2v: This guest requires UEFI on the target to boot. [ 162.0] Setting up the destination: -o libvirt [ 163.5] Copying disk 1/1 █ 100% [****************************************] [ 331.5] Creating output metadata [ 331.6] Finishing off