Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use ubuntu 12.04 server with all updates I was restarted lxc container by a command in shell: "reboot"

lxc version is: 1.0.0~alpha1.0+master~20130930-1830-0ubuntu1~ppa1~precise1

#uname -a
Linux zeus 3.5.0-34-generic #55~precise1-Ubuntu SMP Fri Jun 7 16:25:50 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

And it was not started.

Log file of this lxc container is:

tail -f /var/log/lxc/redmine.log 
      lxc-start 1380778101.754 ERROR    lxc_conf - failed to setup the console for 'redmine'
      lxc-start 1380778101.754 ERROR    lxc_start - failed to setup the container
      lxc-start 1380778101.755 ERROR    lxc_sync - invalid sequence number 1. expected 2
      lxc-start 1380778101.790 ERROR    lxc_start - failed to spawn 'redmine'
      lxc-start 1380778107.825 ERROR    lxc_conf - Read-only file system - error unlinking /usr/lib/x86_64-linux-gnu/lxc/dev/console

I create a new container, after that:

lxc-create -t ubuntu -n redmine-dev; And cannot start

Start it and log file is:

cat /var/log/lxc/redmine-dev.log lxc-start 1380787652.125 ERROR lxc_conf - No such file or directory - failed to mount '/sys/fs/pstore' on '/usr/lib/x86_64-linux-gnu/lxc/sys/fs/pstore'

share|improve this question
    
Excusme for previous not full comment, lxc container 'redmine-dev' started, despite the error: No such file or directory - failed to mount '/sys/fs/pstore' –  Vladimir Skubriev Oct 3 '13 at 8:52
    
Try this: sudo apt-get install apparmor-utils && sudo aa-complain /usr/bin/lxc-start –  Willem Oct 18 '13 at 14:04
    
I removed container that does not starting. Thank you for tip. I will use this in future. After this command I need to test a start. And If a start is OK, then switch to enforce mode via sudo aa-enforce /usr/bin/lxc-start? –  Vladimir Skubriev Oct 21 '13 at 6:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.