Re: How to connect virt-manager to two hosts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 23, 2015 at 09:13:11PM +1100, Phill Edwards wrote:
I have 2 Centos 7.1 servers running KVM - let's call them KVM1 and KVM2.
Virt-manager is installed on KVM2 and I run that from my Windows PC using
VxXsrv which I believe is a fork of Xming. This allows me to configure the
VMs on KVM2 with virt-manager.

I believe it's possible to have virt-manager connect to multiple hosts so
I'm trying to get it to access KVM1 as well, but I keep getting an error
which I don't know how to fix:

  Unable to connect to libvirt.
  You need to install openssh-askpass or similar to connect to this host.
  Libvirt URI is: qemu+ssh://root@192.168.0.102/system
  Traceback (most recent call last):
    File "/usr/share/virt-manager/virtManager/connection.py", line 969, in
_open_thread self._backend.open(self._do_creds_password)
    File "/usr/share/virt-manager/virtinst/connection.py", line 157, in
open        open_flags)
 File "/usr/lib64/python2.7/site-packages/libvirt.py", line 105, in
openAuth
   if ret is None:raise libvirtError('virConnectOpenAuth() failed')
  libvirtError: Cannot recv data: ssh_askpass:
exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
  Permission denied, please try again.
  ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or
directory
  Permission denied, please try again.
  ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or
directory

You installed askpass, but virt-manager can't find it, it's trying to
use /usr/libexec/openssh/ssh-askpass which is probably not there.
Check where it got installed and why it can't run it.

  Permission denied (publickey,password).: Connection reset by peer

I have installed openssh-askpass on KVM 2 and KVM1 and virsh on KVM2 can
connect to KVM1:
  # virsh --connect qemu+ssh://192.168.0.102/system
  root@192.168.0.102's password:

Anyway, the easiest thing for you would be to deploy ssh keys for
password-less login (or just requiring unlocked keyring)

  Welcome to virsh, the virtualization interactive terminal.
  ...


Can anyone please advise what I need to do to get virt-manager on KVM2 to
connect to KVM1.

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

Attachment: signature.asc
Description: PGP signature

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux