[Lxc-users] lxc-start: Device or resource busy - could not unmount old rootfs

Matt Bailey mbailey at system42.net
Tue Apr 13 20:33:19 UTC 2010


With lxc 0.6.5, I am having a problem starting a container.  Here is
the debug output. (FWIW, my /var is a separate partition on the host)

# lxc-start -n test -l DEBUG -o $(tty)
      lxc-start 1271189821.303 INFO     lxc_conf - tty's configured
      lxc-start 1271189821.303 DEBUG    lxc_start - sigchild handler set
      lxc-start 1271189821.303 INFO     lxc_start - 'test' is initialized
      lxc-start 1271189821.313 DEBUG    lxc_conf - instanciated veth
'veth5RnMGB/veth28579F', index is '14'
      lxc-start 1271189821.394 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
      lxc-start 1271189821.395 DEBUG    lxc_cgroup - '/cgroup/2229'
renamed to '/cgroup/test'
      lxc-start 1271189821.554 DEBUG    lxc_conf - move 'br0' to '2229'
      lxc-start 1271189821.554 INFO     lxc_conf - 'test' hostname has
been setup
      lxc-start 1271189821.571 DEBUG    lxc_conf - 'eth0' has been setup
      lxc-start 1271189821.571 INFO     lxc_conf - network has been setup
      lxc-start 1271189821.571 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
      lxc-start 1271189821.571 DEBUG    lxc_conf - cgroup
'devices.deny' set to 'a'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
      lxc-start 1271189821.572 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
      lxc-start 1271189821.572 INFO     lxc_conf - cgroup has been setup
      lxc-start 1271189821.572 INFO     lxc_conf - mount points have been setup
      lxc-start 1271189821.572 INFO     lxc_conf - console
'/dev/pts/0' mounted to '/var/lib/urizen-slicer/fs/test/dev/console'
      lxc-start 1271189821.572 INFO     lxc_conf - 4 tty(s) has been setup
      lxc-start 1271189821.572 DEBUG    lxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-y10fSV'
      lxc-start 1271189821.572 DEBUG    lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-y10fSV' successful
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev/pts'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev/shm'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/fs/fuse/connections'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/kernel/debug'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/kernel/security'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/proc'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/run'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lock'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/lib/init/rw'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/cgroup'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/console'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty1'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty2'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty3'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty4'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys'
      lxc-start 1271189821.573 DEBUG    lxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var'
      lxc-start 1271189821.573 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 1271189821.573 ERROR    lxc_conf - failed to
pivot_root to '/var/lib/urizen-slicer/fs/test'
lxc-start: failed to pivot_root to '/var/lib/urizen-slicer/fs/test'
      lxc-start 1271189821.573 ERROR    lxc_conf - failed to set
rootfs for 'test'
lxc-start: failed to set rootfs for 'test'
      lxc-start 1271189821.573 ERROR    lxc_start - failed to setup
the container
lxc-start: failed to setup the container
      lxc-start 1271189821.573 NOTICE   lxc_start - '/sbin/init'
started with pid '2229'
      lxc-start 1271189821.573 DEBUG    lxc_utils - closing fd '1'
      lxc-start 1271189821.573 DEBUG    lxc_utils - closing fd '0'
      lxc-start 1271189821.573 DEBUG    lxc_utils - closed all
inherited file descriptors
      lxc-start 1271189821.634 DEBUG    lxc_start - child exited
      lxc-start 1271189821.634 INFO     lxc_error - child <2229> ended
on error (255)
      lxc-start 1271189821.634 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
      lxc-start 1271189821.714 DEBUG    lxc_cgroup - '/cgroup/test' unlinked


Thanks,
--
Matt Bailey




More information about the lxc-users mailing list