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

Matt Bailey mbailey at system42.net
Wed Apr 14 03:36:00 UTC 2010


It does, indeed, work with 0.6.3 (I am using ubuntu server lucid, btw):


      lxc-start 1271216075.672 DEBUG    lxc_state - set state to 'STARTING'
      lxc-start 1271216075.687 INFO     lxc_conf - tty's configured
      lxc-start 1271216075.687 DEBUG    lxc_start - sigchild handler set
      lxc-start 1271216075.687 INFO     lxc_start - 'test' is initialized
      lxc-start 1271216075.755 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
      lxc-start 1271216075.755 DEBUG    lxc_cgroup - '/cgroup/2744'
renamed to '/cgroup/test'
      lxc-start 1271216075.755 DEBUG    lxc_cgroup - using cgroup
mounted at '/cgroup'
      lxc-start 1271216075.755 DEBUG    lxc_cgroup - '/cgroup/test'
linked to '/var/lib/lxc/test/nsgroup'
      lxc-start 1271216075.947 INFO     lxc_conf - 'test' hostname has
been setup
      lxc-start 1271216075.949 DEBUG    lxc_conf - address
'130.253.8.194/(null)' on 'eth0' has been setup
      lxc-start 1271216075.964 DEBUG    lxc_conf - 'eth0' has been setup
      lxc-start 1271216075.964 INFO     lxc_conf - network has been setup
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.deny' set to 'a'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
      lxc-start 1271216075.965 DEBUG    lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
      lxc-start 1271216075.965 INFO     lxc_conf - cgroup has been setup
      lxc-start 1271216075.965 DEBUG    lxc_conf - mounted
/var/lib/urizen-slicer/fs/test on /var/lib/lxc/test/rootfs, type none
      lxc-start 1271216075.965 INFO     lxc_conf - mount points have been setup
      lxc-start 1271216075.965 INFO     lxc_conf - console
'/dev/pts/0' mounted to '/var/lib/lxc/test/rootfs/dev/console'
      lxc-start 1271216075.965 INFO     lxc_conf - 4 tty(s) has been setup
      lxc-start 1271216075.998 INFO     lxc_conf - chrooted to
'/var/lib/lxc/test/rootfs'
      lxc-start 1271216075.998 NOTICE   lxc_conf - 'test' is setup.
      lxc-start 1271216075.998 NOTICE   lxc_start - exec'ing '/sbin/init'
      lxc-start 1271216076.092 DEBUG    lxc_state - set state to 'RUNNING'
      lxc-start 1271216076.115 NOTICE   lxc_start - '/sbin/init'
started with pid '2744'
      lxc-start 1271216076.115 DEBUG    lxc_utils - closing fd '1'
      lxc-start 1271216076.115 DEBUG    lxc_utils - closing fd '0'
      lxc-start 1271216076.115 DEBUG    lxc_utils - closed all
inherited file descriptors
init: lxc pre-start process (2) terminated with status 32
init: console-setup main process (36) terminated with status 1

--
Matt Bailey
303.871.4923
Senior Software Specialist
University of Denver, UTS
http://du.edu
http://system42.net



On Tue, Apr 13, 2010 at 9:29 PM, Serge E. Hallyn <serue at us.ibm.com> wrote:
> Pier, the url you quote talks about only the second container
> failing.  Is that your experience as well?
>
> Matt, yours fails on the very first container, right?
>
> Matt, can you confirm that downgrading to 0.6.3 (which does not
> use pivot_root iirc) works for you?  I'll try to take a look on
> my own karmic server kvm instance this week.
>
> thanks,
> -serge
>
> Quoting Pier Fumagalli (pier at betaversion.org):
>> It seems to me this is pretty much what I'm seeing too with 0.6.5.
>>
>> http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg00029.html
>>
>> In my case, I downgraded to 0.6.3 and it works just fine.
>>
>>     Pier
>>
>>
>> On Wed, Apr 14, 2010 at 05:33, Matt Bailey <mbailey at system42.net> wrote:
>>
>> > 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
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Download Intel® Parallel Studio Eval
>> > Try the new software tools for yourself. Speed compiling, find bugs
>> > proactively, and fine-tune applications for parallel performance.
>> > See why Intel Parallel Studio got high marks during beta.
>> > http://p.sf.net/sfu/intel-sw-dev
>> > _______________________________________________
>> > Lxc-users mailing list
>> > Lxc-users at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/lxc-users
>> >
>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>
>> _______________________________________________
>> Lxc-users mailing list
>> Lxc-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>




More information about the lxc-users mailing list