VirtualBoxではLiveCDで起動できるが負荷が100%。インストーラは起動できるが、ディスクへの書き込みができない。調べてみると、VirtualBox側のバグらしい。
VMPlayerはインストーラがなぜかrioの起動に失敗するが、インストールできる。インストール後、起動するとrioが普通に起動する。
試してはないが、Linux+KVMでもインストールできるみたい。
| CARVIEW |
VirtualBoxではLiveCDで起動できるが負荷が100%。インストーラは起動できるが、ディスクへの書き込みができない。調べてみると、VirtualBox側のバグらしい。
VMPlayerはインストーラがなぜかrioの起動に失敗するが、インストールできる。インストール後、起動するとrioが普通に起動する。
試してはないが、Linux+KVMでもインストールできるみたい。
このインストールの仕方はX86 PCを想定しています。また Supported PC hardware を御覧ください。
x86 PCでかつ
>32MB of RAM
a hard disk with 300 MB of unpartitioned space and a free primary partition slot
の条件を満たしている必要があります。
16mbのメモリとディスクのないマシンでもnet-boot 端末として使うことができますがインストーラは実行できません。
Local mediaからインストールしたいなら、FAT file systemかCD-rom driveが必要です。インターネットを介してインストールしたいなら、サポートされているethernet cardかモデムを使ったPPP dial-up accountが必要です。
Plan9のインストールは難しいものではありません。どのPlan9 file systemを選ぶか(fossilが標準的です)、そのfile systemをrootとして使えるPlan9 kernelを実際にloadするbootstrapの仕方を決めるだけのことです。
一度、initial file systemがうごきだしたなら、認証の有効化とpxe booting(bootpとtftp)が他のPlan9 systemにfile serverからカーネルをloadし、そのfile systemを共有することを許可します。
Plan 9を頻回に再インストールしようとすることはよくありません。必要であってはならないのです。特に、それぞれのPlan9 systemが固有のfile systemをもつ必要がないときには。
plan9.bell-labs.comまたはlocal mirrorからISOをダウンロードしましょう。詳しくはdownloadページで。
Plan9 CDでCold boot(電源を切ったあと、電源を入れる)してください。そうすると、Plan 9をインストールするか、full Plan 9 SystemをCDから直接起動するか選べます。
直接起動すると、インストールすることなしにsystemで遊べます。また、recovery CDとしても有用です。
インストーラはCD-ROMをsecond IDE masterであると推測します。もし、違うところにあるなら、次のようなエラーが表示されます。
Unknown boot device: sdD0!cdboot!9pcflop.gz
Boot device: fd0
boot from:
IDE/ATAPIドライブはPlan9ではsdD0(Cはprimary IDE interface.Dはsecond)のように命名されます。数字は0がmasterで1がslaveです。なので、CD-ROMがprimary slaveなら、sdC1となります。
boot from: sdC1!cdboot!9pcflop.gz
“boot from:” prompt または “root is from:” promptがでたときは、フロッピーディスクにbootstrap programが見つからなかった可能性があります。installation troubleshootingを参考にしてください。
IDEドライブでDMAが有効にするかどうか聞かれます。Defaultはyesです。DMAを有効にしてインストール中に問題が生じたときだけ”no”を選んでください。
“mouseport” promptが表示されます。USB mouseを使っているならこのpromptは無視してください。インストール中にMouse supportが不要かもしれませんが、そのままでOKです。
最後に、vgaの設定を聞かれます。Defaultの解像度は最も安全なものになでインストーラの実行に十分なはずです。インストールが終われば、設定を変更できます。
Note:videocardがサポートされていないことが分かっていれば、monitor typeを聞いているpromptで”vesa”と答えてください。
Video cardと解像度がサポートされていれば(それかvesaを選んだとき)、window systemがスタートします。
そうでなければ%promptに落ちます。テキストモードでインストーラを実行するには:
% inst/textonly
インストーラはテキストでもグラフィカルモードでも同じです。しかし、グラフィカルモードはちょっとだけフレンドリーです。
グラフィカルモードでは、window system(rio(1))はwindowとgrey screenを表示します。上の大きなwindowはinstall processを表示します。下のwindowは出来事のログを表示します。下の端に統計グラフがあります。一番上からsystem load、メモリ使用量、interrupt rate、system call rate、context swith rateとethernet packet rateを表します。
インストーラとの対話はテキストで行われ、インストール中にrioと対話をする必要はありません。とても小さなスクリーンを使っているsystemなら、keyboardの矢印キーを使ってwindowをスクロールする必要があるかもしれません。
何か情報(例えばIP adress)の入力を要求されたり、選択肢のリスト(例えば使用するdisk)を選ぶよう要求されたりするときは、promptはこのような形式になります。
Your choice (foo, bar, baz, quux)[quux]:
選択肢が少なければ、リストは丸括弧でかこまれます。Defaultの選択肢があれば、[]で囲まれ、Enterキーを押すことでデフォルトが選択されます。
インストーラは必ず行われなければならないtaskの配列で構成されています。Taskのなかには前提条件として他のtaskの実行が成功して完了している事が必要です。
どのステップでも、完了したtaskと準備が完了したtaskのリストが表示されます。Taskの名前はその後に続くテキストの中の丸括弧の中に表示されます。どのpromptでも<Control-d>を押すと、現在のtaskを終了しabortメインメニューに戻ります。
(Configfs)Fossil(4)はPlan 9 fileserverです。Venti(8)はアーカイブ可能なstorage serverです。fossilを自分用に運用してもよいでしょうし、Venti serverのwrite bufferとしても良いでしょう。Ventiの第一の価値はファイルシステムの毎日のスナップショットを取ることです(yesterday(1)を参照してください)。
(Partdisk)まず、Plan9用のpartitionをセットアップします。Plan9を直接bootさせるかboot loaderを使ってbootしたいなら、primary partitionに配置する必要があります。Floppy diskまたはDOS via ld.com (see 9load(8))でbootするつもりなら、secondary partitionを使うことができます。
インストーラはdisk deviceをscanし、製造者識別文字列manufacturer identification stringsとdisks’ partitions tablesをリストにして表示します。
例:
The following disk devices were found.
sdC0 – WDC AC36400L
* p1 0 2709 (2709 cylinders, 19.53 GB) FAT32LBA
empty 2709 3266 (557 cylinders, 4.01 GB)
p3 3266 3807 (541 cylinders, 3.90 GB) BSD386
s4 3807 4367 (560 cylinders, 4.03 GB) LINUX
s5 4367 4368 (1 cylinders, 7.38 MB) LINUXSWAP
empty 4368 6201 (1833 cylinders, 13.21 GB) empty
sdD0 – IDE-CD ReWritable-2x2x63.014VO07982013140700210
Disk to partition (sdC0, sdD0)[no default]:
Plan 9のStrage device命名規則はsdXXという形になっています。実際には、sdC0とsdC1はprimary ATA controllerのmasterとslave;sdD0とsdD1はsecondary、sdE0、sdE1、sdF0とsdF1は追加のATA cardです。SCSI deviceはsdNTとなります。NはSCSI controller numberで、TはSCSI target numberです。
Diskを選んだなら、plan9 partitionを作成しなければいけません。そのために、Plan9 installerはfdiskを実行します。Diskにplan9 partitionがなければ、fdiskは見つかった最も長く連続した領域にpartitionを作成します(まだ書き込みされていません)。
例、このように表示されるでしょう。
cylinder = 7741440 bytes
* p1 0 2709 (2709 cylinders, 19.53 GB) FAT32LBA
‘ p2 2709 3266 (557 cylinders, 4.01 GB) PLAN9
p3 3266 3807 (541 cylinders, 3.90 GB) BSD386
s4 3807 4367 (560 cylinders, 4.03 GB) LINUX
s5 4367 4368 (1 cylinders, 7.38 MB) LINUXSWAP
empty 4368 6201 (1833 cylinders, 13.21 GB) empty
>>>
行にはpartition nameが含まれます。(p1, p2, p3, and p4 are the only valid primary names; s1, etc. are the only valid secondary names).
Fdiskはstarting cylinderとending cylinder、partitionのsize、partitionのtypeを表示します。Partitionはstartion cylinderを含みますが、ending cylinderは含みません。>>>はpromptです。”h”または”?”とpromptで入力すると、help messageが表示されます。上の例では、”p1”に続く”*”は”p1”がactive partition(例えばdiskから起動したときに使っている)を意味し、”p2”につづくsingle quote (‘) は”p2”のthe partition table entryがdiskと異なっている:つまり、変更されたが、書き込まれていないことを意味します。この例では、fdiskはpartitionがなかった領域にp2を作成しています。
Fdiskの提案に同意すれば、”w”を入力し変更を書き込み、”q”を押してfdiskを終了します。それか、”table”を自分で編集することもできます。”a pN” と”d pN”のコマンドを使うことでpartitionを追加したり、削除したりできます。
Plan9 partitionを作成し、fdiskを終了させてください。
より詳しいfdiskの使用法はprep(8)を御覧ください。
(Prepdisk)Plan9 partitionはさらに名前付きPlan9 partitionに分割されます。disk/prepを使って9fat, fossil, swap partitionを作成してください。fossil+venti arenas and isectを選択したなら disk/prep がsensible layoutを提案してくれます。
Note:bootのために9fatはPlan 9 partitionの最初になければなりません。
Prepの詳細はprep(8)を御覧ください。
(fmtfossil)前のステップで作成したfossil partitionをフォーマットするよう促されます。
(Mountfs)インストールする(それとあなたのデータを保管する)fossil partitionを選んでください。Defaultでは前のステップでフォーマットしたpartitionになります。
(Configdist)次はdistribution archiveをどこから入手するか(local mediaかnetwork)を選択します。CDからインストールしている場合、’local’を選び次のステップに進んでください。
“network”を選択した場合、ethernetかPPP接続を設定し、archiveをダウンロードします。
Ethernetを使っているなら、手動かDHCPでIP configurationします。手動を選んだ場合、IP address、network maskとgateway IP addressを確認しておいてください。
If you are using PPP, you will have to choose a serial device and connection method. You can choose to dial and log yourself in or to have Plan 9 dial and use CHAP to log in (this is how the stock Windows PPP client connects, for example).
If you choose to log yourself in, you will be dropped into a conversation with the modem. Dial, log in, and once PPP has started, type <control-d>. You may need to type <control-m> rather than <enter> to get a response from the modem.
If you use CHAP, the install process will prompt for a phone number (exactly as you would dial it yourself, with any necessary prefixes; numbers only), user name, and password. It will then dial and initialize the connection.
(Download) Once you have a network connection, run the download task to download the archive from https://plan9.bell-labs.com to the file system mounted in the last step, in the directory /dist. If the download is interrupted and you start it again, it will pick up where it left off. If you restart the installation program after downloading the archive, you may need to tell mountdist where it is.
Once the download is complete, you may wish to run the task stopppp to hang up your PPP connection. Similarly, stopether will deactivate your Ethernet connection.
LOCATE AND MOUNT THE DISTRIBUTION ARCHIVE
(Mountdist)archiveをダウンロードしたなら、インストーラは指定されたpartitionの/distに展開します。インストーラはこの情報を表示するので、つぎのステップにスキップできます。
違う方法では、mountdistは読めるFAT (DOS, Windows), ISO-9660 (CD-ROM), and Plan 9 file systemsのリストを表示します。その中からfile systemを選び、archiveが含まれるdirectoryを選択します。
Archiveは次の三つの形式のうちのひとつでしょう。
l A bzipped CD image named plan9.iso.bz2.Bell lab serverのダウンロードページから入手したものです。
l A CD image named plan9.iso. plan9.iso.bz2を解凍したものです。事前にFAT file systemに解凍したimageを保存したなら、インストーラが解凍する手間が省け、file systemのdisk spaceの節約になります。
l The contents of the CD image, in a directory tree. This is the CD image itself, typically written to a CD.
“Distribution disk”とpromptが表示されます。通常は/dev/sdD0/data (but your CD drive may be a different sdXX)です。
ファイルシステムを選んだら、archiveを含むdirectoryを指示します。選んだファイルシステムのrootからの相対パスを”/”で区切ってタイプしてください。Directory名の代わりに“browse”とタイプするとファイルを探すのに使えるminimal shellに落とされます。具体的にはshellは3つのコマンドを持っています。“cd dir”;ディレクトリの変更。“lc”;カレントディレクトリのファイルを縦列にして表示。と“exit”です。Archiveを含むdirectoryについたら(またはさがすのを諦めたら)、shellを抜けてください。
FORMAT VENTI (OPTIONAL)
(fmtventi)fossil+ventiを選んだなら、prompted ‘prepdisk’ stepで作った the arenas and index (isect) partitions を作成するように要求されます。この場合、default valueが必要なすべてのものでしょう。
Note:遅いディスクを使っていた場合、またはqemuを使っているなら長い時間掛かる可能性があります。
COPY THE ARCHIVE TO THE FILE SYSTEM
(Copydist)いったん、archiveがlocateまたはdownloadされたら、新しく作ったfossil file systemにdistribution archiveを展開します。Log windowには抽出されたファイルのサイズが表示されます。コンピュータとディスクの速さによって10分から1時間位かかります。
CONFIGURE ONE OR MORE WAYS TO BOOT PLAN 9
(Bootsetup)初めてbootsetupを実行すると、boot floppy,CD,9pcf kernelから編集されたplan9.iniと適切なbootstrap codeで9fat configuration partitionを初期化します。
Plan 9をbootさせるために, 違うbootstrap programがこのpartitionを見つけ、plan9.iniを読み込み、kernelをbootさせます. たくさんの方法がありますが, すべてbootsetup menuから選ぶことができます. ひとつ以上の方法を使いたいなら,単純にbootsetupを複数回実行してください。
boot methodsは:
FINISH
(Finish) Choosing the finish task will halt the file system and print a message saying it is safe to reboot your computer.
BOOT PLAN 9
Using whatever methods you configured in the bootsetup stage, boot Plan 9.
At the user prompt, type glenda. Logging in as glenda will bring up a reasonable environment with some more descriptions of the system to get you exploring. Once you’ve logged in and gotten used to the system to create other accounts see adding a new user.
Note: if you have changed things so that your machine boots using a plan9.ini on a FAT partition, rename it so that the new installation doesn’t get confused. The installation only edits the 9fat partition.
When you boot, look for the line
using sdXX!9fat!plan9.ini
It should say 9fat!plan9.ini; if it says dos!plan9.ini or dos!plan9/plan9.ini, 9load is still finding your old plan9.ini and will be confused.
FINISHING VENTI CONFIGURATION
If you have configured a fossil+venti system, you might now get error messages like
ventiSend vtWrite block 0xa failed: not connected to venti server
Your fossil does not know where to find venti. Make sure to add the following line to your plan9.ini:
venti=/dev/sdC0/arenas
if you have configured your arenas on sdC0 – this should point to where you have configured your arenas to be. See plan9.ini(8) for details. To edit plan9.ini, run
9fat:
sam /n/9fat/plan9.ini
CHANGING THE SCREEN RESOLUTION
If you used the default screen resolution in the installation you will probably now want it changed. The settings are contained in plan9.ini on the 9fat partition. To access it, run
9fat:
sam /n/9fat/plan9.ini
and modify the values for monitor and vgasize are desired. Monitor must be set to one of the names defined in /lib/vgadb. Vgasize is of the form HRESxVRESxDEPTH. See Setting the right monitor size and plan9.ini(8) for hints. If you make a mistake, boot Plan 9 off the installation CD and edit plan9.ini as described above. Also note that many video devices are only supported at a color depth of 8 bits or less.
SHUT DOWN
When you want to turn off your computer, you need to halt the file system(s) so that all unwritten data is flushed to disk. (If you don’t do this, the file system will perform a disk check next time it boots and may or may not have kept the last few changes you made.) To do this type
fshalt
Then turn off the computer or type Ctl-Alt-Del or “^t ^t r” to reboot
Of course this is not needed for net-booted terminals, in that case it’s safe to just turn off the power.
SETTING UP CORRECT TIMEZONE
You might want to configure your system’s timezone. Figure out in which timezone you are, and then, assuming e.g. you are in the CET zone:
log in as user adm, then:
cp /adm/timezone/CET /adm/timezone/local
or you may need to create a new timezone information file e.g. /adm/timezone/India, by copying a relevant file from the /adm/timezone files:
cp /adm/timezone/Japan /adm/timezone/India
sam /adm/timezone/India
After edititing, the above should show:
IST 19800 IST 19800
now you may:
cp /adm/timezone/India /adm/timezone/local
Last, but not the least, you may also want to edit/change the TIMESYNCARGS in your /rc/bin/termrc or /rc/bin/cpurc; for example, to use an NTP service, set it to:
TIMESYNCARGS=(-n pool.ntp.org)
and reboot.
NEXT STEPS
RELATED TASKS
この文章はPlan9のドキュメントinstallation instructionの翻訳です。
SourceForge.JP Blogへようこそ。これは最初の投稿です。編集もしくは削除してブログを始めてください !