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

John Drescher drescherjm at gmail.com
Fri Jan 22 16:49:03 UTC 2010


> Ok, finally I reproduced it.
> Can you remove the mount option in the container configuration file (devpts
> and shm) ?
>
You mean in my

/etc/lxc/guest_1.fstab ?

I disabled all mounts in that in the other email. Here was the output of that:


localhost ~ #   lxc-start -n guest_1 -l DEBUG -o $(tty)
     lxc-start 1264153153.126 INFO     lxc_conf - tty's configured
     lxc-start 1264153153.126 DEBUG    lxc_start - sigchild handler set
     lxc-start 1264153153.126 INFO     lxc_start - 'guest_1' is initialized
     lxc-start 1264153153.127 DEBUG    lxc_conf - instanciated veth
'vethwvedNM/vethgwP5Gh', index is '34'
     lxc-start 1264153153.183 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
     lxc-start 1264153153.183 DEBUG    lxc_cgroup - '/cgroup/1482'
renamed to '/cgroup/guest_1'
     lxc-start 1264153153.261 DEBUG    lxc_conf - move 'br0' to '1482'
     lxc-start 1264153153.262 INFO     lxc_conf - 'guest_1' hostname
has been setup
     lxc-start 1264153153.263 DEBUG    lxc_conf - 'veth0' has been setup
     lxc-start 1264153153.263 INFO     lxc_conf - network has been setup
     lxc-start 1264153153.264 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
     lxc-start 1264153153.264 DEBUG    lxc_conf - cgroup
'devices.deny' set to 'a # Deny all access to devices'
     lxc-start 1264153153.264 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm # dev/null'
     lxc-start 1264153153.264 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm # dev/zero'
     lxc-start 1264153153.264 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm # dev/console'
     lxc-start 1264153153.264 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm # dev/tty'
     lxc-start 1264153153.264 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm # dev/tty0'
     lxc-start 1264153153.265 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm # dev/tty1'
     lxc-start 1264153153.265 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:2 rwm # dev/tty2'
     lxc-start 1264153153.265 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm # dev/urandon'
     lxc-start 1264153153.265 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm # dev/random'
     lxc-start 1264153153.265 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm # dev/pts/*'
     lxc-start 1264153153.265 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm # dev/pts/ptmx'
     lxc-start 1264153153.265 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
     lxc-start 1264153153.265 INFO     lxc_conf - cgroup has been setup
     lxc-start 1264153153.265 INFO     lxc_conf - mount points have been setup
     lxc-start 1264153153.265 INFO     lxc_conf - mount points have been setup
     lxc-start 1264153153.265 INFO     lxc_conf - console
'/dev/pts/0' mounted to '/lxc/guest_1/dev/console'
     lxc-start 1264153153.265 INFO     lxc_conf - 4 tty(s) has been setup
     lxc-start 1264153153.265 DEBUG    lxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-WYH6KN'
     lxc-start 1264153153.266 DEBUG    lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-WYH6KN' successful
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/proc/bus/usb'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/lib64/rc/init.d'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/dev/pts'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/sys'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/dev'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/cgroup'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/lxc/guest_1/dev/console'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/lxc/guest_1/dev/tty1'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/lxc/guest_1/dev/tty2'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/lxc/guest_1/dev/tty3'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/lxc/guest_1/dev/tty4'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/proc'
     lxc-start 1264153153.266 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-WYH6KN/dev/shm'
     lxc-start 1264153153.266 ERROR    lxc_conf - Device or resource
busy - could not unmount old rootfs
lxc-start: Device or resource busy - could not unmount old rootfs
     lxc-start 1264153153.266 ERROR    lxc_conf - failed to
pivot_root to '/lxc/guest_1'
lxc-start: failed to pivot_root to '/lxc/guest_1'
     lxc-start 1264153153.266 ERROR    lxc_conf - failed to set
rootfs for 'guest_1'
lxc-start: failed to set rootfs for 'guest_1'
     lxc-start 1264153153.266 ERROR    lxc_start - failed to setup
the container
lxc-start: failed to setup the container
     lxc-start 1264153153.266 NOTICE   lxc_start - '/sbin/init'
started with pid '1482'
     lxc-start 1264153153.266 DEBUG    lxc_utils - closing fd '1'
     lxc-start 1264153153.266 DEBUG    lxc_utils - closing fd '0'
     lxc-start 1264153153.266 DEBUG    lxc_utils - closed all
inherited file descriptors
     lxc-start 1264153153.321 DEBUG    lxc_start - child exited
     lxc-start 1264153153.321 INFO     lxc_error - child <1482> ended
on error (255)
     lxc-start 1264153153.321 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
     lxc-start 1264153153.361 DEBUG    lxc_cgroup - '/cgroup/guest_1' unlinked


-- 
John M. Drescher




More information about the lxc-users mailing list