[libvirt-users] Not able to do ssh with libvirt

Hi, I am having issue while doing *ssh* to a virtual node through libvirt. The nodes's ip address is 192.168.82.1. When I am giving the command it is giving the following error message: *virsh# connect vbox+ssh://192.168.82.1/session* *Password:* *error: Failed to connect to the hypervisor* *error: End of ifle while reading data: sh: nc: command not found: Input/output error.* Can anyone tell me why am I facing this problem and how to resolve it. Thanks in advance.

On 01/23/2013 11:42 AM, varun bhatnagar wrote:
Hi,
I am having issue while doing *ssh* to a virtual node through libvirt. The nodes's ip address is 192.168.82.1. When I am giving the command it is giving the following error message:
*virsh# connect vbox+ssh://192.168.82.1/session <http://192.168.82.1/session>* *Password:* *error: Failed to connect to the hypervisor* *error: End of ifle while reading data: sh: nc: command not found: Input/output error.*
Looks like netcat is missing.
Can anyone tell me why am I facing this problem and how to resolve it.
Thanks in advance.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On 01/23/2013 11:42 AM, varun bhatnagar wrote:
Hi,
I am having issue while doing *ssh* to a virtual node through libvirt. The nodes's ip address is 192.168.82.1. When I am giving the command it is giving the following error message:
*virsh# connect vbox+ssh://192.168.82.1/session <http://192.168.82.1/session>* *Password:* *error: Failed to connect to the hypervisor* *error: End of ifle while reading data: sh: nc: command not found: Input/output error.*
Can anyone tell me why am I facing this problem and how to resolve it.
Sounds like netcat is missing...
Thanks in advance.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Hello, Please check if libvirtd daemon is running on the server. http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor I had this kind of issue between my archlinux and my redhat box. You can try this command on the host system : alternatives --install /usr/bin/nc.openbsd nc.openbsd /usr/bin/nc 0 Regards, Iounes On Wed, Jan 23, 2013 at 5:42 PM, varun bhatnagar <varun292006@gmail.com>wrote:
Hi,
I am having issue while doing *ssh* to a virtual node through libvirt. The nodes's ip address is 192.168.82.1. When I am giving the command it is giving the following error message:
*virsh# connect vbox+ssh://192.168.82.1/session* *Password:* *error: Failed to connect to the hypervisor* *error: End of ifle while reading data: sh: nc: command not found: Input/output error.*
Can anyone tell me why am I facing this problem and how to resolve it.
Thanks in advance.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Newbie question: Can I ask what this capability is used for, instead of a shell ssh connection? John On 01/23/2013 08:42 AM, varun bhatnagar wrote:
Hi,
I am having issue while doing *ssh* to a virtual node through libvirt. The nodes's ip address is 192.168.82.1. When I am giving the command it is giving the following error message:
*virsh# connect vbox+ssh://192.168.82.1/session <http://192.168.82.1/session>* *Password:* *error: Failed to connect to the hypervisor* *error: End of ifle while reading data: sh: nc: command not found: Input/output error.*
Can anyone tell me why am I facing this problem and how to resolve it.
Thanks in advance.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- John Fisher

On 01/23/2013 01:42 PM, john fisher wrote:
Newbie question:
[Please don't top-post on technical lists]
Can I ask what this capability is used for, instead of a shell ssh connection?
Remote management is one of the key features of libvirt. It means that you can set up the host machine in a rack, with no X environment, and still have your laptop have a nice gui management of everything in that host machine. http://libvirt.org/remote.html -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Oh I didn't get that its a way of remote-controlling libvirtd without using the native login shell on the hypervisor. I am curious to know what advantage that gets you? ... I must be missing something that I probably need to understand. For instance, if I wanted a remote X interface I would have expected to use ssh -X or VNC. thanks. On 01/23/2013 01:25 PM, Eric Blake wrote:
Remote management is one of the key features of libvirt. It means that you can set up the host machine in a rack, with no X environment, and still have your laptop have a nice gui management of everything in that host machine. http://libvirt.org/remote.html
-- John Fisher
participants (5)
-
Colin Davis
-
Eric Blake
-
Iounes GARDON
-
john fisher
-
varun bhatnagar