[Lxc-users] Problems starting OL6.3 lxc container
C. L. Martinez
carlopmart at gmail.com
Sun Oct 21 08:42:51 UTC 2012
Hi all,
I have setup my first OL6 container but it doesn't starts. When I
launch lxc-start command, nothing appears:
[root at ol6host templates]# lxc-start -n ol6vmserver -o /tmp/ol.log
--logpriority=DEBUG
My config is:
# Container configuration for Oracle Linux 6
lxc.arch = x86_64
lxc.utsname = ol6vmserver
#lxc.devttydir = lxc
lxc.console = /vmdata/ol6vmserver/dev/console
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /vmdata/ol6vmserver
lxc.mount = /vmdata/lxc-config/ol6vmserver.fstab
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = prodif
lxc.network.name = eth0
lxc.network.mtu = 1500
lxc.network.hwaddr = 00:50:56:21:2a:d2
lxc.network.ipv4 = 172.25.50.7/27
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
lxc.cgroup.devices.allow = c 1:7 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
lxc.cgroup.devices.allow = c 254:0 rwm
Trying to access using lxc-console:
[root at ol6host dev]# lxc-console -n ol6vmserver
Type <Ctrl+a q> to exit the console
And in log file, I don't see nothing strange:
lxc-start 1350808610.402 DEBUG lxc_conf - allocated pty
'/dev/pts/4' (4/5)
lxc-start 1350808610.403 DEBUG lxc_conf - allocated pty
'/dev/pts/5' (6/7)
lxc-start 1350808610.403 DEBUG lxc_conf - allocated pty
'/dev/pts/6' (8/9)
lxc-start 1350808610.403 DEBUG lxc_conf - allocated pty
'/dev/pts/7' (10/11)
lxc-start 1350808610.403 INFO lxc_conf - tty's configured
lxc-start 1350808610.403 DEBUG lxc_console - using
'/vmdata/ol6vmserver/dev/console' as console
lxc-start 1350808610.403 DEBUG lxc_start - sigchild handler set
lxc-start 1350808610.403 INFO lxc_start - 'ol6vmserver' is initialized
lxc-start 1350808610.408 DEBUG lxc_conf - instanciated veth
'vethMePv5x/veth2e4SEr', index is '26'
lxc-start 1350808610.412 DEBUG lxc_cgroup - checking '/' (rootfs)
lxc-start 1350808610.412 DEBUG lxc_cgroup - checking '/proc' (proc)
lxc-start 1350808610.412 DEBUG lxc_cgroup - checking '/sys' (sysfs)
lxc-start 1350808610.412 DEBUG lxc_cgroup - checking '/dev' (devtmpfs)
lxc-start 1350808610.412 DEBUG lxc_cgroup - checking
'/dev/pts' (devpts)
lxc-start 1350808610.412 DEBUG lxc_cgroup - checking '/dev/shm' (tmpfs)
lxc-start 1350808610.412 DEBUG lxc_cgroup - checking '/' (btrfs)
lxc-start 1350808610.413 DEBUG lxc_cgroup - checking
'/proc/bus/usb' (usbfs)
lxc-start 1350808610.413 DEBUG lxc_cgroup - checking '/boot' (ext4)
lxc-start 1350808610.413 DEBUG lxc_cgroup - checking
'/proc/sys/fs/binfmt_misc' (binfmt_misc)
lxc-start 1350808610.413 DEBUG lxc_cgroup - checking
'/cgroup/cpuset' (cgroup)
lxc-start 1350808610.413 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/cpuset'
lxc-start 1350808610.413 DEBUG lxc_cgroup - cgroup
/cgroup/cpuset has flags 0x2
lxc-start 1350808610.419 INFO lxc_cgroup - created cgroup
'/cgroup/cpuset/ol6vmserver'
lxc-start 1350808610.419 DEBUG lxc_cgroup - checking
'/cgroup/cpu' (cgroup)
lxc-start 1350808610.419 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/cpu'
lxc-start 1350808610.419 DEBUG lxc_cgroup - cgroup
/cgroup/cpu has flags 0x2
lxc-start 1350808610.423 INFO lxc_cgroup - created cgroup
'/cgroup/cpu/ol6vmserver'
lxc-start 1350808610.423 DEBUG lxc_cgroup - checking
'/cgroup/cpuacct' (cgroup)
lxc-start 1350808610.423 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/cpuacct'
lxc-start 1350808610.423 DEBUG lxc_cgroup - cgroup
/cgroup/cpuacct has flags 0x2
lxc-start 1350808610.426 INFO lxc_cgroup - created cgroup
'/cgroup/cpuacct/ol6vmserver'
lxc-start 1350808610.427 DEBUG lxc_cgroup - checking
'/cgroup/memory' (cgroup)
lxc-start 1350808610.427 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/memory'
lxc-start 1350808610.427 DEBUG lxc_cgroup - cgroup
/cgroup/memory has flags 0x2
lxc-start 1350808610.432 INFO lxc_cgroup - created cgroup
'/cgroup/memory/ol6vmserver'
lxc-start 1350808610.432 DEBUG lxc_cgroup - checking
'/cgroup/devices' (cgroup)
lxc-start 1350808610.432 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.432 DEBUG lxc_cgroup - cgroup
/cgroup/devices has flags 0x2
lxc-start 1350808610.436 INFO lxc_cgroup - created cgroup
'/cgroup/devices/ol6vmserver'
lxc-start 1350808610.436 DEBUG lxc_cgroup - checking
'/cgroup/freezer' (cgroup)
lxc-start 1350808610.436 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/freezer'
lxc-start 1350808610.436 DEBUG lxc_cgroup - cgroup
/cgroup/freezer has flags 0x2
lxc-start 1350808610.440 INFO lxc_cgroup - created cgroup
'/cgroup/freezer/ol6vmserver'
lxc-start 1350808610.440 DEBUG lxc_cgroup - checking
'/cgroup/net_cls' (cgroup)
lxc-start 1350808610.440 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/net_cls'
lxc-start 1350808610.440 DEBUG lxc_cgroup - cgroup
/cgroup/net_cls has flags 0x2
lxc-start 1350808610.443 INFO lxc_cgroup - created cgroup
'/cgroup/net_cls/ol6vmserver'
lxc-start 1350808610.444 DEBUG lxc_cgroup - checking
'/cgroup/blkio' (cgroup)
lxc-start 1350808610.444 INFO lxc_cgroup - found cgroup
mounted at '/cgroup/blkio'
lxc-start 1350808610.444 DEBUG lxc_cgroup - cgroup
/cgroup/blkio has flags 0x2
lxc-start 1350808610.449 INFO lxc_cgroup - created cgroup
'/cgroup/blkio/ol6vmserver'
lxc-start 1350808610.450 DEBUG lxc_conf - move 'eth0' to '3323'
lxc-start 1350808610.450 INFO lxc_conf - 'ol6vmserver'
hostname has been setup
lxc-start 1350808610.454 DEBUG lxc_conf - mac address
'00:50:56:21:2a:d2' on 'eth0' has been setup
lxc-start 1350808610.459 DEBUG lxc_conf - 'eth0' has been setup
lxc-start 1350808610.459 INFO lxc_conf - network has been setup
lxc-start 1350808610.459 DEBUG lxc_conf - mounted
'/vmdata/ol6vmserver' on '/usr/lib64/lxc/rootfs'
lxc-start 1350808610.459 DEBUG lxc_conf - mounted 'devpts' on
'/usr/lib64/lxc/rootfs/dev/pts', type 'devpts'
lxc-start 1350808610.459 DEBUG lxc_conf - mounted 'sysfs' on
'/usr/lib64/lxc/rootfs/sys', type 'sysfs'
lxc-start 1350808610.460 DEBUG lxc_conf - mounted 'proc' on
'/usr/lib64/lxc/rootfs/proc', type 'proc'
lxc-start 1350808610.460 INFO lxc_conf - mount points have been setup
lxc-start 1350808610.460 INFO lxc_conf - mount points have been setup
lxc-start 1350808610.460 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.460 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.460 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.deny
lxc-start 1350808610.460 DEBUG lxc_conf - cgroup
'devices.deny' set to 'a'
lxc-start 1350808610.460 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.461 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.461 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.461 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
lxc-start 1350808610.461 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.461 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.461 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.461 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
lxc-start 1350808610.461 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.461 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.461 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.461 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:7 rwm'
lxc-start 1350808610.461 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.464 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.464 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.464 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
lxc-start 1350808610.464 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.464 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.464 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.464 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
lxc-start 1350808610.465 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.465 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.465 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.465 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
lxc-start 1350808610.465 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.465 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.465 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.465 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
lxc-start 1350808610.465 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.465 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.465 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.465 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
lxc-start 1350808610.465 DEBUG lxc_cgroup -
lxc_cgroup_path_get: called for subsys devices name ol6vmserver
lxc-start 1350808610.466 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup/devices'
lxc-start 1350808610.466 DEBUG lxc_cgroup -
lxc_cgroup_path_get: returning /cgroup/devices/ol6vmserver for
subsystem devices.allow
lxc-start 1350808610.466 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1350808610.466 INFO lxc_conf - cgroup has been setup
lxc-start 1350808610.466 WARN lxc_conf - rootfs specified
but no console found at '/usr/lib64/lxc/rootfs/dev/console'
lxc-start 1350808610.466 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1350808610.466 DEBUG lxc_conf - mountpoint for old
rootfs is '/usr/lib64/lxc/rootfs/mnt'
lxc-start 1350808610.466 DEBUG lxc_conf - pivot_root syscall
to '/usr/lib64/lxc/rootfs' successful
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/dev/pts'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/dev/shm'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/proc/bus/usb'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted
'/mnt/proc/sys/fs/binfmt_misc'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/sys'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/boot'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/cgroup/cpuset'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/cgroup/cpu'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted
'/mnt/cgroup/cpuacct'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/cgroup/memory'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted
'/mnt/cgroup/devices'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted
'/mnt/cgroup/freezer'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted
'/mnt/cgroup/net_cls'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/cgroup/blkio'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/dev'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt/proc'
lxc-start 1350808610.467 DEBUG lxc_conf - umounted '/mnt'
lxc-start 1350808610.468 INFO lxc_conf - set personality to '0x0'
lxc-start 1350808610.468 DEBUG lxc_conf - capabilities has been setup
lxc-start 1350808610.468 NOTICE lxc_conf - 'ol6vmserver' is setup.
lxc-start 1350808610.468 NOTICE lxc_start - exec'ing '/sbin/init'
lxc-start 1350808610.468 NOTICE lxc_start - '/sbin/init'
started with pid '3323'
lxc-start 1350808610.468 DEBUG lxc_utmp - Added
'/proc/3323/root/var/run' to inotifywatch
lxc-start 1350808677.016 DEBUG lxc_commands - peer has disconnected
Somebody knows where can it be the problem??
Thanks.
More information about the lxc-users
mailing list