Discussion:
lxc-start on openvz tempate
(too old to reply)
Papp Tamás
2010-06-23 09:50:39 UTC
Permalink
hi!

I have a container used with openvz. Now I'd like to use it as an lxc guest.

This is the start:

$ lxc-start -l DEBUG -o $(tty) -n fsn
lxc-start 1277286245.838 INFO lxc_conf - tty's configured
lxc-start 1277286245.838 DEBUG lxc_start - sigchild handler set
lxc-start 1277286245.838 INFO lxc_start - 'fsn' is initialized
lxc-start 1277286245.921 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277286245.921 DEBUG lxc_cgroup - '/cgroup/11866'
renamed to '/cgroup/fsn'
lxc-start 1277286245.921 INFO lxc_conf - 'fsn' hostname has
been setup
lxc-start 1277286245.922 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup 'devices.deny'
set to 'a'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1277286245.922 INFO lxc_conf - cgroup has been setup
lxc-start 1277286245.922 INFO lxc_conf - mount points have
been setup
lxc-start 1277286245.922 INFO lxc_conf - console '/dev/pts/0'
mounted to '/data/lxc/fsn/rootfs/dev/console'
lxc-start 1277286245.922 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1277286245.932 DEBUG lxc_conf - temporary mountpoint
for old rootfs is './lxc-oldrootfs-IcCZgE'
lxc-start 1277286245.932 DEBUG lxc_conf - pivot_root syscall to
'/lxc-oldrootfs-IcCZgE' successful
lxc-start 1277286250.885 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/dev/pts'
lxc-start 1277286253.755 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/dev/shm'
lxc-start 1277286258.695 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys/fs/fuse/connections'
lxc-start 1277286261.575 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys/kernel/debug'
lxc-start 1277286263.875 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys/kernel/security'
lxc-start 1277286266.075 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/proc'
lxc-start 1277286268.485 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var/run'
lxc-start 1277286270.775 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var/lock'
lxc-start 1277286273.378 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/lib/init/rw'
lxc-start 1277286278.385 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/ftp/oktatas'
lxc-start 1277286280.795 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/ftp/pub'
lxc-start 1277286283.032 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/mailman/archives'
lxc-start 1277286285.316 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/tmp'
lxc-start 1277286289.936 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var/lib/ldap'
lxc-start 1277286292.416 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/cgroup'
lxc-start 1277286294.796 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/console'
lxc-start 1277286297.102 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty1'
lxc-start 1277286299.664 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty2'
lxc-start 1277286324.534 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty3'
lxc-start 1277286326.774 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty4'
lxc-start 1277286329.054 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/dev'
lxc-start 1277286331.334 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys'
lxc-start 1277286333.534 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data'
lxc-start 1277286335.774 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var'
lxc-start 1277286338.105 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 1277286338.105 ERROR lxc_conf - failed to pivot_root
to '/data/lxc/fsn/rootfs'
lxc-start: failed to pivot_root to '/data/lxc/fsn/rootfs'
lxc-start 1277286338.105 ERROR lxc_conf - failed to set rootfs
for 'fsn'
lxc-start: failed to set rootfs for 'fsn'
lxc-start 1277286338.105 ERROR lxc_start - failed to setup the
container
lxc-start: failed to setup the container
lxc-start 1277286338.105 NOTICE lxc_start - '/sbin/init' started
with pid '11866'
lxc-start 1277286338.105 DEBUG lxc_utils - closing fd '1'
lxc-start 1277286338.105 DEBUG lxc_utils - closing fd '0'
lxc-start 1277286338.105 DEBUG lxc_utils - closed all inherited
file descriptors
lxc-start 1277286338.184 DEBUG lxc_start - child exited
lxc-start 1277286338.184 INFO lxc_error - child <11866> ended
on error (255)
lxc-start 1277286338.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277286338.262 DEBUG lxc_cgroup - '/cgroup/fsn' unlinked


I don't understand, what could be the problem?

Thank you,

tamas
Daniel Lezcano
2010-06-23 09:55:47 UTC
Permalink
Post by Papp Tamás
hi!
I have a container used with openvz. Now I'd like to use it as an lxc guest.
$ lxc-start -l DEBUG -o $(tty) -n fsn
lxc-start 1277286245.838 INFO lxc_conf - tty's configured
lxc-start 1277286245.838 DEBUG lxc_start - sigchild handler set
lxc-start 1277286245.838 INFO lxc_start - 'fsn' is initialized
lxc-start 1277286245.921 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277286245.921 DEBUG lxc_cgroup - '/cgroup/11866'
renamed to '/cgroup/fsn'
lxc-start 1277286245.921 INFO lxc_conf - 'fsn' hostname has
been setup
lxc-start 1277286245.922 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup 'devices.deny'
set to 'a'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
lxc-start 1277286245.922 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1277286245.922 INFO lxc_conf - cgroup has been setup
lxc-start 1277286245.922 INFO lxc_conf - mount points have
been setup
lxc-start 1277286245.922 INFO lxc_conf - console '/dev/pts/0'
mounted to '/data/lxc/fsn/rootfs/dev/console'
lxc-start 1277286245.922 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1277286245.932 DEBUG lxc_conf - temporary mountpoint
for old rootfs is './lxc-oldrootfs-IcCZgE'
lxc-start 1277286245.932 DEBUG lxc_conf - pivot_root syscall to
'/lxc-oldrootfs-IcCZgE' successful
lxc-start 1277286250.885 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/dev/pts'
lxc-start 1277286253.755 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/dev/shm'
lxc-start 1277286258.695 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys/fs/fuse/connections'
lxc-start 1277286261.575 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys/kernel/debug'
lxc-start 1277286263.875 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys/kernel/security'
lxc-start 1277286266.075 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/proc'
lxc-start 1277286268.485 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var/run'
lxc-start 1277286270.775 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var/lock'
lxc-start 1277286273.378 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/lib/init/rw'
lxc-start 1277286278.385 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/ftp/oktatas'
lxc-start 1277286280.795 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/ftp/pub'
lxc-start 1277286283.032 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/mailman/archives'
lxc-start 1277286285.316 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/tmp'
lxc-start 1277286289.936 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var/lib/ldap'
lxc-start 1277286292.416 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/cgroup'
lxc-start 1277286294.796 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/console'
lxc-start 1277286297.102 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty1'
lxc-start 1277286299.664 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty2'
lxc-start 1277286324.534 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty3'
lxc-start 1277286326.774 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data/lxc/fsn/rootfs/dev/tty4'
lxc-start 1277286329.054 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/dev'
lxc-start 1277286331.334 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/sys'
lxc-start 1277286333.534 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/data'
lxc-start 1277286335.774 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-IcCZgE/var'
lxc-start 1277286338.105 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 1277286338.105 ERROR lxc_conf - failed to pivot_root
to '/data/lxc/fsn/rootfs'
lxc-start: failed to pivot_root to '/data/lxc/fsn/rootfs'
lxc-start 1277286338.105 ERROR lxc_conf - failed to set rootfs
for 'fsn'
lxc-start: failed to set rootfs for 'fsn'
lxc-start 1277286338.105 ERROR lxc_start - failed to setup the
container
lxc-start: failed to setup the container
lxc-start 1277286338.105 NOTICE lxc_start - '/sbin/init' started
with pid '11866'
lxc-start 1277286338.105 DEBUG lxc_utils - closing fd '1'
lxc-start 1277286338.105 DEBUG lxc_utils - closing fd '0'
lxc-start 1277286338.105 DEBUG lxc_utils - closed all inherited
file descriptors
lxc-start 1277286338.184 DEBUG lxc_start - child exited
lxc-start 1277286338.184 INFO lxc_error - child<11866> ended
on error (255)
lxc-start 1277286338.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277286338.262 DEBUG lxc_cgroup - '/cgroup/fsn' unlinked
I don't understand, what could be the problem?
What version of lxc are you using ?
Papp Tamás
2010-06-23 09:57:12 UTC
Permalink
Post by Daniel Lezcano
What version of lxc are you using ?
Sorry:0

This is an Ubuntu 10.04 and lxc 0.6.5.

Thank you,

tamas
Daniel Lezcano
2010-06-23 10:02:05 UTC
Permalink
Post by Papp Tamás
Post by Daniel Lezcano
What version of lxc are you using ?
Sorry:0
This is an Ubuntu 10.04 and lxc 0.6.5.
I think it is fixed with the 0.7.0 version. Can you check against this
version ? It is probable it will hit the ubuntu update very soon.
Serge E. Hallyn
2010-06-23 13:32:38 UTC
Permalink
Post by Daniel Lezcano
Post by Papp Tamás
Post by Daniel Lezcano
What version of lxc are you using ?
Sorry:0
This is an Ubuntu 10.04 and lxc 0.6.5.
I think it is fixed with the 0.7.0 version. Can you check against this
version ? It is probable it will hit the ubuntu update very soon.
I'm waiting for the debian package to be released, and that will
be pulled in for maverick. I do have a lxc 0.7.0 package in my
own ppa for maverick (10.10) at ppa:serge-hallyn/virt, if you don't
want to install from git, but install from git worked perfectly for
me. If you prefer, I can put a lucid package up in my ppa. But
0.7.0 isn't likely to hit lucid itself.

-serge
Papp Tamás
2010-06-23 14:08:41 UTC
Permalink
Post by Serge E. Hallyn
Post by Daniel Lezcano
Post by Papp Tamás
Post by Daniel Lezcano
What version of lxc are you using ?
Sorry:0
This is an Ubuntu 10.04 and lxc 0.6.5.
I think it is fixed with the 0.7.0 version. Can you check against this
version ? It is probable it will hit the ubuntu update very soon.
I'm waiting for the debian package to be released, and that will
be pulled in for maverick. I do have a lxc 0.7.0 package in my
own ppa for maverick (10.10) at ppa:serge-hallyn/virt, if you don't
want to install from git, but install from git worked perfectly for
me. If you prefer, I can put a lucid package up in my ppa. But
0.7.0 isn't likely to hit lucid itself.
hi! Serge!

I think it would be nice and easy for everyone.

Thank you,

tamas
Papp Tamás
2010-06-23 21:31:54 UTC
Permalink
Post by Serge E. Hallyn
Post by Daniel Lezcano
Post by Papp Tamás
Post by Daniel Lezcano
What version of lxc are you using ?
Sorry:0
This is an Ubuntu 10.04 and lxc 0.6.5.
I think it is fixed with the 0.7.0 version. Can you check against this
version ? It is probable it will hit the ubuntu update very soon.
I'm waiting for the debian package to be released, and that will
be pulled in for maverick. I do have a lxc 0.7.0 package in my
own ppa for maverick (10.10) at ppa:serge-hallyn/virt, if you don't
want to install from git, but install from git worked perfectly for
me. If you prefer, I can put a lucid package up in my ppa. But
0.7.0 isn't likely to hit lucid itself.
Well, I tried this, and now it's btter, but still not good enough:

$ lxc-start -l DEBUG -o $(tty) -n fsn
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/1' (4/5)
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/2' (6/7)
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/3' (8/9)
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/4' (10/11)
lxc-start 1277328390.348 INFO lxc_conf - tty's configured
lxc-start 1277328390.348 DEBUG lxc_start - sigchild handler set
lxc-start 1277328390.348 INFO lxc_start - 'fsn' is initialized
lxc-start 1277328390.431 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277328390.431 DEBUG lxc_cgroup - '/cgroup/24650'
renamed to '/cgroup/fsn'
lxc-start 1277328390.431 INFO lxc_conf - 'fsn' hostname has
been setup
lxc-start 1277328390.432 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup 'devices.deny'
set to 'a'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1277328390.432 INFO lxc_conf - cgroup has been setup
lxc-start 1277328390.432 INFO lxc_conf - mount points have
been setup
lxc-start 1277328390.432 INFO lxc_conf - no console output
required
lxc-start 1277328390.432 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1277328390.432 DEBUG lxc_conf - mounted
'/data/lxc/fsn/rootfs' on '/usr/lib/lxc/lxc/rootfs'
lxc-start 1277328390.432 DEBUG lxc_conf - mountpoint for old
rootfs is '/usr/lib/lxc/lxc/rootfs/mnt'
lxc-start 1277328390.432 DEBUG lxc_conf - pivot_root syscall to
'/usr/lib/lxc/lxc/rootfs' successful
lxc-start 1277328397.743 DEBUG lxc_conf - umounted '/mnt/dev/pts'
lxc-start 1277328399.953 DEBUG lxc_conf - umounted '/mnt/dev/shm'
lxc-start 1277328404.433 DEBUG lxc_conf - umounted
'/mnt/sys/fs/fuse/connections'
lxc-start 1277328406.983 DEBUG lxc_conf - umounted
'/mnt/sys/kernel/debug'
lxc-start 1277328409.363 DEBUG lxc_conf - umounted
'/mnt/sys/kernel/security'
lxc-start 1277328411.663 DEBUG lxc_conf - umounted '/mnt/proc'
lxc-start 1277328413.923 DEBUG lxc_conf - umounted '/mnt/var/run'
lxc-start 1277328416.253 DEBUG lxc_conf - umounted '/mnt/var/lock'
lxc-start 1277328418.553 DEBUG lxc_conf - umounted
'/mnt/lib/init/rw'
lxc-start 1277328423.043 DEBUG lxc_conf - umounted
'/mnt/data/ftp/oktatas'
lxc-start 1277328425.313 DEBUG lxc_conf - umounted
'/mnt/data/ftp/pub'
lxc-start 1277328427.553 DEBUG lxc_conf - umounted
'/mnt/data/mailman/archives'
lxc-start 1277328429.793 DEBUG lxc_conf - umounted '/mnt/tmp'
lxc-start 1277328434.293 DEBUG lxc_conf - umounted
'/mnt/var/lib/ldap'
lxc-start 1277328436.503 DEBUG lxc_conf - umounted '/mnt/cgroup'
lxc-start 1277328438.743 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty1'
lxc-start 1277328441.063 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty2'
lxc-start 1277328443.313 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty3'
lxc-start 1277328445.653 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty4'
lxc-start 1277328450.193 DEBUG lxc_conf - umounted '/mnt/dev'
lxc-start 1277328452.443 DEBUG lxc_conf - umounted '/mnt/sys'
lxc-start 1277328454.773 DEBUG lxc_conf - umounted '/mnt/data'
lxc-start 1277328457.063 DEBUG lxc_conf - umounted '/mnt/var'
lxc-start 1277328461.613 INFO lxc_conf - lazy unmount of '/mnt'
lxc-start 1277328461.613 INFO lxc_conf - pivoted to
'/usr/lib/lxc/lxc/rootfs'
lxc-start 1277328461.613 DEBUG lxc_conf - capabilities has been
setup
lxc-start 1277328461.613 NOTICE lxc_conf - 'fsn' is setup.
lxc-start 1277328461.613 NOTICE lxc_start - exec'ing '/sbin/init'
lxc-start 1277328461.708 NOTICE lxc_start - '/sbin/init' started
with pid '24650'
lxc-start 1277328461.708 INFO lxc_console - no console specified
lxc-start 1277328461.708 DEBUG lxc_utmp - Added
'/data/lxc/fsn/rootfs/var/run' to inotifywatch
lxc-start 1277328461.919 DEBUG lxc_utmp - got inotify event 2
for utmp
lxc-start 1277328461.919 DEBUG lxc_utmp - utmp handler - run
level is S/S


So I miss something?

Thank you,

tamas
Daniel Lezcano
2010-06-24 06:55:04 UTC
Permalink
Post by Papp Tamás
Post by Serge E. Hallyn
Post by Daniel Lezcano
Post by Papp Tamás
Post by Daniel Lezcano
What version of lxc are you using ?
Sorry:0
This is an Ubuntu 10.04 and lxc 0.6.5.
I think it is fixed with the 0.7.0 version. Can you check against this
version ? It is probable it will hit the ubuntu update very soon.
I'm waiting for the debian package to be released, and that will
be pulled in for maverick. I do have a lxc 0.7.0 package in my
own ppa for maverick (10.10) at ppa:serge-hallyn/virt, if you don't
want to install from git, but install from git worked perfectly for
me. If you prefer, I can put a lucid package up in my ppa. But
0.7.0 isn't likely to hit lucid itself.
$ lxc-start -l DEBUG -o $(tty) -n fsn
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/1' (4/5)
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/2' (6/7)
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/3' (8/9)
lxc-start 1277328390.348 DEBUG lxc_conf - allocated pty
'/dev/pts/4' (10/11)
lxc-start 1277328390.348 INFO lxc_conf - tty's configured
lxc-start 1277328390.348 DEBUG lxc_start - sigchild handler set
lxc-start 1277328390.348 INFO lxc_start - 'fsn' is initialized
lxc-start 1277328390.431 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277328390.431 DEBUG lxc_cgroup - '/cgroup/24650'
renamed to '/cgroup/fsn'
lxc-start 1277328390.431 INFO lxc_conf - 'fsn' hostname has
been setup
lxc-start 1277328390.432 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup 'devices.deny'
set to 'a'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
lxc-start 1277328390.432 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1277328390.432 INFO lxc_conf - cgroup has been setup
lxc-start 1277328390.432 INFO lxc_conf - mount points have
been setup
lxc-start 1277328390.432 INFO lxc_conf - no console output
required
lxc-start 1277328390.432 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1277328390.432 DEBUG lxc_conf - mounted
'/data/lxc/fsn/rootfs' on '/usr/lib/lxc/lxc/rootfs'
lxc-start 1277328390.432 DEBUG lxc_conf - mountpoint for old
rootfs is '/usr/lib/lxc/lxc/rootfs/mnt'
lxc-start 1277328390.432 DEBUG lxc_conf - pivot_root syscall to
'/usr/lib/lxc/lxc/rootfs' successful
lxc-start 1277328397.743 DEBUG lxc_conf - umounted '/mnt/dev/pts'
lxc-start 1277328399.953 DEBUG lxc_conf - umounted '/mnt/dev/shm'
lxc-start 1277328404.433 DEBUG lxc_conf - umounted
'/mnt/sys/fs/fuse/connections'
lxc-start 1277328406.983 DEBUG lxc_conf - umounted
'/mnt/sys/kernel/debug'
lxc-start 1277328409.363 DEBUG lxc_conf - umounted
'/mnt/sys/kernel/security'
lxc-start 1277328411.663 DEBUG lxc_conf - umounted '/mnt/proc'
lxc-start 1277328413.923 DEBUG lxc_conf - umounted '/mnt/var/run'
lxc-start 1277328416.253 DEBUG lxc_conf - umounted '/mnt/var/lock'
lxc-start 1277328418.553 DEBUG lxc_conf - umounted
'/mnt/lib/init/rw'
lxc-start 1277328423.043 DEBUG lxc_conf - umounted
'/mnt/data/ftp/oktatas'
lxc-start 1277328425.313 DEBUG lxc_conf - umounted
'/mnt/data/ftp/pub'
lxc-start 1277328427.553 DEBUG lxc_conf - umounted
'/mnt/data/mailman/archives'
lxc-start 1277328429.793 DEBUG lxc_conf - umounted '/mnt/tmp'
lxc-start 1277328434.293 DEBUG lxc_conf - umounted
'/mnt/var/lib/ldap'
lxc-start 1277328436.503 DEBUG lxc_conf - umounted '/mnt/cgroup'
lxc-start 1277328438.743 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty1'
lxc-start 1277328441.063 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty2'
lxc-start 1277328443.313 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty3'
lxc-start 1277328445.653 DEBUG lxc_conf - umounted
'/mnt/data/lxc/fsn/rootfs/dev/tty4'
lxc-start 1277328450.193 DEBUG lxc_conf - umounted '/mnt/dev'
lxc-start 1277328452.443 DEBUG lxc_conf - umounted '/mnt/sys'
lxc-start 1277328454.773 DEBUG lxc_conf - umounted '/mnt/data'
lxc-start 1277328457.063 DEBUG lxc_conf - umounted '/mnt/var'
lxc-start 1277328461.613 INFO lxc_conf - lazy unmount of '/mnt'
lxc-start 1277328461.613 INFO lxc_conf - pivoted to
'/usr/lib/lxc/lxc/rootfs'
lxc-start 1277328461.613 DEBUG lxc_conf - capabilities has been
setup
lxc-start 1277328461.613 NOTICE lxc_conf - 'fsn' is setup.
lxc-start 1277328461.613 NOTICE lxc_start - exec'ing '/sbin/init'
lxc-start 1277328461.708 NOTICE lxc_start - '/sbin/init' started
with pid '24650'
lxc-start 1277328461.708 INFO lxc_console - no console specified
lxc-start 1277328461.708 DEBUG lxc_utmp - Added
'/data/lxc/fsn/rootfs/var/run' to inotifywatch
lxc-start 1277328461.919 DEBUG lxc_utmp - got inotify event 2
for utmp
lxc-start 1277328461.919 DEBUG lxc_utmp - utmp handler - run
level is S/S
So I miss something?
Console output is not defaulting to the current tty, so you have to specify

lxc-start -n fsn -s lxc.console=$(tty)

That will be fixed for 0.7.1, I will release probably tomorrow.

Thanks
-- Daniel
Serge E. Hallyn
2010-06-24 12:54:47 UTC
Permalink
Post by Daniel Lezcano
Console output is not defaulting to the current tty, so you have to specify
lxc-start -n fsn -s lxc.console=$(tty)
That will be fixed for 0.7.1, I will release probably tomorrow.
Thanks
-- Daniel
Meanwhile, fwiw, you can get a 0.7.0 package for lucid from
ppa:serge-hallyn/virt. I.e. put

deb http://ppa.launchpad.net/serge-hallyn/virt/ubuntu lucid main

in your sources.list and apt-get update && apt-get upgrade

-serge
Daniel Lezcano
2010-06-24 13:01:05 UTC
Permalink
[ ... ]
Will that also be including the ro bind mount options as discussed in
some other threads?
Yes. It is commited.
I would like to deploy and test that and test to
see if remounting still propagates ro/rw changes between containers.
Oh, right. Keep me in touch please.

Thanks.
-- Daniel
Michael H. Warfield
2010-06-24 12:50:51 UTC
Permalink
On Thu, 2010-06-24 at 08:55 +0200, Daniel Lezcano wrote:

: - snip
Post by Daniel Lezcano
Console output is not defaulting to the current tty, so you have to specify
lxc-start -n fsn -s lxc.console=$(tty)
That will be fixed for 0.7.1, I will release probably tomorrow.
Will that also be including the ro bind mount options as discussed in
some other threads? I would like to deploy and test that and test to
see if remounting still propagates ro/rw changes between containers.
Post by Daniel Lezcano
Thanks
-- Daniel
Regards,
Mike
--
Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw at WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20100624/a28ba902/attachment.pgp>
Papp Tamás
2010-06-24 19:43:03 UTC
Permalink
Post by Daniel Lezcano
Console output is not defaulting to the current tty, so you have to specify
lxc-start -n fsn -s lxc.console=$(tty)
That will be fixed for 0.7.1, I will release probably tomorrow.
I've just realized, what do you mean.

My problem is not the lack of console messages, but the functionality.
It's just not working, for example I can't ping it.

But right now this is the smaller problem. The bigger is that I cannot
stop or destroy it properly:

$ lxc-start -l DEBUG -o $(tty) -n fsn -s lxc.console=$(tty)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/1' (4/5)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/2' (6/7)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/3' (8/9)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/4' (10/11)
lxc-start 1277408070.110 INFO lxc_conf - tty's configured
lxc-start 1277408070.111 DEBUG lxc_start - sigchild handler set
lxc-start 1277408070.111 INFO lxc_start - 'fsn' is initialized
lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277408070.184 ERROR lxc_cgroup - Device or resource
busy - failed to remove previous cgroup '/cgroup/fsn'
lxc-start: Device or resource busy - failed to remove previous cgroup
'/cgroup/fsn'
lxc-start 1277408070.184 ERROR lxc_start - failed to spawn 'fsn'
lxc-start: failed to spawn 'fsn'
lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277408070.184 ERROR lxc_cgroup - Device or resource
busy - failed to remove cgroup '/cgroup/fsn'
lxc-start: Device or resource busy - failed to remove cgroup '/cgroup/fsn'


$ ls /cgroup/fsn
cgroup.procs cpuset.mem_exclusive
cpuset.sched_relax_domain_level memory.limit_in_bytes
memory.swappiness
cpuacct.stat cpuset.mem_hardwall
cpu.shares memory.max_usage_in_bytes
memory.usage_in_bytes
cpuacct.usage cpuset.memory_migrate
devices.allow memory.memsw.failcnt
memory.use_hierarchy
cpuacct.usage_percpu cpuset.memory_pressure
devices.deny memory.memsw.limit_in_bytes
net_cls.classid
cpu.rt_period_us cpuset.memory_spread_page
devices.list memory.memsw.max_usage_in_bytes
notify_on_release
cpu.rt_runtime_us cpuset.memory_spread_slab
freezer.state memory.memsw.usage_in_bytes tasks
cpuset.cpu_exclusive cpuset.mems
memory.failcnt memory.soft_limit_in_bytes
cpuset.cpus cpuset.sched_load_balance
memory.force_empty memory.stat

$ lxc-destroy -n fsn
$ ls /cgroup/fsn
cgroup.procs cpuset.mem_exclusive
cpuset.sched_relax_domain_level memory.limit_in_bytes
memory.swappiness
cpuacct.stat cpuset.mem_hardwall
cpu.shares memory.max_usage_in_bytes
memory.usage_in_bytes
cpuacct.usage cpuset.memory_migrate
devices.allow memory.memsw.failcnt
memory.use_hierarchy
cpuacct.usage_percpu cpuset.memory_pressure
devices.deny memory.memsw.limit_in_bytes
net_cls.classid
cpu.rt_period_us cpuset.memory_spread_page
devices.list memory.memsw.max_usage_in_bytes
notify_on_release
cpu.rt_runtime_us cpuset.memory_spread_slab
freezer.state memory.memsw.usage_in_bytes tasks
cpuset.cpu_exclusive cpuset.mems
memory.failcnt memory.soft_limit_in_bytes
cpuset.cpus cpuset.sched_load_balance
memory.force_empty memory.stat


I'm really confused:(

I user lxc on other Lucid servers with no problem.

tamas
Papp Tamás
2010-06-24 19:47:05 UTC
Permalink
Post by Papp Tamás
Post by Daniel Lezcano
Console output is not defaulting to the current tty, so you have to specify
lxc-start -n fsn -s lxc.console=$(tty)
That will be fixed for 0.7.1, I will release probably tomorrow.
I've just realized, what do you mean.
My problem is not the lack of console messages, but the functionality.
It's just not working, for example I can't ping it.
But right now this is the smaller problem. The bigger is that I cannot
$ lxc-start -l DEBUG -o $(tty) -n fsn -s lxc.console=$(tty)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/1' (4/5)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/2' (6/7)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/3' (8/9)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/4' (10/11)
lxc-start 1277408070.110 INFO lxc_conf - tty's configured
lxc-start 1277408070.111 DEBUG lxc_start - sigchild handler set
lxc-start 1277408070.111 INFO lxc_start - 'fsn' is initialized
lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277408070.184 ERROR lxc_cgroup - Device or resource
busy - failed to remove previous cgroup '/cgroup/fsn'
lxc-start: Device or resource busy - failed to remove previous cgroup
'/cgroup/fsn'
lxc-start 1277408070.184 ERROR lxc_start - failed to spawn 'fsn'
lxc-start: failed to spawn 'fsn'
lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277408070.184 ERROR lxc_cgroup - Device or resource
busy - failed to remove cgroup '/cgroup/fsn'
lxc-start: Device or resource busy - failed to remove cgroup '/cgroup/fsn'
$ ls /cgroup/fsn
cgroup.procs cpuset.mem_exclusive
cpuset.sched_relax_domain_level memory.limit_in_bytes
memory.swappiness
cpuacct.stat cpuset.mem_hardwall
cpu.shares memory.max_usage_in_bytes
memory.usage_in_bytes
cpuacct.usage cpuset.memory_migrate
devices.allow memory.memsw.failcnt
memory.use_hierarchy
cpuacct.usage_percpu cpuset.memory_pressure
devices.deny memory.memsw.limit_in_bytes
net_cls.classid
cpu.rt_period_us cpuset.memory_spread_page
devices.list memory.memsw.max_usage_in_bytes
notify_on_release
cpu.rt_runtime_us cpuset.memory_spread_slab
freezer.state memory.memsw.usage_in_bytes tasks
cpuset.cpu_exclusive cpuset.mems
memory.failcnt memory.soft_limit_in_bytes
cpuset.cpus cpuset.sched_load_balance
memory.force_empty memory.stat
$ lxc-destroy -n fsn
$ ls /cgroup/fsn
cgroup.procs cpuset.mem_exclusive
cpuset.sched_relax_domain_level memory.limit_in_bytes
memory.swappiness
cpuacct.stat cpuset.mem_hardwall
cpu.shares memory.max_usage_in_bytes
memory.usage_in_bytes
cpuacct.usage cpuset.memory_migrate
devices.allow memory.memsw.failcnt
memory.use_hierarchy
cpuacct.usage_percpu cpuset.memory_pressure
devices.deny memory.memsw.limit_in_bytes
net_cls.classid
cpu.rt_period_us cpuset.memory_spread_page
devices.list memory.memsw.max_usage_in_bytes
notify_on_release
cpu.rt_runtime_us cpuset.memory_spread_slab
freezer.state memory.memsw.usage_in_bytes tasks
cpuset.cpu_exclusive cpuset.mems
memory.failcnt memory.soft_limit_in_bytes
cpuset.cpus cpuset.sched_load_balance
memory.force_empty memory.stat
I'm really confused:(
I user lxc on other Lucid servers with no problem.
BTW, I don't know whether it matters or not, this morning:

Jun 24 09:24:24 sopranos kernel: [142852.638965] BUG: unable to handle
kernel paging request at ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142852.643127] IP:
[<ffffffff812b4045>] kref_put+0x25/0x70
Jun 24 09:24:24 sopranos kernel: [142852.643127] PGD 1003067 PUD 1004067
PMD 0
Jun 24 09:24:24 sopranos kernel: [142852.643127] Oops: 0002 [#14] SMP
Jun 24 09:24:24 sopranos kernel: [142852.643127] last sysfs file:
/sys/devices/platform/i5k_amb.0/temp4_alarm
Jun 24 09:24:24 sopranos kernel: [142852.643127] CPU 5
Jun 24 09:24:24 sopranos kernel: [142852.643127] Modules linked in:
bridge stp xfs exportfs i5000_edac edac_core i5k_amb fbcon tileblit font
bitblit softcursor vga16fb vgastate lp serio_raw shpchp parport raid10
raid456 async_raid6_recov async_pq raid6_pq async_xor async_memcpy
async_tx raid1 raid0 multipath linear dm_raid45 usbhid hid tg3 ahci xor
Jun 24 09:24:24 sopranos kernel: [142852.643127] Pid: 31123, comm:
apparmor_parser Tainted: G D 2.6.32-22-server #36-Ubuntu
ProLiant ML150 G3
Jun 24 09:24:24 sopranos kernel: [142852.643127] RIP:
0010:[<ffffffff812b4045>] [<ffffffff812b4045>] kref_put+0x25/0x70
Jun 24 09:24:24 sopranos kernel: [142852.643127] RSP:
0018:ffff88012cdf9df8 EFLAGS: 00010206
Jun 24 09:24:24 sopranos kernel: [142852.643127] RAX: 00000000ffffffa3
RBX: ffffffffffffffb3 RCX: ffff88001402a800
Jun 24 09:24:24 sopranos kernel: [142852.643127] RDX: ffff8800abeaff00
RSI: ffffffff81280ca0 RDI: ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142852.643127] RBP: ffff88012cdf9e08
R08: 0000000000000000 R09: 0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] R10: 0000000000000005
R11: 0000000000000000 R12: ffffffff81280ca0
Jun 24 09:24:24 sopranos kernel: [142852.643127] R13: ffff88012cdf9f48
R14: 0000000000000003 R15: ffffffffffffffa3
Jun 24 09:24:24 sopranos kernel: [142852.643127] FS:
00007f46c405d6f0(0000) GS:ffff880006740000(0000) knlGS:0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] CS: 0010 DS: 0000 ES:
0000 CR0: 000000008005003b
Jun 24 09:24:24 sopranos kernel: [142852.643127] CR2: ffffffffffffffb3
CR3: 0000000169409000 CR4: 00000000000006e0
Jun 24 09:24:24 sopranos kernel: [142852.643127] DR0: 0000000000000000
DR1: 0000000000000000 DR2: 0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] DR3: 0000000000000000
DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jun 24 09:24:24 sopranos kernel: [142852.643127] Process apparmor_parser
(pid: 31123, threadinfo ffff88012cdf8000, task ffff8801673596f0)
Jun 24 09:24:24 sopranos kernel: [142852.643127] Stack:
Jun 24 09:24:24 sopranos kernel: [142852.643127] ffff880126290000
ffff880126290000 ffff88012cdf9ec8 ffffffff812807c9
Jun 24 09:24:24 sopranos kernel: [142852.643127] <0> ffff88012cdf9e48
ffff88012cdf9e58 0000000000004f29 ffffffffffffffe3
Jun 24 09:24:24 sopranos kernel: [142852.643127] <0> 0100000000004f29
0000000000000000 0000000000004f29 ffffffffffffffa3
Jun 24 09:24:24 sopranos kernel: [142852.643127] Call Trace:
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff812807c9>]
aa_interface_replace_profiles+0x99/0x440
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff810397a9>] ?
default_spin_lock_flags+0x9/0x10
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff8127ca2c>]
aa_profile_load+0x3c/0x60
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff81143418>]
vfs_write+0xb8/0x1a0
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff8155a033>] ?
do_page_fault+0x153/0x3b0
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff81143c81>]
sys_write+0x51/0x80
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff810131b2>]
system_call_fastpath+0x16/0x1b
Jun 24 09:24:24 sopranos kernel: [142852.643127] Code: 0f ae f0 c9 c3 90
55 48 89 e5 48 83 ec 10 48 85 f6 48 89 1c 24 4c 89 64 24 08 48 89 fb 49
89 f4 74 3e 48 81 fe 00 45 13 81 74 22 <f0> ff 0b 0f 94 c2 31 c0 84 d2
74 0b 48 89 df 41 ff d4 b8 01 00
Jun 24 09:24:24 sopranos kernel: [142852.643127] RIP
[<ffffffff812b4045>] kref_put+0x25/0x70
Jun 24 09:24:24 sopranos kernel: [142853.183771] RSP <ffff88012cdf9df8>
Jun 24 09:24:24 sopranos kernel: [142853.183771] CR2: ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142853.220129] ---[ end trace
4ca3b524d48547b8 ]---
Jun 24 09:24:24 sopranos kernel: [142853.255238] type=1505
audit(1277364264.611:36581): operation="profile_replace"
info="unsupported interface version" pid=31129



Thank you,

tamas
Daniel Lezcano
2010-06-24 20:46:30 UTC
Permalink
On 06/24/2010 09:47 PM, Papp Tam?s wrote:

[ ... ]
Post by Papp Tamás
Jun 24 09:24:24 sopranos kernel: [142852.638965] BUG: unable to handle
kernel paging request at ffffffffffffffb3
[<ffffffff812b4045>] kref_put+0x25/0x70
Jun 24 09:24:24 sopranos kernel: [142852.643127] PGD 1003067 PUD
1004067 PMD 0
Jun 24 09:24:24 sopranos kernel: [142852.643127] Oops: 0002 [#14] SMP
/sys/devices/platform/i5k_amb.0/temp4_alarm
Jun 24 09:24:24 sopranos kernel: [142852.643127] CPU 5
bridge stp xfs exportfs i5000_edac edac_core i5k_amb fbcon tileblit
font bitblit softcursor vga16fb vgastate lp serio_raw shpchp parport
raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor
async_memcpy async_tx raid1 raid0 multipath linear dm_raid45 usbhid
hid tg3 ahci xor
apparmor_parser Tainted: G D 2.6.32-22-server #36-Ubuntu
ProLiant ML150 G3
0010:[<ffffffff812b4045>] [<ffffffff812b4045>] kref_put+0x25/0x70
0018:ffff88012cdf9df8 EFLAGS: 00010206
Jun 24 09:24:24 sopranos kernel: [142852.643127] RAX: 00000000ffffffa3
RBX: ffffffffffffffb3 RCX: ffff88001402a800
Jun 24 09:24:24 sopranos kernel: [142852.643127] RDX: ffff8800abeaff00
RSI: ffffffff81280ca0 RDI: ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142852.643127] RBP: ffff88012cdf9e08
R08: 0000000000000000 R09: 0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] R10: 0000000000000005
R11: 0000000000000000 R12: ffffffff81280ca0
Jun 24 09:24:24 sopranos kernel: [142852.643127] R13: ffff88012cdf9f48
R14: 0000000000000003 R15: ffffffffffffffa3
00007f46c405d6f0(0000) GS:ffff880006740000(0000) knlGS:0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] CS: 0010 DS: 0000
ES: 0000 CR0: 000000008005003b
Jun 24 09:24:24 sopranos kernel: [142852.643127] CR2: ffffffffffffffb3
CR3: 0000000169409000 CR4: 00000000000006e0
Jun 24 09:24:24 sopranos kernel: [142852.643127] DR0: 0000000000000000
DR1: 0000000000000000 DR2: 0000000000000000
Jun 24 09:24:24 sopranos kernel: [142852.643127] DR3: 0000000000000000
DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jun 24 09:24:24 sopranos kernel: [142852.643127] Process
apparmor_parser (pid: 31123, threadinfo ffff88012cdf8000, task
ffff8801673596f0)
Jun 24 09:24:24 sopranos kernel: [142852.643127] ffff880126290000
ffff880126290000 ffff88012cdf9ec8 ffffffff812807c9
Jun 24 09:24:24 sopranos kernel: [142852.643127] <0> ffff88012cdf9e48
ffff88012cdf9e58 0000000000004f29 ffffffffffffffe3
Jun 24 09:24:24 sopranos kernel: [142852.643127] <0> 0100000000004f29
0000000000000000 0000000000004f29 ffffffffffffffa3
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff812807c9>]
aa_interface_replace_profiles+0x99/0x440
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff810397a9>]
? default_spin_lock_flags+0x9/0x10
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff8127ca2c>]
aa_profile_load+0x3c/0x60
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff81143418>]
vfs_write+0xb8/0x1a0
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff8155a033>]
? do_page_fault+0x153/0x3b0
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff81143c81>]
sys_write+0x51/0x80
Jun 24 09:24:24 sopranos kernel: [142852.643127] [<ffffffff810131b2>]
system_call_fastpath+0x16/0x1b
Jun 24 09:24:24 sopranos kernel: [142852.643127] Code: 0f ae f0 c9 c3
90 55 48 89 e5 48 83 ec 10 48 85 f6 48 89 1c 24 4c 89 64 24 08 48 89
fb 49 89 f4 74 3e 48 81 fe 00 45 13 81 74 22 <f0> ff 0b 0f 94 c2 31 c0
84 d2 74 0b 48 89 df 41 ff d4 b8 01 00
Jun 24 09:24:24 sopranos kernel: [142852.643127] RIP
[<ffffffff812b4045>] kref_put+0x25/0x70
Jun 24 09:24:24 sopranos kernel: [142853.183771] RSP <ffff88012cdf9df8>
Jun 24 09:24:24 sopranos kernel: [142853.183771] CR2: ffffffffffffffb3
Jun 24 09:24:24 sopranos kernel: [142853.220129] ---[ end trace
4ca3b524d48547b8 ]---
Jun 24 09:24:24 sopranos kernel: [142853.255238] type=1505
audit(1277364264.611:36581): operation="profile_replace"
info="unsupported interface version" pid=31129
Ouch ! It's very difficult to say if it's related or not. But at the
first glance, I would say it is not related to the containers as it's
the "apparmor_parser" process which caused this kernel BUG.
In any case, it is probable your kernel is not in a consistent state.

IMO you should consider sending this BUG to kernel-team at lists.ubuntu.com
(assuming it occurred on lucid).

Thanks
-- Daniel
Daniel Lezcano
2010-06-24 20:38:26 UTC
Permalink
Post by Papp Tamás
Post by Daniel Lezcano
Console output is not defaulting to the current tty, so you have to specify
lxc-start -n fsn -s lxc.console=$(tty)
That will be fixed for 0.7.1, I will release probably tomorrow.
I've just realized, what do you mean.
My problem is not the lack of console messages, but the functionality.
It's just not working, for example I can't ping it.
But right now this is the smaller problem. The bigger is that I cannot
$ lxc-start -l DEBUG -o $(tty) -n fsn -s lxc.console=$(tty)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/1' (4/5)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/2' (6/7)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/3' (8/9)
lxc-start 1277408070.110 DEBUG lxc_conf - allocated pty
'/dev/pts/4' (10/11)
lxc-start 1277408070.110 INFO lxc_conf - tty's configured
lxc-start 1277408070.111 DEBUG lxc_start - sigchild handler set
lxc-start 1277408070.111 INFO lxc_start - 'fsn' is initialized
lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277408070.184 ERROR lxc_cgroup - Device or resource
busy - failed to remove previous cgroup '/cgroup/fsn'
lxc-start: Device or resource busy - failed to remove previous cgroup
'/cgroup/fsn'
lxc-start 1277408070.184 ERROR lxc_start - failed to spawn 'fsn'
lxc-start: failed to spawn 'fsn'
lxc-start 1277408070.184 DEBUG lxc_cgroup - using cgroup
mounted at '/cgroup'
lxc-start 1277408070.184 ERROR lxc_cgroup - Device or resource
busy - failed to remove cgroup '/cgroup/fsn'
lxc-start: Device or resource busy - failed to remove cgroup
'/cgroup/fsn'
That's probably mean the container is already running. Did you checked
with lxc-ps --name fsn ?
Post by Papp Tamás
$ lxc-destroy -n fsn
That will destroy the container, remove the container's configuration,
rootfs, etc ...
The cgroup is destroyed when the container exits not with lxc-destroy.

At this point, you will have to create your container again.
Papp Tamás
2010-06-24 21:16:16 UTC
Permalink
Post by Daniel Lezcano
That's probably mean the container is already running. Did you checked
with lxc-ps --name fsn ?
Well, you are right. But shouldn't it also show it with lxc-ps --lxc ?
Post by Daniel Lezcano
Post by Papp Tamás
$ lxc-destroy -n fsn
That will destroy the container, remove the container's configuration,
rootfs, etc ...
The cgroup is destroyed when the container exits not with lxc-destroy.
I just write it, as nothing cat help.
Post by Daniel Lezcano
At this point, you will have to create your container again.
Of course I did, but lxc-stop don't stop it.

Also I tried with 0.7.1.


[..]

I'v just successfully stopped the container after trying it a couple of
times.

Finally I could start it successfully.

Thank for your help,

tamas
Daniel Lezcano
2010-06-24 21:20:51 UTC
Permalink
Post by Papp Tamás
Post by Daniel Lezcano
That's probably mean the container is already running. Did you checked
with lxc-ps --name fsn ?
Well, you are right. But shouldn't it also show it with lxc-ps --lxc ?
Yes, correct. The --lxc option will show all the containers.

[ ... ]
Post by Papp Tamás
Finally I could start it successfully.
Cool :)
Post by Papp Tamás
Thank for your help,
You are welcome.

-- Daniel

Loading...