[Lxc-users] getty issue with lxc-busybox

Charles A. Hewson cahewson at eskimo.com
Wed Nov 17 22:53:48 UTC 2010


Hi all,
 	Host is GRML(debian) with 2.6.35 kernel -- reconfigured to turn on 
devpts & memory controler --.
 	I am using lxc-0.7.2 attempting to run lxc-sshd and lxc-busybox 
guests before  attempting a full distro.
 	I get the following from debug log;

  lxc-start 1290020294.022 DEBUG    lxc_conf - allocated pty '/dev/pts/1' 
(4/5)
       lxc-start 1290020294.022 INFO     lxc_conf - tty's configured
       lxc-start 1290020294.022 DEBUG    lxc_console - using '/dev/tty' as 
console
       lxc-start 1290020294.025 DEBUG    lxc_start - sigchild handler set
       lxc-start 1290020294.026 INFO     lxc_start - 'box1' is initialized
       lxc-start 1290020294.026 DEBUG    lxc_cgroup - using cgroup mounted 
at '/cgroup'
       lxc-start 1290020294.027 DEBUG    lxc_cgroup - '/cgroup/5201' 
renamed to '/cgroup/box1'
       lxc-start 1290020294.027 INFO     lxc_conf - 'box1' hostname has 
been setup
       lxc-start 1290020294.027 DEBUG    lxc_cgroup - using cgroup mounted 
at '/cgroup'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.deny' 
set to 'a'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 1:3 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 1:5 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 5:1 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 5:0 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 4:0 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 4:1 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 1:9 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 1:8 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 136:* rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 5:2 rwm'
       lxc-start 1290020294.027 DEBUG    lxc_conf - cgroup 'devices.allow' 
set to 'c 254:0 rwm'
       lxc-start 1290020294.027 INFO     lxc_conf - cgroup has been setup
       lxc-start 1290020294.027 DEBUG    lxc_conf - remounting /lib on 
/var/lib/lxc/box1/rootfs/lib to respect bind or remount options
       lxc-start 1290020294.027 DEBUG    lxc_conf - mounted /lib on 
/var/lib/lxc/box1/rootfs/lib, type none
       lxc-start 1290020294.027 DEBUG    lxc_conf - remounting /usr/lib on 
/var/lib/lxc/box1/rootfs/usr/lib to respect bind or remount options
       lxc-start 1290020294.027 DEBUG    lxc_conf - mounted /usr/lib on 
/var/lib/lxc/box1/rootfs/usr/lib, type none
       lxc-start 1290020294.027 INFO     lxc_conf - mount points have been 
setup
       lxc-start 1290020294.027 INFO     lxc_conf - console has been setup
       lxc-start 1290020294.027 INFO     lxc_conf - 1 tty(s) has been setup
       lxc-start 1290020294.027 DEBUG    lxc_conf - mounted 
'/var/lib/lxc/box1/rootfs' on '/usr/lib/lxc'
       lxc-start 1290020294.027 DEBUG    lxc_conf - mountpoint for old 
rootfs is '/usr/lib/lxc/mnt'
       lxc-start 1290020294.027 DEBUG    lxc_conf - pivot_root syscall to 
'/usr/lib/lxc' successful
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted '/mnt/dev/shm'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted '/mnt/dev/pts'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted 
'/mnt/sys/fs/fuse/connections'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted '/mnt/proc'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted 
'/mnt/lib/init/rw'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted '/mnt/cgroup'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted 
'/mnt/var/lib/lxc/box1/rootfs/lib'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted 
'/mnt/var/lib/lxc/box1/rootfs/usr/lib'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted 
'/mnt/var/lib/lxc/box1/rootfs/dev/console'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted 
'/mnt/var/lib/lxc/box1/rootfs/dev/tty1'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted '/mnt/dev'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted '/mnt/sys'
       lxc-start 1290020294.028 DEBUG    lxc_conf - umounted '/mnt'
       lxc-start 1290020294.028 INFO     lxc_conf - pivoted to 
'/usr/lib/lxc'
       lxc-start 1290020294.028 INFO     lxc_conf - created new pts 
instance
       lxc-start 1290020294.028 DEBUG    lxc_conf - capabilities has been 
setup
       lxc-start 1290020294.028 NOTICE   lxc_conf - 'box1' is setup.
       lxc-start 1290020294.028 NOTICE   lxc_start - exec'ing '/sbin/init'
       lxc-start 1290020294.029 NOTICE   lxc_start - '/sbin/init' started 
with pid '5201'
       lxc-start 1290020294.029 WARN     lxc_utmp - 
'/var/lib/lxc/box1/rootfs/var/run' not found
       lxc-start 1290020377.310 INFO     lxc_start - forwarded signal 28 to 
pid 5201
       lxc-start 1290020377.310 INFO     lxc_start - forwarded signal 28 to 
pid 5201

>>>>>	The console (in screen) shows this;

init started: BusyBox v1.17.1 (Debian 1:1.17.1-6)
starting pid 2, tty '': '/etc/init.d/rcS'
starting pid 6, tty '': '/bin/getty 38400 tty1 linux'

Please press Enter to activate this console.
starting pid 7, tty '': '/bin/sh'


BusyBox v1.17.1 (Debian 1:1.17.1-6) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
/ # ^[[67;5R

process '/bin/sh' (pid 7) exited. Scheduling for restart.

Please press Enter to activate this console.

>>>>>> The origional getty parms got same results so I copied these values 
from host /etc/inittab.
>>>>> /var/lib/lxc/box1/config follows;
# Container with non-virtualized network
lxc.utsname = delta
lxc.utsname = box1
lxc.tty = 1
lxc.pts = 1
lxc.rootfs = /var/lib/lxc/box1/rootfs
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# # consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# # /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# # rtc
lxc.cgroup.devices.allow = c 254:0 rwm
#
#
lxc.mount.entry=/lib /var/lib/lxc/box1/rootfs/lib none ro,bind 0 0
lxc.mount.entry=/usr/lib /var/lib/lxc/box1/rootfs/usr/lib none ro,bind 0 0
# lxc.mount.entry=/lib64 /var/lib/lxc/box1/rootfs/lib64 none ro,bind 0 0
# lxc.mount.entry=/usr/lib64 /var/lib/lxc/box1/rootfs/usr/lib64 none 
ro,bind 0 0

>>>>> the last two lines above are commented because this is a 32-bit box.

Are my getty parms wronge for runnin under screen?

thanks,
Charles
-- 
Charles Hewson <cahewson at eskimo.com>
Seattle, WA. U.S.A.




More information about the lxc-users mailing list