13–Windows Server 2016
Déploiement et gestion de Nano Server
5.
Changez le répertoire au dossier dans lequel vous avez copié les fichiers à
l'étape
6.
Importez le script NanoServerImageGenerator en entrant la commande
suivante :
Import-Module .\NanoServerImageGenerator.psm1 -Verbose
7.
Pour créer un VHD qui définit un nom d'ordinateur et inclut les pilotes OEM
et Hyper-V, entrez la commande Windows PowerShell suivante :
New-NanoServerImage –DeploymentType Host –Edition
<Standard/Datacenter> -MediaPath <path to root of media>
-BasePath
.\Base -TargetPath .\NanoServerPhysical\NanoServer.vhd
-ComputerName
<computer name> –Compute -Storage -Cluster -OEMDrivers
–Compute
-DriversPath "<Path to Qlogic Driver sets>"
Exemple :
New-NanoServerImage –DeploymentType Host –Edition Datacenter
-MediaPath C:\tmp\TP4_iso\Bld_10586_iso
-BasePath ".\Base" -TargetPath
"C:\Nano\PhysicalSystem\Nano_phy_vhd.vhd" -ComputerName
"Nano-server1" –Compute -Storage -Cluster -OEMDrivers
-DriversPath
"C:\Nano\Drivers"
Dans l'exemple précédent,
pilotes QLogic. Cette commande met environ 10 à 15 minutes pour créer un
fichier VHD. Voici un exemple de sortie de cette commande :
Windows(R) Image to Virtual Hard Disk Converter for Windows(R) 10
Copyright (C) Microsoft Corporation. All rights reserved.
Version 10.0.14300.1000.amd64fre.rs1_release_svc.160324-1723
INFO
INFO
INFO
INFO
INFO
3.
REMARQUE
Cette commande vous demande un mot de passe administrateur pour
le nouveau VHD.
: Looking for the requested Windows image in the WIM file
: Image 1 selected (ServerDatacenterNano)...
: Creating sparse disk...
: Mounting VHD...
: Initializing disk...
est le chemin d'accès des
C:\Nano\Drivers
246
AH0054602-02 F