[lxc-users] lxc-start fails with invalid pid on arm

Serge Hallyn serge.hallyn at ubuntu.com
Fri Apr 17 18:31:09 UTC 2015


Quoting Praveen Kumar Verma (Praveen.Verma at LntTechservices.com):
> 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.

Ah, I see.

> 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

This here looks good - the container started.  (The invalid pid msg is innocuous)

Are you after this able to 'lxc-attach -n containername' ?


More information about the lxc-users mailing list