Cobra Forum

Linux Specialised Support => Virtualisation => Topic started by: kalpana on Oct 31, 2023, 05:57 AM

Title: virt-manager doesn't connect to KVM server
Post by: kalpana on Oct 31, 2023, 05:57 AM
Hi all,

I am transitioning from an old laptop to a newer one.

I installed virt-manager on the new laptop, but it is refusing to connect to the local KVM server:
Code:

Unable to connect to libvirt qemu+ssh://root@192.168.1.148/system.

Configure SSH key access for the remote host, or install an SSH askpass package locally.

Libvirt URI is: qemu+ssh://root@192.168.1.148/system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 956, in _do_open
    self._backend.open(connectauth.creds_dialog, self)
  File "/usr/share/virt-manager/virtinst/connection.py", line 172, in open
    conn = libvirt.openAuth(self._open_uri,
  File "/usr/lib/python3/dist-packages/libvirt.py", line 104, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Cannot recv data: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

I have tried installing askpass, try continuously entering my password, not working
I have tried moving the .ssh folder from the old laptop, doesn't work either
libvirtd service is working on server

virt-manager on the old laptop is connecting without issues

Any assistance would be great