[libvirt-users] Convincing libvirt to create a bridge device?

Lars Kellogg-Stedman lars at redhat.com
Sun Mar 6 20:21:39 UTC 2016


I was hoping that I could delegate creation of bridge devices to
libvirt for address-less bridges, in order to not have to deal with
the various ways distributions handle persistent network
configuration, but while this creates a libvirt network...

  <network>
    <name>provision</name>
    <forward mode='bridge'/>
    <bridge name='brprov'/>
  </network>

...it doesn't actually create the bridge.  Configuring the bridge
using either <forward mode="route"/> or <forward mode="nat"/> *will*
create the bridge device, but both of these require assigning an
address to the bridge which means I have to suddenly worry about
IPAM and conflicts with local networks.

I look at the various interface-related commands, and there is an
"iface-bridge" command but this requires a physical interface.

Is there any way to convince libvirt to create the bridge device for a
<forward mode='bridge'/> network?

-- 
Lars Kellogg-Stedman <lars at redhat.com> | larsks @ {freenode,twitter,github}
Cloud Engineering / OpenStack          | http://blog.oddbit.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20160306/c72019ca/attachment.sig>


More information about the libvirt-users mailing list