libvirt-bin: "Value too large for defined data type"

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

libvirt-bin: "Value too large for defined data type"

Post by peter_b »

[PROBLEM]
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:
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
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.


[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 :D
Post Reply