SUN Solaris8/9 for SPARC/Intel インストール手順
インストーラの指示に従ってインストールします。ポイントは次の3つ。
- Solaris を入手する(入手先は下に書いています)
- 事前に決めておく事項(インストール時に質問されます)
- ホスト名
- IP アドレス(固定 IP アドレスか DHCP)
- デフォルトルータの IP アドレス
- 使用するネームサービス (NIS, DNS 等) . NIS ならドメイン名も.
間違っても、あとで修正できるので、あまり悩まないように。
- インストール上の注意点
- インストールの開始前に、ネットワークケーブルはつないでおく (つなぎ忘れたら、インストール後、/usr/sbin/sys-unconfig 等で問題無く ネットワーク設定できるが、面倒くさいので)
- ディスクレイアウトはカスタマイズすべきである
(Solaris のインストールソフトが推奨してくるサイズだと足りなくなる可能
性があります。いまはディスクも安いので次のサイズを推奨します)
/dev/dsk/c0d0s0 最低 4G バイト(推奨 8G バイト) / /dev/dsk/c0d0s3 最低 1G バイト(推奨 4G バイト) /var /dev/dsk/c0d0s4 最低 4G バイト(推奨 8G バイト) /usr /dev/dsk/c0d0s5 最低 4G バイト(推奨 8G バイト) /usr/local /dev/dsk/c0d0s6 最低 8G バイト(推奨 12G バイト) /opt /dev/dsk/c0d0s7 残りすべて /export/home
- インストール時には、「カスタマイズ」を選び、 locale で日本語を指 定する(あとで入れるのは面倒なので)
インストール準備
- Solaris Operating Environment
Solaris Software (CD で数枚)
Solaris Languages (CD なら 1枚)
Solaris Software Companion (CD なら 1枚) - 入手法
Solaris バイナリは, http://www.sun.co.jp/solaris/binaries から入手します(ライセンス条 項をよく確認してから、ダウンロードしてください).
パッチは, http://access1.sun.com/solarissolve から入手します.
- Intel 版のインストールでは、インストール前に次の情報を確認しておこう.
- ビデオカードの型番,最大周波数
- モニタのサイズ,解像度
- マウスタイプ
Solaris for Intel インストーラの起動 (Intel 版)
SPARC 版だと、Solaris インストーラはすぐに立ち上がるのですが、 Intel 版の場合には少し準備が必要です(画面に出てくる指示に従います)。 次のような手順になります(Solaris のバージョンによって違いがあります)。
- ネットワークケーブルの接続は済ませておくこと。
- 「Solaris 8/9 Software 1 of 2」を入れて起動する
- Solaris Device Configuration Assistant
The Solaris(TM) (Intel Platform Edition) Device Configuration Assistant scans to identify sysytem hardware, lists idnetified devices, and can boot the Solaris software from a specified device. This program must be used to install the Solaris operating environment, add a driver, or change the hardware on the system. > To perform a full scan to identify all system hardware, choose Continue. > To diagnose possible full scan failures, choose Specific Scan. > To add new or updated device drivers, choose Add Driver. About navigation - The mouse cannot be used. - If the keyboard does not have function keys or they do not respond, press ESC. The legend at the bottom of the screen will change to show the ESC keys to use for navigation. - The F2 key performs the default action. F2_Continue F3_Specific Scan F4_Add Driver F6_Help
- F2_Continue
- Bus Enumeration
Determining bus types and gathering hardware configuration data...
- Enter_Continue
- Scanning Devices と表示される
- Identified Devices
The following devices have been identified on this system. To identify devices not on this list or to modify device characteristics, such as keyboard configuration, choose Device Tasks. Platform types may be included in this list. デバイスの一覧が表示される。 F2_Continue F3_Back F4_Device Task F6_Help
- F4
- Device Task
Select a device task and choose Continue. TIP: If there are devices that hame not been identified, scan for specific devices before manually editing the devices. > To make a selection use the arrow keys, and press Enter to mark it [X]. F2_Continue F3_Back F6_Help
- Set Keyboard Configuration を選び、F2
- Set Keyboard Configuration
Specify a keyborad other than the default model, US-English with Windows(TM) keys. Select the desired keyborad type and choose Continue. F2_Continue F3_Cancel F6_Help
- 適当なキーボード(Japanese(106)など) を選び、F2
- Set Keyboard Format
F2_Continue F3_Cancel F6_Help
- 適当なフォーマット(with Windows keys など)を選び、2
- Device Tasks
F2_Continue F3_Back F6_Help
- F3
- Identified Devices
F2_Continue F3_Back F4_Device Task F6_Help
- F2
- 「Loading」と表示される
- Boot Solaris
この時点で、Disk, CD, Net の3つの候補が出てきますが、 CD からインストールしたいので、CD を選びます。
Disk, CD の2つしか出ていないときは、ネットワークカードの認識がうまくいっ ていないということなので、とりあえずはインストールを続行し、 ネットワークカードの設定は後で行なうことにします。
Select one of the identified devices to boot the Solaris kernel and choose Continue. To perform optional features, such as modifying the autoboot and property settings, choose Boot Task. An astaris (*) indicates the current default boot device. > To make a selection use the arrow keys, and press Enter to mark it [X].
- 「[ ] CD : ... 」 を選ぶ
- ブートが始まるので1分ほど待つ
Solaris インストール
SUN Solaris8/9 for SPARC/Intel インストール手順を、ここに書いている.
ネットワークケーブルの接続は済ませておくこと。 「Solaris 8/9 Software 1 of 2」を入れて起動すると、以下 のメッセージが現れるので、順に回答していく。
- Select a Language
0. Engllish 1. French 2. German 3. Italian 4. Japanese 5. Korean 6. Simplified Chinese 7. Spanish 8. Swedish 9. Traditional Chinese Please make a choice (0 - 9), or press h or ? for help:
- 「0. English」を選ぶ
- Select a Locale
- 「0. English (C-7bit ASCII)」を選ぶ
- 1分ほど待つ
- The Solaris Installation Program
You are now interacting with the Solaris installation program. The program is divided into a series of short sections. At the end of each section, you will see a summary of the choices you've made, and be given the opportunity to make changes. As you work with the program, you will complete one or more of the following tasks: 1 - Identify peripheral devices 2 - Identify your system 3 - Install Solaris software About navigation... - The mouse cannot be used - If your keyboard does not have function keys, or they do not respond, press ESC; the legend at the bottom of the screen will change to show the ESC keys to use for navigation. F2_Continue F6_Help
- F2_Continue
- (Intel のみ) kdmconfig - Introduction
kdmconfig has attempted to identify the devices necessary for the window system. If the configuration is incorrect or incomplete you will not be able to use the window system. Press F2 to view and edit the current configuration. Press F4 to bypass viewing and editing. If you choose this option, you can subsequently review and edit the window system configuraiton by rebooting the system or running kdmconfig from the command line. Note: If you are installing Solaris you do not have to configure the window system at this time. Choosing this option will cause the installation to run in non-window-system mode. Press F6 or
-6 for Help. The Help information covers kdmconfig screens as well as screen navigation and how to substitute Escape key sequences for function keys. F2_Continue F4_Bypass F6_Help - F2_Continue
- (Intel のみ) kdmconfig - View and Edit Window System Configuration
F2_Continue F3_Quit Without Save F6_Help
- No changes needed - Test/Save and Exit を選んで、F2
kdmconfig は後回しにするので、ここでは「No changes needed」を選びます。
- No changes needed - Test/Save and Exit を選んで、F2
- (Intel のみ) kdmconfig Window Sysytem Configuration Test
You can test the current window system configuration now by pressing F2. If the configuration is correct, you will see the sample image, be able to move the pointer, and click on a button. If you see a bland or improper screen, press any key. If kdmconfig does not regain control within a minute, you will have to reboot your system. Press F4 to bypass the test. If you bypass the test and you have an incorrect or incomplete configuration, you will not be able to use the window system. F2_Continue F4_Bypass F6_Help
- F2
- 設定が正しければ OpenWindows が起動(カラーの画面が表示)します。 マウスの動作確認を行い、正しく動作すれば、マウスでYesをクリック. 真っ黒なままだったら F4 を押してやりなおし。
- Solaris の起動画面が表示される
- (ネットワーク接続時のみ) Network Connectivity
Specify Yes if the system is connected to the netword by one of the Solaris or vendor network/communication Ethernet cards that are supported on the Solaris CD. See your hardware documenttaion for the current list of supported cards. Specify No if the system is connected to network/communication card that is no supported on the Solaris CD, and follow the instructions listed under Help. Networked:
- Yes
- (ネットワーク接続時のみ) DHCP
On this screen you must specify whether or not this system should use DHCP for network interface configuration. Choose Yes if DHCP is to be used, or No if the interfaces are to be configured manually. WARNING: Because this machine booted from the network, DHCP support will not be enabled, if selected, until after the system reboots. Use DHCP:
- No
- (但し、内部ネットワークなど、DHCP の配下にあるときは) Yes
- Host Name
On this screen you must enter a host name, which identifies this system on the network. The name must be unique within the domain in which it resides; creating a duplicate host name will cause problems on the network after you install Solaris. Ahost name must be at least two characters; it can contain letters, digits, and minus signs(-). Host name:
- 決めておいたホスト名を入れる(例えば「madoka」)
- (ネットワーク接続時のみ) IP Address
On this screen you must enter the Inrernet Protocol(IP) address for this system. It must be unique and follow your site's address convenions, or a system/network failure could result. IP addresses contain four sets of numbers separated by periods(for example 129.200.9.1). IP address:
- 決めておいた IP アドレスを入れる
- (ネットワーク接続時のみ) Subnets
On this screen you maust spcify whether this system is part of a subnet. If you specify incorrectly, the system sill have problems communicating on the network after you reboot. System part of Subnet:
- Yes
- (ネットワーク接続時のみ) Netmask
On this screen you must specify the netmask of your subnet. A default netmask is shown; do not accept the default unless you are sure it is correct for your subnet. A netmask must contain four sets of number separated by periods(for example 255.255.255.0). Netmask:
- 255.255.255.0
- (ネットワーク接続時のみ) IPv6
- No
On this screen you should specify whether or not IPv6, the next generation Internet Protocol, will be enabled on this machine. Enabling IPv6 will have no effect if this machine is not on a network that provides IPv6 service. IPv4 service will not be affected if IPv6 is enabled. Enable IPv6:
- 1分ほど待つ
- (ネットワーク接続時のみ) (Solaris9 のみ?) Set the Default Route:
- Specify one
- (ネットワーク接続時のみ) (Solaris9 のみ?) Default Route IP Address:
- Default Route の IP アドレス
- (ネットワーク接続時のみ) (Solaris9 のみ?) Confirm Information:
- 確認して、F2_Continue
- (ネットワーク接続時のみ) Configure Security Policy:
Configre Kirberos Security:
- No
- (ネットワーク接続時のみ) Name Service
On this screen you must provide name service information. Select the name service tha will be used by this system, or None if your system will either not use a name service at all, or if it will use a name service not listed here. Name service:
- NIS
- (ネットワーク接続時のみ) Domain name
On this screen you must specify the domain where this system resides. Makesure you enter the name correctly including capitalization and punctuation. Domain name:
- NIS ドメイン名を入れる(決まっているが,ここには書けない)
- (ネットワーク接続時のみ) Name Server
On this screen you must spcify how to find a name server for this system. You can let the software try to find one, or you can spcify one. The software can find a name server only if it is on your local subnet. Name server:
- Find One
- Specify timezone
- Geometric Region, Asia, Eastern/Japan
- 1分ほど待つ
- Solaris Interactive Installation
This system is upgradable, so there are two ways to install the Solaris software. The Upgrade option updates the Solaris software to the new release, saving as many modifications to the previous version of Solaris software as possible. Back up the system before using the Upgrade option. The Initial option overwrites the system disks with the new version of Solaris software. This option allows you to preserve any existing file system. Back up any modifications made to the poevious version of Solaris software before starting the Initial option. After you select an option and complete the tasks that follow, a summary fo your action will be displayed.
- Solaris 8 ではInitial
- Solaris 9 ではStandard
- Select Geromtric Region
Select the geographic regions for which support should be installed.
- 日本語関係を選んで次に進むと良いでしょう
- Select Software
Select the Solaris software to install on the system.
- Entire Distribution
- パーティション設定
- 是非とも Manual Layout を選ぶ.
- パーティション
例えば,次のように設定./dev/dsk/c0d0s0 最低 4G バイト(推奨 8G バイト) / /dev/dsk/c0d0s3 最低 1G バイト(推奨 4G バイト) /var /dev/dsk/c0d0s4 最低 4G バイト(推奨 8G バイト) /usr /dev/dsk/c0d0s5 最低 4G バイト(推奨 8G バイト) /usr/local /dev/dsk/c0d0s6 最低 8G バイト(推奨 12G バイト) /opt /dev/dsk/c0d0s7 残りすべて /export/home
- インストールが始まる.およそ30分くらいかかる.
- 再起動する.
- root のパスワードを聞いてくるので,入力する.
On this screen you can create a root password. ... Root password:
- root のパスワードを入力する
インストールの続き
- ここで「Solaris Software 2 of 2 の CD-ROM を入力せよ」という
画面が出てくるはずなのですが、Solaris 8 for Intel のインストーラだ
と, インストーラのバグ?なのか、うまくいかないことがある。
もし、「Solaris Software 2 of 2 の CD-ROM を入力せよ」という
画面が出てこなければ、次の手順で回避する。
- shutdown する。その後、「b -s」で,シングルユーザモードで起動すること.
- シングルユーザモードで起動したら
echo " " > /var/sadm/webstart/.nodisplay
を実行.これは,残りのCDを読み込むときにGUIを使わないという意味. - マルチユーザモードへ
exit
- 引き続き,インストールを続ける.次の2つの CD-ROM を準備しておく
Solaris 8(or 9) Software 2 of 2
Solaris 8(or 9) languages
インストーラの指示に従って,Solaris 8(or 9) Software 2 of 2と Solaris 8(or 9) languages を入れ,インストールを続ける. 設定によっては、Solaris 8(or 9) languages を要求してこないことがあるが、心配しなくて良い。
もし,「Solaris Software 2 of 2 の CD-ROM を入力せよ」という画 面が出てこないときは、インストールプログラムでのインストールは 断念し、Solaris 8 Software 2 of 2、Solaris 8 languages のうち適当な方を入れて,次のコマンドで,手動でインストールすべしcd /cdrom/sol* ./Installer
- すべてのインストールが終わると,「Reboot Now」のボタンが出てくるので、押す.
- 再起動時に,エラーメッセージが出ないかみる.
但し「hme0 No carrier ...」 のような 「... No carrier」メッセージは,無視してよい.
On this screen you must spcify how to find a name server for this system. You can let the software try to find one, or you can spcify one. The software can find a name server only if it is on your local subnet. Name server:
- Find One
- Geometric Region, Asia, Eastern/Japan
This system is upgradable, so there are two ways to install the Solaris software. The Upgrade option updates the Solaris software to the new release, saving as many modifications to the previous version of Solaris software as possible. Back up the system before using the Upgrade option. The Initial option overwrites the system disks with the new version of Solaris software. This option allows you to preserve any existing file system. Back up any modifications made to the poevious version of Solaris software before starting the Initial option. After you select an option and complete the tasks that follow, a summary fo your action will be displayed.
- Solaris 8 ではInitial
- Solaris 9 ではStandard
Select the geographic regions for which support should be installed.
- 何も選ばずに次に進む
Select the Solaris software to install on the system.
- Entire Distribution
- Manual Layout を選ぶ.
例えば,次のように設定.
0 : / : 2048 M 1 : /var : 4096 M 2 :
3 : swap : 8192 M 4 : /opt : 2048 M 5 : /usr : 4096M 6 : /usr/local : 8192M 7 : /export : 残りすべて
On this screen you can create a root password. ... Root password:
- root のパスワードを入力する
インストールの続き
- ここで「Solaris Software 2 of 2 の CD-ROM を入力せよ」という
画面が出てくるはずなのですが、Solaris 8 for Intel のインストーラだ
と, インストーラのバグ?なのか、うまくいかないことがある。
もし、「Solaris Software 2 of 2 の CD-ROM を入力せよ」という
画面が出てこなければ、次の手順で回避する。
- shutdown する。その後、「b -s」で,シングルユーザモードで起動すること.
- シングルユーザモードで起動したら
echo " " > /var/sadm/webstart/.nodisplay
を実行.これは,残りのCDを読み込むときにGUIを使わないという意味. - マルチユーザモードへ
exit
- 引き続き,インストールを続ける.次の2つの CD-ROM を準備しておく
Solaris 8(or 9) Software 2 of 2
Solaris 8(or 9) languages
インストーラの指示に従って,Solaris 8(or 9) Software 2 of 2と Solaris 8(or 9) languages を入れ,インストールを続ける. 設定によっては、Solaris 8(or 9) languages を要求してこないことがあるが、心配しなくて良い。
もし,「Solaris Software 2 of 2 の CD-ROM を入力せよ」という画 面が出てこないときは、インストールプログラムでのインストールは 断念し、Solaris 8 Software 2 of 2、Solaris 8 languages のうち適当な方を入れて,次のコマンドで,手動でインストールすべしcd /cdrom/sol* ./Installer
- すべてのインストールが終わると,「Reboot Now」のボタンが出てくるので、押す.
- 再起動時に,エラーメッセージが出ないかみる.
但し「hme0 No carrier ...」 のような 「... No carrier」メッセージは,無視してよい.
ネットワークカードの認識について
Intel 版の Solaris では、ネットワークカードの認識がうまくいかないこと があります。
ドライバパッチ
Intel 版の Solaris では、ドライバパッチが必要になることがあります。
- ここで、インストールプログラムを中断し、shutdown する。その後「b -s」で,シングルユーザモードで起動すること.
- ドライバパッチ
もしあれば(グラフィックス・カードのパッチ等)行なう. - 再起動し,シングルユーザモードへ
- kdmconfig で,ビデオカードを選ぶ.
ドライバパッチの結果,新しいビデオカードを選べるようになることがある. - kdmconfig で,ビデオカードを選ぶ.
- その後再起動すると、インストールプログラムが再開する。
これで、Solaris 8/9 for SPARC/Intel インストールが終わりました。 次は、「SUN Solaris インストール後のよくあるトラブル」です。