Ask Your Question
0

libvirrt error: Connection reset by peer

asked 2012-05-24 06:58:20 -0600

mx-chilly gravatar image

I'm using a two node setup with Ubuntu 12.04, one cloud controller and one compute node. I'm using kvm and whenever I try to start an instance the compute node throws a libvirrt error:

2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] Traceback (most recent call last): 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 592, in _spawn 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] self._legacy_nw_info(network_info), block_device_info) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] return f(args, *kw) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 922, in spawn 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] self._create_new_domain(xml) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1575, in _create_new_domain 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] domain.createWithFlags(launch_flags) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] File "/usr/lib/python2.7/dist-packages/libvirt.py", line 581, in createWithFlags 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) 2012-05-24 08:47:30 TRACE nova.compute.manager [instance: b0d33c8a-9bf6-4e39-b26c-5f9b382f2766] libvirtError: Unable to read from monitor: Connection reset by peer

I checked the bios, I checked "lsmod | grep kvm" and "lsmod | grep nbd". KVM is enabled in the bios and the modules are loaded.

When I try using "virsh start domain-name", I see the same error: "error: Unable to read from monitor: Connection reset by peer" . Any hints on what's wrong here?

edit retag flag offensive close merge delete

11 answers

Sort by ยป oldest newest most voted
0

answered 2012-07-24 16:31:31 -0600

mx-chilly gravatar image

I'm also no expert in debugging nova and had quite some troubles with it. I knew that libvirt was used, so I located the instances on the compute node and tried to start them manually using virsh ( https://help.ubuntu.com/community/KVM/Virsh (https://help.ubuntu.com/community/KVM...) ). Didn't work, but so I could be sure it's a problem with libvirt and the xml file that defines the instance.

Well it turned out that there was an entry in the xml file for the vnc server which was not correct. After it was removed, I could start the machines.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-05-24 06:58:20 -0600

Seen: 3,428 times

Last updated: Jul 24 '12