LXC 0.8.0 and kernel 3.3+ startup issue

Dedicated for Linux & related opensource software

LXC 0.8.0 and kernel 3.3+ startup issue

文章 #1  未閱讀文章PoP » 2012-11-08 01:53

Recompile my Gentoo system after motherboard failure is a pain in the a$$... LXC doesn't startup let my home sites down for a week!

Log message
代碼: 選擇全部
      lxc-start $PID.218 ERROR    lxc_cgroup - Invalid argument - failed to create '/sys/fs/cgroup/net_prio//lxc/sqlsvr' directory
      lxc-start $ID.223 ERROR    lxc_start - failed to spawn 'sqlsvr'
      lxc-start $ID.227 WARN     lxc_cgroup - failed to open directory: No such file or directory
      lxc-start $ID.227 ERROR    lxc_cgroup - No such file or directory - failed to remove cgroup '/sys/fs/cgroup/net_prio//lxc/sqlsvr'

Daily dig on the 'Net doesn't find anyone have the same issue, that's odd!

Have to moved back the web server/sql server service to host with all the config files updates, ah!


With a little luck, I found this today. I think this may be already fixed in kernel 3.5 but why not give it a shot?

After disable Network Priority cgroup in kernel, recompile and reboot, LXC start without error with new container created for testing.

Bingo!

Here comes the fix highlight:

Disable kernel Network Priority cgroup
代碼: 選擇全部
CONFIG_NETPRIO_CGROUP=n

There will be some other long nights before I can fully restored my system, but LXC will be off from my todo list soon! :)
當流赤足蹋澗石,水聲激激風吹衣。
人生如此自可樂,豈必局束為人鞿?
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42

Re: LXC 0.8.0 and kernel 3.3+ startup issue

文章 #2  未閱讀文章PoP » 2012-11-09 12:14

Updates

log message
代碼: 選擇全部
lxc-console: Input/output error - failed to read


lxc-console only works if root password is not set!

lxc-console issue fix from Gentoo Wiki:

Edit $container/etc/inittab
代碼: 選擇全部
c1:12345:respawn:/sbin/agetty 38400 tty1 linux


The startup log still show error:
代碼: 選擇全部
      lxc-start $ID.902 WARN     lxc_console - console input disabled
      lxc-start $ID.902 WARN     lxc_start - invalid pid for SIGCHLD
當流赤足蹋澗石,水聲激激風吹衣。
人生如此自可樂,豈必局束為人鞿?
頭像
PoP
 
文章: 13617
註冊時間: 2006-12-06 03:42


回到 Linux

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron