{"id":15,"date":"2013-06-01T06:57:05","date_gmt":"2013-06-01T06:57:05","guid":{"rendered":"https:\/\/ghodechhap.net\/blog\/?p=15"},"modified":"2013-06-01T06:58:24","modified_gmt":"2013-06-01T06:58:24","slug":"an-i686-container","status":"publish","type":"post","link":"https:\/\/ghodechhap.net\/blog\/?p=15","title":{"rendered":"An i686 container"},"content":{"rendered":"<p>Creating an <em>i686<\/em> container is equally easy as <a href=\"https:\/\/ghodechhap.net\/blog\/?p=4\" target=\"_blank\">creating an\u00a0<em>x86_64<\/em> container<\/a>. Only difference is it needs a separate <em>pacman.conf<\/em> and mirrorlist that points to <em>i686<\/em> instead of <em>x86_64<\/em>.<\/p>\n<p>Following commands can be used to create a separate <em>pacman.conf<\/em>.<\/p>\n<pre>#\u00a0sed 's\/Architecture = auto\/Architecture = i686\/g' \/etc\/pacman.conf \u00a0&gt; pacman.conf<\/pre>\n<pre>#\u00a0grep -v ^# \/etc\/pacman.d\/mirrorlist|cat -s|sed s'\/x86_64\/i686\/g' &gt; mirrorlist<\/pre>\n<p>or<\/p>\n<p>&nbsp;<\/p>\n<pre>#\u00a0grep -v ^# \/etc\/pacman.d\/mirrorlist|cat -s|sed s'\/\\$arch\/i686\/g' &gt; mirrorlist<\/pre>\n<p>Update the <em>pacman.conf<\/em> to use the new mirrorlist.<\/p>\n<p>And create the container as follows<\/p>\n<pre># lxc-create -n i6861 -t archlinux -- -P net-tools,openssh,vi,squid -p \/data\/shridhar\/lxc\/i6861 \u00a0-c \/root\/pacman.i686.conf<\/pre>\n<p>After the container is created, replace its <em>pacman.conf<\/em> and <em>mirrorlist<\/em> with the ones used during the creation, so that it can continue to use the correct setting.<\/p>\n<p>Rest of the steps are <a href=\"https:\/\/ghodechhap.net\/blog\/?p=4\">similar<\/a> to the <em>x86_64<\/em> container.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating an i686 container is equally easy as creating an\u00a0x86_64 container. Only difference is it needs a separate pacman.conf and mirrorlist that points to i686 instead of x86_64. Following commands can be used to create a separate pacman.conf. #\u00a0sed &#8216;s\/Architecture = auto\/Architecture = i686\/g&#8217; \/etc\/pacman.conf \u00a0&gt; pacman.conf #\u00a0grep -v ^# \/etc\/pacman.d\/mirrorlist|cat -s|sed s&#8217;\/x86_64\/i686\/g&#8217; &gt; mirrorlist [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[5,4,3],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-technology","category-uncategorized","tag-archlinux","tag-container","tag-lxc"],"_links":{"self":[{"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":5,"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghodechhap.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}