[lxc-users] kernel crash when starting an unprivileged container

Fajar A. Nugraha list at fajar.net
Wed Jun 3 06:30:32 UTC 2015


On Wed, Jun 3, 2015 at 1:26 PM, Tomasz Chmielewski <mangoo at wpkg.org> wrote:
> On 2015-06-03 15:01, Tomasz Chmielewski wrote:
>>
>> I'm trying to start an unprivileged container on Ubuntu 14.04;
>> unfortunately, the kernel crashes.

>> - kernel used is 4.0.4-040004-generic from
>> http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.4-wily/
>

Crash of unprivileged container on 4.0.x is a known issue, there are
posts about it on this list.

>
> The issue was a bit weird:
>
> - I've updated the kernel to 4.1-rc6, no longer crashing
>
> - still, the container was not starting on 4.1-rc6
>
> - it turned out that "lxc-create -t download ..." created the container with
> all files being 0-bytes for some reason (so, 0-byte /sbin/init and all other
> files being 0-byte)
>
> - "exec file format" (0-byte /sbin/init) was causing 4.0.4 kernel crash?

It shouldn't be. At least not according to the list archive. There
were two patches missing on 4.0.x which went in to 4.1.x.

-- 
Fajar


More information about the lxc-users mailing list