[Devel] Re: Network namespaces tool
Daniel Lezcano
daniel.lezcano at free.fr
Thu Dec 11 01:23:28 PST 2008
Sargun Dhillon wrote:
> I'm getting an error when I try to compile the netunshare tool.
> Do you have any ideas to the error:
>
> netunshare.c:50: error: conflicting types for 'unshare'
> /usr/include/bits/sched.h:78: error: previous declaration of 'unshare' was here
>
There is the lxc tools at:
http://sourceforge.net/projects/lxc/
In these tools there is the lxc-unshare allowing you to do the same.
lxc-unshare -n /bin/bash
If you find some problems with it, feel free to ask :)
I will release a new lxc-0.5.1, version fixing a few bugs very soon.
> Additionally, are there any plans to merge in sysfs support into the kernel?
>
The sysfs patchset has been rejected and the sysfs itself should be
reworked before submitting the sysfs per namespace. This is a long work,
Eric can probably say more on that.
In the meantime, a patch to make netns and sysfs to co-exist has been
pushed upstream, so we can create a network namespace without sysfs
virtualization. This modification will be available for 2.6.29. Until
this version is released, you can use the netdev development tree
available at:
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6.git
Thanks.
-- Daniel
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list