SUN Solaris8/9 for SPARC/Intel インストール手順
- Solaris のメディアを用意する(入手方法は下に示す)。
- 事前に決めておく事項(インストール時に質問される)
- ホスト名
- IP アドレス(固定 IP アドレスか DHCP か)
- デフォルトルータの IP アドレス
- 使用するネームサービス(DNS、NIS など)。NIS の場合は NIS ドメイン名も。
これらの設定は、インストール後に /usr/sbin/sys-unconfig を実行して再設定できる。
- インストール上の注意点
- インストールの開始前に、ネットワークケーブルを接続しておく (未接続のままインストールしても、後で /usr/sbin/sys-unconfig によりネットワーク設定はできるが、手順が増える)。
- ディスクレイアウトはカスタマイズする。
インストーラが提示する既定値は、後からソフトウェアを追加した場合に容量が不足することがある。次のサイズを目安にする。
スライス 用途 最低 推奨 s0 / 4G バイト 8G バイト s1 swap メモリの1倍 メモリの2倍 s3 /var 1G バイト 4G バイト s4 /usr 4G バイト 8G バイト s5 /usr/local 4G バイト 8G バイト s6 /opt 8G バイト 12G バイト s7 /export/home 残りすべて 残りすべて
デバイス名は、SPARC 版では /dev/dsk/c0t0d0s0 のような形式、Intel 版では /dev/dsk/c0d0s0 のような形式になる。 s2 はディスク全体を表すスライスなので、ファイルシステムには使わない。 - インストール時に 「カスタマイズ」 を選び、locale で日本語を指定する (インストール後に追加するより手順が少ない)。
インストール準備
- Solaris Operating Environment のメディア
Solaris Software (CD で数枚) Solaris Languages (CD なら 1枚) Solaris Software Companion (CD なら 1枚)
- 入手法
Solaris 8 の最終版は 2/04、Solaris 9 の最終版は 9/05 であり、いずれも Oracle の Sustaining Support 期間に入っている。新規に配布されるメディアやイメージはないため、 Solaris 8/9 のインストールは既存メディアを使う。
新規に導入する場合は Oracle Solaris 11 を使用する。イメージは https://www.oracle.com/solaris/solaris11/downloads/solaris-downloads.html から入手する(ライセンス条項を確認してからダウンロードする)。
パッチは https://support.oracle.com(My Oracle Support)から入手する。 入手には有効なサポート契約が必要である。
- 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 system hardware, lists identified 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 have 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 keyboard other than the default model, US-English with Windows(TM) keys. Select the desired keyboard 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 など)を選び、F2
- 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 の候補が表示される。CD からインストールするので CD を選ぶ。
Disk, CD の2つしか表示されないときは、ネットワークカードが認識されていない。 この場合は Device Configuration Assistant の F4_Add Driver でドライバを追加するか、 インストールを続行し、インストール後にドライバパッチを適用してネットワークカードを設定する。
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 asterisk (*) 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. English 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 configuration 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 <ESC>-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
ビデオカードの詳細設定はインストール後に行うので、ここでは「No changes needed」を選ぶ。
- No changes needed - Test/Save and Exit を選んで、F2
- (Intel のみ) kdmconfig Window System 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 network by one of the Solaris or vendor network/communication Ethernet cards that are supported on the Solaris CD. See your hardware documentation for the current list of supported cards. Specify No if the system is connected to network/communication card that is not 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:
- 固定 IP アドレスを使う場合は 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. A host 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 Internet Protocol(IP) address for this system. It must be unique and follow your site's address conventions, 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 must specify whether this system is part of a subnet. If you specify incorrectly, the system will 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 numbers separated by periods(for example 255.255.255.0). Netmask:
- サイトのサブネットに合わせて入れる(例:255.255.255.0)
- (ネットワーク接続時のみ) IPv6
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:
- IPv6 を使わない場合は No
- 1分ほど待つ。
- (ネットワーク接続時のみ) Set the Default Route
- Specify one
- (ネットワーク接続時のみ) Default Route IP Address
- デフォルトルータの IP アドレスを入れる
- (ネットワーク接続時のみ) Confirm Information
- 内容を確認して F2_Continue
- (ネットワーク接続時のみ) Configure Security Policy
Configure Kerberos Security:
- Kerberos を使わない場合は No
- (ネットワーク接続時のみ) Name Service
On this screen you must provide name service information. Select the name service that 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:
- サイトで使用しているネームサービスを選ぶ。一般には DNS を選ぶ。 NIS は古い方式であり、サイトが NIS を運用している場合に選ぶ。
- (ネットワーク接続時のみ) Domain name
On this screen you must specify the domain where this system resides. Make sure you enter the name correctly including capitalization and punctuation. Domain name:
- サイトのドメイン名(NIS の場合は NIS ドメイン名)を入れる
- (ネットワーク接続時のみ) Name Server
On this screen you must specify how to find a name server for this system. You can let the software try to find one, or you can specify one. The software can find a name server only if it is on your local subnet. Name server:
- ネームサーバが同一サブネットにあるときは Find One。 別のサブネットにあるときは Specify One を選び、そのアドレスを入れる。
- Specify timezone
- Geographic 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 previous version of Solaris software before starting the Initial option. After you select an option and complete the tasks that follow, a summary of your action will be displayed.
- Solaris 8 では Initial
- Solaris 9 では Standard
- Select Geographic 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 を選ぶ。
- パーティション
例えば、次のように設定する。
s0 / 8G バイト s1 swap メモリの2倍 s3 /var 4G バイト s4 /usr 8G バイト s5 /usr/local 8G バイト s6 /opt 12G バイト s7 /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 のインストーラでは、この画面が表示されないことがある。
この画面が表示されない場合は、次の手順で回避する。
- 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 を入れよ」という画面が表示されないときは、 該当する CD を入れ、次のコマンドで手動でインストールする。
cd /cdrom/sol* ./Installer
- すべてのインストールが終わると「Reboot Now」のボタンが表示されるので、押す。
- 再起動時にエラーメッセージが出ないか確認する。 「hme0 No carrier ...」のような「... No carrier」メッセージは、ケーブル未接続やリンク未確立を示すもので、 接続後は表示されなくなる。
ドライバパッチ
Intel 版では、ビデオカードやネットワークカードがインストーラで認識されないことがある。 この場合は、ドライバパッチを適用する。
- インストールプログラムを中断し、shutdown する。その後「b -s」でシングルユーザモードで起動する。
- 該当するドライバパッチ(グラフィックスカードのパッチなど)を適用する。
- 再起動し、シングルユーザモードへ移行する。
- kdmconfig でビデオカードを選ぶ。 ドライバパッチの適用により、新しいビデオカードが選択できるようになる。
- 再起動すると、インストールプログラムが再開する。
これで、Solaris 8/9 for SPARC/Intel のインストールは終わりである。 次は、「SUN Solaris インストール後のよくあるトラブル」である。