Hi Daniel,
We could able to create ten (N) number of namespaces, how can we identify the
specified namespace.
Shall we use the return value of unshare() , as unique namespace ID ?
Thanks
Mahesh
-Original Message-
From: Daniel Lezcano [mailto:daniel.lezc...@free.fr]
Sent: Tuesday, Februa
After investigating I don't see any reason sshfs shouldn't work just
fine in a container out of the box (all the network stuff happens in
userspace), but I can't create the FUSE dev node from within the
container because mknod doesn't work from the container's root.
I thought the point of linking
It looks like clone flags aren't the only way to create a new namespace,
any existing process can move to a new namespace via unshare(2).
This sounds like you could fairly easily make a super_chroot() function
that does most of the container stuff. The hard part would be doing
mount points, devic
On 02/22/2011 12:47 PM, Maheswara Reddy C - ERS, HCL Tech wrote:
> Hi,
> Shall I program this way to create 10 namespaces, with each namespace run 2
> different processes or any better way.
>
> #include
> #include
> #include
>
> int main(int argc, char *argv[])
> {
>
> for(i=0;i<10;i++)
>
On 02/22/2011 12:22 PM, Maheswara Reddy C - ERS, HCL Tech wrote:
>> Then it is quite easy. You just have to fork ten times the routine in the
>> program I gave you in the previous email.
> Hi Daniel,
>
> But I want to run two different (fork() run same copy) process/threads in
> each namespace,
Hi,
Shall I program this way to create 10 namespaces, with each namespace run 2
different processes or any better way.
#include
#include
#include
int main(int argc, char *argv[])
{
for(i=0;i<10;i++)
{
pid_t pid1[10],pid2[10];
int flag1= CLONE_NEWNS|CLONE_NETNET, flag2=0;
>Then it is quite easy. You just have to fork ten times the routine in the
>program I gave you in the previous email.
Hi Daniel,
But I want to run two different (fork() run same copy) process/threads in each
namespace, that's why I am using clone() which take function pointer of each
proces
On 02/22/2011 10:44 AM, Maheswara Reddy C - ERS, HCL Tech wrote:
> Hi Daniel,
>
> I have to create 10 namespaces(network), in each namespace I have to run two
> different processes.
Then it is quite easy. You just have to fork ten times the routine in
the program I gave you in the previous email
Hi Daniel,
I have to create 10 namespaces(network), in each namespace I have to run two
different processes.
Thanks
Mahesh
-Original Message-
From: Daniel Lezcano [mailto:daniel.lezc...@free.fr]
Sent: Tuesday, February 22, 2011 2:47 PM
To: Maheswara Reddy C - ERS, HCL Tech
Cc: lxc-devel
On 02/22/2011 07:41 AM, Maheswara Reddy C - ERS, HCL Tech wrote:
> Hi All,
>
>
>
> Does this way both pid1 and pid2 run in the same network namespace? Or please
> suggest any other way
Mahesh,
please tell us what you want to do.
If you want to create a new network namespace, it is not mandatory
10 matches
Mail list logo