[libvirt] libvirtd crashing with network bridge configuration

Daniel P. Berrange berrange at redhat.com
Fri Dec 19 10:19:02 UTC 2008


On Fri, Dec 19, 2008 at 12:47:14AM +0100, Emre Erenoglu wrote:
> Hi Daniel,
> 
> On Thu, Dec 18, 2008 at 1:47 PM, Daniel P. Berrange <berrange at redhat.com>wrote:
> 
> > > ps ax shows the following output right after the service is started:
> > >
> > >  3605 ?        S      0:00 /usr/sbin/libvirtd --daemon
> > >  3624 ?        Z      0:00 [libvirtd] <defunct>
> > >
> > > If I don't enable any network at  /etc/libvirt/qemu/networks/autostart,
> > then
> > > there's no error.
> >
> > This suggest libvirtd itself is *not* crashing. Some process that
> > libvirtd runs is dieing - not sure which though.
> >
> > Please kill all libvirtd  instances, and making sure you have compiled
> > with debugging info turned on (ie, '-g' compile flag), then run
> >
> >  # valgrind /usr/sbin/libvirtd
> >
> > And also try
> >
> >  LIBVIRT_DEBUG=1 /usr/sbin/libvirtd
> >
> > and send the output for both of these.
> 
> 
> The output of these seperately, and combined (total 3 files) are attached.
> Guessing that there might a compiler flag problem, here's what our default
> compiler uses while compiling packages:

The valgrind output was all fine - the warnings it issues are
all harmless.

The key is this message from the libvirt debug output:


> DEBUG: util.c: virExec (dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file  --conf-file  --listen-address 192.168.122.1 --except-interface lo --dhcp-leasefile=/var/lib/libvirt/dhcp-default.leases --dhcp-range 192.168.122.2,192.168.122.254)
> libvir: error : internal error cannot execute binary 'dnsmasq': No such file or directory


This missing 'dnsmasq' binary is what is causing the 'defunct' process
you see. If you install dnsmasq it should all work as expected

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list