[libvirt] [PATCH] in vbox driver, interface type bridge should really be type ethernet

Florian Vichot florian.vichot at diateam.net
Wed Sep 30 18:08:36 UTC 2009


If I understand correctly, the "bridge" type for an interface means
libvirt is in charge of creating a tun device and adding it to the
specified bridge in the <source bridge=".."> attribute. This is not what
the (badly named IHMO) "Bridged Networking" mode in vbox does: all it
does is read and write its packets on the specified interface. Which is
what a type "ethernet" interface does in my opinion. I joined a quick
patch for that, Pritesh could you check it ?

Also, I was about to patch to add support for the proper "bridge" mode
in the vbox driver (because it's what I need in the end), but I see no
way of storing the fact that it's not just an "ethernet" interface using
the vbox API, so that the config would persist over libvirtd restarts.

There is always the possibility of naming the interface a special way
like "br1_myTap", and assume any type "ethernet" interface with a device
containing a "br1_" prefix would actually be a type "bridge" interface
with an associated "vbox_br1" bridge. Would that be acceptable, or is it
too hackish ?

BTW, just to make sure, I can use pretty much anything as a <target> ie.
ethN, panN etc in a type "ethernet" interface, right ? If <target> is
specified, it's not going to create a tun and use that ?

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vbox_bridge_ethernet.patch
Type: text/x-diff
Size: 3221 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090930/2a98fdbe/attachment-0001.bin>


More information about the libvir-list mailing list