[Lxc-users] Fedora 16 - starting containers on a fresh host

István Király - LaKing d250 at yahoo.com
Wed Nov 23 23:48:08 UTC 2011


Hi folks.

I installed lxc with git, and compiled it. I use the templates to create the rootfs, the lxc_sshd and lxc_fedora.
Defaults with libwirt installed. Fedora 16 x64, kernel 3.1.1-2


While running lxc-fedora I get these error messages:

Copying rootfs to /var/lib/lxc/fedora//rootfs ...sed: can't read /var/lib/lxc/fedora//rootfs/etc/rc.sysinit: No such file or directory
sed: can't read /var/lib/lxc/fedora//rootfs/etc/rc.d/rc.sysinit: No such file or directory
error reading information on service udev-post: No such file or directory


lxc-sshd gives no error messages, lxc-checkconfig reports everything ok.

When I run lxc-start, I get some errors and the system becomes sooner or later unstabile. 

(Fried the system a few times ... but Im very routined now with the reinstallation of the OS .)


fc - fedora core

      lxc-start 1322085117.642 ERROR    lxc_conf - Device or resource busy - failed to mount 'devpts' on '/usr/local/lib/lxc/rootfs//dev/pts'
      lxc-start 1322085117.642 ERROR    lxc_conf - failed to setup the mounts for 'fc'
      lxc-start 1322085117.642 ERROR    lxc_start - failed to setup the container
      lxc-start 1322085117.644 ERROR    lxc_sync - invalid sequence number 1. expected 2
      lxc-start 1322085117.644 ERROR    lxc_start - failed to spawn 'fc'

lc - linux console

      lxc-start 1322085154.944 ERROR    lxc_conf - No such file or directory - failed to mount 'tmpfs' on '/usr/local/lib/lxc/rootfs//var/run/sshd'

...

      lxc-start 1322084913.168 DEBUG    lxc_conf - mounted '/usr' on '/usr/local/lib/lxc/rootfs//usr', type 'none'
      lxc-start 1322084913.168 DEBUG    lxc_conf - remounting /sbin on /usr/local/lib/lxc/rootfs//sbin to respect bind or remount options
      lxc-start 1322084913.168 DEBUG    lxc_conf - mounted '/sbin' on '/usr/local/lib/lxc/rootfs//sbin', type 'none'
      lxc-start 1322084913.168 DEBUG    lxc_conf - mounted 'tmpfs' on '/usr/local/lib/lxc/rootfs//var/run/sshd', type 'tmpfs'
      lxc-start 1322084913.168 ERROR    lxc_conf - No such file or directory - failed to mount '/lxc/templates/lxc-sshd' on '/usr/local/lib/lxc/rootfs//sbin/init'
      lxc-start 1322084913.168 ERROR    lxc_conf - failed to setup the mount entries for 'lc'
      lxc-start 1322084913.168 ERROR    lxc_start - failed to setup the container
      lxc-start 1322084913.168 ERROR    lxc_sync - invalid sequence number 1. expected 2
      lxc-start 1322084913.169 ERROR    lxc_start - failed to spawn 'lc'
      lxc-start 1322084913.169 DEBUG    lxc_cgroup - destroying /sys/fs/cgroup/systemd lc

...

And ofc, no containers are running.

Can someone point me to the right direction, what am I missing / what can I do to get my first containers running?

Thank you.
István Király


LaKing at D250.hu


D250 Laboratories
www.D250.hu




More information about the lxc-users mailing list