Solaris9コンテナをセットアップした時の記録

Solaris9コンテナを作成してzloginで初期セットアップしたときの記録です。
ほとんどOSのインストールと同じイメージ。

言語の選択

zloginで作成したゾーンに接続すると設定に使用する言語、ロケールを聞かれます。

# zlogin -C hoge
Select a Language

  0. English
  1. Japanese

Please make a choice (0 - 1), or press h or ? for help:1

Select a Locale

  0. Japanese EUC (ja)
  1. Japanese EUC (ja)
  2. Japanese PC Kanji (ja_JP.PCK)
  3. Japanese UTF-8 (ja_JP.UTF-8)
  4. Go Back to Previous Screen

Please make a choice (0 - 4), or press h or ? for help: 3

端末の種類

以降、termcapを使ってのインタフェイスのため、端末の種類を聞かれます。

どのタイプの端末を使用していますか?
 1) ANSI 標準 CRT
 2) DEC VT52
 3) DEC VT100
 4) Heathkit 19
 5) Lear Siegler ADM31
 6) PC コンソール
 7) Sun コマンドツール
 8) Sun ワークステーション
 9) Televideo 910
 10) Televideo 925
 11) Wyse Model 50
 12) X 端末エミュレータ (xterms)
 13) CDE 端末エミュレータ (dtterm)
 14) その他
選択する番号を入力して、Return キーを押してください。12
Configuring network interface addresses: hme0.

ホスト名の設定

次にホスト名を指定します。ゾーン名と一緒でもいいし、別でもかまわないと思う。

- Host Name ----------------------------------------------------------

  On this screen you must enter your host name, which identifies this system
  on the network.  The name must be unique within your domain; 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: hoge

----------------------------------------------------------------------
 F2_Continue    F6_Help

IPアドレスの設定

ゾーンを作成したときも設定したけど、ここでも設定。

- 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: 10.12.100.56
-------------------------------------------------------------------------
    F2_Continue    F6_Help

サブネットの設定

サブネットマスクを設定。

- 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.

  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].


      System part of a subnet
      ----------------------
      [X] Yes
      [ ] No

--------------------------------------------------------------------------
    F2_Continue    F6_Help

- 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.0.0

---------------------------------------------------------------------------
    F2_Continue    F6_Help

IPv6の対応可否

うちの環境じゃ使わないのでNoを選択。

- 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.

  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].


      Enable IPv6
      -----------
      [ ] Yes
      [X] No

------------------------------------------------------------------------
    F2_Continue    F6_Help

デフォルトゲートウェイ

適当に設定する。

- Set the Default Route -------------------------------------------------

  To specify the default route, you can let the software try to detect one
  upon reboot, you can specify the IP address of the router, or you can choose
  None.  Choose None if you do not have a router on your subnet.

  > To make a selection, use the arrow keys to select your choice and press
  Return to mark it [X].


      Default Route
      --------------------------
      [ ] Detect one upon reboot
      [X] Specify one
      [ ] None

--------------------------------------------------------------------------
    F2_Continue    F6_Help

- Default Route IP Address -----------------------------------------------

  Enter the IP address of  the default route. This entry will be placed in the
  /etc/defaultrouter file and will be the default route after you reboot
  (example 129.146.89.225).



    Router IP Address: 10.12.100.1
---------------------------------------------------------------------------
    F2_Continue    F6_Help

情報を確認

いままで指定した値を確認してF2。

- Confirm Information ----------------------------------------------------

  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.


                  Host name: hoge
                 IP address: 10.12.100.56
    System part of a subnet: Yes
                    Netmask: 255.255.0.0
                Enable IPv6: No
              Default Route: Specify one
          Router IP Address: 10.12.100.1

--------------------------------------------------------------------------
    F2_Continue    F4_Change    F6_Help

認証の設定

- Configure Security Policy:-------------------------------------------

  Specify Yes if the system will use the Kerberos security mechanism.

  Specify No if this system will use standard UNIX security.

      Configure Kerberos Security
      ----------------------------
      [ ] Yes
      [X] No

------------------------------------------------------------------------
    F2_Continue    F6_Help

ケルベロス認証って、本当によくわからないぞ。ちゃんと勉強しないと。

ネームサービスの設定

- 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.

  > To make a selection, use the arrow keys to highlight the option
    and press Return to mark it [X].


      Name service
      ------------
      [ ] NIS+
      [ ] NIS
      [X] DNS
      [ ] LDAP
      [ ] None
------------------------------------------------------------------------
    F2_Continue    F6_Help

DNSサーバの設定

- 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: hoge.com
-------------------------------------------------------------------------
    F2_Continue    F6_Help

- DNS Server Addresses --------------------------------------------------

  On this screen you must enter the IP address of your DNS server(s).  You
  must enter at least one address.  IP addresses must contain four sets of
  numbers separated by periods (for example 129.200.9.1).

    Server's IP address: 10.12.100.101
    Server's IP address: 10.12.100.102
    Server's IP address:

--------------------------------------------------------------------------
    F2_Continue    F6_Help

- DNS Search List --------------------------------------------------------

  On this screen you can enter a list of domains that will be searched when a
  DNS query is made.  If you do not enter any domains, DNS will only search
  the DNS domain chosen for this system.  The domains entered, when
  concatenated, may not be longer than 250 characters.



    Search domain: hoge.com
    Search domain: intra.hoge.com
    Search domain:
    Search domain:
    Search domain:
    Search domain:
---------------------------------------------------------------------------
    F2_Continue    F6_Help

- Confirm Information -----------------------------------------------------

  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.

          Name service: DNS
           Domain name: hoge.com
    Server address(es): 10.12.100.101
                        10.12.100.102
      Search domain(s): hoge.com
                        intra.hoge.com
---------------------------------------------------------------------------
    F2_Continue    F4_Change    F6_Help

タイムゾーンの設定

- Time Zone -------------------------------------------------------------

  On this screen you must specify your default time zone.  You can specify a
  time zone in three ways:  select one of the continents or oceans from the
  list, select other - offset from GMT, or other - specify time zone file.

  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].


      Continents and Oceans
      ----------------------------
  ^   [ ] Arctic Ocean
  x   [X] Asia
  x   [ ] Atlantic Ocean
  x   [ ] Australia
  x   [ ] Europe
  x   [ ] Indian Ocean
  x   [ ] Pacific Ocean
  x   [ ] other - offset from GMT
  -   [ ] other - specify time zone file

--------------------------------------------------------------------------
    F2_Continue    F6_Help


- Time Zone ------------------------------------------------------------
  On this screen you must specify your default time zone.  You can specify a
  time zone in three ways:  select one of the continents or oceans from the
  list, select other - offset from GMT, or other - specify time zone file.

  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].


      Continents and Oceans
      ---------------------------
  ^   [ ] Arctic Ocean
  x   [X] Asia
  x   [ ] Atlantic Ocean
  x   [ ] Australia
  x   [ ] Europe
  x   [ ] Indian Ocean
  x   [ ] Pacific Ocean
  x   [ ] other - offset from GMT
  -   [ ] other - specify time zone file

--------------------------------------------------------------------------
    F2_Continue    F6_Help

時刻の設定

- Date and Time ------------------------------------------------------

  > Accept the default date and time or enter
    new values.

  Date and time: 2008-07-14 09:46

    Year   (4 digits) : 2008
    Month  (1-12)     : 07
    Day    (1-31)     : 14
    Hour   (0-23)     : 09
    Minute (0-59)     : 46

----------------------------------------------------------------------
    F2_Continue    F6_Help

設定を確認。

- Confirm Information ---------------------------------------------------

  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.


        Time zone: Japan
    Date and time: 2008-07-14 09:46:00

--------------------------------------------------------------------------
    F2_Continue    F4_Change    F6_Help

rootのパスワードを設定

On this screen you can create a root password.

A root password can contain any number of characters, but only the first eight
characters in the password are significant. (For example, if you create
`a1b2c3d4e5f6' as your root password, you can use `a1b2c3d4' to gain root
access.)

You will be prompted to type the root password twice; for security, the password
will not be displayed on the screen as you type it.

> If you do not want a root password, press RETURN twice.

Root password:XXXXXX


Press Return to continue.

System identification is completed.

rebooting system due to change(s) in /etc/default/init

Jul 13 17:47:20 rpcbind: rpcbind terminating on signal.

[注意: ゾーンをリブートしています]

これでゾーン設定が終了して仮想環境が立ち上がります。