[Lxc-users] lxc doesn't work on Fedora 13

Daniel Lezcano daniel.lezcano at free.fr
Fri Sep 17 18:22:34 UTC 2010


On 09/17/2010 10:27 AM, Scott Bronson wrote:
> I have lxc working pretty well on my Ubuntu Lucid box.  Now I'm trying
> to get it to work on my Fedora 13 laptop but I can't seem to get it to
> connect to any guest consoles.
>
> Here's an example:
>
>       [root at lyra-f13 ubu-guest]# lxc-start -f config -n ubu-guest -o
> $(tty) -l DEBUG
>        lxc-start 1284711204.849 DEBUG    lxc_conf - allocated pty
> '/dev/pts/8' (4/5)
> ...
>        lxc-start 1284711204.884 NOTICE   lxc_start - exec'ing '/sbin/init'
>        lxc-start 1284711204.886 NOTICE   lxc_start - '/sbin/init'
> started with pid '14166'
>        lxc-start 1284711204.886 DEBUG    lxc_utmp - Added
> 'rootfs/var/run' to inotifywatch
>
> Things look OK but when I try to connect from another terminal:
>
>      [root at lyra-f13 bronson]# lxc-console -n ubu-guest
>      Type<Ctrl+a q>  to exit the console
>
> Nothing happens.  It just hangs until I exit the console (well,
> characters are echoed back).
>
> This appears on the debug console when I try to connect.
>
>        lxc-start 1284711279.657 DEBUG    lxc_commands - peer has disconnected
>
>
> I rsynced this guest to my Ubuntu Lucid box and everything works
> great.  lxc-start fires right up, and lxc-console connects and
> immediately prompts for a login.
>
> Any idea why lxc isn't working in F13?  This happens for all guests
> that I try -- Ubuntu, Debian, and Busybox, all of which work on Lucid.
>   I'm using stock distro kernels.  Thanks!
>    

Hmm. ok. I will look at that - as soon as I finished to download the iso ;)

did anyone experienced the same problem with another distros ? opensuse, 
gentoo, or archlinux ?

Thanks

   -- Daniel


> Failing, Fedora 13 log:
>
> [root at lyra-f13 ubu-guest]# lxc-start -n ubu-guest -f config -o $(tty) -l DEBUG
>        lxc-start 1284711865.511 DEBUG    lxc_conf - allocated pty
> '/dev/pts/5' (4/5)
>        lxc-start 1284711865.512 DEBUG    lxc_conf - allocated pty
> '/dev/pts/6' (6/7)
>        lxc-start 1284711865.512 DEBUG    lxc_conf - allocated pty
> '/dev/pts/7' (8/9)
>        lxc-start 1284711865.512 DEBUG    lxc_conf - allocated pty
> '/dev/pts/8' (10/11)
>        lxc-start 1284711865.512 INFO     lxc_conf - tty's configured
>        lxc-start 1284711865.512 DEBUG    lxc_console - using '/dev/tty'
> as console
>        lxc-start 1284711865.512 DEBUG    lxc_start - sigchild handler set
>        lxc-start 1284711865.512 INFO     lxc_start - 'ubu-guest' is initialized
>        lxc-start 1284711865.518 DEBUG    lxc_conf - instanciated veth
> 'veth8b9zhC/vethdzJ3Mu', index is '60'
>        lxc-start 1284711865.523 DEBUG    lxc_cgroup - using cgroup
> mounted at '/cgroup'
>        lxc-start 1284711865.523 DEBUG    lxc_cgroup - '/cgroup/14448'
> renamed to '/cgroup/ubu-guest'
>        lxc-start 1284711865.527 DEBUG    lxc_conf - move 'virbr0' to '14448'
>        lxc-start 1284711865.527 INFO     lxc_conf - 'ubu-guest'
> hostname has been setup
>        lxc-start 1284711865.531 DEBUG    lxc_conf - 'eth0' has been setup
>        lxc-start 1284711865.531 INFO     lxc_conf - network has been setup
>        lxc-start 1284711865.531 DEBUG    lxc_cgroup - using cgroup
> mounted at '/cgroup'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.deny' set to 'a'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:3 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:5 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 5:1 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 5:0 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 4:0 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 4:1 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:9 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:8 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 136:* rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 5:2 rwm'
>        lxc-start 1284711865.531 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 254:0 rwm'
>        lxc-start 1284711865.531 INFO     lxc_conf - cgroup has been setup
>        lxc-start 1284711865.531 DEBUG    lxc_conf - mounted proc on
> rootfs/proc, type proc
>        lxc-start 1284711865.531 DEBUG    lxc_conf - mounted devpts on
> rootfs/dev/pts, type devpts
>        lxc-start 1284711865.532 DEBUG    lxc_conf - mounted sysfs on
> rootfs/sys, type sysfs
>        lxc-start 1284711865.532 INFO     lxc_conf - mount points have been setup
>        lxc-start 1284711865.532 INFO     lxc_conf - mount points have been setup
>        lxc-start 1284711865.532 INFO     lxc_conf - console has been setup
>        lxc-start 1284711865.532 INFO     lxc_conf - 4 tty(s) has been setup
>        lxc-start 1284711865.532 DEBUG    lxc_conf - mounted 'rootfs' on
> '/usr/lib64/lxc/rootfs'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - mountpoint for old
> rootfs is '/usr/lib64/lxc/rootfs/mnt'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - pivot_root syscall
> to '/usr/lib64/lxc/rootfs' successful
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted '/mnt/selinux'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted '/mnt/dev/pts'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted '/mnt/dev/shm'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted '/mnt/proc/bus/usb'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted
> '/mnt/proc/sys/fs/binfmt_misc'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted '/mnt/sys'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted
> '/mnt/home/bronson/.gvfs'
>        lxc-start 1284711865.532 DEBUG    lxc_conf - umounted '/mnt/cgroup'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/var/lib/nfs/rpc_pipefs'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/proc'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/pts'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/sys'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/console'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty1'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty2'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty3'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty4'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted '/mnt/dev'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted '/mnt/proc'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted '/mnt/home'
>        lxc-start 1284711865.533 DEBUG    lxc_conf - umounted '/mnt'
>        lxc-start 1284711865.533 INFO     lxc_conf - pivoted to
> '/usr/lib64/lxc/rootfs'
>        lxc-start 1284711865.533 INFO     lxc_conf - created new pts instance
>        lxc-start 1284711865.533 DEBUG    lxc_conf - capabilities has been setup
>        lxc-start 1284711865.533 NOTICE   lxc_conf - 'ubu-guest' is setup.
>        lxc-start 1284711865.533 NOTICE   lxc_start - exec'ing '/sbin/init'
>        lxc-start 1284711865.534 NOTICE   lxc_start - '/sbin/init'
> started with pid '14448'
>        lxc-start 1284711865.534 DEBUG    lxc_utmp - Added
> 'rootfs/var/run' to inotifywatch
>
>
>
> Successful, Ubuntu Lucid log:
>
> root at eva-lucid:~/ubu-guest# lxc-start -n ubu-guest -f config -o $(tty) -l DEBUG
>        lxc-start 1284711866.097 DEBUG    lxc_conf - allocated pty
> '/dev/pts/6' (4/5)
>        lxc-start 1284711866.097 DEBUG    lxc_conf - allocated pty
> '/dev/pts/7' (6/7)
>        lxc-start 1284711866.097 DEBUG    lxc_conf - allocated pty
> '/dev/pts/8' (8/9)
>        lxc-start 1284711866.097 DEBUG    lxc_conf - allocated pty
> '/dev/pts/9' (10/11)
>        lxc-start 1284711866.097 INFO     lxc_conf - tty's configured
>        lxc-start 1284711866.097 DEBUG    lxc_console - using '/dev/tty'
> as console
>        lxc-start 1284711866.097 DEBUG    lxc_start - sigchild handler set
>        lxc-start 1284711866.097 INFO     lxc_start - 'ubu-guest' is initialized
>        lxc-start 1284711866.100 DEBUG    lxc_conf - instanciated veth
> 'vethaSb2ab/vethd4dBB6', index is '30'
>        lxc-start 1284711866.113 DEBUG    lxc_cgroup - using cgroup
> mounted at '/cgroup'
>        lxc-start 1284711866.113 DEBUG    lxc_cgroup - '/cgroup/13966'
> renamed to '/cgroup/ubu-guest'
>        lxc-start 1284711866.141 DEBUG    lxc_conf - move 'virbr0' to '13966'
>        lxc-start 1284711866.141 INFO     lxc_conf - 'ubu-guest'
> hostname has been setup
>        lxc-start 1284711866.142 DEBUG    lxc_conf - 'eth0' has been setup
>        lxc-start 1284711866.142 INFO     lxc_conf - network has been setup
>        lxc-start 1284711866.143 DEBUG    lxc_cgroup - using cgroup
> mounted at '/cgroup'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.deny' set to 'a'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:3 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:5 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 5:1 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 5:0 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 4:0 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 4:1 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:9 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 1:8 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 136:* rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 5:2 rwm'
>        lxc-start 1284711866.143 DEBUG    lxc_conf - cgroup
> 'devices.allow' set to 'c 254:0 rwm'
>        lxc-start 1284711866.143 INFO     lxc_conf - cgroup has been setup
>        lxc-start 1284711866.143 DEBUG    lxc_conf - mounted proc on
> rootfs/proc, type proc
>        lxc-start 1284711866.143 DEBUG    lxc_conf - mounted devpts on
> rootfs/dev/pts, type devpts
>        lxc-start 1284711866.143 DEBUG    lxc_conf - mounted sysfs on
> rootfs/sys, type sysfs
>        lxc-start 1284711866.143 INFO     lxc_conf - mount points have been setup
>        lxc-start 1284711866.143 INFO     lxc_conf - mount points have been setup
>        lxc-start 1284711866.144 INFO     lxc_conf - console has been setup
>        lxc-start 1284711866.144 INFO     lxc_conf - 4 tty(s) has been setup
>        lxc-start 1284711866.144 DEBUG    lxc_conf - mounted 'rootfs' on
> '/usr/lib/lxc'
>        lxc-start 1284711866.144 DEBUG    lxc_conf - mountpoint for old
> rootfs is '/usr/lib/lxc/mnt'
>        lxc-start 1284711866.144 DEBUG    lxc_conf - pivot_root syscall
> to '/usr/lib/lxc' successful
>        lxc-start 1284711866.385 DEBUG    lxc_conf - umounted '/mnt/dev/pts'
>        lxc-start 1284711866.457 DEBUG    lxc_conf - umounted '/mnt/dev/shm'
>        lxc-start 1284711866.625 DEBUG    lxc_conf - umounted
> '/mnt/sys/fs/fuse/connections'
>        lxc-start 1284711866.714 DEBUG    lxc_conf - umounted
> '/mnt/sys/kernel/debug'
>        lxc-start 1284711866.782 DEBUG    lxc_conf - umounted
> '/mnt/sys/kernel/security'
>        lxc-start 1284711866.942 DEBUG    lxc_conf - umounted
> '/mnt/proc/sys/fs/binfmt_misc'
>        lxc-start 1284711867.026 DEBUG    lxc_conf - umounted '/mnt/var/run'
>        lxc-start 1284711867.134 DEBUG    lxc_conf - umounted '/mnt/var/lock'
>        lxc-start 1284711867.246 DEBUG    lxc_conf - umounted '/mnt/lib/init/rw'
>        lxc-start 1284711867.358 DEBUG    lxc_conf - umounted '/mnt/cgroup'
>        lxc-start 1284711867.590 DEBUG    lxc_conf - umounted
> '/mnt/home/bronson/.gvfs'
>        lxc-start 1284711867.666 DEBUG    lxc_conf - umounted '/mnt/bulk'
>        lxc-start 1284711867.758 DEBUG    lxc_conf - umounted '/mnt/media/cassie'
>        lxc-start 1284711867.842 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/proc'
>        lxc-start 1284711867.922 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/pts'
>        lxc-start 1284711868.013 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/sys'
>        lxc-start 1284711868.097 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/console'
>        lxc-start 1284711868.173 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty1'
>        lxc-start 1284711868.269 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty2'
>        lxc-start 1284711868.397 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty3'
>        lxc-start 1284711868.501 DEBUG    lxc_conf - umounted
> '/mnt/root/ubu-guest/rootfs/dev/tty4'
>        lxc-start 1284711868.729 DEBUG    lxc_conf - umounted '/mnt/dev'
>        lxc-start 1284711868.810 DEBUG    lxc_conf - umounted '/mnt/sys'
>        lxc-start 1284711868.890 DEBUG    lxc_conf - umounted '/mnt/proc'
>        lxc-start 1284711868.950 DEBUG    lxc_conf - umounted '/mnt/home'
>        lxc-start 1284711869.042 DEBUG    lxc_conf - umounted '/mnt'
>        lxc-start 1284711869.042 INFO     lxc_conf - pivoted to '/usr/lib/lxc'
>        lxc-start 1284711869.130 INFO     lxc_conf - created new pts instance
>        lxc-start 1284711869.130 DEBUG    lxc_conf - capabilities has been setup
>        lxc-start 1284711869.130 NOTICE   lxc_conf - 'ubu-guest' is setup.
>        lxc-start 1284711869.130 NOTICE   lxc_start - exec'ing '/sbin/init'
>        lxc-start 1284711869.130 NOTICE   lxc_start - '/sbin/init'
> started with pid '13966'
>        lxc-start 1284711869.130 DEBUG    lxc_utmp - Added
> 'rootfs/var/run' to inotifywatch
>        lxc-start 1284711869.178 DEBUG    lxc_utmp - got inotify event
> 256 for sshd.pid
>        lxc-start 1284711869.178 DEBUG    lxc_utmp - got inotify event 2
> for sshd.pid
>   * Setting up resolvconf...                                              [ OK ]
>        lxc-start 1284711869.225 DEBUG    lxc_utmp - got inotify event 2 for utmp
>        lxc-start 1284711869.225 DEBUG    lxc_utmp - utmp handler - run
> level is /2
>        lxc-start 1284711869.225 DEBUG    lxc_utmp - Container running
>        lxc-start 1284711869.225 DEBUG    lxc_utmp - got inotify event 2 for utmp
>        lxc-start 1284711869.226 DEBUG    lxc_utmp - utmp handler - run
> level is /2
>        lxc-start 1284711869.226 DEBUG    lxc_utmp - Container running
>        lxc-start 1284711869.233 DEBUG    lxc_utmp - got inotify event 2 for utmp
>        lxc-start 1284711869.233 DEBUG    lxc_utmp - utmp handler - run
> level is /2
>        lxc-start 1284711869.234 DEBUG    lxc_utmp - Container running
>        lxc-start 1284711869.234 DEBUG    lxc_utmp - got inotify event 2 for utmp
>        lxc-start 1284711869.234 DEBUG    lxc_utmp - utmp handler - run
> level is /2
>        lxc-start 1284711869.234 DEBUG    lxc_utmp - Container running
>
> Ubuntu 10.04 LTS ubu-guest /dev/console
>
>
>    





More information about the lxc-users mailing list