import from Oracle VM possible?

Hello, I'm just trying to see if I can import from Oracle VM a bunch of VMs. I'm trying from gui in 4.1 using XEN (via RHEL) as Source and in URI I put this xen+ssh://root@oracle_vm_host I use one of my oVirt hosts as proxy (ovmsrv05 with ip 10.4.168.74)
From ovmsrv05 I verified I can ssh with public key and without password input to the oracle_vm_host
But when I click the "Load" button in oVirt GUI, in /var/log/secure of Oracle VM Host I get a series of these messages: Feb 23 15:22:25 oracle_vm_host sshd[25707]: Failed password for root from 10.4.168.74 port 54792 ssh2 Feb 23 15:22:25 oracle_vm_host sshd[25707]: Failed password for root from 10.4.168.74 port 54792 ssh2 Feb 23 15:22:25 oracle_vm_host sshd[25710]: Connection closed by 10.4.168.74 What I'm doing wrong here? Thanks, Gianluca

On 23 Feb 2017, at 15:28, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
Hello, I'm just trying to see if I can import from Oracle VM a bunch of VMs. I'm trying from gui in 4.1 using XEN (via RHEL) as Source and in URI I put this
xen+ssh://root@oracle_vm_host
I use one of my oVirt hosts as proxy (ovmsrv05 with ip 10.4.168.74)
From ovmsrv05 I verified I can ssh with public key and without password input to the oracle_vm_host
you need to add/run that as a vdsm user on ovmsrv05. Did you check the ssh via something like "runuser -u vdsm”?
But when I click the "Load" button in oVirt GUI, in /var/log/secure of Oracle VM Host I get a series of these messages:
Feb 23 15:22:25 oracle_vm_host sshd[25707]: Failed password for root from 10.4.168.74 port 54792 ssh2 Feb 23 15:22:25 oracle_vm_host sshd[25707]: Failed password for root from 10.4.168.74 port 54792 ssh2 Feb 23 15:22:25 oracle_vm_host sshd[25710]: Connection closed by 10.4.168.74
What I'm doing wrong here?
Thanks,
Gianluca
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Thu, Feb 23, 2017 at 5:30 PM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
From ovmsrv05 I verified I can ssh with public key and without password
input to the oracle_vm_host
you need to add/run that as a vdsm user on ovmsrv05. Did you check the ssh via something like "runuser -u vdsm”?
Ah... ok I didn't realize that the import process is run by vdsm user on oVirt hosts. Now I setup it for vdsm user but I get this in import window: Failed to communicate with the external provider, see log for additional details. And this in webadmin events pane: Failed to retrieve VMs information from external server xen+ssh://root@oracle_vm_server VDSM ovmsrv05 command GetVmsNamesFromExternalProviderVDS failed: End of file while reading data: : Input/output error Furher lines in vdsm.log (nothing inside import directory): 2017-02-23 17:35:34,094 ERROR (jsonrpc/2) [root] error connecting to hypervisor: 'End of file while reading data: : Input/output error' (v2v:183) 2017-02-23 17:35:34,096 INFO (jsonrpc/2) [jsonrpc.JsonRpcServer] RPC call Host.getExternalVMNames failed (error 65) in 10.09 seconds (__init__:515) Does the import phase need a libvirt daemon in target? In this case my Oracle VM is 3.2.9 while probably libvirt (for integrating with Openstack) has been introduced only in 3.4.1.... Or any chance to be able to communicate with Oracle VM Manager...? Gianluca

On 23 Feb 2017, at 17:43, Gianluca Cecchi <gianluca.cecchi@gmail.com> = wrote: =20 On Thu, Feb 23, 2017 at 5:30 PM, Michal Skrivanek = <michal.skrivanek@redhat.com <mailto:michal.skrivanek@redhat.com>> = wrote: =20 =20
=46rom ovmsrv05 I verified I can ssh with public key and without =
--Apple-Mail=_A77E26E3-6654-4C6E-8E88-9AC5B47DF7C9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 password input to the oracle_vm_host
=20 you need to add/run that as a vdsm user on ovmsrv05. Did you check the = ssh via something like "runuser -u vdsm=E2=80=9D? =20 =20 =20 Ah... ok I didn't realize that the import process is run by vdsm user on oVirt = hosts. Now I setup it for vdsm user but I get this in import window: =20 Failed to communicate with the external provider, see log for = additional details. =20 And this in webadmin events pane: =20 Failed to retrieve VMs information from external server = xen+ssh://root@oracle_vm_server VDSM ovmsrv05 command GetVmsNamesFromExternalProviderVDS failed: End = of file while reading data: : Input/output error =20 Furher lines in vdsm.log (nothing inside import directory): =20 2017-02-23 17:35:34,094 ERROR (jsonrpc/2) [root] error connecting to = hypervisor: 'End of file while reading data: : Input/output error' = (v2v:183) 2017-02-23 17:35:34,096 INFO (jsonrpc/2) [jsonrpc.JsonRpcServer] RPC = call Host.getExternalVMNames failed (error 65) in 10.09 seconds = (__init__:515) =20 Does the import phase need a libvirt daemon in target? In this case my = Oracle VM is 3.2.9 while probably libvirt (for integrating with = Openstack) has been introduced only in 3.4.1.... Or any chance to be able to communicate with Oracle VM Manager=E2=80=A6?=
probably not. We can only talk to libvirt hosts and vCenter I=E2=80=99m not even sure that it would work if you manage to be able to = talk to it, we do only support Xen and VMware and generic KVM
=20 Gianluca =20
--Apple-Mail=_A77E26E3-6654-4C6E-8E88-9AC5B47DF7C9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On 23 Feb 2017, at 17:43, Gianluca Cecchi <<a = href=3D"mailto:gianluca.cecchi@gmail.com" = class=3D"">gianluca.cecchi@gmail.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D""><div class=3D"gmail_extra"><div class=3D"gmail_quote">On Thu, = Feb 23, 2017 at 5:30 PM, Michal Skrivanek <span dir=3D"ltr" = class=3D""><<a href=3D"mailto:michal.skrivanek@redhat.com" = target=3D"_blank" class=3D"">michal.skrivanek@redhat.com</a>></span> = wrote:<br class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex"><span class=3D"gmail-"><br = class=3D""><br class=3D""> ><br class=3D""> > =46rom ovmsrv05 I verified I can ssh with public key and without = password input to the oracle_vm_host<br class=3D""> <br class=3D""> </span>you need to add/run that as a vdsm user on ovmsrv05. Did you = check the ssh via something like "runuser -u vdsm=E2=80=9D?<br = class=3D""><br class=3D""> <br class=3D""> </blockquote></div><br class=3D""></div><div class=3D"gmail_extra">Ah... = ok</div><div class=3D"gmail_extra">I didn't realize that the import = process is run by vdsm user on oVirt hosts.</div><div = class=3D"gmail_extra">Now I setup it for vdsm user but I get this in = import window:</div><div class=3D"gmail_extra"><br class=3D""></div><div = class=3D"gmail_extra">Failed to communicate with the external provider, = see log for additional details.<br class=3D""></div><div = class=3D"gmail_extra"><div class=3D"gmail_extra"><br class=3D""></div><div= class=3D"gmail_extra">And this in webadmin events pane:</div><div = class=3D"gmail_extra"><br class=3D""></div><div = class=3D"gmail_extra">Failed to retrieve VMs information from external = server <a href=3D"xen+ssh://root@oracle_vm_server" = class=3D"">xen+ssh://root@oracle_vm_server</a><br class=3D""></div><div = class=3D"gmail_extra">VDSM ovmsrv05 command = GetVmsNamesFromExternalProviderVDS failed: End of file while reading = data: : Input/output error</div><div class=3D"gmail_extra"><br = class=3D""></div><div class=3D"gmail_extra">Furher lines in vdsm.log = (nothing inside import directory):</div><div class=3D"gmail_extra"><br = class=3D""></div><div class=3D"gmail_extra"><div = class=3D"gmail_extra">2017-02-23 17:35:34,094 ERROR (jsonrpc/2) [root] = error connecting to hypervisor: 'End of file while reading data: : = Input/output error' (v2v:183)</div><div class=3D"gmail_extra">2017-02-23 = 17:35:34,096 INFO (jsonrpc/2) [jsonrpc.JsonRpcServer] RPC call = Host.getExternalVMNames failed (error 65) in 10.09 seconds = (__init__:515)</div><div class=3D""><br class=3D""></div></div><div = class=3D"gmail_extra">Does the import phase need a libvirt daemon in = target? In this case my Oracle VM is 3.2.9 while probably libvirt (for = integrating with Openstack) has been introduced only in = 3.4.1....</div><div class=3D"gmail_extra">Or any chance to be able to = communicate with Oracle VM = Manager=E2=80=A6?</div></div></div></div></blockquote><div><br = class=3D""></div>probably not. We can only talk to libvirt hosts and = vCenter</div><div>I=E2=80=99m not even sure that it would work if you = manage to be able to talk to it, we do only support Xen and VMware and = generic KVM</div><div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div = class=3D"gmail_extra"><div class=3D"gmail_extra"><br class=3D""></div><div= class=3D"gmail_extra">Gianluca</div></div><div class=3D"gmail_extra"><br = class=3D""></div></div> </div></blockquote></div><br class=3D""></body></html>= --Apple-Mail=_A77E26E3-6654-4C6E-8E88-9AC5B47DF7C9--

On Thu, Feb 23, 2017 at 5:45 PM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
probably not. We can only talk to libvirt hosts and vCenter I’m not even sure that it would work if you manage to be able to talk to it, we do only support Xen and VMware and generic KVM
Gianluca
Where can I find the commands it would run via xen+ssh against Xen to get VMs and such...?

On Thu, 23 Feb 2017 17:49:30 +0100 Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Thu, Feb 23, 2017 at 5:45 PM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
probably not. We can only talk to libvirt hosts and vCenter I’m not even sure that it would work if you manage to be able to talk to it, we do only support Xen and VMware and generic KVM
Gianluca
Where can I find the commands it would run via xen+ssh against Xen to get VMs and such...?
As Michal mentioned, virt-v2v uses libvirt to access VMs on Xen. So if you have a ssh connection working then the following is the next thing that should work: virsh -c 'xen+ssh://root@oracle_vm_host' list --all If it doesn't, you're out of luck. After virt-v2v fetches the relevant information about VM it uses ssh backend driver in Qemu to copy and modify the disks. If you want to know more details, you probably should check the virt-v2v sources. Tomas -- Tomáš Golembiovský <tgolembi@redhat.com>
participants (3)
-
Gianluca Cecchi
-
Michal Skrivanek
-
Tomáš Golembiovský