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

2010-04-14 Thread Matt Bailey
Those are also the instructions I followed.  The only difference I can
see is that I have a separate volume for /var on my host.

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



On Wed, Apr 14, 2010 at 10:03 AM, Serge E. Hallyn se...@us.ibm.com wrote:
 Quoting Pier Fumagalli (p...@betaversion.org):
 Sorry for not pointing it out earlier.

 Yes, my problem is upon startup of the *first* container on Lucid, and it
 works when rolling back to 0.6.3.

 Hrmph.  I just installed a lucid container on a lucid kvm partition,
 basically following the directions at

 http://blog.bodhizazen.net/linux/lxc-configure-ubuntu-lucid-containers/

 and don't reproduce this.  Can you look at the config in there and see
 what you do differently?

 -serge


--
Download Intel#174; 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


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

2010-04-14 Thread Pier Fumagalli
On Thu, Apr 15, 2010 at 01:39, Matt Bailey mbai...@system42.net wrote:

Those are also the instructions I followed.  The only difference I can
 see is that I have a separate volume for /var on my host.


Oh, interesting: I too have a separate partition for /var/  Sorry for
not reporting this at first!

Pier
--
Download Intel#174; 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


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

2010-04-14 Thread Serge E. Hallyn
Quoting Pier Fumagalli (p...@betaversion.org):
 On Thu, Apr 15, 2010 at 01:39, Matt Bailey mbai...@system42.net wrote:
 
 Those are also the instructions I followed.  The only difference I can
  see is that I have a separate volume for /var on my host.
 
 
 Oh, interesting: I too have a separate partition for /var/  Sorry for
 not reporting this at first!
 
 Pier

[ summary: lxc git fixes this ]

Heh, all right, I was able to reproduce after create a new VM with /var
on separate partition.  (was delayed bc there is a bug in kvm or lucid
installer causing install to die if /var is on separate disk!)

strace -f -o/tmp/ab lxc-start -n lucid1 shows umount(/) is returning
-EBUSY.  Which actually doesn't make a lot of sense bc /var *was*
successfully unmounted.  But in any case as Brian White was saying,
commit c08556c6ece8ad8308f7636adb0ad25b60e3a16d in lxc git, which is
not in 0.6.5, is the one making it use MNT_DETACH.

And, in fact, installing lxc from git lets the same container succeed
on the host where it fails with lxc 0.6.5.

So looks like beside downgrading you also have the option of upgrading :)

-serge

--
Download Intel#174; 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


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

2010-04-13 Thread Matt Bailey
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 DEBUGlxc_start - sigchild handler set
  lxc-start 1271189821.303 INFO lxc_start - 'test' is initialized
  lxc-start 1271189821.313 DEBUGlxc_conf - instanciated veth
'veth5RnMGB/veth28579F', index is '14'
  lxc-start 1271189821.394 DEBUGlxc_cgroup - using cgroup
mounted at '/cgroup'
  lxc-start 1271189821.395 DEBUGlxc_cgroup - '/cgroup/2229'
renamed to '/cgroup/test'
  lxc-start 1271189821.554 DEBUGlxc_conf - move 'br0' to '2229'
  lxc-start 1271189821.554 INFO lxc_conf - 'test' hostname has
been setup
  lxc-start 1271189821.571 DEBUGlxc_conf - 'eth0' has been setup
  lxc-start 1271189821.571 INFO lxc_conf - network has been setup
  lxc-start 1271189821.571 DEBUGlxc_cgroup - using cgroup
mounted at '/cgroup'
  lxc-start 1271189821.571 DEBUGlxc_conf - cgroup
'devices.deny' set to 'a'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
  lxc-start 1271189821.572 DEBUGlxc_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 DEBUGlxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-y10fSV'
  lxc-start 1271189821.572 DEBUGlxc_conf - pivot_root syscall
to '/lxc-oldrootfs-y10fSV' successful
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev/pts'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev/shm'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/fs/fuse/connections'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/kernel/debug'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/kernel/security'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/proc'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/run'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lock'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/lib/init/rw'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/cgroup'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/console'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty1'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty2'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty3'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty4'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var'
  lxc-start 1271189821.573 ERRORlxc_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 ERRORlxc_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 ERRORlxc_conf 

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

2010-04-13 Thread Pier Fumagalli
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 mbai...@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 DEBUGlxc_start - sigchild handler set
  lxc-start 1271189821.303 INFO lxc_start - 'test' is initialized
  lxc-start 1271189821.313 DEBUGlxc_conf - instanciated veth
 'veth5RnMGB/veth28579F', index is '14'
  lxc-start 1271189821.394 DEBUGlxc_cgroup - using cgroup
 mounted at '/cgroup'
  lxc-start 1271189821.395 DEBUGlxc_cgroup - '/cgroup/2229'
 renamed to '/cgroup/test'
  lxc-start 1271189821.554 DEBUGlxc_conf - move 'br0' to '2229'
  lxc-start 1271189821.554 INFO lxc_conf - 'test' hostname has
 been setup
  lxc-start 1271189821.571 DEBUGlxc_conf - 'eth0' has been setup
  lxc-start 1271189821.571 INFO lxc_conf - network has been setup
  lxc-start 1271189821.571 DEBUGlxc_cgroup - using cgroup
 mounted at '/cgroup'
  lxc-start 1271189821.571 DEBUGlxc_conf - cgroup
 'devices.deny' set to 'a'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 1:3 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 1:5 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 5:1 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 5:0 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 4:0 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 4:1 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 1:9 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 1:8 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 136:* rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
 'devices.allow' set to 'c 5:2 rwm'
  lxc-start 1271189821.572 DEBUGlxc_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 DEBUGlxc_conf - temporary
 mountpoint for old rootfs is './lxc-oldrootfs-y10fSV'
  lxc-start 1271189821.572 DEBUGlxc_conf - pivot_root syscall
 to '/lxc-oldrootfs-y10fSV' successful
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/dev/pts'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/dev/shm'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/sys/fs/fuse/connections'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/sys/kernel/debug'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/sys/kernel/security'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/proc'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var/run'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var/lock'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/lib/init/rw'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/cgroup'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/console'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty1'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty2'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty3'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var/lib/urizen-slicer/fs/test/dev/tty4'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/dev'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/sys'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
 '/lxc-oldrootfs-y10fSV/var'
  lxc-start 1271189821.573 ERRORlxc_conf - Device or resource
 

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

2010-04-13 Thread Brian K. White

Isn't this a known and fixed issue? Well, fixed enough for now anyway.
Daniel made a patch and I incorporated it into an opensuse build service 
package that is just stock 0.6.5 with only that patch and my 
startup/shutdown scripts, and have been using that package a lot ever 
since with no problems.


The patch is attached.
The openSUSE package incorporating it is here:
http://download.opensuse.org/repositories/home:/aljex/openSUSE_11.2/x86_64/lxc-0.6.5-46.1.x86_64.rpm

--
bkw



On 4/13/2010 11:29 PM, Serge E. Hallyn 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 (p...@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 Baileymbai...@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 DEBUGlxc_start - sigchild handler set
  lxc-start 1271189821.303 INFO lxc_start - 'test' is initialized
  lxc-start 1271189821.313 DEBUGlxc_conf - instanciated veth
'veth5RnMGB/veth28579F', index is '14'
  lxc-start 1271189821.394 DEBUGlxc_cgroup - using cgroup
mounted at '/cgroup'
  lxc-start 1271189821.395 DEBUGlxc_cgroup - '/cgroup/2229'
renamed to '/cgroup/test'
  lxc-start 1271189821.554 DEBUGlxc_conf - move 'br0' to '2229'
  lxc-start 1271189821.554 INFO lxc_conf - 'test' hostname has
been setup
  lxc-start 1271189821.571 DEBUGlxc_conf - 'eth0' has been setup
  lxc-start 1271189821.571 INFO lxc_conf - network has been setup
  lxc-start 1271189821.571 DEBUGlxc_cgroup - using cgroup
mounted at '/cgroup'
  lxc-start 1271189821.571 DEBUGlxc_conf - cgroup
'devices.deny' set to 'a'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
  lxc-start 1271189821.572 DEBUGlxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
  lxc-start 1271189821.572 DEBUGlxc_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 DEBUGlxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-y10fSV'
  lxc-start 1271189821.572 DEBUGlxc_conf - pivot_root syscall
to '/lxc-oldrootfs-y10fSV' successful
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev/pts'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/dev/shm'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/fs/fuse/connections'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/kernel/debug'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/sys/kernel/security'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/proc'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/run'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/var/lock'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/lib/init/rw'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted
'/lxc-oldrootfs-y10fSV/cgroup'
  lxc-start 1271189821.573 DEBUGlxc_conf - umounted