Enterprise Application Manuals ( CA08871-660 )
Nano Serverの展開
Nano ServerをHyper-Vホストとして展開するには、次の手順を実行します。
-
AdministratorグループのメンバーとしてWindows Serverにログインします。
-
NanoServerImageGeneratorフォルダーをWindows Server ISOの\NanoServerフォルダーからローカルハードドライブにコピーします。
-
Nano Server VHD/VHDXを作成するには、次の手順を実行します。
-
Windows PowerShellを管理者として起動し、ローカルハードドライブにコピーしたNanoServerImageGeneratorフォルダーに移動して、次のコマンドレットを実行します。
Set-ExecutionPolicy RemoteSigned Import-Module .\NanoServerImageGenerator -Verbose
-
次の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
-
次の例では、フェールオーバークラスタリングが有効になっている機能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
-
New-NanoServerImageコマンドレットを使用して、IPアドレス、サブネットマスク、既定のゲートウェイ、DNSサーバー、ドメイン名などを設定するパラメーターを構成します。
-
-
VMまたは物理ホストでVHDを使用して、Nano ServerをHyper-Vホストとしてデプロイします。
-
VMにデプロイするには、Hyper-Vマネージャーで新しいVMを作成し、手順3で作成したVHDを使用します。
-
物理ホストに展開する場合は、VHDを物理コンピューターにコピーし、この新しいVHDから起動するように構成します。まず、VHDをマウントし、bcdboot e:\windows (VHDはE:\の下にマウントされます。)を実行してVHDをマウント解除し、物理コンピューターを再起動してNano Serverを起動します。
-
-
Nano Serverをドメインに参加させます (オプション) 。
-
ドメイン内の任意のコンピューターにログインし、次の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
-
リモートコンピューターで次の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 }
-
Nano Serverを再起動します。
-
Nano Serverへの接続
PowerShellを使用してNano Serverにリモートで接続するには、次の手順を実行します。
-
リモートサーバーで次のコマンドレットを実行して、Nano Serverをリモートコンピューターの信頼されたホストとして追加します。
Set-Item WSMan:\LocalHost\Client\TrustedHosts "<input IP Address of the Nano Server>"
-
環境が安全で、すべてのホストをサーバー上の信頼できるホストとして追加する場合は、次のコマンドを実行します。
Set-Item WSMan:\LocalHost\Client\TrustedHosts *
-
リモートサーバーで次のコマンドレットを実行して、リモートセッションを開始します。プロンプトが表示されたら、Nano Serverのパスワードを入力します。
Enter-PSSession-ComputerName"<input IP Address of the Nano Server>"-Credential~\Administrator
GUI管理ツールを使用してリモートのWindows ServerからNano Serverにリモート接続するには、次のコマンドを実行します。
-
AdministratorグループのメンバーとしてWindows Serverにログインします。
-
サーバーマネージャを起動.
-
サーバーマネージャーからNano Serverをリモートで管理するには、[すべてのサーバー] を右クリックし、[サーバーの追加] をクリックしてNano Serverの情報を入力し、追加します。サーバーリストにNano Serverが表示されます。Nano Serverを選択して右クリックし、さまざまなオプションを使用して管理を開始します。
-
Nano Serverのサービスをリモートで管理するには、次の手順を実行します。
-
サーバーマネージャーのセクションからを開きます。
-
[サービス (ローカル) ] を右クリックします。
-
[サーバに接続] をクリックします。
-
Nano Server上のサービスを表示および管理するには、Nano Serverの詳細を指定します。
-
-
Nano ServerでHyper-Vの役割が有効になっている場合は、次の手順を実行してHyper-Vマネージャーからリモートで管理します。
-
サーバーマネージャーのセクションからHyper-Vマネージャーを開きます。
-
[Hyper-Vマネージャー] を右クリックします。
-
[サーバーに接続] をクリックし、Nano Serverの詳細を入力します。Nano ServerをHyper-Vサーバとして管理し、その上でVMを作成および管理できるようになりました。
-
-
Nano Serverでフェールオーバークラスタリングの役割が有効になっている場合は、次の手順を実行してフェールオーバークラスターマネージャーからリモートで管理します。
-
サーバーマネージャーのセクションからフェールオーバークラスターマネージャーを開きます。
-
Nano Serverでクラスタリング関連の操作を実行します。
-