I've just freshly re-installed a Debian 7 (Wheezy) server as KVM host.
When I tried to connect using the "Virtual Machine Manager" GUI - which worked flawlessly on previous setups - I got the following error message:
It looked pretty much like Bug#659956 - "libvirt-bin: virsh/virt-manager connection failure: Cannot recv data: Value too large for defined data type", but nothing I've read there seemed to help and/or apply to my case.Cannot recv data: Value too large for defined data type
Verify that the 'libvirtd' daemon is running
on the remote host. : Unable to connect to libvirt.
Cannot recv data: Value too large for defined data type
Verify that the 'libvirtd' daemon is running
on the remote host.
Libvirt URI is: qemu+ssh://username@hostname.storage.local/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: Cannot recv data: Value too large for defined data type
[SOLUTION]
Try to connect to the KVM server directly by SSH shell on the commandline.
In my case, I've newly set up the server, so the SSH host key has changed, so SSH correctly refused to connect.
Unfortunately, libvirt currently cannot display a more appropriate error message at the moment.
See Bug#513363 - "Not suitable error message when ssh public key changed"
So, remove the offending host key from "~/.ssh/known_hosts" and try again