[Lxc-users] problem starting a container

Daniel Stefaniuk daniel.stefaniuk at gmail.com
Tue Apr 17 13:31:21 UTC 2012


Hi all

A command to start a container gives me following output:

    init: ureadahead main process (6) terminated with status 5

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?

container's syslog:

    Apr 17 12:45:27 localhost kernel: imklog 4.2.0, log source = /proc/kmsg
started.
    Apr 17 12:45:27 localhost rsyslogd: [origin software="rsyslogd"
swVersion="4.2.0" x-pid="55" x-info="http://www.rsyslog.com"] (re)start
    Apr 17 12:45:27 localhost rsyslogd: rsyslogd's groupid changed to 103
    Apr 17 12:45:27 localhost rsyslogd: rsyslogd's userid changed to 101
    Apr 17 12:45:27 localhost rsyslogd-2039: Could no open output file
'/dev/xconsole' [try http://www.rsyslog.com/e/2039 ]
    Apr 17 12:45:28 localhost init: ssh main process (54) terminated with
status 255
    Apr 17 12:45:28 localhost ntpdate[180]: name server cannot be used,
reason: Temporary failure in name resolution
    Apr 17 12:45:28 localhost init: plymouth main process (7) killed by
ABRT signal
    Apr 17 12:45:28 localhost init: plymouth-splash main process (222)
terminated with status 2
    Apr 17 12:45:28 localhost cron[236]: (CRON) INFO (pidfile fd = 3)
    Apr 17 12:45:28 localhost cron[256]: (CRON) STARTUP (fork ok)
    Apr 17 12:45:28 localhost cron[256]: (CRON) INFO (Running @reboot jobs)
    Apr 17 12:45:28 localhost init: plymouth-stop pre-start process (254)
terminated with status 1
    Apr 17 12:45:36 localhost kernel: eth0: no IPv6 routers present
    Apr 17 12:45:36 localhost kernel: vethzjJds5: no IPv6 routers present
    Apr 17 12:45:38 localhost init: tty4 main process (233) terminated with
status 1
    Apr 17 12:45:38 localhost init: tty4 main process ended, respawning
    Apr 17 12:45:38 localhost init: tty2 main process (240) terminated with
status 1
    Apr 17 12:45:38 localhost init: tty2 main process ended, respawning
    Apr 17 12:45:38 localhost init: tty3 main process (241) terminated with
status 1
    Apr 17 12:45:38 localhost init: tty3 main process ended, respawning
    Apr 17 12:45:38 localhost init: tty1 main process (255) terminated with
status 1
    Apr 17 12:45:38 localhost init: tty1 main process ended, respawning
    Apr 17 12:45:48 localhost init: tty4 main process (269) terminated with
status 1
    Apr 17 12:45:48 localhost init: tty4 main process ended, respawning
    Apr 17 12:45:48 localhost init: tty2 main process (270) terminated with
status 1
    Apr 17 12:45:48 localhost init: tty2 main process ended, respawning
    Apr 17 12:45:48 localhost init: tty3 main process (271) terminated with
status 1
    Apr 17 12:45:48 localhost init: tty3 main process ended, respawning
    Apr 17 12:45:48 localhost init: tty1 main process (272) terminated with
status 1
    ...

container's auth.log

    Apr 17 12:45:27 localhost sshd[54]: Server listening on 0.0.0.0 port 22.
    Apr 17 12:45:27 localhost sshd[54]: Server listening on :: port 22.
    Apr 17 12:45:28 localhost sshd[54]: Received signal 15; terminating.
    Apr 17 12:45:28 localhost sshd[185]: Server listening on 0.0.0.0 port
22.
    Apr 17 12:45:28 localhost sshd[185]: Server listening on :: port 22.
    Apr 17 12:45:28 localhost getty[233]: /dev/tty4: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:28 localhost getty[240]: /dev/tty2: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:28 localhost getty[241]: /dev/tty3: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:28 localhost getty[255]: /dev/tty1: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:38 localhost getty[269]: /dev/tty4: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:38 localhost getty[270]: /dev/tty2: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:38 localhost getty[271]: /dev/tty3: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:38 localhost getty[272]: /dev/tty1: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:48 localhost getty[273]: /dev/tty4: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:48 localhost getty[274]: /dev/tty2: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:48 localhost getty[275]: /dev/tty3: cannot open as
standard input: Operation not permitted
    Apr 17 12:45:48 localhost getty[276]: /dev/tty1: cannot open as
standard input: Operation not permitted
    ...

lxc-checkconfig:

    --- Namespaces ---
    Namespaces: enabled
    Utsname namespace: enabled
    Ipc namespace: enabled
    Pid namespace: enabled
    User namespace: enabled
    Network namespace: enabled
    Multiple /dev/pts instances: enabled

    --- Control groups ---
    Cgroup: enabled
    Cgroup clone_children flag: enabled
    Cgroup device: enabled
    Cgroup sched: enabled
    Cgroup cpu account: enabled
    Cgroup memory controller: enabled
    Cgroup cpuset: enabled

    --- Misc ---
    Veth pair device: enabled
    Macvlan: enabled
    Vlan: enabled
    File capabilities: enabled

    Note : Before booting a new kernel, you can check its configuration
    usage : CONFIG=/path/to/config /srv/lxc/bin/lxc-checkconfig

mount -l:

    /dev/xvda on / type ext3 (rw,noatime,nobarrier,errors=remount-ro)
    proc on /proc type proc (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    /dev on /dev type tmpfs (rw)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)
    none on /var/run type tmpfs (rw,nosuid,mode=0755)
    none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
    none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    cgroup on /sys/fs/cgroup type cgroup (rw)

operating system:

    Ubuntu 10.04 LTS, amd64, kernel 3.3.2

Many thanks
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20120417/f9b3729d/attachment.html>


More information about the lxc-users mailing list