Oracle® Solaris 10 JumpStart에서 Oracle Solaris 11.2 자동 설치 프로그램으로 전환

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

js2ai를 사용한 sysidcfg 변환

이 절에서는 js2ai를 사용하여 sysidcfg 파일을 AI 시스템 구성 프로파일 파일로 변환하는 방법을 보여 줍니다. 처리된 각 sysidcfg 파일에 대해 js2aisc_profile.xml이라는 AI 시스템 구성 프로파일 파일을 js2ai 명령이 호출된 디렉토리에 만듭니다. 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.

기본 네트워크 인터페이스가 Oracle Solaris 10 인터페이스 이름으로 대체되었지만 여전히 중립적인 링크 이름에 대한 경고가 표시됩니다. 이전 스타일 링크 이름을 사용하려는 경우에는 아무 작업도 필요하지 않습니다. 대부분의 경우 인터페이스에서 Oracle Solaris 10과 동일하게 매핑하지만 해당 결과에 대한 보장은 없습니다.

Oracle Solaris 11에서 사용되는 중립적인 링크 이름을 사용하려는 경우 sysidcfg 파일에서 해당 네트워크 인터페이스를 net# 스타일 이름으로 변경할 수 있습니다. 일반적으로 기본 인터페이스는 net0으로 정의됩니다. 사용자 경고를 해결하려면 이전 예에서 line 6에 대한 주의 설명에 따라 sc_profile.xml 파일을 편집합니다.