Users Guide
13–Windows Server 2016
Déploiement et gestion de Nano Server
249 AH0054602-02 F
La commande précédente met environ 10 à 15 minutes pour créer un fichier
VHD. Voici un exemple de sortie de cette commande :
PS C:\Nano> New-NanoServerImage –DeploymentType Guest –Edition
Datacenter -MediaPath
C:\tmp\TP4_iso\Bld_10586_iso -BasePath .\Base -TargetPath
.\Nano1\VM_NanoServer.vhd -ComputerName Nano-VM1 –GuestDrivers
cmdlet New-NanoServerImage at command pipeline position 1
Supply values for the following parameters:
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 : Looking for the requested Windows image in the WIM file
INFO : Image 1 selected (ServerTuva)...
INFO : Creating sparse disk...
INFO : Attaching VHD...
INFO : Initializing disk...
INFO : Creating single partition...
INFO : Formatting windows volume...
INFO : Windows path (G:) has been assigned.
INFO : System volume location: G:
INFO : Applying image to VHD. This could take a while...
INFO : Image was applied successfully.
INFO : Making image bootable...
INFO : Fixing the Device ID in the BCD store on VHD...
INFO : Drive is bootable. Cleaning up...
INFO : Closing VHD...
INFO : Deleting pre-existing VHD: Base.vhd...
INFO : Closing Windows image...
INFO : Done.
Done. The log is at:
C:\Users\ADMINI~1\AppData\Local\Temp\2\NanoServerImageGenerator.log
8. Créez une nouvelle machine virtuelle dans le Gestionnaire Hyper-V, et
utilisez le VHD créé à l'étape 7.
9. Démarrez la machine virtuelle.
10. Connectez-vous à la machine virtuelle dans le Gestionnaire Hyper-V.
11. Connectez-vous à la console de récupération en utilisant l'administrateur
et le mot de passe que vous avez fournis lors de l'exécution du script à
l'étape 7.