[lxc-users] kernel crash when starting an unprivileged container
Tomasz Chmielewski
mangoo at wpkg.org
Wed Jun 3 06:26:06 UTC 2015
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.
>
> # lxc-create -t download -n test-container
(...)
> # lxc-start -n test-container -F
>
> Kernel crashes at this point.
>
> It does not crash if I start the container as privileged.
>
> - kernel used is 4.0.4-040004-generic from
> http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.4-wily/
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?
Anyway, problem solved.
--
Tomasz Chmielewski
http://wpkg.org
More information about the lxc-users
mailing list