エフサステクノロジーズ株式会社

本ページの製品は2024年4月1日より、エフサステクノロジーズ株式会社に統合となり、順次、切り替えを実施してまいります。一部、富士通表記が混在することがありますので、ご了承ください。

Enterprise Application Manuals ( CA08871-660 )

Nano Serverの展開

Nano ServerをHyper-Vホストとして展開するには、次の手順を実行します。

  1. AdministratorグループのメンバーとしてWindows Serverにログインします。

  2. NanoServerImageGeneratorフォルダーをWindows Server ISOの\NanoServerフォルダーからローカルハードドライブにコピーします。

  3. Nano Server VHD/VHDXを作成するには、次の手順を実行します。

    1. Windows PowerShellを管理者として起動し、ローカルハードドライブにコピーしたNanoServerImageGeneratorフォルダーに移動して、次のコマンドレットを実行します。

      Set-ExecutionPolicy RemoteSigned
      Import-Module .\NanoServerImageGenerator -Verbose
    2. 次のPowerShellコマンドレットを実行して、Hyper-VホストとしてNano ServerのVHDを作成します。このコマンドは、新しいVHDの管理者パスワードの入力を求めます。

      New-NanoServerImage -Edition Standard -DeploymentType Guest -MediaPath <"input the path to the root of the contents of Windows Server 2016 ISO"> -TargetPath <"input the path, including the filename and extension where the resulting VHD/VHDX will be created"> -ComputerName <"input the name of the nano server computer you are about to create"> -Compute
    3. 次の例では、フェールオーバークラスタリングが有効になっている機能Hyper-Vホストを使用してNano Server VHDを作成します。この例では、f:\にマウントされたISOからNano Server VHDを作成します。新しく作成されたVHDは、コマンドレットを実行するフォルダー内のNanoServerという名前のフォルダーに配置されます。コンピューター名はNanoServerで、結果のVHDにはWindows ServerのStandard Editionが含まれています。

      New-NanoServerImage-Edition Standard-DeploymentType Guest-MediaPath f:\-TargetPath。\NanoServer.vhd-ComputerName NanoServer-Compute-Clustering
    4. New-NanoServerImageコマンドレットを使用して、IPアドレス、サブネットマスク、既定のゲートウェイ、DNSサーバー、ドメイン名などを設定するパラメーターを構成します。

  4. VMまたは物理ホストでVHDを使用して、Nano ServerをHyper-Vホストとしてデプロイします。

    1. VMにデプロイするには、Hyper-Vマネージャーで新しいVMを作成し、手順3で作成したVHDを使用します。

    2. 物理ホストに展開する場合は、VHDを物理コンピューターにコピーし、この新しいVHDから起動するように構成します。まず、VHDをマウントし、bcdboot e:\windows (VHDはE:\の下にマウントされます。)を実行してVHDをマウント解除し、物理コンピューターを再起動してNano Serverを起動します。

  5. Nano Serverをドメインに参加させます (オプション) 。

    1. ドメイン内の任意のコンピューターにログインし、次のPowerShellコマンドレットを実行してデータBLOBを作成します。

      $domain = "<input the domain to which the Nano Server is to be joined>"
      $nanoserver = "<input name of the Nano Server>"
      djoin.exe/provision/domain$domain/machine$nanoserver/savefile C:\temp\odjblob/reuse
    2. リモートコンピューターで次のPowerShellコマンドレットを実行して、odjblobファイルをNano Serverにコピーします。

      $nanoserver = "<input name of the Nano Server>"
      $nanouname = "<input username of the Nano Server>"
      $nanopwd = "<input password of the Nano Server>"
      $filePath = 'c:\temp\odjblob'
      $fileContents = Get-Content -Path $filePath -Encoding Unicode
      $securenanopwd = ConvertTo-SecureString -AsPlainText -Force $nanopwd
      $nanosecurecred = new-object management.automation.pscredential $nanouname, $securenanopwd
      Invoke-Command -VMName $nanoserver -Credential $nanosecurecred -ArgumentList @($filePath,$fileContents) -ScriptBlock \{
          param($filePath,$data)
          New-Item -ItemType directory -Path c:\temp
          Set-Content -Path $filePath -Value $data -Encoding Unicode
          cd C:\temp
          djoin /requestodj /loadfile c:\temp\odjblob /windowspath c:\windows /localos
      }
    3. Nano Serverを再起動します。

Nano Serverへの接続

PowerShellを使用してNano Serverにリモートで接続するには、次の手順を実行します。

  1. リモートサーバーで次のコマンドレットを実行して、Nano Serverをリモートコンピューターの信頼されたホストとして追加します。

    Set-Item WSMan:\LocalHost\Client\TrustedHosts "<input IP Address of the Nano Server>"
  2. 環境が安全で、すべてのホストをサーバー上の信頼できるホストとして追加する場合は、次のコマンドを実行します。

Set-Item WSMan:\LocalHost\Client\TrustedHosts *

  1. リモートサーバーで次のコマンドレットを実行して、リモートセッションを開始します。プロンプトが表示されたら、Nano Serverのパスワードを入力します。

    Enter-PSSession-ComputerName"<input IP Address of the Nano Server>"-Credential~\Administrator

GUI管理ツールを使用してリモートのWindows ServerからNano Serverにリモート接続するには、次のコマンドを実行します。

  1. AdministratorグループのメンバーとしてWindows Serverにログインします。

  2. サーバーマネージャを起動.

  3. サーバーマネージャーからNano Serverをリモートで管理するには、[すべてのサーバー] を右クリックし、[サーバーの追加] をクリックしてNano Serverの情報を入力し、追加します。サーバーリストにNano Serverが表示されます。Nano Serverを選択して右クリックし、さまざまなオプションを使用して管理を開始します。

  4. Nano Serverのサービスをリモートで管理するには、次の手順を実行します。

    1. サーバーマネージャーのセクションからを開きます。

    2. [サービス (ローカル) ] を右クリックします。

    3. [サーバに接続] をクリックします。

    4. Nano Server上のサービスを表示および管理するには、Nano Serverの詳細を指定します。

  5. Nano ServerでHyper-Vの役割が有効になっている場合は、次の手順を実行してHyper-Vマネージャーからリモートで管理します。

    1. サーバーマネージャーのセクションからHyper-Vマネージャーを開きます。

    2. [Hyper-Vマネージャー] を右クリックします。

    3. [サーバーに接続] をクリックし、Nano Serverの詳細を入力します。Nano ServerをHyper-Vサーバとして管理し、その上でVMを作成および管理できるようになりました。

  6. Nano Serverでフェールオーバークラスタリングの役割が有効になっている場合は、次の手順を実行してフェールオーバークラスターマネージャーからリモートで管理します。

    1. サーバーマネージャーのセクションからフェールオーバークラスターマネージャーを開きます。

    2. Nano Serverでクラスタリング関連の操作を実行します。

Top of Page