[Lxc-users] lxc-start on openvz tempate

Daniel Lezcano dlezcano at fr.ibm.com
Wed Jun 23 09:55:47 UTC 2010


On 06/23/2010 11:50 AM, Papp Tamás wrote:
>
> 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?

What version of lxc are you using ?




More information about the lxc-users mailing list