<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Tomáš,</p>
<p>virsh list --all works locally and results in list of all VMs. <br>
</p>
<p>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> results in two errors:</p>
<font face="Courier New, Courier, monospace">error: failed to
connect to hypervisor</font><br>
<font face="Courier New, Courier, monospace">error: End of file
while reading data: : Input/output error</font><br>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<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>
<address style="line-height: 100%"><font face="Times New Roman,
serif">Anantha
Raghava</font></address>
<br>
</div>
<div class="moz-cite-prefix">On Thursday 11 August 2016 04:11 PM,
Tomáš Golembiovský wrote:<br>
</div>
<blockquote cite="mid:20160811124147.50700bb6@fiorina" type="cite">
<pre wrap="">Hi,
On Thu, 11 Aug 2016 14:14:24 +0530
Anantha Raghava <a class="moz-txt-link-rfc2396E" href="mailto:raghav@exzatechconsulting.com"><raghav@exzatechconsulting.com></a> 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.
</pre>
</blockquote>
<pre wrap="">
Could you please verify that running 'virsh list --all' localy works too?
</pre>
<blockquote type="cite">
<pre wrap="">
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="">
That is because your libvirt URI is wrong. It has to be 'xen+ssh://...'
not 'ssh://...'.
Does it work if you try: 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>'
Best regards,
Tomas
</pre>
</blockquote>
<br>
</body>
</html>