One, deploy in virtual machines Nano Server
will download the good Windows Server 2016 installation ISO decompression, you can see there is a nanoserver directory, this directory is used to customize the nano image of the required files.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/98/5E/wKioL1k6l8OyU0PoAACnLwHS5xs573.png "/>
In this directory there are two subdirectories and a WIM file, do not arbitrarily change the name, including the Nanoserver root directory, because the image of the script is defined in the name of these directories, if you change the directory name or file name without modifying the script, it will cause the resulting image failure.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/98/5E/wKiom1k6l8PAiQDiAABllFhSPik595.png "/>
Open the Nanoserverimagegenerator directory, where you can see the script used to generate the image. Open PowerShell and navigate to this directory.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/98/5E/wKioL1k6l-uTJZiiAABujBFAJzI089.png "/>
Use Import-module Command Import module
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/98/5E/wKiom1k6l-uQDObJAAAWhZafvGY499.png "/>
Use N ew-nanoserverimage The VHD filerequired to generate the Nano server , join-verbose in order to see the process of building the mirror
-mediapath: Specifies the upper path of the Nanoserver
-basepath: Specify directory as a temporary VHD generation Path
-deploymenttype:guest virtual Machines
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/98/5E/wKioL1k6l-zyrvN5AABHfYhYNvQ831.png "/>
Note the build process, which shows the VHD generated in the TEMP directory and loads the VHD into the E Drive, and the command to create the boot entry on the e-disk star, in short, this VHD is a bootable virtual disk file.
You can also see that after the boot is done, dims is used to customize the VHD, including the addition of domain configuration, driver loading, optional function loading, and some data import. These can be controlled through the Unattend.xml file, this step and the regular version of Windows Server should be the same, we will look at this customization later.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/98/5E/wKiom1k6l-zhSXZWAABJI38_Jac647.png "/>
When finished, this VHD file is actually a system disk, you can create a virtual machine to mount the VHD file.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/98/5E/wKioL1k6l-2hyo8ZAAASdYNnqaQ728.png "/>
start virtual machine, seconds into Nano Server ...
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/98/5E/wKiom1k6l-3B4hhdAABQdUF6E4I973.png "/>
after entering the system you can see the most basic information, and do a network initialization, follow-up we will slowly discuss how to manage the nano Server
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/98/5E/wKioL1k6l-7xMMndAACXJFO4Xdw746.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/98/5E/wKiom1k6l-6QF4pRAAAOErHMgKM512.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/98/5E/wKioL1k6l-_CIDdvAAArlFRbWGI677.png "/>
Windows Nano Server Deployment