Hi Serge,

Sorry I am not cleared; Please see my answers pointwise:

>>i don't understand what you've done, what you wanted to have happen, or what 
>>actually happened.

I took a busybox based filesystem which doesn't have any lxc-container support.
So I downloaded the lxc-1.1.0 package & After cross compiling the lxc package I 
installed the binaries in busybox file system.
Our aim is to support linux container on busybox based filesystem. So that we 
can boot android or busybox over linux container.

>> When you say "I am login as a root in buysbox file system", what do you mean 
>> exactly
I use "root" as a login to busybox file system. Till now I have not created any 
container. I logged in as a root into busybox file system.

>>what do you mean exactly, is that logged in over lxc-console with the 
>>container running?
No, I havenot created any container till now. After login into busybox 
filesystem, Now I create a container named "bb" using lxc-create. Now after 
creating the container, I can see the rootfs present in /var/lib/lxc/bb 
directory, that means container successfully created.

>> Why did you create the 'root' cgroups by hand?
We didn't have cgmanger to handle the cgroup so I created a root entry in 
cgroup.

>>  or what actually happened?
After doing all above, when I started a container using "lxc-start" it fails 
with invalid pid. As follows:

       lxc-start 1414573214.442 DEBUG    lxc_conf - conf.c:setup_caps:2139 - 
capabilities have been setup
       lxc-start 1414573214.442 NOTICE   lxc_conf - conf.c:lxc_setup:3921 - 
'bb' is setup.
       lxc-start 1414573214.442 NOTICE   lxc_start - start.c:start:1232 - 
exec'ing '/sbin/init'
       lxc-start 1414573214.482 NOTICE   lxc_start - start.c:post_start:1243 - 
'/sbin/init' started with pid '1896'
       lxc-start 1414573214.482 WARN     lxc_start - start.c:signal_handler:307 
- invalid pid for SIGCHLD


Please let me know if I unclear on any point.

Regards,
Praveen


________________________________________
From: lxc-users [lxc-users-boun...@lists.linuxcontainers.org] on behalf of 
Serge Hallyn [serge.hal...@ubuntu.com]
Sent: Saturday, April 04, 2015 7:44 AM
To: LXC users mailing-list
Subject: Re: [lxc-users] lxc-start fails with invalid pid on arm

Quoting Praveen Kumar Verma (praveen.ve...@lnttechservices.com):
> Greetings,
>
> I am trying containers on busybox based file-system with kernel 3.12.
>
> I have successfully cross-compiled the lxc-1.1.0 package, & able to run 
> lxc-execute without any problem.
>
> Now I want to run linux with busybox template in container.
>
> I created a container named "bb" under /var/lib/lxc/bb. I can see config, 
> fstab & rootfs file present there.
>
> But when I tried to start the container, I am getting the following error: 
> (The full log is attached in a file)
>
>       lxc-start 1414573214.442 DEBUG    lxc_conf - conf.c:setup_caps:2139 - 
> capabilities have been setup
>       lxc-start 1414573214.442 NOTICE   lxc_conf - conf.c:lxc_setup:3921 - 
> 'bb' is setup.
>       lxc-start 1414573214.442 NOTICE   lxc_start - start.c:start:1232 - 
> exec'ing '/sbin/init'
>       lxc-start 1414573214.482 NOTICE   lxc_start - start.c:post_start:1243 - 
> '/sbin/init' started with pid '1896'
>       lxc-start 1414573214.482 WARN     lxc_start - 
> start.c:signal_handler:307 - invalid pid for SIGCHLD
>
>
> I am login as a root in buysbox file system. and i have manually added the 
> root into cgroups using following:
>
>        for d in /sys/fs/cgroup/*; do
>             mkdir $d/root
>             chown -R root: $d/root
>             echo $$ > $d/root/tasks
>        done
>
>       root@evm:/sys/fs/cgroup/cpuset# cat /proc/self/cgroup
>
>         7:freezer:/root
>         6:devices:/root
>         5:memory:/root
>         4:cpuacct:/root
>         3:cpu:/root
>         2:cpuset:/root
>
> Please help me in the issue.

I'm sorry, i don't understand what you've done, what you wanted to have
happen, or what actually happened.

Exactly how did you create the container?  When you say "I am login as a root
in buysbox file system", what do you mean exactly, is that logged in over
lxc-console with the container running?  Why did you create the 'root' cgroups
by hand?
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to