Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Spatanaik opened this issue Jan 2, 2024 · 2 comments
Open

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

Spatanaik opened this issue Jan 2, 2024 · 2 comments
Labels

Comments

@Spatanaik
Copy link

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


<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>





















vmware:datacenterpathha-datacenter</vmware:datacenterpath>
vmware:moref114</vmware:moref>

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

@Spatanaik Spatanaik added the bug label Jan 2, 2024
@dupondje
Copy link
Member

dupondje commented Feb 5, 2024

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

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

@Spatanaik
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants