LXC Ubuntu containers do not start in Ubuntu 14.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Confirmed
|
High
|
Tyler Hicks |
Bug Description
I have a testing server which I installed Ubuntu 13.10 and then upgraded to Ubuntu 14.04 beta using do-release-upgrade -d. I do not have the option to create clean install with 14.04 directly as hosting provider does not offer it yet (for obvious reasons).
Anyhow, after installing lxc and creating a new Ubuntu container using lxc-create -t ubuntu -n ubuntu I tried to start it using lxc-start -n ubuntu.
I receive lots of errors and it never reaches login prompt. I have to stop the server from another shell session using lxc-stop -n ubuntu. Combined output of start and stop below.
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<3>init: Error while reading from descriptor: Bad file descriptor
<3>init: Error while reading from descriptor: Bad file descriptor
<4>init: hostname main process (4) terminated with status 6
<4>init: plymouth-ready (startup) main process (6) terminated with status 6
<4>init: plymouth main process (8) terminated with status 6
<4>init: hwclock main process (10) terminated with status 6
<4>init: ureadahead main process (12) terminated with status 6
<4>init: startpar-bridge (hostname--started) main process (14) terminated with status 6
<4>init: startpar-bridge (plymouth-
<4>init: startpar-bridge (hwclock--started) main process (18) terminated with status 6
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<3>init: Error while reading from descriptor: Bad file descriptor
<4>init: mountall main process (20) terminated with status 6
<4>init: startpar-bridge (hostname--stopped) main process (22) terminated with status 6
<4>init: startpar-bridge (plymouth-
<4>init: startpar-bridge (plymouth--stopped) main process (26) terminated with status 6
<4>init: startpar-bridge (hwclock--stopped) main process (28) terminated with status 6
<4>init: startpar-bridge (ureadahead-
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<4>init: mountall post-stop process (32) terminated with status 6
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<3>init: Error while reading from descriptor: Bad file descriptor
<4>init: startpar-bridge (mountall--stopped) main process (34) terminated with status 6
<4>init: console-setup main process (36) terminated with status 6
<4>init: plymouth-stop pre-start process (38) terminated with status 6
<4>init: startpar-bridge (console-
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<3>init: Error while reading from descriptor: Bad file descriptor
<4>init: mountall-shell main process (42) terminated with status 6
<4>init: startpar-bridge (mountall-
<4>init: startpar-bridge (console-
<4>init: startpar-bridge (plymouth-
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<3>init: Error while reading from descriptor: Bad file descriptor
<4>init: mountall-shell post-stop process (50) terminated with status 6
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<4>init: startpar-bridge (mountall-
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<4>init: shutdown main process (54) terminated with status 6
<4>init: startpar-bridge (shutdown--started) main process (56) terminated with status 6
<2>init: error.c:219: Assertion failed in _nih_error_
<2>init: Caught abort, core dumped
<4>init: startpar-bridge (shutdown--stopped) main process (58) terminated with status 6
Then I tried to create another container using lxc-create -t debian-n debian, which progresses to login as you would expect. Output below.
Mount point '/dev/tty3' does not exist. Skipping mount. ... (warning).
Mount point '/dev/tty4' does not exist. Skipping mount. ... (warning).
Mount point '/dev/ptmx' does not exist. Skipping mount. ... (warning).
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux 2.20.1
done.
Mounting local filesystems...done.
/etc/init.
Activating swapfile swap...done.
Cleaning up temporary files....
Setting kernel variables ...done.
Configuring network interfaces.
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/eth0/
Sending on LPF/eth0/
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 10.0.3.1
DHCPACK from 10.0.3.1
bound to 10.0.3.46 -- renewal in 1545 seconds.
done.
Cleaning up temporary files....
INIT: Entering runlevel: 3
Last I tried creating third Ubuntu container with debootstrap --include=lxc --arch=amd64 trusty rootfs that resulted with same errors as the first container and it never gets to login either.
Does anyone have a good guess as to what's wrong? All containers were starting unchanged, no modifications were made to their configs prior to starting.
---
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
DistroRelease: Ubuntu 14.04
InstallationDate: Installed on 2013-10-16 (154 days ago)
InstallationMedia:
Package: lxc 1.0.1-0ubuntu1
PackageArchitec
ProcCmdline: BOOT_IMAGE=
ProcEnviron:
SHELL=/bin/sh
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
ProcVersionSign
Tags: trusty apparmor
Uname: Linux 3.13.0-17-generic x86_64
UpgradeStatus: Upgraded to trusty on 2014-03-09 (10 days ago)
UserGroups:
_MarkForUpload: True
defaults.conf:
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx
Changed in lxc (Ubuntu): | |
assignee: | nobody → Tyler Hicks (tyhicks) |
milestone: | none → ubuntu-14.04 |
Thanks for reporting this bug. This is definately very odd.
If you create a container with
sudo lxc-create -t download -n u1 -- -d ubuntu -r trusty -a amd64
sudo lxc-start -n u1
does that container start fine?
Can you do
sudo lxc-start -n ubuntu -l trace -o debug.out
then kill the container and paste debug.out here?
Is there anything else custom about your system? Who is your hosting provider?