Created attachment 1068509 [details] Debug info for virt-v2v Description: virt-v2v fails to convert guests from esx server Version: virt-v2v-1.28.1-1.50.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Use virt-v2v to convert guests from esx server,error shows as below. # virt-v2v -ic vpx://root.72.112/data/10.66.72.49/?no_verify=1 -os default -of raw -b virbr0 -n default esx6.0-rhel6.7-x86_64 --password-file /tmp/v2v_vpx_passwd [ 0.0] Opening the source -i libvirt -ic vpx://root.72.112/data/10.66.72.49/?no_verify=1 esx6.0-rhel6.7-x86_64 curl -q --insecure --user '<hidden>' --head --silent --url 'https://10.66.72.112/folder/esx6.0-rhel6.7-x86%5f64/esx6.0-rhel6.7-x86%5f64-flat.vmdk?dcPath=data/10.66.72.49&dsName=esx6.0' HTTP/1.1 404 Not Found Date: Mon, 31 Aug 2015 00:50:38 GMT Set-Cookie: vmware_soap_session="301d8281cbf82a0af4d5dde88934643e7b70d4e0"; Path=/; HttpOnly; Secure; Connection: close Content-Type: text; charset=plain Content-Length: 0 virt-v2v: error: vcenter: URL not found: https://10.66.72.112/folder/esx6.0-rhel6.7-x86%5f64/esx6.0-rhel6.7-x86%5f64-flat.vmdk?dcPath=data/10.66.72.49&dsName=esx6.0 If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] Actual results: As description. Expected results: Guests from esx server can be converted by virt-v2v successfully. Additional info: The bug can not reproduced on virt-v2v-1.28.1-1.49.el7.x86_64. Attached debug log.
I think it will work if you strip off the final slash: vpx://root.72.112/data/10.66.72.49/?no_verify=1 ^ -- remove this However yes this is a regression caused by the fix for bug 1256823.
https://github.com/libguestfs/libguestfs/commit/51bc573d0c4e78104a682e7c42d63d701aedd093
Tested with: virt-v2v-1.28.1-1.51.el7.x86_64 Virt-v2v can convert guests from esx server successfully. # virt-v2v -ic vpx://root.72.112/data/10.66.72.49/?no_verify=1 -os default -of raw -b virbr0 -n default esx6.0-rhel6.7-x86_64 --password-file /tmp/v2v_vpx_passwd -on tzheng-test [ 0.0] Opening the source -i libvirt -ic vpx://root.72.112/data/10.66.72.49/?no_verify=1 esx6.0-rhel6.7-x86_64 [ 1.0] Creating an overlay to protect the source from being modified [ 1.0] Opening the overlay [ 109.0] Initializing the target -o libvirt -os default [ 109.0] Inspecting the overlay [ 185.0] Checking for sufficient free disk space in the guest [ 185.0] Estimating space required on target for each disk [ 185.0] Converting Red Hat Enterprise Linux Server release 6.7 Beta (Santiago) to run on KVM virt-v2v: This guest has virtio drivers installed. [ 634.0] Mapping filesystem data to avoid copying unused and blank areas [ 635.0] Closing the overlay [ 636.0] Checking if the guest needs BIOS or UEFI to boot [ 636.0] Copying disk 1/1 to /var/lib/libvirt/images/tzheng-test-sda (raw) (100.00/100%) [ 897.0] Creating output metadata Pool default refreshed Domain tzheng-test defined from /tmp/v2vlibvirt05e8a0.xml [ 898.0] Finishing off Refer to the above comments,move the bug to VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2183.html