Sun N1 Service Provisioning System ユーザーズガイド (OS Provisioning Plug-In 3.0)

Procedureカスタム Windows プロビジョニングプロファイルを作成する (コマンド行インタフェース)

  1. WindowsImage コンポーネントの変数セットを作成するには、次の例のようなコマンドを入力します。


    # cr_cli -cmd cdb.vs.add -comp NM:/com/sun/n1osp/untyped/WindowsImage \
    -name "windows2003custom" -u admin -p admin -vars \
    "osp_server=masterserver-osp;os_name="WIN2003_trial"version=2003; \
    installPath="2003customprofile"; \
    description=test windows image 2003;min_disk_size=10GB; \
    boot_server_name=biwl;boot_server_subnet_address=10.42.42.0; \
    boot_server_subnet_ip_address=10.42.42.4;\
    boot_srv_active_directory_domain=n1.west.example.com;\
    windows_product_directory=D:\\\\RemoteInstall\\\\Setup\\\\English
    \\\\Images\\\\Win2003_trial"
    

    注 –

    windows_product_directory は、その全内容を 1 行で入力します。表示の目的から、上記の例のエントリは 2 行に分けて表示されています。


    これらの変数の詳細については、「Windows プロビジョニングプロファイルの変数」を参照してください。

  2. 次のエントリを含む /tmp/windows-profile という名前のファイルを作成します。


    custom
    Windows 2003 EE x86 Profile
    true 

    このファイル内のエントリはそれぞれ次のプラン変数に対応しています。

    • custom はプロファイルの名前です。

    • Windows 2003 EE x86 Profile はプロファイルの説明です。

    • true は、カスタムプロファイルを生成することを示します。

  3. プランを実行するには、次の例のようなコマンドを入力します。


    # cr_cli -cmd pe.p.run -u admin -p admin \
    -PID NM:/com/sun/n1osp/untyped/WindowsImage-create-profile \
    -tar H:NM:risserver-windows -comp - -vs windows2003custom -pto 30 -nto 10 \
    -f /tmp/windows-profile
    

    -u オプションで指定したデフォルトの N1 SPS ユーザー値を書き留めます。OS インストール後に N1 SPS Remote Agent ソフトウェアがターゲットホストで起動するには、このユーザーが存在する必要があります。