[Lxc-users] telinit: timeout opening/writing control channel /run/initctl

Jeremy MAURO jmauro at antidot.net
Thu Feb 21 10:45:33 UTC 2013


Hi everyone,


I am trying to setup a debian wheezy with lxc:
# dpkg -l 'lxc'
Desired=Unknown/Install/Remove/Purge/Hold
| 
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                        
Version                    Architecture               Description
+++-===========================================-==========================-==========================-============================================================================================
ii  lxc                                         
0.8.0~rc1-8+deb7u1         amd64                      Linux Containers 
userspace tools

The setup is fine, the container starts:
#  lxc-start -n test -l DEBUG
INIT: version 2.88 booting
Activating swap...done.
Cleaning up temporary files... /tmp.
Mount point '/dev/console' does not exist. Skipping mount. ... (warning).
Mount point '/dev/tty1' does not exist. Skipping mount. ... (warning).
Mount point '/dev/tty2' does not exist. Skipping mount. ... (warning).
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/rcS.d/S06mountall.sh: 59: kill: Illegal number: 3 1
Activating swapfile swap...done.
Cleaning up temporary files....
Setting kernel variables ...done.
Configuring network interfaces...done.
Cleaning up temporary files....
INIT: Entering runlevel: 3
Starting enhanced syslogd: rsyslogd.
Starting MTA: exim4.
Starting Name Service Cache Daemon: nscd.
Debian GNU/Linux 7.0 test console

test login:

But when I am trying to stop the container I have the following issue 
when inittab is configured has followed:
# cat etc/inittab
id:3:initdefault:
si::sysinit:/etc/init.d/rcS
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
p0::powerfail:/sbin/init 0
p6::ctrlaltdel:/sbin/init 6
z6:6:respawn:/sbin/sulogin
1:2345:respawn:/sbin/getty 38400 console
c1:12345:respawn:/sbin/getty 38400 tty1 linux
c2:12345:respawn:/sbin/getty 38400 tty2 linux
c3:12345:respawn:/sbin/getty 38400 tty3 linux
c4:12345:respawn:/sbin/getty 38400 tty4 linux

#chroot /var/lib/lxc/test/rootfs telinit 0
telinit: timeout opening/writing control channel /run/initctl
# chroot /var/lib/lxc/test/rootfs ls -al /run/initctl
prw------- 1 root root 0 Feb 21 11:45 /run/initctl


this command should be the one run with lxc-shutdown, any idea what 
could be the issue?




-- 
Regards,
JM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130221/669ebb26/attachment.html>


More information about the lxc-users mailing list