<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>I have attached the log of both virsh -c <a class="moz-txt-link-abbreviated" href="mailto:ssh://root@192.168.1.40">ssh://root@192.168.1.40</a>
& 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><br>
</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><br>
Hope this helps to debug.<br>
<p>-- </p>
<p style="margin-bottom: 0cm; line-height: 100%"><font face="Times
New Roman, serif">Thanks
& Regards,</font></p>
<address style="line-height: 100%"><font face="Times New Roman,
serif">Anantha
Raghava</font></address>
<font color="#66cc00"><font face="Times New Roman, serif">Do
not print this e-mail unless required. Save Paper & trees.</font></font>
</div>
<div class="moz-cite-prefix"><br>
On Thursday 11 August 2016 04:01 PM, Shahar Havivi wrote:<br>
</div>
<blockquote cite="mid:20160811103150.GD17983@redhat.com" type="cite">
<pre wrap="">On 11.08.16 14:14, Anantha Raghava wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Tested this with different combinations:
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.
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:
error: filed to connect to the hypervisor
error: unable to connect to the server at '192.168.1.40:16514' : No
route to the host.
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
error: filed to connect to the hypervisor
error: unable to connect to the server at '192.168.1.40:16514' :
Connection refused
</pre>
</blockquote>
<pre wrap="">Good tests,
We need to figure out why libvirt refuse the connection,
try to debug virsh by running:
$ export LIBVIRT_LOG_OUTPUTS="1:<a class="moz-txt-link-freetext" href="file:/tmp/libvirt_client.log">file:/tmp/libvirt_client.log</a>"
$ export LIBVIRT_DEBUG=1
$ virsh -c virsh -c ssh://192.168.1.40
and examing /tmp/libvirt_client.log file
</pre>
<blockquote type="cite">
<pre wrap="">
--
Thanks & Regards,
Anantha Raghava
eXza Technology Consulting & Services
Ph: +91-9538849179, E-mail: <a class="moz-txt-link-abbreviated" href="mailto:raghav@exzatechconsulting.com">raghav@exzatechconsulting.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:raghav@exzatechconsulting.com"><mailto:raghav@exzatechconsulting.com></a>
URL: <a class="moz-txt-link-freetext" href="http://www.exzatechconsulting.com">http://www.exzatechconsulting.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.exzatechconsulting.com/"><http://www.exzatechconsulting.com/></a>
/*Support No.: +91-7829774584 */
DISCLAIMER:
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.
Do not print this e-mail unless required. Save Paper & trees.
On Thursday 11 August 2016 12:20 PM, Shahar Havivi wrote:
</pre>
<blockquote 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>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>