{"id":727,"date":"2016-08-07T12:52:28","date_gmt":"2016-08-07T03:52:28","guid":{"rendered":"https:\/\/www.agent-grow.com\/self20percent\/?p=727"},"modified":"2016-11-29T14:19:30","modified_gmt":"2016-11-29T05:19:30","slug":"install-lxc-to-centos7-on-raspberry-pi-3-model-b","status":"publish","type":"post","link":"https:\/\/www.agent-grow.com\/self20percent\/2016\/08\/07\/install-lxc-to-centos7-on-raspberry-pi-3-model-b\/","title":{"rendered":"Raspberry Pi 3 Model B\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fCentOS7\u306bLXC\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b"},"content":{"rendered":"<h1>\u793e\u5185Lab\u306a\u3089\u72ec\u7acb\u3057\u305f\u74b0\u5883\u304c\u6b32\u3057\u3044\u3088\u306d<\/h1>\n<p>\u793e\u5185Lab\u3060\u3068\u3044\u3044\u3064\u3064\u3001\u5358\u4e00\u306e\u74b0\u5883\u3057\u304b\u306a\u3044\u3068\u4e0d\u4fbf\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u7406\u60f3\u3067\u3044\u3048\u3070\u3001\u793e\u54e1\u3072\u3068\u308a\u3072\u3068\u308a\u306b\u5c02\u7528\u306e\u74b0\u5883\u3092\u4f5c\u308a\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u305d\u3093\u306a\u91d1\u3082\u306a\u3051\u308c\u3070\u6642\u9593\u3082\u306a\u3044\u308f\u3051\u3067\u2026\u2026\u3002<\/p>\n<p>\u305d\u306e\u3042\u305f\u308a\u3092\u306a\u3093\u3068\u304b\u3057\u3088\u3046\u3068\u304a\u3082\u3063\u305f\u3089\u3001\u4eee\u60f3\u5316\u6280\u8853\u3092\u4f7f\u3046\u306e\u304c\u3044\u3044\u611f\u3058\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u69d8\u3005\u306a\u4eee\u60f3\u5316\u6280\u8853\u304c\u3042\u308b\u4e2d\u3067\u3001Raspberry Pi\u3068\u3044\u3046\u6bd4\u8f03\u7684\u4f4e\u30b9\u30da\u30c3\u30af\u306a\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u4f7f\u3048\u308b\u30e2\u30ce\u3068\u3044\u3048\u3070\u2026\u2026\u3002\u30b3\u30f3\u30c6\u30ca\u7cfb\u306e\u30d6\u30c4\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u306e\u306a\u304b\u3067LXC\uff08Linux Container\uff09\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3088\uff01\u2026\u2026\u3063\u3066\u304a\u8a71\u3067\u3059\u3002<\/p>\n<h1>\u3068\u306f\u3044\u3048\u2026\u2026<\/h1>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3067\u3059\u306d\u2026\u2026\u3002Raspberry Pi\u3067LXC\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u306e\u306f\u3061\u3087\u3063\u3068\u5927\u5909\u3067\u3059\u3002<\/p>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u306a\u304b\u3063\u305f\u308a\u3068\u304b\u2026\u2026\u3002\u3044\u308d\u3044\u308d\u3068\u624b\u52d5\u3067\u4f5c\u3063\u305f\u308a\u3057\u306a\u304d\u3083\u3044\u3051\u306a\u3044\u3068\u304b\u2026\u2026\u3002\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3057\u306a\u304d\u3083\u3044\u3051\u306a\u3044\u3068\u304b\u2026\u2026\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f\u3001\u305d\u306e\u8a66\u884c\u932f\u8aa4\u306e\u8a18\u9332\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u3084\u3063\u305f\u6d41\u308c\u3092\u305d\u306e\u307e\u307e\u66f8\u3044\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u8a66\u884c\u932f\u8aa4\u306e\u30ed\u30b0\u3092\u5143\u306b\u518d\u69cb\u6210\u3057\u3066\u3044\u308b\u90e8\u5206\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002\u306e\u3067\u3001\u7d30\u304b\u3044\u6240\u3067\u300c\u3053\u308c\u306f\u3061\u304c\u3046\u3088\uff01\u300d\u3063\u3066\u3068\u3053\u308d\u304c\u51fa\u3066\u304f\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u3042\u305f\u308a\u306f\u30e1\u30f3\u30b4\u30e1\u30f3\u30b4(\u00b4\u30fb\u03c9\u30fb\uff40)<\/p>\n<h1>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u307e\u305aLXC\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u305f\u3081\u306b\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u30b3\u30de\u30f3\u30c9\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3002\u4f9d\u5b58\u95a2\u4fc2\u4e0a\u3001\u307b\u304b\u306b\u3082\u3044\u304f\u3064\u304b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ sudo yum install gcc make openssl openssl-libs openssl-devel rsync libcap libcap-dev\r\n<\/pre>\n<h1>lxc\u306etarball\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u30d3\u30eb\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001LXC\u306e\u30bd\u30fc\u30b9\u3092\u53d6\u5f97\u3057\u3066\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3067\u5165\u624b\u3067\u304d\u307e\u3059\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528\u306eURL\u306f<a href=\"https:\/\/linuxcontainers.org\/ja\/lxc\/downloads\/#tarball\">Linux Containers\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u3057\u3066\u3001\u6700\u65b0\u7248\u306e\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u308b\u3068\u5409\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 ~]$ curl -O 'https:\/\/linuxcontainers.org\/downloads\/lxc\/lxc-2.0.3.tar.gz'\r\n\uff08\u7565\uff09\r\n&#x5B;user1@centos-rpi3 ~]$ tar xzf .\/lxc-2.0.3.tar.gz\r\n&#x5B;user1@centos-rpi3 ~]$ ls\r\nlxc-2.0.3  lxc-2.0.3.tar.gz\r\n&#x5B;user1@centos-rpi3 ~]$ cd .\/lxc-2.0.3\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ ls\r\nAUTHORS       COPYING    INSTALL      Makefile.am  NEWS    aclocal.m4  config     configure.ac  hooks      lxc.spec     src\r\nCONTRIBUTING  ChangeLog  MAINTAINERS  Makefile.in  README  autogen.sh  configure  doc           lxc.pc.in  lxc.spec.in  templates\r\n<\/pre>\n<p>\u5c55\u958b\u3057\u305f\u3089\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ .\/configure --prefix=\/usr\/local\/lxc\r\n\uff08\u7565\uff09\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ make &amp;&amp; sudo make install\r\n\uff08\u7565\uff09\r\n<\/pre>\n<p>\u3053\u308c\u3067\u300c\/usr\/local\/lxc\u300d\u914d\u4e0b\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u4e00\u5f0f\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<\/p>\n<h1>\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u53c2\u7167\u30d1\u30b9\u8a2d\u5b9a<\/h1>\n<p>\u305f\u3063\u305f\u4eca\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fLXC\u3067\u3059\u304c\u3001\u751f\u6210\u3055\u308c\u305f\u5171\u6709\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u8a8d\u8b58\u3055\u305b\u3066\u3042\u3052\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u9806\u756a\u306b\u30bf\u30a4\u30d7\u3057\u3066\u3044\u3051\u3070OK\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo su -c 'echo &quot;\/usr\/local\/lxc\/lib\/&quot; &gt; \/etc\/ld.so.conf.d\/lxc.conf'\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ cat \/etc\/ld.so.conf.d\/lxc.conf\r\n\/usr\/local\/lxc\/lib\/\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo ldconfig\r\n<\/pre>\n<h1>\u30e9\u30ba\u30d1\u30a4\u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u8a2d\u5b9a<\/h1>\n<p>\u3053\u306e\u307e\u307e\u3060\u3068\u307e\u3060\u52d5\u304b\u306a\u3044\u306e\u3067\u2026\u2026\u3002\u5fc5\u8981\u306a\u4f5c\u696d\u306f\u307e\u3060\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u30b3\u30f3\u30c6\u30ca\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u30e9\u30ba\u30d1\u30a4\u7528\u306e\u3082\u306e\u304c\u306a\u3044\u306e\u3067\u3001\u305d\u3044\u3064\u3092\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3063\u3066\u3082\u30bc\u30ed\u304b\u3089\u3067\u306f\u306a\u304f\u3001\u65e2\u5b58\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u3061\u3087\u3053\u3063\u3068\u5909\u66f4\u3059\u308b\u3060\u3051\u3067OK\u3063\u307d\u3044\u3067\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ ls \/usr\/local\/lxc\/share\/lxc\/templates\/\r\nlxc-alpine    lxc-archlinux  lxc-centos  lxc-debian    lxc-fedora  lxc-openmandriva  lxc-oracle  lxc-slackware   lxc-sshd    lxc-ubuntu-cloud\r\nlxc-altlinux  lxc-busybox    lxc-cirros  lxc-download  lxc-gentoo  lxc-opensuse      lxc-plamo   lxc-sparclinux  lxc-ubuntu\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo cp -p \/usr\/local\/lxc\/share\/lxc\/templates\/lxc-centos \/usr\/local\/lxc\/share\/lxc\/templates\/lxc-centos-rpi\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ diff \/usr\/local\/lxc\/share\/lxc\/templates\/lxc-centos \/usr\/local\/lxc\/share\/lxc\/templates\/lxc-centos-rpi\r\n439c439,440\r\n&amp;lt; mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$release&amp;amp;arch=$basearch&amp;amp;repo=os\r\n---\r\n&gt; #mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$release&amp;amp;arch=$basearch&amp;amp;repo=os\r\n&gt; baseurl=http:\/\/mirror.centos.org\/altarch\/$release\/os\/$basearch\/\r\n443c444,445\r\n&amp;lt; mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$release&amp;amp;arch=$basearch&amp;amp;repo=updates\r\n---\r\n&gt; #mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$release&amp;amp;arch=$basearch&amp;amp;repo=updates\r\n&gt; baseurl=http:\/\/mirror.centos.org\/altarch\/$release\/updates\/$basearch\/\r\n<\/pre>\n<p>\u540c\u68b1\u3055\u308c\u3066\u3044\u308bCentOS\u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5225\u540d\u3067\u30b3\u30d4\u30fc\u3057\u3001URL\u3092\u30e9\u30ba\u30d1\u30a4\u306e\u3082\u306e\u306b\u66f8\u304d\u63db\u3048\u308b\u2026\u2026\u3063\u3066\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u306d\u3002<\/p>\n<h1>\u30d6\u30ea\u30c3\u30b8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c7\u30d0\u30a4\u30b9\u306e\u4f5c\u6210<\/h1>\n<p>\u7d9a\u3044\u3066\u3001LXC\u304c\u4f7f\u3046\u30d6\u30ea\u30c3\u30b8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7528\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo nmcli connection add type bridge ifname lxcbr0\r\n\u63a5\u7d9a 'bridge-lxcbr0' \uff08\u7565\uff09 \u304c\u6b63\u5e38\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo nmcli connection modify bridge-lxcbr0 bridge.stp no\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo nmcli connection modify bridge-lxcbr0 ipv4.method manual ipv4.address &quot;192.0.2.100\/24&quot; ipv4.gateway 192.0.2.1 ipv4.dns 192.0.2.1\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo nmcli connection add type bridge-slave ifname eth0 master bridge-lxcbr0\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo nmcli connection del eth0 &amp;&amp; sudo shutdown -r now\r\nConnection 'eth0' \uff08\u7565\uff09 successfully deleted.\r\n<\/pre>\n<p>\u3053\u308c\u3067\u30d6\u30ea\u30c3\u30b8\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u6210\u3057\u3001IP\u30a2\u30c9\u30ec\u30b9\u7b49\u3005\u3092\u8a2d\u5b9a\u3057\u3001\u65e2\u5b58\u306e\u3044\u3089\u306a\u304f\u306a\u3063\u305f\u300ceth0\u300d\u30c7\u30d0\u30a4\u30b9\u3092\u524a\u9664\u3059\u308b\u3063\u3066\u6d41\u308c\u3067\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30bf\u30a4\u30d7\u3059\u308b\u3068\u30cd\u30c3\u30c8\u63a5\u7d9a\u304c\u5207\u308c\u308b\u306e\u3067\u3001\u518d\u5ea6\u7e4b\u304e\u306a\u304a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo nmcli connection\r\n\u540d\u524d               UUID                                  \u30bf\u30a4\u30d7          \u30c7\u30d0\u30a4\u30b9\r\nbridge-slave-eth0  \uff08\u7565\uff09                                  802-3-ethernet  eth0\r\nbridge-lxcbr0      \uff08\u7565\uff09                                  bridge          lxcbr0\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ ip addr\r\n\uff08\u7565\uff09\r\n2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast master lxcbr0 state UP qlen 1000\r\n    link\/ether \uff08\u7565\uff09 brd ff:ff:ff:ff:ff:ff\r\n7: lxcbr0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP qlen 1000\r\n\uff08\u7565\uff09\r\n    inet 192.0.2.100\/24 brd 255.255.255.0 scope global lxcbr0\r\n       valid_lft forever preferred_lft forever\r\n\uff08\u7565\uff09\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30d6\u30ea\u30c3\u30b8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7528\u30c7\u30d0\u30a4\u30b9\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002<\/p>\n<h1>\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210\u3068\u524a\u9664<\/h1>\n<p>\u3053\u3053\u307e\u3067\u3084\u3063\u305f\u3089\u5f8c\u306f\u8d77\u52d5\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\uff01<\/p>\n<p>\u307e\u305a\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u5143\u306b\u3001\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo \/usr\/local\/lxc\/bin\/lxc-create -t centos -n test\r\n\uff08\u7565\uff09\r\n<\/pre>\n<p>\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u524a\u9664\u3059\u308b\u3068\u304d\u306f\u3053\u3061\u3089\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3  lxc-2.0.3]$ sudo \/usr\/local\/lxc\/bin\/lxc-destroy -n test\r\n\uff08\u7565\uff09\r\n<\/pre>\n<p>\u300c-n\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u5f8c\u308d\u306b\u306f\u3001\u4efb\u610f\u306e\u540d\u79f0\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3092\u4ed8\u3051\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3059\u306d\u3002<\/p>\n<h1>\u30b3\u30f3\u30c6\u30ca\u306e\u8d77\u52d5\u3068\u63a5\u7d9a<\/h1>\n<p>\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u304c\u3067\u304d\u305f\u3089\u3001\u305d\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u500b\u5225\u306e\u4eee\u60f3\u74b0\u5883\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3067\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3  lxc-2.0.3]$ sudo \/usr\/local\/lxc\/bin\/lxc-start -n test\r\n\uff08\u7565\uff09\r\n<\/pre>\n<p>\u8d77\u52d5\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3078\u306f\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;user1@centos-rpi3 lxc-2.0.3]$ sudo \/usr\/local\/lxc\/bin\/lxc-console -n test\r\n\r\nConnected to tty 1\r\n                  Type &lt;Ctrl+a q&gt; to exit the console, &lt;Ctrl+a Ctrl+a&gt; to enter Ctrl+a itself\r\n\r\nCentOS Linux 7 (Core)\r\nKernel 4.4.16-v7+ on an armv7l\r\n\r\ntest login: root\r\nPassword:\r\nYou are required to change your password immediately (root enforced)\r\nChanging password for root.\r\n(current) UNIX password:\r\nNew password:\r\nRetype new password:\r\n&#x5B;root@test ~]# ping agent-grow.com\r\nPING agent-grow.com (163.44.168.161) 56(84) bytes of data.\r\n64 bytes from v163-44-168-161.a065.g.tyo1.static.cnode.io (163.44.168.161): icmp_seq=1 ttl=47 time=16.9 ms\r\n64 bytes from v163-44-168-161.a065.g.tyo1.static.cnode.io (163.44.168.161): icmp_seq=2 ttl=47 time=14.4 ms\r\n64 bytes from v163-44-168-161.a065.g.tyo1.static.cnode.io (163.44.168.161): icmp_seq=3 ttl=47 time=14.4 ms\r\n64 bytes from v163-44-168-161.a065.g.tyo1.static.cnode.io (163.44.168.161): icmp_seq=4 ttl=47 time=14.2 ms\r\n64 bytes from v163-44-168-161.a065.g.tyo1.static.cnode.io (163.44.168.161): icmp_seq=5 ttl=47 time=14.3 ms\r\n^C\r\n--- agent-grow.com ping statistics ---\r\n5 packets transmitted, 5 received, 0% packet loss, time 4005ms\r\nrtt min\/avg\/max\/mdev = 14.255\/14.904\/16.938\/1.028 ms\r\n&#x5B;root@test ~]#\r\n<\/pre>\n<p>\u63a5\u7d9a\u3059\u308b\u3068\u3001root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306d\u3002<\/p>\n<p>\u3061\u3083\u3093\u3068\u6b63\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u306f\u72ec\u7acb\u3057\u305fLinux Box\u3068\u3057\u3066\u3064\u304b\u3048\u307e\u3059\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3082DHCP\u3067\u52dd\u624b\u306b\u30a2\u30c9\u30ec\u30b9\u53d6\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u666e\u901a\u306b\u4f7f\u3048\u307e\u3059\u306d\u3002<\/p>\n<h1>\u3053\u308c\u3067\u793e\u5185Lab\u306e\u5b8c\u6210\u3067\u3059\uff01<\/h1>\n<p>\u3063\u3066\u3053\u3068\u3067\u3001\u3053\u3093\u306a\u611f\u3058\u3067\u4eee\u60f3\u74b0\u5883\u3082\u6e96\u5099\u3067\u304d\u305f\u306e\u3067\u3002<\/p>\n<p>\u9577\u3089\u304f\u9023\u8f09\u3057\u3066\u304d\u305f\u793e\u5185Lab\u3092\u4f5c\u308d\u3046\u30b7\u30ea\u30fc\u30ba\u3082\u4e00\u6bb5\u843d\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>\u7d30\u304b\u3044\u90e8\u5206\u3092\u8abf\u6574\u3057\u3066\u3001\u793e\u5185\u306b\u5468\u77e5\u3057\u3066\u3001\u5e0c\u671b\u8005\u6bce\u306b\u4eee\u60f3\u74b0\u5883\u4f5c\u3063\u3066\u2026\u2026\u3002\u3044\u3088\u3044\u3088\u5168\u793e\u306b\u516c\u958b\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3084\u3063\u305f\u306d\uff01(o\u309c\u25bd\u309c)o<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u793e\u5185Lab\u306a\u3089\u72ec\u7acb\u3057\u305f\u74b0\u5883\u304c\u6b32\u3057\u3044\u3088\u306d \u793e\u5185Lab\u3060\u3068\u3044\u3044\u3064\u3064\u3001\u5358\u4e00\u306e\u74b0\u5883\u3057\u304b\u306a\u3044\u3068\u4e0d\u4fbf\u3067\u3059\u3088\u306d\u3002 \u7406\u60f3\u3067\u3044\u3048\u3070\u3001\u793e\u54e1\u3072\u3068\u308a\u3072\u3068\u308a\u306b\u5c02\u7528\u306e\u74b0\u5883\u3092\u4f5c\u308a\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u305d\u3093\u306a\u91d1\u3082\u306a\u3051\u308c\u3070\u6642\u9593\u3082\u306a\u3044\u308f\u3051\u3067\u2026\u2026\u3002 \u305d\u306e\u3042\u305f\u308a\u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":595,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[12,77,35,36],"class_list":["post-727","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-centos","tag-lxc","tag-raspberry-pi","tag-lab"],"jetpack_featured_media_url":"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2016\/07\/DSC_1499.jpg","jetpack_shortlink":"https:\/\/wp.me\/p7Bq4F-bJ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":0,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media\/595"}],"wp:attachment":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/tags?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}