I have attached all the logs (/var/log/dmesg, /var/log/libvirtd.log, 
/var/log/messages, /var/log/syslog, /var/log/boot.log and info about 
loaded modules /proc/modules) regarding scenatios1,2,3 (please see the 
README file for simple explanation what is there). By the way, I have 
installed only dnsmasq-bin (and not dnsmasq).<br>
Have a nice day<br><br><div class="gmail_quote">2011/6/8  <span dir="ltr"><<a href="mailto:libvirt-users-request@redhat.com">libvirt-users-request@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Send libvirt-users mailing list submissions to<br>
        <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:libvirt-users-request@redhat.com">libvirt-users-request@redhat.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:libvirt-users-owner@redhat.com">libvirt-users-owner@redhat.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of libvirt-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: libvirt-users Digest, Vol 18, Issue 7(libvirt-bin MOSTLY<br>
      fails to create default virtual network) (m m)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 8 Jun 2011 08:28:19 -0500<br>
From: m m <<a href="mailto:bk.praca@gmail.com">bk.praca@gmail.com</a>><br>
To: <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
Subject: Re: [libvirt-users] libvirt-users Digest, Vol 18, Issue<br>
        7(libvirt-bin MOSTLY fails to create default virtual network)<br>
Message-ID: <<a href="mailto:BANLkTikt49i78OJfzBgufoesv3C-Pjrdjw@mail.gmail.com">BANLkTikt49i78OJfzBgufoesv3C-Pjrdjw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I have attached all the logs (/var/log/dmesg, /var/log/libvirtd.log,<br>
/var/log/messages, /var/log/syslog, /var/log/boot.log and info about loaded<br>
modules /proc/modules) regarding scenatios1,2,3 (please see the README file<br>
for simple explanation what is there). By the way, I have installed only<br>
dnsmasq-bin (and not dnsmasq).<br>
Have a nice day<br>
<br>
2011/6/6 <<a href="mailto:libvirt-users-request@redhat.com">libvirt-users-request@redhat.com</a>><br>
<br>
> Send libvirt-users mailing list submissions to<br>
>        <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
>        <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
> or, via email, send a message with subject or body 'help' to<br>
>        <a href="mailto:libvirt-users-request@redhat.com">libvirt-users-request@redhat.com</a><br>
><br>
> You can reach the person managing the list at<br>
>        <a href="mailto:libvirt-users-owner@redhat.com">libvirt-users-owner@redhat.com</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of libvirt-users digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
>   1. libvirt-bin MOSTLY fails to create default virtual        network (m<br>
> m)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Mon, 6 Jun 2011 14:24:04 -0500<br>
> From: m m <<a href="mailto:bk.praca@gmail.com">bk.praca@gmail.com</a>><br>
> To: <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> Subject: [libvirt-users] libvirt-bin MOSTLY fails to create default<br>
>        virtual network<br>
> Message-ID: <<a href="mailto:BANLkTinrE80HURSwJUUv28_v9HB9mRxNNw@mail.gmail.com">BANLkTinrE80HURSwJUUv28_v9HB9mRxNNw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> I have observed 3 scenarios after I reboot the host with 2 guests (which<br>
> are<br>
> supposed to autostart after boot/reboot of the host):<br>
> 1. Default network is created but I can not ping guests. Gests don't have<br>
> assigned IP address or they both have IP address 192.168.122.100.<br>
> 2. Default network is not created.<br>
> 3. Default netork is properly created and everything works fine.<br>
> In each case guests are started and they work properly. Cases 1. and 2.<br>
> happen a lot more often then case 3.<br>
><br>
> My solutions:<br>
> - When I restart libvirt-bin then everything is fine.<br>
> - When I set 'sleep 40' in 'pre-start' section of<br>
> /etc/init/libvirt-bin.conf<br>
> and modify 'start on' section in the following way:<br>
><br>
> start on (runlevel [2345] and net-device-up IFACE=br0)<br>
><br>
> then everything works fine.<br>
><br>
><br>
> However, none of the above solutions indeed solves the problem. Please, let<br>
> me know if there is solution to this problem or what are your suggestions<br>
> regarding this issue.<br>
><br>
> ****<br>
> HOST$ uname -a<br>
> Linux ras 2.6.32-32-server #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011<br>
> x86_64 GNU/Linux<br>
><br>
> GUEST1 and GUEST2<br>
> $ uname -a<br>
> Linux server1-desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21<br>
> UTC 2011 i686 GNU/Linux<br>
><br>
> HOST$ libvirtd --version<br>
> libvirtd (libvirt) 0.7.5<br>
><br>
> My idea was that some kernel modules sometimes are loaded before<br>
> libvirt-bin<br>
> starts, and sometimes libvirt-bin starts earlier, or in the middle of<br>
> loading of these modules, that is why 3 scenarios can be observed.<br>
> That is why I have added:<br>
>  cp /proc/modules /home/wsadmin2/modules1<br>
>  cp /proc/modules /home/wsadmin2/modules2<br>
> to 'pre-start' and 'post-start' parts respectively of<br>
> /etc/init/libvirt-bin.conf.<br>
><br>
> Of course, beween execution of<br>
> - pre-start part<br>
> - exec /usr/sbin/libvirtd -d<br>
> - post-start part<br>
> other kernel modules can be loaded, so we can not be sure which additional<br>
> modules in file 'modules2' were indeed loaded before libvirtd was actually<br>
> started.<br>
><br>
> Here are my observations:<br>
> Scenatio 1.<br>
> 33 (fixed) modules were logged - call them BASE MODULES.<br>
><br>
> Scenatio 2.<br>
> Beside BASE MODULES + the following modules were loaded:<br>
><br>
> > iptable_filter 1841 0 - Live 0xffffffffa007c000<br>
> > ip_tables 18201 1 iptable_filter, Live 0xffffffffa0172000<br>
> > x_tables 22361 1 ip_tables, Live 0xffffffffa0164000<br>
><br>
> Scenatio 3.<br>
> Beside BASE MODULES + the following modules were loaded:<br>
><br>
> $ diff modules1 modules2<br>
> 1c1,6<br>
> < iptable_filter 1841 0 - Live 0xffffffffa008b000<br>
> ---<br>
> > xt_state 1490 14 - Live 0xffffffffa01ab000<br>
> > xt_tcpudp 2667 12 - Live 0xffffffffa01a5000<br>
> > nf_conntrack_ipv4 12742 14 - Live 0xffffffffa019b000<br>
> > nf_conntrack 73326 2 xt_state,nf_conntrack_ipv4, Live 0xffffffffa017d000<br>
> > nf_defrag_ipv4 1481 1 nf_conntrack_ipv4, Live 0xffffffffa0177000<br>
> > iptable_filter 1841 1 - Live 0xffffffffa008b000<br>
> 3c8<br>
> < x_tables 22361 1 ip_tables, Live 0xffffffffa0162000<br>
> ---<br>
> > x_tables 22361 3 xt_state,xt_tcpudp,ip_tables, Live 0xffffffffa0162000<br>
><br>
> Other observations:<br>
> Scenatio 1.<br>
> No errors in libvirtd.log<br>
> Scenario 2.<br>
><br>
> 10:06:06.980: error : networkAddIptablesRules:750 : failed to add iptables<br>
> rule to allow DHCP requests from 'virbr0': Invalid argument<br>
> (...)<br>
> 10:06:08.630: error : qemudNetworkIfaceConnect:1445 : Failed to add tap<br>
> interface to bridge 'virbr0': No such device<br>
> 10:06:08.630: error : qemuAutostartDomain:584 : Failed to autostart VM<br>
> 'cluster_server1': Failed to add tap interface to bridge 'virbr0': No such<br>
> device<br>
><br>
> 10:06:08.921: info : qemudDispatchSignalEvent:390 : Received unexpected<br>
> signal 17<br>
> 10:06:08.927: debug : virExecWithHook:617 : LC_ALL=C /usr/bin/kvm -help<br>
> 10:06:08.938: info : qemudDispatchSignalEvent:390 : Received unexpected<br>
> signal 17<br>
> 10:06:09.000: error : qemudNetworkIfaceConnect:1445 : Failed to add tap<br>
> interface to bridge 'virbr0': No such device<br>
> 10:06:09.000: error : qemuAutostartDomain:584 : Failed to autostart VM<br>
> 'cluster_server2': Failed to add tap interface to bridge 'virbr0': No such<br>
> device<br>
> (...)<br>
> Scenatio 3.<br>
> No errors in libvirtd.log<br>
><br>
><br>
> I didn't see any valuable logs in /var/log/boot.log, /var/log/messages,<br>
> /var/log/syslog. Please let me know if you want to see them anyway or have<br>
> any suggestions right away.<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment.html" target="_blank">https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment.html</a><br>

> ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: scenario1<br>
> Type: application/octet-stream<br>
> Size: 19317 bytes<br>
> Desc: not available<br>
> URL: <<br>
> <a href="https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment.obj" target="_blank">https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment.obj</a><br>

> ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: scenario2<br>
> Type: application/octet-stream<br>
> Size: 8294 bytes<br>
> Desc: not available<br>
> URL: <<br>
> <a href="https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment-0001.obj" target="_blank">https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment-0001.obj</a><br>

> ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: scenario3<br>
> Type: application/octet-stream<br>
> Size: 2366 bytes<br>
> Desc: not available<br>
> URL: <<br>
> <a href="https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment-0002.obj" target="_blank">https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment-0002.obj</a><br>

> ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: libvirt-bin.conf<br>
> Type: application/octet-stream<br>
> Size: 924 bytes<br>
> Desc: not available<br>
> URL: <<br>
> <a href="https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment-0003.obj" target="_blank">https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07ab3/attachment-0003.obj</a><br>

> ><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> libvirt-users mailing list<br>
> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
><br>
> End of libvirt-users Digest, Vol 18, Issue 7<br>
> ********************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://www.redhat.com/archives/libvirt-users/attachments/20110608/625b332f/attachment.html" target="_blank">https://www.redhat.com/archives/libvirt-users/attachments/20110608/625b332f/attachment.html</a>><br>

-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: LucidClusterStack.rar<br>
Type: application/rar<br>
Size: 4473008 bytes<br>
Desc: not available<br>
URL: <<a href="https://www.redhat.com/archives/libvirt-users/attachments/20110608/625b332f/attachment.bin" target="_blank">https://www.redhat.com/archives/libvirt-users/attachments/20110608/625b332f/attachment.bin</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
<br>
End of libvirt-users Digest, Vol 18, Issue 11<br>
*********************************************<br>
</blockquote></div><br>