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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]