Alpine Linux LXC container tried to start various processes
Here is a bog standard Alpine Linux LXC Container booting inside an Alpine Linux host:
OpenRC 0.12.4.0420e2d4 is starting up Linux 3.14.27-2-grsec (x86_64) [LXC]
* /proc is already mounted
* /run/openrc: creating directory
* /run/lock: creating directory
* Caching service dependencies … [ ok ]
* Mounting /dev …mount: permission denied (are you root?)
[ !! ]
* ERROR: mdev-mount failed to start
* ERROR: cannot start mdev as mdev-mount would not start
* ERROR: cannot start acpid as mdev-mount would not start
mount: permission denied (are you root?)
umount: can’t umount /tmp/tmp.JogJCP: Operation not permitted
* Creating user login records … [ ok ]
* Wiping /tmp directory … [ ok ]
* Setting hostname … [ ok ]
* Starting busybox klogd … [ ok ]
* Starting busybox syslog … [ ok ]
* Starting busybox cron … [ ok ]
* Starting networking … * lo …ip: RTNETLINK answers: File exists
[ !! ]
* eth1 … [ ok ]
* Starting sshd … [ ok ]
Welcome to Alpine Linux 3.1
Kernel 3.14.27-2-grsec on an x86_64 (/dev/console)
testing login: root
Password:
Welcome to Alpine!
The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org>.
You may change this message by editing /etc/motd.
testing:~# setup-hostname
testing:~# reboot
testing:~# * Stopping sshd … [ ok ]
* Stopping networking … * eth1 … [ ok ]
* Stopping busybox cron … [ ok ]
* Stopping busybox syslog … [ ok ]
* Stopping busybox klogd … [ ok ]
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
OpenRC 0.12.4.0420e2d4 is starting up Linux 3.14.27-2-grsec (x86_64) [LXC]
* /proc is already mounted
* /run/openrc: creating directory
* /run/lock: creating directory
* Caching service dependencies … [ ok ]
* Mounting /dev …mount: permission denied (are you root?)
[ !! ]
* ERROR: mdev-mount failed to start
* ERROR: cannot start mdev as mdev-mount would not start
* ERROR: cannot start acpid as mdev-mount would not start
mount: permission denied (are you root?)
umount: can’t umount /tmp/tmp.EjOjjg: Operation not permitted
* Creating user login records … [ ok ]
* Wiping /tmp directory … [ ok ]
* Setting hostname …hostname: sethostname: Operation not permitted
[ !! ]
* ERROR: hostname failed to start
* ERROR: cannot start klogd as hostname would not start
* ERROR: cannot start syslog as hostname would not start
* ERROR: cannot start cron as hostname would not start
* Starting networking … * lo …ip: RTNETLINK answers: File exists
[ !! ]
* eth1 … [ ok ]
* Starting sshd … [ ok ]
Welcome to Alpine Linux 3.1
Kernel 3.14.27-2-grsec on an x86_64 (/dev/console)
testing login:
(from redmine: issue id 3699, created on 2015-01-16, closed on 2015-05-26)
- Changesets:
- Revision 8319a3ab by Natanael Copa on 2015-05-06T08:08:32Z:
main/openrc: init.d script cleanups and fixes for lxc
ref #3699
The following services should not be started on LXC:
- hwdrivers
- keymaps
- modloop
- modules
- Revision d70b3fb8 by Natanael Copa on 2015-05-06T08:10:13Z:
main/busybox-initscripts: cleanup and fix lxc
Use keyword -<sys> instead of no<sys> to disable services on given
systems.
On LXC, disable acpid, klogd, mdev-mount, mdev and rdate.
fixes #3699