[ovirt-users] Importing existing KVM hosts to Ovirt
Shahar Havivi
shavivi at redhat.com
Tue Apr 18 09:28:39 UTC 2017
for more info about setting the vdsm user you can see this section:
https://www.ovirt.org/develop/release-management/features/virt/XenToOvirt/#importing-vm
its for importing from Xen hypervisiors but the ssh generation for vdsm
user is the same.
Shahar.
On Tue, Apr 18, 2017 at 12:20 PM, Michal Skrivanek <
michal.skrivanek at redhat.com> wrote:
>
> On 18 Apr 2017, at 09:25, Konstantin Raskoshnyi <konrasko at gmail.com>
> wrote:
>
> Hi Shahar,
> That's for the info,
> I'm getting this errors when trying to do with ssh method, even though I
> can run virsh -c qemu+ssh://user@tank4/system list without any problems
>
>
> can you run that as a “vdsm” user? You need to exchange keys for “vdsm”
> (note it has disabled login, so you need to use "runuser" or something)
>
> Thanks,
> michal
>
>
> Here's the error,
>
> 2017-04-18 07:24:06,152Z ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.
> GetVmsNamesFromExternalProviderVDSCommand] (default task-20)
> [69b6998b-e451-4a9b-8112-d57c8b9e88ec] Command '
> GetVmsNamesFromExternalProviderVDSCommand(HostName = tank5,
> GetVmsFromExternalProviderParameters:{runAsync='true',
> hostId='aa9ef44e-04e4-4a63-b982-e0ead9a8d497', url='qemu+ssh://test@tank4/
> system', username='test', originType='KVM', namesOfVms='null'})'
> execution failed: VDSGenericException: VDSErrorException: Failed to
> GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host key
> verification failed.: Connection reset by peer, code = 65
>
> 2017-04-18 07:18:05,381Z ERROR [org.ovirt.engine.core.bll.
> GetVmsFromExternalProviderQuery] (default task-52)
> [bb2db0e0-d0f8-4619-b6a0-8a7efdd06a6c] Exception:
> org.ovirt.engine.core.common.errors.EngineException: EngineException:
> 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 (Failed with
> error unexpected and code 16)
> at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:118)
> [bll.jar:]
> at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.runVdsCommand(VDSBrokerFrontendImpl.java:33)
> [bll.jar:]
> at org.ovirt.engine.core.bll.QueriesCommandBase.runVdsCommand(QueriesCommandBase.java:242)
> [bll.jar:]
> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuer
> y.getVmsFromExternalProvider(GetVmsFromExternalProviderQuery.java:46)
> [bll.jar:]
> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuer
> y.executeQueryCommand(GetVmsFromExternalProviderQuery.java:40) [bll.jar:]
> at org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:110)
> [bll.jar:]
> at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
> [dal.jar:]
> at org.ovirt.engine.core.bll.executor.DefaultBackendQueryExecutor.execute(
> DefaultBackendQueryExecutor.java:14) [bll.jar:]
> at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:579)
> [bll.jar:]
> at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:547) [bll.jar:]
> at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
> [:1.8.0_121]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_121]
> at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_121]
>
> On Mon, Apr 17, 2017 at 11:12 PM, Shahar Havivi <shavivi at redhat.com>
> wrote:
>
>> Hi,
>> There is a wiki page for importing VMs from other hypervisors here:
>> https://www.ovirt.org/develop/release-management/features/vi
>> rt/virt-v2v-integration/
>>
>> and specific for KVM from Libvirt the wiki page is in progress but you
>> can read about it here:
>> https://github.com/oVirt/ovirt-site/pull/876/files
>>
>> On Fri, Apr 14, 2017 at 9:05 PM, Michal Skrivanek <
>> michal.skrivanek at redhat.com> wrote:
>>
>>>
>>> > On 14 Apr 2017, at 19:48, Konstantin Raskoshnyi <konrasko at gmail.com>
>>> wrote:
>>> >
>>> > Hi guys, I just installed oVirt 4.1 - works great!
>>> >
>>> > But the questing is, we have around 50 existing kvm hosts, is it
>>> really possible during adding them to oVirt add all VMs from them to oVirt?
>>>
>>> you can try GUI Import VM via libvirt, unless you use some exotic
>>> options/storage it should work just fine
>>>
>>> >
>>> > Second options I see - import disks to oVirts and re-create machines
>>>
>>> that’s possible as well, disk by disk.
>>>
>>> Thanks,
>>> michal
>>>
>>> >
>>> > Thanks for the help.
>>> > _______________________________________________
>>> > 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/20170418/ca8a1a4f/attachment-0001.html>
More information about the Users
mailing list