<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi Sebastian, <br><br></div>In case you would like to use SSH you need to setup SSH keys for vdsm user of at least one of the ovirt hosts in order to SSH from it to the remote KVM host (lets name it kvmhost) as below: <br><br></div>1. Edit temporarily the /etc/passwd of one host of your ovirt cluster. (say node0 for example) and replace /sbin/nologin with /bin/sh for vdsm user as below: <br><br><span style="font-family:monospace,monospace">vdsm:x:36:36:Node Virtualization Manager:/var/lib/vdsm:/bin/sh</span><br><br></div>2. Switch to vdsm user and generate SSH keys:<br></div><span style="font-family:monospace,monospace">su - vdsm<br></span></div><span style="font-family:monospace,monospace">ssh-keygen<br></span></div><span style="font-family:monospace,monospace">ssh-copy-id root@kvmhost</span><br><br></div>verify that you have passwordless SSH from node0 (ovirt host) to your KVM host<br></div><div>restore previous /etc/password (replace /bin/sh with /sbin/nologin for vdsm login shell)<br></div><div><br></div>3. Go at ovirt GUI and at VM import use the URI:<span style="font-family:monospace,monospace"> qemu+ssh://root@kvmhost/system</span><br></div>replace kvmhost with your IP and use as proxy host the one that you configured SSH keys (node0 at this example). <br><br></div>This should work as for me it is working. <br><br></div>In case you login with another user and not root, you may do so as long as the user has proper permissions for libvirt/qemu. <br><br></div>For TCP URI you need to enable TCP socket at kvmhost. <br><br></div>Alex<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 11, 2018 at 10:36 PM, Sebastian Antunez N. <span dir="ltr">&lt;<a href="mailto:antunez.sebastian@gmail.com" target="_blank">antunez.sebastian@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello<br><br>I open the port in both nodes (KVM and Ovirt) now show the following message<br><br>error: failed to connect to the hypervisor<br>error: authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)<br><br></div>Thanks for your help<br><br></div>Regards<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-11 15:46 GMT-03:00 Sebastian Antunez N. <span dir="ltr">&lt;<a href="mailto:antunez.sebastian@gmail.com" target="_blank">antunez.sebastian@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello <br><br></div>This error when is generated the keygen<br><div><div><br>sudo -u vdsm ssh-keygen<br>Generating public/private rsa key pair.<br>Enter file in which to save the key (//.ssh/id_rsa):<br>Could not create directory &#39;//.ssh&#39;: Permission denied<br><br></div><div>Regards<span class="m_-8645288980440701144HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_-8645288980440701144HOEnZb"><font color="#888888"><div>SAN<br></div><div><br></div></font></span></div></div><div class="m_-8645288980440701144HOEnZb"><div class="m_-8645288980440701144h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-04-11 14:19 GMT-03:00 Michal Skrivanek <span dir="ltr">&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
&gt; On 11 Apr 2018, at 18:07, Sebastian Antunez N. &lt;<a href="mailto:antunez.sebastian@gmail.com" target="_blank">antunez.sebastian@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello Guys<br>
&gt;<br>
&gt; I have two servers with ovirt 4.1 and I need to make v2v from KVM to Ovirt.<br>
&gt;<br>
&gt; When add the new External Provider show me the following error in qemu+ssh://root@IP/system<br>
&gt;<br>
&gt; VDSM FQDN command GetVmsNamesFromExternalProvide<wbr>r failed: Cannot recv data: Host Key verification failed. Connection reset by peer<br>
&gt;<br>
&gt; Now when add with tcp show me<br>
&gt;<br>
&gt; VDSM FQDN command GetVmsNamesFromExternalProvide<wbr>r failed: Unable to connect to server at &#39;IP:16509&#39; Connection Refused<br>
<br>
</span>your libvirt is not configured for TCP access<br>
<span><br>
&gt;<br>
&gt; For ssh I run<br>
&gt;<br>
&gt; sudo -u vdsm ssh-keygen<br>
&gt; But i received Permision Denied.<br>
<br>
</span>please paste exactly what you did<br>
<span>&gt; How can I resolve this issue<br>
&gt;<br>
&gt;<br>
&gt; Thanks for your help<br>
&gt;<br>
&gt; Sebastian<br>
</span>&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>