oVirt / ovirt-engine

The oVirt Engine virtualization manager
Other
492 stars 259 forks source link

virt-v2v is failing on importing VMware to Ovirt 4.5 #910

Open Spatanaik opened 6 months ago

Spatanaik commented 6 months ago

Affected version Ovirt-engine: 4.5 kvm host :centos 8 stream vdsm: vdsm-4.50.5.1-1.el8.x86_64 virt-v2v: virt-v2v-1.42.0-22.module_el8+310+72016cce.x86_64 libguestfs : libguestfs-1.44.0-9.module_el8+310+72016cce.x86_64

IMPORTANT!: oVirt prior to 4.5 reached end of life.

Describe the bug

i am trying to import a VM from vmware to ovirt4.5 I have installed virtio drivers in guest vm depoyed in vmware. I also followed the vcenter workaround mentioned in : https://bugzilla.redhat.com/show_bug.cgi?id=1848862 Allowed maximum http sessions in vcenter conf file.

To reproduce

virt-v2v -v -x -ic 'esx://root@esxihost.com?no_verify=1' -o rhev -os kvm_01:/gluster_storage --network ovirtmgt testvm virt-v2v: virt-v2v 1.42.0rhel=8,release=22.module_el8+310+72016cce (x86_64) libvirt version: 8.0.0 libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: get_backend libguestfs: trace: get_backend = "libvirt" [ 0.0] Opening the source -i libvirt -ic esx://root@esxhost.com?no_verify=1 testvm input_libvirt_vcenter_https: source: server esxhost.com 2024-01-02 20:00:22.980+0000: 33342: info : libvirt version: 8.0.0, package: 22.module_el8+596+27e96798 (builder@centos.org, 2023-07-31-14:36:36, ) 2024-01-02 20:00:22.980+0000: 33342: info : hostname: kvm_01.domain.com 2024-01-02 20:00:22.980+0000: 33342: warning : esxConnectOpen:806 : Ignoring unexpected path '' for non-vpx scheme 'esx' Enter root's password for esxhost.com: libvirt xml is:

testvm 4206c6b5-e243-766f-8bb8-fe9bc90311c1 8307dde5-6f1c-42a2-bd3a-75351570ad6e Test VM for LAB 4194304 4194304 2 2000 hvm destroy restart destroy
ha-datacenter 114

Enter host password for user 'root': 'curl' -q --max-redirs '5' --globoff --head --silent --url 'https://esxhost.com/folder/c9455063-3c35-9b1f-8dcd-3cfdfe874fa8/testvm-flat.vmdk?dcPath=ha-datacenter&dsName=vsanDatastore' --user --insecure HTTP/1.1 404 Not Found Date: Tue, 2 Jan 2024 20:00:37 GMT Set-Cookie: vmware_soap_session="d2ddcb88e7562c6bfbe1a7235f863a9cf1dc7fbc"; Path=/; HttpOnly; Secure; Connection: close Content-Security-Policy: upgrade-insecure-requests Content-Type: text/plain; charset=utf-8 Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1 Content-Length: 0

'curl' -q --max-redirs '5' --globoff --head --silent --url 'https://esxhost.com/folder/c9455063-3c35-9b1f-8dcd-3cfdfe874fa8/testvm-flat.vmdk?dcPath=ha-datacenter&dsName=vsanDatastore' --user --insecure HTTP/1.1 404 Not Found Date: Tue, 2 Jan 2024 20:00:37 GMT Set-Cookie: vmware_soap_session="d2ddcb88e7562c6bfbe1a7235f863a9cf1dc7fbc"; Path=/; HttpOnly; Secure; Connection: close Content-Security-Policy: upgrade-insecure-requests Content-Type: text/plain; charset=utf-8 Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1 Content-Length: 0

virt-v2v: error: vcenter: URL not found: https://esxhost.com/folder/c9455063-3c35-9b1f-8dcd-3cfdfe874fa8/testvm-flat.vmdk?dcPath=ha-datacenter&dsName=vsanDatastore rm -rf '/var/tmp/null.tlXLZT' libguestfs: trace: close libguestfs: closing guestfs handle 0x558c8d743c00 (state 0) [root@kvm_01 ~]#

Steps to reproduce the behavior

Expected behavior

the VM guest from VMware should get imported to ovirt 4.5

Screenshots

NA

Additional context

dupondje commented 4 months ago

virt-v2v: error: vcenter: URL not found:

Don't see what it has to do with oVirt really :)

Spatanaik commented 4 months ago

I am managing KVM (centos8-stream flavour) in Ovirt ( management platform- equivalent to vCenter in VMware world) I ran virt-v2v on KVM hypervisor to import a VM from Vmware vCenter to KVM. I encountered this error.