On 18 Apr 2017, at 09:25, Konstantin Raskoshnyi <konrasko@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 problemscan 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,michalHere's the error,2017-04-18 07:24:06,152Z ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker. GetVmsNamesFromExternalProvide rVDSCommand] (default task-20) [69b6998b-e451-4a9b-8112- d57c8b9e88ec] Command ' GetVmsNamesFromExternalProvide rVDSCommand(HostName = tank5, GetVmsFromExternalProviderPara meters:{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.GetVmsFromExternalProviderQuer y] (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 GetVmsNamesFromExternalProvide rVDS, 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( GetVmsFromExternalProviderQuer y.java:46) [bll.jar:] at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuer y.executeQueryCommand( GetVmsFromExternalProviderQuer y.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@redhat.com> wrote:Hi,There is a wiki page for importing VMs from other hypervisors here:and specific for KVM from Libvirt the wiki page is in progress but you can read about it here:On Fri, Apr 14, 2017 at 9:05 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
> On 14 Apr 2017, at 19:48, Konstantin Raskoshnyi <konrasko@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@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
for more info about setting the vdsm user you can see this section: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@redhat.com> wrote:On 18 Apr 2017, at 09:25, Konstantin Raskoshnyi <konrasko@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 problemscan 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,michalHere's the error,2017-04-18 07:24:06,152Z ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmsNamesFromEx ternalProviderVDSCommand] (default task-20) [69b6998b-e451-4a9b-8112-d57c8 b9e88ec] Command 'GetVmsNamesFromExternalProvid erVDSCommand(HostName = tank5, GetVmsFromExternalProviderPara meters:{runAsync='true', hostId='aa9ef44e-04e4-4a63-b98 2-e0ead9a8d497', url='qemu+ssh://test@tank4/sys tem ', 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-8a7ef dd06a6c] Exception: org.ovirt.engine.core.common.e rrors.EngineException: EngineException: org.ovirt.engine.core.vdsbroke r.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to GetVmsNamesFromExternalProvide rVDS, 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(VdsHand ler.java:118) [bll.jar:] at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.runVdsComman d(VDSBrokerFrontendImpl.java: 33) [bll.jar:] at org.ovirt.engine.core.bll.QueriesCommandBase.runVdsCommand(Q ueriesCommandBase.java:242) [bll.jar:] at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery. getVmsFromExternalProvider(Get VmsFromExternalProviderQuery. java:46) [bll.jar:] at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery. executeQueryCommand(GetVmsFrom ExternalProviderQuery.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(VdcCommandB ase.java:33) [dal.jar:] at org.ovirt.engine.core.bll.executor.DefaultBackendQueryExecut or.execute(DefaultBackendQuery Executor.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(DelegatingMe thodAccessorImpl.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@redhat.com> wrote:Hi,There is a wiki page for importing VMs from other hypervisors here:and specific for KVM from Libvirt the wiki page is in progress but you can read about it here:On Fri, Apr 14, 2017 at 9:05 PM, Michal Skrivanek <michal.skrivanek@redhat.com> wrote:
> On 14 Apr 2017, at 19:48, Konstantin Raskoshnyi <konrasko@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@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users