{"id":2341,"date":"2014-09-23T08:17:52","date_gmt":"2014-09-23T07:17:52","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=2341"},"modified":"2014-11-04T21:21:23","modified_gmt":"2014-11-04T20:21:23","slug":"lxc-under-debian-flood-of-init-id-4-respawning-too-fast-disabled-for-5-minutes-in-the-syslog-and-large-varlogwtmp","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2014\/09\/lxc-under-debian-flood-of-init-id-4-respawning-too-fast-disabled-for-5-minutes-in-the-syslog-and-large-varlogwtmp\/","title":{"rendered":"lxc under debian: flood of &#8220;init: Id &#8220;4&#8221; respawning too fast: disabled for 5 minutes&#8221; in the syslog and large \/var\/log\/wtmp"},"content":{"rendered":"<p><a href=\"http:\/\/docker.io\">docker<\/a> seems to be the new fad&#8230; which i don&#8217;t use at all; but i&#8217;m quite happy with lxc and have it deployed in the production on couple of servers.<br \/>\n<!--more--><\/p>\n<p>when i use it out of the box on debian there are few issues. one of them &#8211; guests have syslog flooded with repeated messages:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nSep 23 06:41:01 xxx init: Id &quot;6&quot; respawning too fast: disabled for 5 minutes\r\nSep 23 06:41:01 xxx init: Id &quot;5&quot; respawning too fast: disabled for 5 minutes\r\nSep 23 06:41:01 xxx init: Id &quot;4&quot; respawning too fast: disabled for 5 minutes\r\nSep 23 06:41:02 xxx init: Id &quot;1&quot; respawning too fast: disabled for 5 minutes\r\nSep 23 06:41:02 xxx init: Id &quot;3&quot; respawning too fast: disabled for 5 minutes\r\nSep 23 06:41:02 xxx init: Id &quot;2&quot; respawning too fast: disabled for 5 minutes\r\n<\/pre>\n<p>and \/var\/log\/wtmp is counted in hunderds of megabytes instead of few hundreds kb. solution &#8211; edit \/etc\/inittab of each of the guests and change from<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n1:2345:respawn:\/sbin\/getty 38400 tty1\r\n2:23:respawn:\/sbin\/getty 38400 tty2\r\n3:23:respawn:\/sbin\/getty 38400 tty3\r\n4:23:respawn:\/sbin\/getty 38400 tty4\r\n5:23:respawn:\/sbin\/getty 38400 tty5\r\n6:23:respawn:\/sbin\/getty 38400 tty6\r\n<\/pre>\n<p>to<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n1:2345:respawn:\/sbin\/getty 38400 console\r\nc1:23:respawn:\/sbin\/getty 38400 console\r\n#3:23:respawn:\/sbin\/getty 38400 tty3\r\n#4:23:respawn:\/sbin\/getty 38400 tty4\r\n#5:23:respawn:\/sbin\/getty 38400 tty5\r\n#6:23:respawn:\/sbin\/getty 38400 tty6\r\n<\/pre>\n<p>unfortunately i don&#8217;t remember where \/ how exactly did i discover it. possibly via <a href=\"https:\/\/petermolnar.eu\/linux-tech-coding\/lxc-on-debian-wheezy\/\">this<\/a> or similar tutorial. <\/p>\n<p>once we are at it.. there was another problem i faced &#8211; syslog messages were corrupted on the host machine until i&#8217;ve followed <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/lxc\/+bug\/1003888\">this<\/a> and reconfigured all lxc guests to have <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlxc.cap.drop = sys_module mac_admin syslog\r\n<\/pre>\n<p>instead of <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlxc.cap.drop = sys_module\r\n<\/pre>\n<p>in their definitions.<\/p>\n<p>and &#8211; based on <a href=\"http:\/\/www.stefan-seelmann.de\/wiki\/lxc\">this post<\/a> &#8211; modified \/etc\/rsyslog.conf of each of the guests and comment out:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ModLoad imklog\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>docker seems to be the new fad&#8230; which i don&#8217;t use at all; but i&#8217;m quite happy with lxc and have it deployed in the production on couple of servers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,51],"tags":[85],"class_list":["post-2341","post","type-post","status-publish","format-standard","hentry","category-tech","category-unimportant","tag-lxc"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=2341"}],"version-history":[{"count":4,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2341\/revisions"}],"predecessor-version":[{"id":2392,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/2341\/revisions\/2392"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=2341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=2341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=2341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}