[Lxc-users] ubuntu / lucid container not starting / mountall not sending events

Arie Skliarouk skliarie at gmail.com
Wed Jan 12 15:11:47 UTC 2011


Hi,

The script did not run on "start on startup", only on "start on filesystem"
setting. Still, the /etc/init/rc.conf was not processed.
BTW, my system does not hang, it starts ssh properly.

Could it be related to duplicate mounts reported by df? :
*root at master2:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs               909177556 871911312  37266244  96% /
/dev/mapper/pl-srv   909177556 871911312  37266244  96% /
none                   3057772       272   3057500   1% /dev/console
none                   3057772       272   3057500   1% /dev/tty1
none                   3057772       272   3057500   1% /dev/tty2
none                   3057772       272   3057500   1% /dev/tty3
none                   3057772       272   3057500   1% /dev/tty4
none                   3057772       272   3057500   1% /dev
none                   3062604         0   3062604   0% /dev/shm
none                   3062604        20   3062584   1% /var/run
none                   3062604         0   3062604   0% /var/lock
none                   3062604         0   3062604   0% /lib/init/rw*

Neither /etc/fstab of the container, nor lxc.conf file specify mounting of
the /var/run filesystem (which I heard to be problematic for LXC
containers).

--
Arie



On Wed, Jan 12, 2011 at 16:49, Serge E. Hallyn
<serge.hallyn at canonical.com>wrote:

> Quoting Arie Skliarouk (skliarie at gmail.com):
> > I have the same problem as the original poster. A lucid container boots
> and
> > ssh is started, but nothing else:
> >
> > *root at master2:~# ps awx
> >   PID TTY      STAT   TIME COMMAND
> >     1 ?        Ss     0:00 /sbin/init
> >    34 ?        S      0:00 upstart-udev-bridge --daemon
> >    50 ?        S<s    0:00 udevd --daemon
> >    94 ?        Ss     0:00 /usr/sbin/sshd
> >   111 ?        Ss     0:00 sshd: root at pts/134
> >   125 pts/134  Ss     0:00 -bash
> >   137 pts/134  R+     0:00 ps awx*
> >
> > How can I make upstart to start other services, especially the
> > /etc/init/rc.conf one?
>
> If you look at the /usr/lib/lxc/templates/lxc-ubuntu that ships
> with lxc, it installs a /etc/init/lxc.conf which kicks the boot
> along.  It sends two upstart events, but in some testing last
> night my boot continued fine without those - what was absolutely
> essential was the
>
>        rm -rf /var/run/*.pid
>        rm -rf /var/run/network/*
>
> Without those, my boot hung.
>
> So you should be able to create any /etc/init/kickme.conf, just
> make sure it has:
>
> description "kick upstart"
> start on startup
> script
>        rm -rf /var/run/*.pid
>        rm -rf /var/run/network/*
> end script
>
> -serge
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20110112/cfff1f07/attachment.html>


More information about the lxc-users mailing list