I am glad its works. btw the vdsm user is exists you can see it in /etc/passwd but it have no shell login so the ssh key generation will be in /var/ (which mean it may not survive reboot). the instruction for the ssh are for Xen but the instruction in the section "importing-vm" are working for kvm as well.
Shahar. On Wed, Apr 19, 2017 at 12:56 AM, Konstantin Raskoshnyi <[email protected]> wrote: > So eventually it worked fine! Thanks > > On Tue, Apr 18, 2017 at 2:28 AM, Shahar Havivi <[email protected]> wrote: > >> for more info about setting the vdsm user you can see this section: >> https://www.ovirt.org/develop/release-management/features/vi >> rt/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 < >> [email protected]> wrote: >> >>> >>> On 18 Apr 2017, at 09:25, Konstantin Raskoshnyi <[email protected]> >>> 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.vdsbrok >>> er.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.runVdsComman >>> d(VDSBrokerFrontendImpl.java:33) [bll.jar:] >>> at >>> org.ovirt.engine.core.bll.QueriesCommandBase.runVdsCommand(QueriesCommandBase.java:242) >>> [bll.jar:] >>> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.ge >>> tVmsFromExternalProvider(GetVmsFromExternalProviderQuery.java:46) >>> [bll.jar:] >>> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.ex >>> ecuteQueryCommand(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.DefaultBackendQueryExecut >>> or.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 <[email protected]> >>> 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 < >>>> [email protected]> wrote: >>>> >>>>> >>>>> > On 14 Apr 2017, at 19:48, Konstantin Raskoshnyi <[email protected]> >>>>> 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 >>>>> > [email protected] >>>>> > http://lists.ovirt.org/mailman/listinfo/users >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> [email protected] >>>>> http://lists.ovirt.org/mailman/listinfo/users >>>>> >>>> >>>> >>> >>> >> >
_______________________________________________ Users mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/users

