[Lxc-users] VALE as networking option in LXC

Zhu Yanhai zhu.yanhai at gmail.com
Wed Apr 17 02:29:06 UTC 2013


2013/4/16 Natale Patriciello <natale.patriciello at gmail.com>

> On 16/04/13 at 06:45pm, Zhu Yanhai wrote:
> > I think the 'tcp friends' feature in the latest upstream kernel can do
> the
> > same thing with it. See http://lwn.net/Articles/511254/.
> >
>
> Actually, I'm focused to lower layers (in particular ethernet layer), so
> any improvements to TCP doesn't fit well into my case study. Thank you
> anyway, I'll will add it to the "must see" things.
>
> Regarding netmap, its kernel module creates a character device
> (/dev/netmap), which I
> want to make accessible into lxc containers as first step to evaluate
> performance. I've setup config file adding these lines:
>
> lxc.cgroup.devices.allow = c 10:57 rwm
>
> because I have
>
> crw------- 1 root root 10, 57 16 apr 11.23 /dev/netmap
>
> but any mknod inside the container fail with an "operation not
>

It should be ok, did you restart the container after config file change? Or
maybe it's because you drop CAP_SYS_MODULE or CAP_MKNOD in the config file
by mistake?

--
-zyh

permitted". For example:
>
> mknod /dev/netmap c 10 57
> mknod: "/dev/netmap": Operation not permitted
>
> I get this behavior on ubuntu hosts, with 3.5.0, but on archlinux hosts
> as well, with 3.8.5 kernel version.
>
> There's something I'm missing? Maybe on the netmap side (from its
> sources, I see that it create the device with a call to misc_register
> [1]) ?
>
> Basically, I need a "pass-through" to reach /dev/netmap on the host side
> from the containers.
>
> Thank you in advance
>
> [1] http://lxr.linux.no/#linux+v3.8.7/include/linux/miscdevice.h#L63
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130417/d3846827/attachment.html>


More information about the lxc-users mailing list