virt-manager refuses to connect "<class 'libvirt.libvirtError'> cannot recv data:"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I use a freshly installed kubuntu jaunty amd64.
user@user-
Linux user-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux
I try to connect to an intrepid ubuntu server running kvm using the command:
virt-manager -c qemu+ssh://<email address hidden>/system
It refuses to connect with the message:
------
Unable to open a connection to the libvirt management daemon.
Libvirt URI is: qemu+ssh://<email address hidden>/system
Verify that:
- The 'libvirt-bin' package is installed
- The 'libvirtd' daemon has been started
- That you have access to '/var/run/
------
Under details I get:
------
Unable to open connection to hypervisor URI 'qemu+ssh://<email address hidden>/system':
<class 'libvirt.
None
------
I do not think the problem is on the server side as I used to connect correctly using the same command on Hardy but an older version of virt-manager.
Here is a workaround for this. I have seen this problem in both virt-manager 0.6.1 (Jaunty) and self compiled 0.7:
Virt manager 0.6.1:
File -> Add Connection -> quemu+ssh
Can't connect, receive this error:
Unable to open connection to hypervisor URI 'qemu+ssh://<email address hidden>/system': libvirtError' > cannot recv data: Connection reset by peer
<class 'libvirt.
None
Virt manager 0.7.0:
File -> Add connection -> quemu+ssh
Can't connect, receive this error:
Unable to open connection to hypervisor URI 'qemu+ssh://<email address hidden>/system': libvirtError' > cannot recv data: Connection reset by peer
<class 'libvirt.
None
Maybe you need to install ssh-askpass in order to authenticate.
Workaround: Create and use key authentication instead of password:
ssh-keygen -t rsa -N "" .ssh/id_ rsa.pub <email address hidden>
ssh-copy-id -i /home/myuser/
Adding and connecting with virt-manager then works.