[Lxc-users] problem starting a container

Daniel Stefaniuk daniel.stefaniuk at gmail.com
Thu Apr 19 12:36:45 UTC 2012


Thanks for your responses.

I created "ubuntu" containers using the script "lxc-ubuntu" provided with
the source code version 0.8.0-rc1. I think the problem was related to some
upstart jobs. "lxc-debian" script works just fine,
creating usable container. I started to create containers manually. Thanks
for the links.

I use Ubuntu 10.04 LTS amd64 server (custom kernel 3.3.2) for the host and
containers. I managed to successfully login into a container using
lxc-console. I'm on the stage of setting up network access...

Sorry to say that, I came across a lot of scripts and manuals but non of
them works out of the box for me (hard-coded paths!? or bits of code
working only in customized environments). It is very difficult to get it
working without a really good understanding what you're doing.

Is there any plan to improve the documentation or perhaps create one?

Many thanks
Daniel

On 17 April 2012 23:07, Fajar A. Nugraha <list at fajar.net> wrote:

> On Wed, Apr 18, 2012 at 2:43 AM, Serge Hallyn
> <serge.hallyn at canonical.com> wrote:
> > Quoting Daniel Stefaniuk (daniel.stefaniuk at gmail.com):
>
> >> Then the container seems to bu up and running. However, if I try to
> login
> >> to that
> >> container using lxc-console I get only this message "Type <Ctrl+a q> to
> >> exit the console".
> >> Any clues as to why this happens?
> >
> > Sounds like your container ttys are not set up right.
>
> ... for example because it's waiting for a trigger (e.g. loopback
> network interface up), and since the trigger is not available in a
> containter, the console never got configured.
>
> Let me guess, you're running some "old" linux distro (i.e. not ubuntu
> 12.04) and haven't setup the necessary workarounds for lxc. Is that
> correct? If yes, see these links for examples of lxc-specific
> modification needed in guest containers:
>
>
> http://wiki.1tux.org/wiki/Lxc/Installation/Guest/Centos/5#Lxc-specific_modification
>
> http://wiki.1tux.org/wiki/Lxc/Installation/Guest/Centos/6#Lxc-specific_modification
> http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03301.html
>
> --
> Fajar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120419/8e3567f8/attachment.html>


More information about the lxc-users mailing list