[Lxc-users] Can not start containers using latest tools from the git

John Drescher drescherjm at gmail.com
Sat Jan 23 02:57:57 UTC 2010


On Fri, Jan 22, 2010 at 1:13 PM, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> Hi John,
>
> I cooked a patch, (in attachment). I am hesitating to commit it in the
> mainstream because I don't think it's the right way to fix it but it should
> fix the problem temporarily for you ... well I hope :)
>

Success. :)

localhost ssh #   lxc-start -n guest_1 -l DEBUG -o $(tty)
      lxc-start 1264197385.322 INFO     lxc_conf - tty's configured
      lxc-start 1264197385.323 DEBUG    lxc_start - sigchild handler set
      lxc-start 1264197385.323 INFO     lxc_start - 'guest_1' is initialized
      lxc-start 1264197385.325 DEBUG    lxc_conf - instanciated veth
'vethCmD5zS/veth066Rdf', index is '13'
      lxc-start 1264197385.386 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
      lxc-start 1264197385.386 DEBUG    lxc_cgroup - '/cgroup/21804'
renamed to '/cgroup/guest_1'
      lxc-start 1264197385.453 DEBUG    lxc_conf - move 'br0' to '21804'
      lxc-start 1264197385.453 INFO     lxc_conf - 'guest_1' hostname
has been setup
      lxc-start 1264197385.455 DEBUG    lxc_conf - 'veth0' has been setup
      lxc-start 1264197385.455 INFO     lxc_conf - network has been setup
      lxc-start 1264197385.456 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.deny' set to 'a # Deny all access to devices'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm # dev/null'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm # dev/zero'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm # dev/console'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm # dev/tty'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm # dev/tty0'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm # dev/tty1'
      lxc-start 1264197385.456 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:2 rwm # dev/tty2'
      lxc-start 1264197385.457 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm # dev/urandon'
      lxc-start 1264197385.457 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm # dev/random'
      lxc-start 1264197385.457 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm # dev/pts/*'
      lxc-start 1264197385.457 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm # dev/pts/ptmx'
      lxc-start 1264197385.457 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
      lxc-start 1264197385.457 INFO     lxc_conf - cgroup has been setup
      lxc-start 1264197385.457 INFO     lxc_conf - mount points have been setup
      lxc-start 1264197385.457 INFO     lxc_conf - mount points have been setup
      lxc-start 1264197385.457 INFO     lxc_conf - console
'/dev/pts/2' mounted to '/lxc/guest_1/dev/console'
      lxc-start 1264197385.457 INFO     lxc_conf - 4 tty(s) has been setup
      lxc-start 1264197385.457 DEBUG    lxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-M7Lqrm'
      lxc-start 1264197385.457 DEBUG    lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-M7Lqrm' successful
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/proc/bus/usb'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/lib64/rc/init.d'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/dev/pts'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/sys'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/dev'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/cgroup'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/lxc/guest_1/dev/console'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/lxc/guest_1/dev/tty1'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/lxc/guest_1/dev/tty2'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/lxc/guest_1/dev/tty3'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/lxc/guest_1/dev/tty4'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm/proc'
      lxc-start 1264197385.458 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-M7Lqrm'
      lxc-start 1264197385.458 INFO     lxc_conf - pivoted to '/tmp/lxc-rjB8QmZ'
      lxc-start 1264197385.458 INFO     lxc_conf - created new pts instance
      lxc-start 1264197385.458 DEBUG    lxc_conf - capabilities has been setup
      lxc-start 1264197385.458 NOTICE   lxc_conf - 'guest_1' is setup.
      lxc-start 1264197385.458 NOTICE   lxc_start - exec'ing '/sbin/init'
      lxc-start 1264197385.459 NOTICE   lxc_start - '/sbin/init'
started with pid '21804'
      lxc-start 1264197385.459 DEBUG    lxc_utils - closing fd '1'
      lxc-start 1264197385.459 DEBUG    lxc_utils - closing fd '0'
      lxc-start 1264197385.459 DEBUG    lxc_utils - closed all
inherited file descriptors
INIT: version 2.87 booting
Loading /lib64/rc/console/keymap

   OpenRC 0.6.0 is starting up Gentoo Linux (x86_64)

 * Mounting /proc ...                                                     [ ok ]
 * Setting hostname to gentoo-lxc-guest ...                               [ ok ]
 * Configuring kernel parameters ...                                      [ ok ]
 * Creating user login records ...                                        [ ok ]
 * Cleaning /var/run ...                                                  [ ok ]
 * Wiping /tmp directory ...                                              [ ok ]
 * Setting terminal encoding [UTF-8] ...
/etc/init.d/termencoding: line 31: /dev/tty5: Operation not permitted
/etc/init.d/termencoding: line 31: /dev/tty6: Operation not permitted
/etc/init.d/termencoding: line 31: /dev/tty7: Operation not permitted
/etc/init.d/termencoding: line 31: /dev/tty8: Operation not permitted
/etc/init.d/termencoding: line 31: /dev/tty9: Operation not permitted
/etc/init.d/termencoding: line 31: /dev/tty10: Operation not permitted
/etc/init.d/termencoding: line 31: /dev/tty11: Operation not permitted
/etc/init.d/termencoding: line 31: /dev/tty12: Operation not permitted    [ ok ]
 * Setting keyboard mode [UTF-8] ...
Couldn't open /dev/tty1
Couldn't open /dev/tty2
Couldn't open /dev/tty3
Couldn't open /dev/tty4
Couldn't open /dev/tty5
Couldn't open /dev/tty6
Couldn't open /dev/tty7
Couldn't open /dev/tty8
Couldn't open /dev/tty9
Couldn't open /dev/tty10
Couldn't open /dev/tty11
Couldn't open /dev/tty12                                                  [ ok ]
 * Loading key mappings [us] ...                                          [ ok ]
 * Starting network                                                       [ ok ]
 * Adding static routes ...                                               [ ok ]
 * Initializing random number generator ...                               [ ok ]
INIT: Entering runlevel: 3
 * Mounting network filesystems ...                                       [ ok ]
 * Starting syslog-ng ...
Jan 22 21:56:27 gentoo-lxc-guest syslog-ng[239]: syslog-ng starting
up; version='3.0.4'
               [ ok ]
 * Starting sshd ...
Jan 22 21:56:28 gentoo-lxc-guest sshd[253]: Server listening on 0.0.0.0 p [ ok ]
 * Starting local ...                                                     [ ok ]


This is gentoo-lxc-guest.unknown_domain (Linux x86_64 2.6.32-gentoo) 21:56:34

gentoo-lxc-guest login:




More information about the lxc-users mailing list