<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Liberation Serif">Hi,</font></p>
<p><font face="Liberation Serif">Tested this with different
combinations:</font></p>
<p><font face="Liberation Serif">a. from VDSM host, both "ssh
<a class="moz-txt-link-abbreviated" href="mailto:root@192.168.1.40">root@192.168.1.40</a>" and "sudo -u vdsm ssh <a class="moz-txt-link-abbreviated" href="mailto:root@192.168.1.40">root@192.168.1.40</a>"
commands are logging in without asking for password and I can
run all xe commands without any glitch without modifications to
default xen server firewall or SELinux rules.<br>
</font></p>
<p><font face="Liberation Serif">b. With firewall enabled and
SELinux set to enforcing or permissive or disabled, I run "virsh
-c <a class="moz-txt-link-abbreviated" href="mailto:ssh://root@192.168.1.40">ssh://root@192.168.1.40</a>". And the command is resulting in two
errors:</font></p>
<font face="Liberation Serif"> error: filed to connect to the
hypervisor</font><br>
<font face="Liberation Serif"> error: unable to connect to the
server at '192.168.1.40:16514' : No route to the host.</font>
<p><font face="Liberation Serif">c. With firewall disabled and
SELinux set to Enforcing or permissive or disabled, I run "virsh
-c ssh://192.168.1.40". And the command is resulting in two
errors</font></p>
<p> <font face="Liberation Serif">error: filed to connect to the
hypervisor</font><br>
<font face="Liberation Serif"> error: unable to connect to the
server at '192.168.1.40:16514' : Connection refused</font></p>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<title></title>
<meta name="generator" content="LibreOffice 5.0.3.2 (Linux)">
<meta name="created" content="00:00:00">
<meta name="changedby" content="Anantha Raghava">
<meta name="changed" content="2016-01-05T17:20:50.677541300">
<meta name="created" content="00:00:00">
<meta name="changedby" content="Anantha Raghava">
<meta name="changed" content="2015-12-20T09:03:26.251763811">
<meta name="created" content="2015-02-21T00:00:00">
<meta name="changedby" content="Anantha Raghava">
<meta name="changed" content="2015-12-20T09:02:11.666821134">
<style type="text/css">
                @page { margin: 2cm }
                p { margin-bottom: 0.25cm; color: #000000; line-height: 120% }
                address { color: #000000 }
                a:link { so-language: zxx }
        </style>
<p>-- </p>
<p style="margin-bottom: 0cm; line-height: 100%"><font face="Times
New Roman, serif">Thanks
& Regards,</font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br>
</p>
<address style="line-height: 100%"><font face="Times New Roman,
serif">Anantha
Raghava</font></address>
<address style="line-height: 100%"><font face="Times New Roman,
serif">eXza
Technology Consulting & Services</font></address>
<address style="line-height: 100%"><font face="Times New Roman,
serif">Ph:
+91-9538849179, E-mail: <a
href="mailto:raghav@exzatechconsulting.com">raghav@exzatechconsulting.com</a></font></address>
<address style="margin-bottom: 0.5cm; line-height: 100%"><font
face="Times New Roman, serif">URL:
<a href="http://www.exzatechconsulting.com/">http://www.exzatechconsulting.com</a></font></address>
<p><i><b>Support No.: +91-7829774584 </b></i>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><img
src="cid:part3.F6E0EC39.2FEC3C39@exzatechconsulting.com"
name="Image1" align="left" height="57" width="192"> <br
clear="left">
<br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><font
color="#1f497d"><font face="Calibri, sans-serif"><font
style="font-size: 7pt" size="1">DISCLAIMER:<br>
This
e-mail communication and any attachments may be privileged
and
confidential to eXza Technology Consulting & Services,
and are
intended only for the use of the recipients named above If
you are
not the addressee you may not copy, forward, disclose or
use any part
of it. If you have received this message in error, please
delete it
and all copies from your system and notify the sender
immediately by
return e-mail. Internet communications cannot be
guaranteed to be
timely, secure, error or virus-free. The sender does not
accept
liability for any errors or omissions. </font></font></font>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><font
color="#66cc00"><font face="Times New Roman, serif">Do
not print this e-mail unless required. Save Paper &
trees.</font></font></p>
</div>
<div class="moz-cite-prefix">On Thursday 11 August 2016 12:20 PM,
Shahar Havivi wrote:<br>
</div>
<blockquote cite="mid:20160811065053.GA17983@redhat.com" type="cite">
<pre wrap="">On 10.08.16 19:40, Anantha Raghava wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello Richard / Shahar,
I installed and enabled nc on Xen Server host. Now the " ...... sh: nc:
command not found: Input/output error" is gone. Communication is
established. However I am still getting two specific errors:
VDSM ovirt_engine command failed: End of file while reading data: :
Input/Output error
&
Failed to retrieve VMs Information from the external server
<a class="moz-txt-link-abbreviated" href="mailto:xen+ssh://root@192.168.1.40">xen+ssh://root@192.168.1.40</a>
I am receiving the same error when I run virsh -c
<a class="moz-txt-link-abbreviated" href="mailto:xen+ssh://root@192.168.1.40">xen+ssh://root@192.168.1.40</a>
Screen shot is attached for quick reference.
Is it something to do with firewall / ip tables on xen server or libvirtd
host?
</pre>
</blockquote>
<pre wrap="">Hi,
You don't need to try it on oVirt when 'virsh -c' doesn't work since oVirt try
to connect via libvirt libraries (same as virsh) before it called virt-v2v.
Did you follow all the steps in the wiki?
Are you able to ssh to the Xen server from the vdsm machine that you try to
run virsh without password? (ssh <a class="moz-txt-link-abbreviated" href="mailto:root@192.168.1.40">root@192.168.1.40</a>)
</pre>
<blockquote type="cite">
<pre wrap="">
--
Thanks & Regards,
Anantha Raghava
Do not print this e-mail unless required. Save Paper & trees.
On Wednesday 10 August 2016 06:04 PM, Anantha Raghava wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Hi,
Let me try this and post the results here.
Regards,
Ananth
On 10 Aug 2016 15:28, "Richard W.M. Jones" <<a class="moz-txt-link-abbreviated" href="mailto:rjones@redhat.com">rjones@redhat.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:rjones@redhat.com"><mailto:rjones@redhat.com></a>> wrote:
On Wed, Aug 10, 2016 at 09:45:52AM +0300, Shahar Havivi wrote:
> On 10.08.16 06:45, Anantha Raghava wrote:
> > Hi,
> >
> > I even attempted to run command virsh -c
xen+ssh://root@xenhost and I get
> > error "/*error: End of file reading data: sh: nc: command not
found:
> > Input/output error"*/
> First you need to be able to login via virsh (before trying to
import via
> oVirt).
>
> I never encounter this error before,
> I guess that nc is netcat...,
> try to install nmap-ncat:
> $ dnf info nmap-ncat
>
> Adding Richard which may have more input.
Yes, you need to install 'nc' on the *target* (Xen) machine.
This is because libvirt's ssh transport uses nc:
<a class="moz-txt-link-freetext" href="https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html">https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html</a>
<a class="moz-txt-link-rfc2396E" href="https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html"><https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html></a>
Rich.
--
Richard Jones, Virtualization Group, Red Hat
<a class="moz-txt-link-freetext" href="http://people.redhat.com/~rjones">http://people.redhat.com/~rjones</a> <a class="moz-txt-link-rfc2396E" href="http://people.redhat.com/%7Erjones"><http://people.redhat.com/%7Erjones></a>
Read my programming and virtualization blog: <a class="moz-txt-link-freetext" href="http://rwmj.wordpress.com">http://rwmj.wordpress.com</a>
virt-builder quickly builds VMs from scratch
<a class="moz-txt-link-freetext" href="http://libguestfs.org/virt-builder.1.html">http://libguestfs.org/virt-builder.1.html</a>
<a class="moz-txt-link-rfc2396E" href="http://libguestfs.org/virt-builder.1.html"><http://libguestfs.org/virt-builder.1.html></a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>