Quickly deploy a Hyper-V virtual machine for Windows Nano Server

Source: Internet
Author: User
Tags administrator password

In addition to the Server Core and GUI versions in Microsoft's new release of Windows Server 2016, a new version of Windows Nano server that is tailored to the cloud, similar to Server Core, is added, but more than the server The core is lightweight and streamlined, with only hundreds of trillion, and much less of the security patches needed for the OS.

For Windows Nano Server 2016, it is supported for deployment on physical servers or virtualized platforms. The current nano server is deployed differently than the server Core or GUI version, and there is no traditional installation wizard optional, but rather a VHD (first-generation virtual machine) or VHDX (second-generation virtual machine) image file that is packaged in the form of WIM files and packages. The image is then mounted by Hyper-V to create the virtual machine.

1.  Download image

1.1 The evaluation version of Windows Server 2016 is now supported for download and provides a 180-day trial, the official download link is as follows:

Https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2016?i=1

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/88/8D/wKioL1f7i9qBY5wAAABFHxg11ig239.png "title=" 1.png " alt= "Wkiol1f7i9qby5waaabfhxg11ig239.png"/>

The Evaluation version download page contains 3 options, as follows:

    • ISO: Provides a complete Windows Server 2016 installation package (with Nano Server)

    • Nano Server VHD: Provides VHD mirroring for Nano server

    • Virtual Lab: Provides links to access to Microsoft virtualization Labs

2.  Create a Nano server virtual machine from a downloaded VHD image

2.1 Downloads Nano Servervhd

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/88/90/wKiom1f7i-XQg5EvAAA6D-sf0qA876.png "title=" 2.png " alt= "Wkiom1f7i-xqg5evaaa6d-sf0qa876.png"/>

2.2 When the download is complete, there will be two files as follows

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/8D/wKioL1f7i_KzRQa3AACJOf_KImc659.png "title=" 3.png " alt= "Wkiol1f7i_kzrqa3aacjof_kimc659.png"/>

2.3 Double-click "Nanoserverdatacenter.vhd" to unzip the file and specify the path to unzip

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/88/90/wKiom1f7i_3zYcLSAABR98IhBXc433.png "title=" 4.png " alt= "Wkiom1f7i_3zyclsaabr98ihbxc433.png"/>

2.4 The following VHD image files are generated after decompression

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/88/8D/wKioL1f7jArTk0xMAABO6jHLK3o121.png "title=" 5.png " alt= "Wkiol1f7jartk0xmaabo6jhlk3o121.png"/>

2.5 Create a new virtual machine in Hyper-V, since Microsoft provides a direct download of the VHD image, select the "First generation" option in selecting the Virtual machine type

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/90/wKiom1f7jBejI6ZMAABXzM_AQRc478.png "title=" 6.png " alt= "Wkiom1f7jbeji6zmaabxzm_aqrc478.png"/>

2.6 On the "Connect Virtual Disk" page, select "Use an existing virtual disk" and click "Browse" to select the VHD image that you just unzipped

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/88/8D/wKioL1f7jCLTSz9dAACVo0hWTzA906.png "title=" 7.png " alt= "Wkiol1f7jcltsz9daacvo0hwtza906.png"/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/88/90/wKiom1f7jC6ggZNjAAB1BROacyI215.png "title=" 8.png " alt= "Wkiom1f7jc6ggznjaab1broacyi215.png"/>

2.7 After the virtual machine creation is complete, the following:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/90/wKiom1f7jD_DJi9eAAB8TliHkYw120.png "title=" 9.png " alt= "Wkiom1f7jd_dji9eaab8tlihkyw120.png"/>

2.8 After powering on the virtual machine and entering the Windowsnano server interface as follows:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/8D/wKioL1f7jErQpqgJAACQw55H3XA714.png "title=" 10.png "alt=" Wkiol1f7jerqpqgjaacqw55h3xa714.png "/>

2.9 Press F11 to set the local administrator password

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/88/90/wKiom1f7jFqBJTUXAAAUH8oJq2o588.png "title=" 11.png "alt=" Wkiom1f7jfqbjtuxaaauh8ojq2o588.png "/>

2.10 Password after setting into the Nano Serverrecovery console page, is also a native management tool, can be local to some basic configuration

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/88/8D/wKioL1f7jGyiyiCNAAB6c_OJMXo782.png "title=" 12.png "alt=" Wkiol1f7jgyiyicnaab6c_ojmxo782.png "/>

3.  Create a VHDX image

As the second part of the content, although Microsoft directly provides the Nano Server VHD image, but after the creation of the virtual machine also requires a series of host name, network and password configuration, then we can through the Windows Server ISO image of the Nano Server file Customization Create a VHDX image and do some custom configuration.

3.1 Mount the Windows Server2016 Mirror in the form of an optical drive, or you can directly copy the Nanoserver folder inside the ISO, but not the same location as the MediaPath specified when the image is created

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/88/90/wKiom1f7jIWg4zD_AAC_MbHdLh0807.png "title=" 13.png "alt=" Wkiom1f7jiwg4zd_aac_mbhdlh0807.png "/>

3.2 Navigate to the Nano Server folder path and import the Power shell module

Set-executionpolicy remotesigned

CD J:\NanoServer\NanoServerImageGenerator\

Import-module.\nanoserverimagegenerator.psd1

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/88/8D/wKioL1f7jJLhUsHcAABF2RNKFts184.png "title=" 14.png "alt=" Wkiol1f7jjlhushcaabf2rnkfts184.png "/>

3.3 Use the following script to create a custom VHDX image from Nao server (the following script can be customized to add or reduce related parameters)

New-nanoserverimage-edition standard-deploymenttype guest-mediapath j:\-basepath F:\Nano2\Base-TargetPath F:\Nano2\ Nano2.vhdx-computername nano2-interfacenameorindexethernet-ipv4address 192.168.8.20-ipv4subnetmask 255.255.255.0- Ipv4gateway192.168.8.1-ipv4dns 192.168.8.8-verbose

3.4 Follow the prompts to set the administrator password

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/88/90/wKiom1f7jKPjM0YIAAC3Q4dOJZ4910.png "title=" 15.png "alt=" Wkiom1f7jkpjm0yiaac3q4dojz4910.png "/>

3.5 Creating a VHDX image

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/88/8D/wKioL1f7jLPz4oDnAADKLKr6FPA088.png "title=" 16.png "alt=" Wkiol1f7jlpz4odnaadklkr6fpa088.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/88/90/wKiom1f7jMCxxXnnAABxi17auHY930.png "title=" 17.png "alt=" Wkiom1f7jmcxxxnnaabxi17auhy930.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/88/8D/wKioL1f7jNGCT_7mAACr7KAGZlU472.png "title=" 18.png "alt=" Wkiol1f7jngct_7maacr7kagzlu472.png "/>

3.6 in the corresponding path will generate the relevant files and folders, we need to create a virtual machine based on the generated VHDX image

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/88/8D/wKioL1f7jN-ym_qsAABQjGxnC7o141.png "title=" 19.png "alt=" Wkiol1f7jn-ym_qsaabqjgxnc7o141.png "/>

4.  Create a virtual machine

4.1 Creating a VHDX image based on part 3rd creating a second generation virtual machine

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/88/90/wKiom1f7jOuSgIVTAABXqZhcHKU777.png "title=" 20.png "alt=" Wkiom1f7jousgivtaabxqzhchku777.png "/>

4.2 also select "Use existing Virtual disk" on the "Connect Virtual hard Disk" page and add the VHDX file generated by part 3rd

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/88/90/wKiom1f7jPjSUFSSAACSbHKQQ_Y300.png "title=" 21.png "alt=" Wkiom1f7jpjsufssaacsbhkqq_y300.png "/>

4.3 Create an open virtual machine as shown in

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/88/8D/wKioL1f7jQOAfLCZAAAiFKZrN20183.png "title=" 22.png "alt=" Wkiol1f7jqoaflczaaaifkzrn20183.png "/>

4.4 Enter the account password and enter the local management console of the Nano Server Recovery console, select "Networking"

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/88/90/wKiom1f7jRDCCExtAAB6VYsLnG8177.png "title=" 23.png "alt=" Wkiom1f7jrdccextaab6vyslng8177.png "/>

4.5 Press ENTER to enter the network Settings page, select the NIC for

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/8D/wKioL1f7jR_iKexfAAAxUJLNmIo678.png "title=" 24.png "alt=" Wkiol1f7jr_ikexfaaaxujlnmio678.png "/>

4.6 Press ENTER after you can look at the network card information is exactly what we configured the information

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/88/90/wKiom1f7jSzhMN4SAACV1pYVoPI146.png "title=" 25.png "alt=" Wkiom1f7jszhmn4saacv1pyvopi146.png "/>

4.7 We look at the disk size only 529M

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/88/8D/wKioL1f7jT2AOOAaAAAlhFKj2ZA624.png "title=" 26.png "alt=" Wkiol1f7jt2aooaaaaalhfkj2za624.png "/>

4.8 We allocate 1GB of memory, but can see the required memory needs only 153MB

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/88/90/wKiom1f7jUrTOQ7VAAAaSgrpJBw030.png "title=" 27.png "alt=" Wkiom1f7jurtoq7vaaaasgrpjbw030.png "/>

More information on how to quickly deploy Hyper-V virtual machines for Windows Nano Server is available in the TechNet article:

Https://technet.microsoft.com/en-us/windows-server-docs/get-started/nano-server-quick-start


This article is from the "Huang Jinhui column" blog, be sure to keep this source http://stephen1991.blog.51cto.com/8959108/1860386

Quickly deploy a Hyper-V virtual machine for Windows Nano Server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.