systemd does not boot in a container
Bug #1347020 reported by
Dimitri John Ledkov
This bug affects 11 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Stéphane Graber | ||
Trusty |
Fix Released
|
Undecided
|
Stéphane Graber |
Bug Description
Opening against cloud-init for now, but ultimately might end up as bug-fixes / srus against some other packages in trusty.
summary: |
- trusty-utopic cloudimage boot with systemd does not work + trusty host - utopic lxc container cloudimage boot with systemd does not + work |
tags: | added: systemd-boot |
no longer affects: | cloud-init (Ubuntu) |
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in lxc (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
milestone: | none → ubuntu-15.01 |
To post a comment you must log in.
Well, this was opened as a trusty issue, and in my memory it was only on trusty, but here is an attempt that fails on trusty or utopic host. I know that when we did this, there was no systemd-sysv package, so my attempt was more to invoke /lib/systemd/ systemd as the init comand.
$ sudo apt-get update -q && sudo apt-get install -qy lxc </dev/null utopic --arch=amd64 --stream=daily
$ sudo lxc-create -t ubuntu-cloud -n source-utopic-amd64 -- \
--release=
$ sudo lxc-clone -o source-utopic-amd64 -n u1
$ sudo lxc-start -n u1
## logged in as ubuntu:ubuntu
% sudo apt-get update &&
sudo apt-get install -qy systemd-sysv </dev/null && sync
$ sudo lxc-stop --kill -n u1
$ sudo lxc-start -n u1
systemd 208 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
Detected virtualization 'lxc'.
Welcome to Ubuntu Utopic Unicorn (development branch)!
Failed to insert module 'autofs4' system/ friendly- recovery. service: 14] Executable path is not absolute, ignoring: dmesg --console-off vconsole- setup.service, ignoring: Unit systemd- vconsole- setup.service failed to load: No such file or directory. manager. service, ignoring: Unit display- manager. service failed to load: No such file or directory. fs-binfmt_ misc.automount' for details. fs-binfmt_ misc.automount entered failed state.
Set hostname to <u1>.
/etc/mtab is not a symlink or not pointing to /proc/self/mounts. This is not supported anymore. Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output.
No control group support available, not creating root group.
[/lib/systemd/
Cannot add dependency job for unit systemd-
Cannot add dependency job for unit display-
[ OK ] Listening on Syslog Socket.
[ OK ] Reached target Remote File Systems (Pre).
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on Delayed Shutdown Socket.
Failed to open /dev/autofs: No such file or directory
Failed to initialize automounter: No such file or directory
[FAILED] Failed to set up automount Arbitrary Executable File Forma... Automount Point.
See 'systemctl status proc-sys-
Unit proc-sys-
[ OK ] Reached target Encrypted Volumes.
[ OK ] Listening on Journal Socket.
Mounting Huge Pages File System...
Caught <SEGV>, dumped core as pid 11.
Freezing execution.