i am using libvirt-1.1.4 with xen(libxl). When destroying the VM its showing the following error : virsh # destroy 4 error: Failed to destroy domain 4 error: End of file while reading data: Input/output error error: One or more references were leaked after disconnect from the hypervisor error: Failed to reconnect to the hypervisor virsh # list error: failed to connect to the hypervisor error: no valid connection error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused already i send one request to this community to solve this problem. they suggested to do gdb. Any guide to do the gdb libvirtd. By googling i did the following things: 1. i enable the logoutput and loglevel in libvirtd.conf 2. restarted the libvirtd with the changed configuration file. 3. ps -aux | grep libvirtd 4. gdb libvirtd pid 5. then what i have to do to find the reason for this error. Suggest me some steps to solve this problem. regards, cooldharma06.
On mer, 2013-12-18 at 11:47 +0530, cool dharma06 wrote:> i am using libvirt-1.1.4 with xen(libxl). When destroying the VM its > showing the following error : > > > virsh # destroy 4 > > error: Failed to destroy domain 4 > error: End of file while reading data: Input/output error > error: One or more references were leaked after disconnect from the > hypervisor > error: Failed to reconnect to the hypervisor >Libvirt 1.1.4 built from sources? Also, what version of Xen (and thus of libxl)? Build from sources or installed via distro packages?> > virsh # list > error: failed to connect to the hypervisor > error: no valid connection > error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': > Connection refused >Mmm... I'm doing some libvirt testing/development on the libxl driver right in these days, and I've issued a lot of `virsh start' and `virsh stop' without seeing anything like this (I'm on trunk for both libvirt and xen, though).> > already i send one request to this community to solve this problem. > they suggested to do gdb. >Well, sure gdb could be useful... But what about checking the logs? Look in /var/log/libvirt/libxl.> > Any guide to do the gdb libvirtd. By googling i did the following > things: > > > 1. i enable the logoutput and loglevel in libvirtd.conf > 2. restarted the libvirtd with the changed configuration file. > 3. ps -aux | grep libvirtd > 4. gdb libvirtd pid > 5. then what i have to do to find the reason for this error. >You have to trigger the crash (e.g., by issuing the offending command in another terminal window) and try to figure out where it is that libvirtd died, check the backtrace, etc. Once you have figured out that, you can set breakpoints right before the statements where it crashes, and try to figure out (by looking at variable values, etc) what is making it explode. Again, I'd recommend checking the logs (first) to help with that. Regards, Dario -- <<This happens because I choose it to happen!>> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
On 18.12.2013 07:17, cool dharma06 wrote:> i am using libvirt-1.1.4 with xen(libxl). When destroying the VM its > showing the following error : > > virsh # destroy 4 > error: Failed to destroy domain 4 > error: End of file while reading data: Input/output error > error: One or more references were leaked after disconnect from the > hypervisor > error: Failed to reconnect to the hypervisor > > virsh # list > error: failed to connect to the hypervisor > error: no valid connection > error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': > Connection refused > > already i send one request to this community to solve this problem. they > suggested to do gdb. > > Any guide to do the gdb libvirtd. By googling i did the following things: > > 1. i enable the logoutput and loglevel in libvirtd.confhttp://wiki.libvirt.org/page/DebugLogs> 2. restarted the libvirtd with the changed configuration file. > 3. ps -aux | grep libvirtd > 4. gdb libvirtd pid > 5. then what i have to do to find the reason for this error. >You need to hit 'c[enter]' in the gdb console (and by [enter] I mean pressing the enter key not actually typing it onto console). Then you need to run 'virsh destroy 4' in a different console so you reproduce the crash. After this, when you return do gdb you should see a stack trace. It will point to line which caused the trouble. If not, you may need to install libvirt debug infos (actual command to do this is distro specific). Btw: you can join steps 3 and 4 into one: gdb -p $(pgrep libvirtd) Once you have the stack trace and the logs, please do open a new bug against libvirt: https://bugzilla.redhat.com/enter_bug.cgi?product=Virtualization%20Tools and attach the stack trace and the debug logs. Michal
i installed both xen-4.2.1 and libvirt-1.2.0 from the source only. i moved with the latest version of libvrirt. i did the gdb in libvirt-1.2.0 and i raised the bug. Please find the following link for the bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1044838 regards, cooldharma06. On Wed, Dec 18, 2013 at 6:33 PM, Michal Privoznik <mprivozn@redhat.com>wrote:> On 18.12.2013 07:17, cool dharma06 wrote: > > i am using libvirt-1.1.4 with xen(libxl). When destroying the VM its > > showing the following error : > > > > virsh # destroy 4 > > error: Failed to destroy domain 4 > > error: End of file while reading data: Input/output error > > error: One or more references were leaked after disconnect from the > > hypervisor > > error: Failed to reconnect to the hypervisor > > > > virsh # list > > error: failed to connect to the hypervisor > > error: no valid connection > > error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': > > Connection refused > > > > already i send one request to this community to solve this problem. they > > suggested to do gdb. > > > > Any guide to do the gdb libvirtd. By googling i did the following things: > > > > 1. i enable the logoutput and loglevel in libvirtd.conf > > http://wiki.libvirt.org/page/DebugLogs > > > 2. restarted the libvirtd with the changed configuration file. > > 3. ps -aux | grep libvirtd > > 4. gdb libvirtd pid > > 5. then what i have to do to find the reason for this error. > > > > You need to hit 'c[enter]' in the gdb console (and by [enter] I mean > pressing the enter key not actually typing it onto console). Then you need > to run 'virsh destroy 4' in a different console so you reproduce the crash. > After this, when you return do gdb you should see a stack trace. It will > point to line which caused the trouble. If not, you may need to install > libvirt debug infos (actual command to do this is distro specific). > > Btw: you can join steps 3 and 4 into one: > > gdb -p $(pgrep libvirtd) > > Once you have the stack trace and the logs, please do open a new bug > against libvirt: > > > https://bugzilla.redhat.com/enter_bug.cgi?product=Virtualization%20Tools > > and attach the stack trace and the debug logs. > > Michal > >
Possibly Parallel Threads
- Re: About debugging of libvirt.
- (Xen + libvirt) Installing and workin with xen -4.2.1 and libvirt 1.1.2
- (Xen + libvirt) Installing and workin with xen -4.2.1 and libvirt 1.1.2
- Re: About debugging of libvirt.
- Re: (Xen + libvirt) Installing and workin with xen -4.2.1 and libvirt 1.1.2