- ネットワークからブートとかインストールとか
ネットワーク (上のサーバー) から Solaris をインストールできる環境を作ります。
- Software 1of2 CD のコピー
CD-ROM Drive に Software 1of2 CD を挿入し必要があればマウントします。Software 1of2 CD 上の setup_install_server を実行します。以下の例ではインストールパスを /export/s8 としています。
# pwd /cdrom/sol_8_ia/s2/Solaris_8/Tools # ./setup_install_server /export/s8 Verifying target directory... Calculating the required disk space for the Solaris_8 product Copying the CD image to disk... Install Server setup complete #
|
Software 2of2 CD に入れ換えます。
- Software 2of2 CD のコピー
Software 2of2 CD 上の add_to_install_server を実行します。
# pwd /cdrom/sol_8_ia_2/Solaris_8/Tools # ./add_to_install_server /export/s8
The following Products will be copied to /export/s8/Solaris_8/Product:
Solaris_2_of_2
If only a subset of products is needed enter Control-C and invoke ./add_to_install_server with the -s option.
Checking required disk space...
- Copying the Early Access products... 40949 ブロック
Processing completed successfully. #
|
Languages CD に入れ換えます。
- Languages CD のコピー
Languages CD 上の add_to_install_server を実行します。例では Japanese だけをコピーするために -s オプションを指定して起動し Japanese と shared だけをコピーしています。
# pwd /cdrom/sol_8_lang_ia/Tools # ./add_to_install_server -s /export/s8
Enter the number of the product(s) you want to add to /export/s8/Solaris_8/Product or 'all' for all products.
The following are valid products:
1 Simplified_Chinese 2 French 3 German 4 Italian 5 Japanese 6 Korean 7 Spanish 8 Swedish 9 Traditional_Chinese 10 shared
5,10
Checking required disk space...
Copying Japanese packages... Copying shared packages... \
Processing completed successfully. #
|
Installation CD に入れ換えます。
- Installation CD のコピー
Installation CD 上の modify_install_server を実行します。対話式インストール用の mini-root を残すため -p オプションを指定します。
# pwd /cdrom/multi_icd_sol_8_ia/s2 # ./modify_install_server -p /export/s8 /cdrom/cdrom0/s0 Setting up installer net image preserving existing miniroot in /export/s8/Solaris_8/Tools/Boot.orig Setup complete kill: 7751: そのようなプロセスは存在しません。 #
|
上の例では kill に失敗していますがセットアップ自体は正常に完了しているようです。これに関しては時間ができたら調べてみます (スクリプトが難解なので・・)。
- クライアントの登録
クライアントを登録するには add_install_client を使用します。
# ./add_install_client elvis i86pc Error: elvis does not exist in the NIS ethers map Add it, and re-run add_install_client #
|
上の例ではクライアントの MAC アドレスを参照できないためエラーになっています。これを解決するには以下のように MAC アドレスを引数として与えます (或いは /etc/ethers に entry を追加します)。
# ./add_install_client -e 00:90:99:16:12:c0 elvis i86pc Adding Ethernet number for elvis to /etc/ethers updating /etc/bootparams #
|
クライアントの登録を確認するには /etc/bootparams を参照します
# grep elvis /etc/bootparams elvis root=casper:/export/s8/Solaris_8/Tools/Boot install=casper:/export/s8 boottype=:in rootopts=:rsize=8192 #
|
これでクライアントはネットワーク越しにインストールサーバから起動できるようになります。
- mini-root の交換
modify_install_server を実行すると対話式インストール用の mini-root の代わりにWeb Start 3.0 用の mini-root がデフォルトのパス名を持つようになります。これはデフォルトで Web Start 3.0 インストーラが起動することを意味しますが、このパスを取り替えてデフォルトで対話式インストールが起動するようにします(趣味の問題なので必須の作業ではありません)。
例えば以下のようにディレクトリ名を変更します。
# pwd /export/s8/Solaris_8/Tools # mv Boot Boot.cd0 # mv Boot.orig Boot #
|
これでデフォルトで対話式インストールが起動するようになります。Web Start 3.0 インストーラに関しては専用の登録スクリプトを作成してみます。
# pwd /export/s8/Solaris_8/Tools # cat add_install_client_cd0 #!/bin/sh ./add_install_client -t `pwd`/Boot.cd0 $* #
|
add_install_client で登録するクライアントは対話式インストールが、add_install_client_cd0 で登録するクライアントは Web Start 3.0 インストーラが使用されるようになります。