[ovirt-users] Error V2V

Alex K rightkicktech at gmail.com
Wed Apr 11 20:54:45 UTC 2018


Hi Sebastian,

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:

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:

vdsm:x:36:36:Node Virtualization Manager:/var/lib/vdsm:/bin/sh

2. Switch to vdsm user and generate SSH keys:
su - vdsm
ssh-keygen
ssh-copy-id root at kvmhost

verify that you have passwordless SSH from node0 (ovirt host) to your KVM
host
restore previous /etc/password (replace /bin/sh with /sbin/nologin for vdsm
login shell)

3. Go at ovirt GUI and at VM import use the URI: qemu+ssh://root@kvmhost
/system
replace kvmhost with your IP and use as proxy host the one that you
configured SSH keys (node0 at this example).

This should work as for me it is working.

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.

For TCP URI you need to enable TCP socket at kvmhost.

Alex


On Wed, Apr 11, 2018 at 10:36 PM, Sebastian Antunez N. <
antunez.sebastian at gmail.com> wrote:

> Hello
>
> I open the port in both nodes (KVM and Ovirt) now show the following
> message
>
> error: failed to connect to the hypervisor
> error: authentication failed: Failed to start SASL negotiation: -4
> (SASL(-4): no mechanism available: No worthy mechs found)
>
> Thanks for your help
>
> Regards
>
> 2018-04-11 15:46 GMT-03:00 Sebastian Antunez N. <
> antunez.sebastian at gmail.com>:
>
>> Hello
>>
>> This error when is generated the keygen
>>
>> sudo -u vdsm ssh-keygen
>> Generating public/private rsa key pair.
>> Enter file in which to save the key (//.ssh/id_rsa):
>> Could not create directory '//.ssh': Permission denied
>>
>> Regards
>>
>> SAN
>>
>>
>> 2018-04-11 14:19 GMT-03:00 Michal Skrivanek <michal.skrivanek at redhat.com>
>> :
>>
>>>
>>>
>>> > On 11 Apr 2018, at 18:07, Sebastian Antunez N. <
>>> antunez.sebastian at gmail.com> wrote:
>>> >
>>> > Hello Guys
>>> >
>>> > I have two servers with ovirt 4.1 and I need to make v2v from KVM to
>>> Ovirt.
>>> >
>>> > When add the new External Provider show me the following error in
>>> qemu+ssh://root@IP/system
>>> >
>>> > VDSM FQDN command GetVmsNamesFromExternalProvider failed: Cannot recv
>>> data: Host Key verification failed. Connection reset by peer
>>> >
>>> > Now when add with tcp show me
>>> >
>>> > VDSM FQDN command GetVmsNamesFromExternalProvider failed: Unable to
>>> connect to server at 'IP:16509' Connection Refused
>>>
>>> your libvirt is not configured for TCP access
>>>
>>> >
>>> > For ssh I run
>>> >
>>> > sudo -u vdsm ssh-keygen
>>> > But i received Permision Denied.
>>>
>>> please paste exactly what you did
>>> > How can I resolve this issue
>>> >
>>> >
>>> > Thanks for your help
>>> >
>>> > Sebastian
>>> > _______________________________________________
>>> > Users mailing list
>>> > Users at ovirt.org
>>> > http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180411/533ae59b/attachment.html>


More information about the Users mailing list