[Lxc-users] Can not start containers using latest tools from the git
John Drescher
drescherjm at gmail.com
Fri Jan 22 14:41:16 UTC 2010
It turns out I was mounting /dev/shm in the guest. After commenting
out that I still can not start my container.
localhost ~ # cat /etc/lxc/guest_1.fstab
none /lxc/guest_1/dev/pts devpts defaults 0 0
#none /lxc/guest_1/proc proc defaults 0 0
#none /lxc/guest_1/sys sysfs defaults 0 0
#none /lxc/guest_1/dev/shm tmpfs defaults 0 0
/usr/portage /lxc/guest_1/usr/portage none rw,bind 1 0
localhost ~ # lxc-start -n guest_1 -l DEBUG -o $(tty)
lxc-start 1264153081.350 INFO lxc_conf - tty's configured
lxc-start 1264153081.350 DEBUG lxc_start - sigchild handler set
lxc-start 1264153081.350 INFO lxc_start - 'guest_1' is initialized
lxc-start 1264153081.353 DEBUG lxc_conf - instanciated veth
'vethJ2NA8g/vethuoeij0', index is '28'
lxc-start 1264153081.413 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264153081.414 DEBUG lxc_cgroup - '/cgroup/1466'
renamed to '/cgroup/guest_1'
lxc-start 1264153081.481 DEBUG lxc_conf - move 'br0' to '1466'
lxc-start 1264153081.482 INFO lxc_conf - 'guest_1' hostname
has been setup
lxc-start 1264153081.483 DEBUG lxc_conf - 'veth0' has been setup
lxc-start 1264153081.483 INFO lxc_conf - network has been setup
lxc-start 1264153081.484 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.deny' set to 'a # Deny all access to devices'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm # dev/null'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm # dev/zero'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm # dev/console'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm # dev/tty'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm # dev/tty0'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm # dev/tty1'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:2 rwm # dev/tty2'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm # dev/urandon'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm # dev/random'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm # dev/pts/*'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm # dev/pts/ptmx'
lxc-start 1264153081.485 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1264153081.485 INFO lxc_conf - cgroup has been setup
lxc-start 1264153081.485 DEBUG lxc_conf - mounted none on
/lxc/guest_1/dev/pts, type devpts
lxc-start 1264153081.485 DEBUG lxc_conf - mounted
/usr/portage on /lxc/guest_1/usr/portage, type none
lxc-start 1264153081.485 INFO lxc_conf - mount points have been setup
lxc-start 1264153081.486 INFO lxc_conf - mount points have been setup
lxc-start 1264153081.486 INFO lxc_conf - console
'/dev/pts/0' mounted to '/lxc/guest_1/dev/console'
lxc-start 1264153081.486 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1264153081.486 DEBUG lxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-Jw2y9c'
lxc-start 1264153081.486 DEBUG lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-Jw2y9c' successful
lxc-start 1264153081.486 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/proc/bus/usb'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lib64/rc/init.d'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/dev/pts'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/sys'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/dev'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/cgroup'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lxc/guest_1/dev/pts'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lxc/guest_1/usr/portage'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lxc/guest_1/dev/console'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lxc/guest_1/dev/tty1'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lxc/guest_1/dev/tty2'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lxc/guest_1/dev/tty3'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/lxc/guest_1/dev/tty4'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/proc'
lxc-start 1264153081.487 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-Jw2y9c/dev/shm'
lxc-start 1264153081.487 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 1264153081.487 ERROR lxc_conf - failed to
pivot_root to '/lxc/guest_1'
lxc-start: failed to pivot_root to '/lxc/guest_1'
lxc-start 1264153081.487 ERROR lxc_conf - failed to set
rootfs for 'guest_1'
lxc-start: failed to set rootfs for 'guest_1'
lxc-start 1264153081.487 ERROR lxc_start - failed to setup
the container
lxc-start: failed to setup the container
lxc-start 1264153081.487 NOTICE lxc_start - '/sbin/init'
started with pid '1466'
lxc-start 1264153081.487 DEBUG lxc_utils - closing fd '1'
lxc-start 1264153081.487 DEBUG lxc_utils - closing fd '0'
lxc-start 1264153081.487 DEBUG lxc_utils - closed all
inherited file descriptors
lxc-start 1264153081.521 DEBUG lxc_start - child exited
lxc-start 1264153081.521 INFO lxc_error - child <1466> ended
on error (255)
lxc-start 1264153081.522 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1264153081.561 DEBUG lxc_cgroup - '/cgroup/guest_1' unlinked
I then disabled all mounts in the guest_1.fstab and it still did not work:
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
More information about the lxc-users
mailing list