ページ更新: 2006-05-25 (木) (5360日前)
(2004-07-11 作成) [編集]ダウンロード #SourceForge より、 coLinux / 0.6.1-2.4.26 / coLinux-0.6.1.exe をダウンロードする。 (2004-07-19 URLと図を追加) [編集] インストーラを実行 #coLinux-0.6.1.exe を実行すると、インストーラが起動する。 [編集]Welcome to the coLinux 0.6.1 Setup Wizard #[編集]License Agreement #[編集]Choose Components #すでに Ethereal、Packetyzer、windump を使うのに WinPCap を入れてあるので、 WinPCap を選択してみた。 んが、すでに WinPCap 3.0 入れてあったのだが、ここでチェック入れてしまっても よかったのだろうか? [編集]Choose Install Location #[編集]Get WinPCAP #…お、WinPCap は別途、自分でダウンロード、インストールする必要があるのね。 だったら問題なし。 [編集]Obtain a coLinux root file system image #小さいし、勝手がわかってるので Debian にしてみる。 [編集]Installing #あ、サイトは Random じゃないほうがよかったかな。 Kernel は 2.4.X なんだろうか、とか思うが、小さいのでそのまま続行してしまう。 [編集]Installing #[編集]Completing the Cooperative Linux 0.6.1 Setup Wizard #[編集]設定〜起動まで #[編集]ファイル一覧 #[編集]README #READMEくらいは読んでみる。 coLinux - co Linux Running NOTE: If upgrading, please backup or copy your current default.colinux.XML file before installing! アップグレードするときは、インストールする前に現在の default.colinux.XML をバックアップしておいてください。 To run Cooperative Linux, please follow these instructions before trying to run anything. Cooperative Linux を実行するためには、なにか動かす前に、どうか以下の指示に従ってください。 (と書いてあるけど、1〜4 まではやっちゃった……) あと、Bridge の場合の設定(たぶん WinPCap を使うとき)の colinux.xml の設定が書いてあった。 [編集]default.colinux.xml #デフォルトはこうなっていた。 <?xml version="1.0" encoding="UTF-8"?> <colinux> <!-- This line needs to point to your root file system. For example change "root_fs" to the name of the Debian image. Inside coLinux it will be /dev/cobd0 --> <block_device index="0" path="\DosDevices\c:\coLinux\root_fs" enabled="true" /> <!-- This line can specify a swap file if you wish, or an additional image file, it will /dev/cobd1. Additional block_devices can be specified in the same manner by increasing the index --> <block_device index="1" path="\DosDevices\c:\coLinux\swap_device" enabled="true" /> <!-- bootparams allows you to pass kernel boot parameters --> <bootparams>root=/dev/cobd0</bootparams> <!-- image allows you to specify the kernel to boot --> <image path="vmlinux" /> <!-- this line allows you to specify the amount of memory available to coLinux --> <memory size="64" /> <!-- This allows you to modify networking parameters, see the README or website for more information --> <network index="0" type="tap" /> </colinux>[編集] ネットワークデバイス名を調べる #WinPCap を使う場合、README によるとたぶんデバイス名が必要。 で調べ方も README に書いてある。 こうやって調べるようだ。 デバイス名は「Intel(R) PRO/100 VE Network Connection」になるわけで。 ちなみに、windump や ipconfig でも調べられる。 > windump -D 1.\Device\NPF_{B5D3F50F-59E8-4A27-87F2-F092D64440E7} (VMware Virtual Ethernet Adapter) 2.\Device\NPF_{EF44F577-BB1E-4CD5-818A-247527D0288B} (VMware Virtual Ethernet Adapter) 3.\Device\NPF_{92BAD6B5-3613-4586-8D22-67D616EC9B73} (Intel(R) PRO/100 VE Network Connection) > ipconfig /all (略) Ethernet adapter ローカル エリア接続: Connection-specific DNS Suffix . : private.discypus.jp Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection (略)[編集] root fs を用意する #インストーラがダウンロードした Debian-3.0r0.ext3.1gb.bz2 を展開して、Debian-3.0r0.ext3.1gb を取り出す。 lhaz とか cygwin の bzip2 でよかろう。 (今回は lhaz version 1.13 使った。あ、アップデートしなきゃ……) これは C:\Program Files\coLinux ではなく、c:\coLinux に置くことにする。coLinuxをアップグレードするときに上書きしたらいやだから。 [編集]設定ファイル colinux.xml を作る #つぎに、default.colinux.xml をコピーして colinux.xml を作る。 こういう風に修正してみた。 こちらも c:\coLinux に置くことにした。 <?xml version="1.0" encoding="UTF-8"?> <colinux> <!-- This line needs to point to your root file system. For example change "root_fs" to the name of the Debian image. Inside coLinux it will be /dev/cobd0 --> <block_device index="0" path="\DosDevices\c:\coLinux\Debian-3.0r0.ext3.1gb" enabled="true" /> ★ここと <!-- This line can specify a swap file if you wish, or an additional image file, it will /dev/cobd1. Additional block_devices can be specified in the same manner by increasing the index --> <block_device index="1" path="\DosDevices\e:\tmp\colinux_swap" enabled="false" /> ★ここと。とりあえず swap は無効にした。 <!-- bootparams allows you to pass kernel boot parameters --> <bootparams>root=/dev/cobd0</bootparams> <!-- image allows you to specify the kernel to boot --> <image path="vmlinux" /> ★あとで。 <!-- this line allows you to specify the amount of memory available to coLinux --> <memory size="64" /> ★あとで。 <!-- This allows you to modify networking parameters, see the README or website for more information --> <network index="0" type="bridged" name="Intel(R) PRO/100 VE Network Connection" /> ★ここ </colinux>[編集] 起動する #で、おもむろに実行してみる。 後でショートカットを用意したほうがよいだろうが、とりあえず、こっちの方が トラブルシューティングがやりやすいだろう。 C:\Program Files\coLinux> colinux-daemon -c c:\coLinux\colinux.xml と、こうなる。カーネル起動〜途中まではこっちに表示されるようだ。 C:\Program Files\coLinux> colinux-daemon -c c:\coLinux\colinux.xml Cooperative Linux Daemon, 0.6.1 Compiled on Sat May 29 16:20:11 2004 daemon: loading configuration from colinux.xml daemon: creating monitor colinux: allocated id 0 co_message_switch: setting callback rule for 7 co_message_switch: setting callback rule for 2 co_message_switch: setting callback rule for 6 co_message_switch: setting callback rule for 3 co_message_switch: setting callback rule for 0 co_message_switch: setting callback rule for 4 colinux: launching net daemons daemon: launching daemon for conet0 executing: colinux-bridged-net-daemon -c 0 -i 0 -n "Intel(R) PRO/100 VE Network Connection" -mac 00:43:4f:4e:45:30 ★MACアドレス daemon: launching console executing: colinux-console-fltk -a 0 ★consoleはcolinux-console-fltk Linux version 2.4.26-co-0.6.1 (karrde@callisto.yi.org) (gcc version 3.3.3 (Debia n 20040429)) #1 Sat May 29 15:30:37 IDT 2004 ★この行から kernel の出力。 64MB LOWMEM available. On node 0 totalpages: 16384 zone(0): 0 pages. zone(1): 16384 pages. zone(2): 0 pages. Kernel command line: root=/dev/cobd0 Initializing CPU#0 Setting proxy interrupt vectors Detected 2595.615 MHz processor. Console: colour CoCON 80x25 Calibrating delay loop... 418.61 BogoMIPS ★この値は起動ごとにまちまち。 Memory: 62120k/65536k available (1137k kernel code, 0k reserved, 62k data, 52k i nit, 0k highmem) ★メモリ設定が反映されている Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) Inode cache hash table entries: 4096 (order: 3, 32768 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) CPU: Trace cache: 12K uops, L1 D cache: 8K CPU: L2 cache: 512K CPU: After generic, caps: bfebfbff 00000000 00000000 00000000 CPU: Common caps: bfebfbff 00000000 00000000 00000000 CPU: Intel(R) Pentium(R) 4 CPU 2.60GHz stepping 09 ★CPUがHTになっていない Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd Journalled Block Device driver loaded devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 pty: 256 Unix98 ptys configured RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) cobd0 size: 1048576 kb cobd: loaded (max 32 devices) conet: loaded (max 16 devices) conet0: initialized Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 4096 bind 8192) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. bridged-net-daemon: Checking adapter: VMware Virtual Ethernet Adapter bridged-net-daemon: Checking adapter: VMware Virtual Ethernet Adapter bridged-net-daemon: Checking adapter: Intel(R) PRO/100 VE Network Connection kjournald starting. Commit interval 5 seconds EXT3 FS 2.4-0.9.19, 19 August 2002 on cobd(117,0), internal journal EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem). ★/はext3。/etc/fstab を後で確認 bridged-net-daemon: Listening on: Intel(R) PRO/100 VE Network Connection... bridged-net-daemon: Listening for: (ether dst 00:43:4f:4e:45:30) or (ether broad cast or multicast) or (ip broadcast or multicast) pipe client 0/8: Connecting to daemon... pipe client 0/8: Connection established daemon: module connected: conet0 co_message_switch: setting callback rule for 8 Freeing unused kernel memory: 52k freed EXT3 FS 2.4-0.9.19, 19 August 2002 on cobd(117,0), internal journal pipe client 0/6: Connecting to daemon... pipe client 0/6: Connection established daemon: module connected: console co_message_switch: setting callback rule for 6 また、「Cooperative Linux console」ってウィンドウも開く。こちらはこうなってる。 ようするにこっちが'init'起動後のコンソールウィンドウなわけだ。 う、SHIFT + PageUP で戻れない。 [編集]ログインする #root で入ってみる。パスワードなしで入れる。 [編集]shutdown してみる #shutdown -h now |