Import KVM/libvirt VMs to oVirt 4.1 with External Provider

Hello Folks, I am trying to import KVM guest VMs to my oVirt Server using external Provider. But when i add external provider with type KVM and do the testing that time i am getting below error Caused by: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host key verification failed.: Connection reset by peer, code = 65 at org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.createDefaultConcreteException(VdsBrokerCommand.java:76) [vdsbroker.jar:] at org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.createException(BrokerCommandBase.java:222) [vdsbroker.jar:] [image: Inline image 2] I have already configure password less authentication with ssh keys between proxy host to my KVM hypervisor. Though i can reach to kvm hypervisor with virsh connect. [root@lplinnd1hypov13 ~]# virsh -c qemu+ssh://root@<KVM-HYP-NAME>/system Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # Any idea how to resolve this issue, so that i can add KVM as external provider and start importing my KVM guest VMs in ovirt setup Thanks in Advance -- Best Regards Pradeep Kumar

when you run virsh you where logged in as root user, the user that oVirt is running is vdsm you need to run: $ sudo -u vdsm ssh-keygen $ sudo -u vdsm ssh-copy-id user@kvmhost you can look at wiki we have for Xen to generate the ssh keys but its the same for kvm. https://www.ovirt.org/develop/release-management/features/virt/XenToOvirt/ Shahar. On Wed, Mar 29, 2017 at 12:34 PM, Pradeep Antil <pradeepantil@gmail.com> wrote:
Hello Folks,
I am trying to import KVM guest VMs to my oVirt Server using external Provider. But when i add external provider with type KVM and do the testing that time i am getting below error
Caused by: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host key verification failed.: Connection reset by peer, code = 65 at org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand. createDefaultConcreteException(VdsBrokerCommand.java:76) [vdsbroker.jar:] at org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase. createException(BrokerCommandBase.java:222) [vdsbroker.jar:]
[image: Inline image 2]
I have already configure password less authentication with ssh keys between proxy host to my KVM hypervisor. Though i can reach to kvm hypervisor with virsh connect.
[root@lplinnd1hypov13 ~]# virsh -c qemu+ssh://root@<KVM-HYP-NAME>/system Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands 'quit' to quit
virsh #
Any idea how to resolve this issue, so that i can add KVM as external provider and start importing my KVM guest VMs in ovirt setup
Thanks in Advance
-- Best Regards Pradeep Kumar
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Pradeep Antil
-
Shahar Havivi