[libvirt] [PATCH] LXC allow container to have ethN interfaces

Daniel Veillard veillard at redhat.com
Thu Nov 5 13:14:46 UTC 2009

On Thu, Nov 05, 2009 at 04:46:36AM +0900, Ryota Ozaki wrote:
> Current implementation of lxc driver creates vethN named
> interface(s) in the host and passes as it is to a container.
> The reason why it doesn't use ethN is due to the limitation
> that one namespace cannot have multiple iterfaces that have
> an identical name so that we give up creating ethN named
> interface in the host for the container.
> However, we should be able to allow the container to have
> ethN by changing the name after clone(CLONE_NEWNET).
> The patch simply does that and numberes to ethN with
> ascending order from zero with no concern for what vethN
> is named. So say if there is one interface, its name will
> be eth0.
> Note that this patch is based on top of the prior cleanup patches.

  Okay, the change makes sense, and follow the review by Dan,
so I applied it after the cleanups,

  thanks !


Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

More information about the libvir-list mailing list