Oracle® Solaris 10 JumpStart から Oracle Solaris 11.2 自動インストーラへの移行

印刷ビューの終了

更新: 2014 年 7 月
 
 

js2ai を使用した sysidcfg の変換

このセクションでは、js2ai を使用して sysidcfg ファイルを AI システム構成プロファイルファイルに変換する方法を示します。js2ai は、処理された sysidcfg ファイルごとに、js2ai コマンドが起動されたディレクトリ内に sc_profile.xml という名前の AI システム構成プロファイルファイルを作成します。sc_profile.xml ファイルに別のディレクトリを指定するには、–D オプションを使用します。変換プロセスに役に立つように、元の sysidcfg ファイルのコピーを作成し、コピーを使用します。変換プロセスでは、sysidcfg ファイルを編集および変更しないと、ファイルを正しく変換できない場合があります。

使用例 3-1  エラーを含む sysidcfg ファイルの変換

この例では、次の sysidcfg ファイルを使用します。

timezone=US/Pacific
timeserver=localhost
keyboard=US-English
system_locale=en_US.UTF-8
terminal=vt100
network_interface=primary { hostname=host1
      ip_address=192.0.2.4
      netmask=255.255.255.224
      protocol_ipv6=yes
      default_route=192.0.2.3 }
name_service=DNS{domain_name=example.com
      name_server=192.0.2.1,192.0.2.2
      search=example.com,example.org}
root_password=rJmv5LUXM1OcU
security_policy=none
nfs_domain=dynamic

次のコマンドを使用して、この sysidcfg ファイルを処理します。–S オプションによって検証を抑制したため、エラーレポートでは、検証エラーはハイフン文字として表示されます。

# js2ai -sS
                                Process  Unsupported  Conversion  Validation
Name                  Warnings  Errors   Items        Errors      Errors
-------------------   --------  -------  -----------  ----------  ----------
sysidcfg                     1        0            0           1           -

Conversion completed. One or more failures and/or warnings occurred.
For errors see js2ai.log
# cat js2ai.log

sysidcfg:line 6:CONVERSION:  DefaultFixed network configuration enabled.
Unable to complete network  configuration, replace interface PRIMARY
with the actual interface you  wish to configure.
sysidcfg:line 17:WARNING: Oracle Solaris 11 uses roles instead of root user.
An admin user with root role privileges will need to be defined in order to 
access the system in multi-user mode. The necessary xml structures have been
added to sc_profile.xml as a comment.  Edit sc_profile.xml to perform the 
necessary modifications to define the admin user.
使用例 3-2  修正された sysidcfg ファイルの変換

次に示す変更された sysidcfg ファイルは、前の例で報告されたエラーに対処します。PRIMARY インタフェース指定はインタフェース名 e1000g で置換されています。

timezone=US/Pacific
timeserver=localhost
keyboard=US-English
system_locale=en_US.UTF-8
terminal=vt100
network_interface=e1000g { hostname=host1
      ip_address=192.0.2.4
      netmask=255.255.255.224
      protocol_ipv6=yes
      default_route=192.0.2.3 }
name_service=DNS{domain_name=example.com
      name_server=192.0.2.1,192.0.2.2
      search=example.com,example.org}
root_password=rJmv5LUXM1OcU
security_policy=none
nfs_domain=dynamic
# js2ai -sS

                               Process  Unsupported  Conversion  Validation
Name                 Warnings  Errors   Items        Errors      Errors
-------------------  --------  -------  -----------  ----------  ----------
sysidcfg                    2        0            0           0           -
Conversion completed. One or more failures and/or warnings occurred.
For details see /tmp/js2ai.log
# cat js2ai.log
sysidcfg:line 16:WARNING: Oracle Solaris 11 uses roles instead of root user.
An admin user with root role privileges will need to be defined in order to
access the system in multi-user mode.  The necessary xml structures have been
added to sc_profile.xml as a comment. Edit sc_profile.xml to perform the
necessary modifications to define the admin user.
sysidcfg:line 6:WARNING: In order to support the direct translation of the
sysidcfg interface 'e1000g', Oracle Solaris 11 neutral link name support will
be disabled.  If you wish to use neutral link names, change the interface
name specified in the sysidcfg file to a 'netx' style interface name or edit
the resulting sc_profile.xml file.

ネットワークインタフェース primary は Oracle Solaris 10 インタフェース名で置換されていますが、ニュートラルリンク名に関する警告が引き続き表示されます。古いスタイルのリンク名を使用する場合は、必要なアクションはありません。ほとんどの場合、インタフェースは Oracle Solaris 10 の場合と同じようにマップされますが、必ずそうなるという保証はありません。

Oracle Solaris 11 によって使用されるニュートラルリンク名を使用する場合は、sysidcfg ファイルのネットワークインタフェースを net# という形式の名前に変更します。通常、プライマリインタフェースは net0 として定義されます。ユーザー警告が表示される問題に対処するには、前の例の line 6 の注に示したとおりに、sc_profile.xml ファイルを編集します。