]
トップ «前の日(10-29) 最新 次の日(10-31)» 追記

Yukiharu YABUKI の tDiary



このtDiaryを検索します。

2004-10-30

_ 広島から戻る

あびこの家に戻ってから,梅田の大学院のオープンソース論へ参加

_ めずらしく

カラオケにてみなさんの熱唱を拝見する.

_ 発掘

文字コードにとって真の国際化とは何か (http://www.kobysh.com/tlk/standardization/199711-bit-first.html)

Unicode (ユニコード) と中日韓 (CJK) エンコーディングとの相互運用の問題(http://www.debian.or.jp/~kubota/unicode-symbols.html)

(特にDebianとは限らないが)i18nについて世界のdeveloperにたいして言わなければいけない時に忘れてはいけないポイント(http://ukai.org/wiliki/wiliki.cgi?Debian:i18n&l=jp)


2006-10-30

_ Munich Migrating To Linux

slashdot.orgの記事 (http://linux.slashdot.org/article.pl?sid=06/10/28/226211&from=rss)

_ 大阪、東京、星空を見ながら移動

(http://www.jr-odekake.net/train/sunriseizumo_seto/index.html)

_ 関西オープンソース ステージ出演者募集

(http://k-of.jp/2006/stage.html)


2007-10-30

_ 税務書類を提出

ようやく、税務書類を提出し、自分の控えと税理士さんへの控えの印を貰ってくる。役所ってなんでWeb Pageに書いてある事があんなに判りにくい風になっているのか。

_ 関西三都をまわる

外出するついでに用事を詰めたら、関西の京都、神戸、大阪を巡るというハットトリックになってしまった。

_ JR杉本町駅にて

再来日したての大学院時代の同期を囲んで、宴会をしつつmainland chinaや香港などの状況を聞く。


2008-10-30

_ ラダーおよびPCLと呼ばれる世界

プログラミングというよりは、ステートマシンを操るような感じ。(http://wwwf2.mitsubishielectric.co.jp/melfansweb/plc_fx/lineup/index_j.htm)の製品をみるとイメージがわくだろうか。

_ Debian GNU/Linux Lenny + Lenovo ThinkPad X200 で無線LAN

これから扱う内容は、(http://www.thinkwiki.org/wiki/Installing_Debian_on_an_X200)で書いてある内容を試行錯誤した結果です。

結果から先に言うと、Lenovo ThinkPad X200 で無線が使えるようになりました。元の情報からの差分としては、Firmwareのダウンロードと、指定してある所からカーネルを2.6.27を使えば、無線が利用できています。

unstableよりもより不安程度が高い、experimentalからカーネルを引っ張ってくるので、Debian GNU/Linux 初心者にはお勧めしません。とはいえ、人柱でも新しいものを使いたい人には楽しいかと思います。(というか楽しかったです。)

_ Raidは、Raid 6ないし、Raid 1が良いんジャマイカ

Some RAID Issues(http://etbe.coker.com.au/2008/10/14/some-raid-issues/)


2011-10-30

_ [Debian] ノートPCで、LXCを運用するときのTIPS

最近のNote PCには無線が付いており、様々な場所でネットワークを利用できるようになっている。しかし世の中で流通しているlxcのブリッジセットアップでは、ノートでLXCを運用する時に便利な状態を紹介していない。そのため快適なLXCライフを過ごすのに情報を探していた。2011/10/31 リンクすべきURLを取り違えていたので更新。

注意点

以下の記事は、lxc-jp メーリングリストの方より教えていただいた、(http://s3hh.wordpress.com/2011/05/17/lxc-containers-on-a-host-with-wireless/)を元にしています。しかしながら、lxc自体の設定は、Debian wikiの記述をベースしており、コンテナの置き場所、管理方法、ブリッジの扱い方、iptables、sysctlコマンドやその意味については知っているモノとして、説明はしません。dnsmasqについても上記の記事で触れられている一部分について、自分用に引用はしますが、これは私が教えを請うためであり、情報を頂いた人へフィードバックをするために書いています。

成果

元記事の内容を理解してセットアップしたので、eth0およびwlan0がdhcpであっても、lxcで作成したコンテナが外界と通信できるようになった。ただしIP masq配下にいるので、ノートPC以外からは、ノートPC内のlxcbr0のネットワークへルーティングするか、ssh proxy などを使うのが良いかもしれない。

また思いつきで検証してないが、IP alias 0:2とかでlxcbr0をつなげるといいのかもとは思いました。

上記の記事のコメント

元記事を読んで、スクリプトを見た時に何をやっているか、コピペで使うのは気持ち悪いので、大まかな動作について確認しておきたい。

lxcbr0
新しく作成するブリッジインターフェースであり、dnsmasqによってlxc用ネットワークを作る。上記の例では192.168.30.*のネットワークであり、IP Masqの先である。
iptables
コネクショントラックを用いて、新しい接続、または関連する接続を通すようにする。
dnsmasq
DHCPサーバであるが、DHCPのパケットが他のネットワークに届いてしまうと、ネットワークが大混乱するのでlxcbr0だけにアドレスを配る。
また、上記の例では192.168.30.*の範囲をDHCPとしているが、固定にしたい場合は、/var/lib/lxc/vm1/configの設定の lxc.network.ipv4 と組み合わせると良いかも知れない。ただ、左記の場合は自分の手でコンテナ内に入り route add default gw xxx.xxx.xxx.xxx などのコマンドでゲートウェイを設定する必要があるかもしれない。そのあたりはnetstat -rnをすれば分かる話なので適宜確認してやってください。
       -z, --bind-interfaces
              On systems which support it, dnsmasq binds the wildcard address, even when it is listening on
              only  some  interfaces.  It  then  discards requests that it shouldn't reply to. This has the
              advantage of working even when interfaces come and go and change address. This option  forces
              dnsmasq  to really bind only the interfaces it is listening on. About the only time when this
              is useful is when running another nameserver (or another instance of  dnsmasq)  on  the  same
              machine.  Setting  this  option also enables multiple instances of dnsmasq which provide DHCP
              service to run in the same machine.
       -a, --listen-address= ipaddr 
              Listen on the given IP address(es). Both --interface  and  --listen-address  options  may  be
              given,  in  which  case  the  set  of  both interfaces and addresses is used. Note that if no
              --interface option is given, but --listen-address is, dnsmasq will not  automatically  listen
              on  the  loopback  interface.  To achieve this, its IP address, 127.0.0.1, must be explicitly
              given as a --listen-address option.
       -I, --except-interface= interface name
              Do not listen on the specified interface. Note that the order of --listen-address --interface
              and  --except-interface  options  does  not matter and that --except-interface options always
              override the others.
       --dhcp-no-override
              Disable re-use of the DHCP servername and filename fields as extra option space. If  it  can,
              dnsmasq  moves  the  boot server and filename information (from dhcp-boot) out of their dedi‐
              cated fields into DHCP options. This make extra  space  available  in  the  DHCP  packet  for
              options  but  can,  rarely, confuse old or broken clients. This flag forces "simple and safe"
              behaviour to avoid problems in such a case.
brctlコマンド
設定時にlxcbr0ができていないと、インターフェースの初期化で失敗するので、brctl show
yelona:~# brctl show
bridge name     bridge id               STP enabled     interfaces
lxcbr0          8000.deb7b0a746f9       no              vethjBak6Q
pan0            8000.000000000000       no
で、確認してから、インタフェースをupすること。もし、ないなら、brctl addbr lxcbr0 で作りましょう