<div>Hello!</div><div><br></div><div>I've faced a weird problem. And I totally can't understand how libvirt handles networks. The thing that i need to do is simple. I create a bridge in my ubuntu host, the following config:</div>
<div><br></div><div><font class="Apple-style-span" face="'times new roman', serif"><b>iface eth0 inet manual</b></font></div><div><font class="Apple-style-span" face="'times new roman', serif"><b><br></b></font></div>
<div><font class="Apple-style-span" face="'times new roman', serif"><b>auto br0</b></font></div><div><font class="Apple-style-span" face="'times new roman', serif"><b>iface br0 inet dhcp</b></font></div><div>
<font class="Apple-style-span" face="'times new roman', serif"><b>  bridge_ports eth0</b></font></div><div><font class="Apple-style-span" face="'times new roman', serif"><b>  bridge_stp on</b></font></div>
<div><font class="Apple-style-span" face="'times new roman', serif"><b>  bridge_maxwait 0</b></font></div><div><br></div><div>That's OK, and my bridge turns up automatically. But I don't understand why libvirt can't use it, it always want to create bridge on its own. So that when I try to create bridged network with the command:</div>
<div>  virsh virsh net-create net.xml</div><div><br></div><div>net.xml contents:</div><div><font class="Apple-style-span" face="'times new roman', serif"><b> <network></b></font></div><div><font class="Apple-style-span" face="'times new roman', serif"><b>  <name>virbreth0</name></b></font></div>
<div><font class="Apple-style-span" face="'times new roman', serif"><b>  <bridge name='br0' stp='on' delay='0' /></b></font></div><div><font class="Apple-style-span" face="'times new roman', serif"><b> </network></b></font></div>
<div><br></div><div>I always get error ===></div><div><div><font class="Apple-style-span" face="'times new roman', serif">error: Failed to create network from net.xml</font></div><div><font class="Apple-style-span" face="'times new roman', serif">error: cannot create bridge 'br0': File exists</font></div>
</div><div><font class="Apple-style-span" face="'times new roman', serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">That's pretty obvious that libvirt wants to create bridge on its own. But what should I do in my specific situation. May be there is a workaround. I appreciate any help and ideas...</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Thanks for your answers.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br>
</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Best regards,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">  Denis Barishev.</font></div><div><br>
</div><div><br></div>