-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
rhel-9.5
-
None
-
Important
-
sst_virtualization
-
ssg_virtualization
-
7
-
False
-
-
None
-
None
-
None
-
None
-
-
x86_64
-
None
Description of problem:
Fail to create guest with XML error: target 'sda' duplicated for disk sources '<null>' when converting a uefi-windows guest without virtio-win by virt-v2v
Version-Release number of selected component (if applicable):
virt-v2v-2.5.4-1.el9.x86_64
libvirt-libs-10.3.0-1.el9.x86_64
qemu-img-9.0.0-2.el9.x86_64
nbdkit-1.38.0-1.el9.x86_64
libnbd-1.20.0-1.el9.x86_64
libguestfs-1.50.1-9.el9.x86_64
guestfs-tools-1.51.6-4.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Convert a windows uefi guest from VMware by virt-v2v
# virt-v2v -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.2 -io vddk-thumbprint=CB:9F:B1:9D:33:49:6C:60:AD:3C:A5:16:77:91:5F:CD:1B:24:B1:43 -ip /home/passwd esx8.0-win10-x86_64-efi [ 0.0] Setting up the source: -i libvirt -ic vpx://non-admin%40vsphere.local@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk esx8.0-win10-x86_64-efi [ 1.8] Opening the source [ 8.6] Inspecting the source [ 20.2] Checking for sufficient free disk space in the guest [ 20.2] Converting Windows 10 Enterprise to run on KVM virt-v2v: warning: QEMU Guest Agent MSI not found on tools ISO/directory. You may want to install the guest agent manually after conversion. virt-v2v: warning: Balloon Server (blnsvr.exe) not found on tools ISO/directory. You may want to install this component manually after conversion. virt-v2v: warning: there are no virtio drivers available for this version of Windows (10.0 x86_64 Client win10). virt-v2v looks for drivers in /usr/share/virtio-win The guest will be configured to use slower emulated devices. virt-v2v: This guest does not have virtio drivers installed. [ 23.3] Mapping filesystem data to avoid copying unused and blank areas [ 25.2] Closing the overlay [ 25.5] Assigning disks to buses [ 25.5] Checking if the guest needs BIOS or UEFI to boot virt-v2v: This guest requires UEFI on the target to boot. [ 25.5] Setting up the destination: -o libvirt [ 27.0] Copying disk 1/1 █ 100% [****************************************] [ 491.9] Creating output metadata virt-v2v: warning: could not define libvirt domain: XML error: target 'sda' duplicated for disk sources '<null>' and '<null>'. The libvirt XML is still available in ‘/tmp/v2vlibvirtdd15cc.xml’. Try running ‘virsh -c qemu:///system define /tmp/v2vlibvirtdd15cc.xml’ yourself instead. [ 492.0] Finishing off
Actual results:
As above description
Expected result:
Fix the bug
Additional info: