virt-manager: ssh-askpass "No such file or directory"

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

virt-manager: ssh-askpass "No such file or directory"

Post by peter_b »

[PROBLEM]
Tried to connect to a KVM virtual machine client, using a fresh install of "virt-manager" on Ubuntu 12.04.
The connection was kvm over SSH, but I got the following error message (sorry. German):
Verbindung mit libvirt nicht möglich:

Kann keine Daten empfangen: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt

Verify that:
- The 'libvirt-bin' package is installed
- The 'libvirtd' daemon has been started
- You are member of the 'libvirtd' group

[SOLUTION]
It already says: "/usr/bin/ssh-askpass" doesn't exist.
Just install any "ssh-askpass" package that fits your envirionment.
For example:
  • "ssh-askpass": simple, rather ugly generic X11 GUI input-dialog
  • "ssh-askpass-gnome": GUI input-dialog for Gnome/X11
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

virt-manager: "sh: nc: command not found"

Post by peter_b »

[PROBLEM]
After installing "ssh-askpass-gnome", I was greeted with another error message:
Verbindung mit libvirt nicht möglich:

Ende der Datei beim Lesen von Daten: sh: nc: command not found: Eingabe-/Ausgabefehler

Verify that:
- The 'libvirt-bin' package is installed
- The 'libvirtd' daemon has been started
- You are member of the 'libvirtd' group

Libvirt-URI ist: qemu+ssh://username@hostname/system

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 1185, in _open_thread
self.vmm = self._try_open()
File "/usr/share/virt-manager/virtManager/connection.py", line 1167, in _try_open
flags)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Ende der Datei beim Lesen von Daten: sh: nc: command not found: Eingabe-/Ausgabefehler
It claims to be unable to find the "nc" command.
On the local machine I'm trying to connect from, it is installed however... :?

[SOLUTION]
My fault. I got confused and tried to connect virt-manager to the actual KVM-client, not the server! :oops:
The client was RHEL 6 and didn't have the "nc" command installed by default.

In the end good, because I was definitely trying to connect to the wrong machine.
Post Reply