Description of problem: When trying to run v2v migration using SSH transfer method, I am getting the following error: [ 0.2] Opening the source -i vmx ssh://root.69.75/vmfs/volumes/netapp-v2v-datastore/100_VM_TEST_71/100_VM_TEST_71.vmx scp 'root'@'10.12.69.75':''\''/vmfs/volumes/netapp-v2v-datastore/100_VM_TEST_71/100_VM_TEST_71.vmx'\''' '/var/tmp/vmx.mKv5rS/source.vmx' Host key verification failed. The V2V document states that migration using SSH method should be running using the vdsm user, and this log shows that root is being used. Version-Release number of selected component (if applicable): 5.9.4.2.20180802030318_f91df08 RHV 4.2.5.3 VMware vSphere 6.5 How reproducible: 100% Steps to Reproduce: 1. Install host using the 'ovirt-ansible-v2v-conversion-host' Ansible role 2. Tag host as conversion and with SSH transfer method. 3. Follow the instructions on V2V draft document on 'Configuring RHV Conversion Hosts for SSH Transformation' to copy SSH keys of vdsm to the ESXi host. 4. Run migration from VMware to RHV. Actual results: Migration fails. Expected results: Should succeed. Additional info:
Created attachment 1476476 [details] virt-v2v import logs
* Correction: vdsm user is being used, however it still fails on 'Host key verification failed.' even after copying the vdsm public key from RHV host to the ESXi host.
Solved by accepting the remote ESXi server certificate the first time under vdsm user: sudo -u vdsm ssh root@esxi_fqdn