Windows Nano Server Installation configuration in detail 05: Deploying Nanoserver in virtual machines

Source: Internet
Author: User

1. Copy the Nanoserverimagegenerator folder from the \nanoserver folder in Windows Server ISO to the folder on your hard disk.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M00/8B/CE/wKioL1hZ4I6DFSQ3AAEKSHU0frs063.png "height=" 261 "/>

Copy to the C packing directory.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M01/8B/D2/wKiom1hZ4I-TEKSLAAD7IVw_Dpc642.png "height=" 251 "/>

2. Start Windows PowerShell as an administrator, change the directory to the folder where the Nanoserverimagegenerator folder is located, and then import the module by Import-module. \ Nanoserverimagegenerator-verbose

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" http://s3.51cto.com/wyfs02/M01/8B/D2/wKiom1hZ4JDwQWGrAADTgZF7_DE189.png "height="/>

3. Create a standard version VHD that sets the computer name and includes the Hyper-V guest driver by running the following command, which prompts you to enter the administrator password for the new VHD:

New-nanoserverimage-edition Standard-deploymenttype Guest-mediapath <path to root of media>-BasePath. \base-tar GetPath. \nanoservervm\nanoservervm.vhd-computername <computer name> which

-mediapath < media root path > Specifies the root path that points to the Windows Server ISO content. For example, if you have copied the contents of the ISO to D:\TP5ISO, the path will be used.

-basepath (optional) specifies the folder to be created to copy the Nano Server WIM and package to.

-TARGETPATH specifies the path in which the generated VHD or VHDX will be created, including the file name and extension.

COMPUTER_NAME Specifies the computer name of the Nano Server virtual machine that is being created.

Attention

New-nanoserverimage is supported for Windows 8.1, Windows 10, Windows Server R2, and Windows Server 2016.

Create a base and Nano1 folder to hold temp and VHD files.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M01/8B/CE/wKioL1hZ4JGxdn5hAAD2yFC30P8348.png "height=" 262 "/>

MediaPath point to D is my Windows 2016 disc ISO file.

Execute command

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M00/8B/D2/wKiom1hZ4JXBkCNYAAEIupPhv50482.png "height=" 202 "/>

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M00/8B/CE/wKioL1hZ4JjgKxGVAANy0yQh_rY978.png "height=" 445 "/>

After the VHD generation is complete.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M00/8B/D2/wKiom1hZ4JyjSDSuAAD6lmXZ0SY838.png "height=" 263 "/>

You can view the log information in the base folder.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M01/8B/D2/wKiom1hZ4J2AltWEAAE9GKzVU7c421.png "height=" 236 "/>

4. In Hyper-V Manager, create a new virtual machine and use the VHD that you created in step 3.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M02/8B/D2/wKiom1hZ4KaAsMGQAAGE-3_h2dU348.png "height=" 484 "/>

5. Start the virtual machine, and then connect to the virtual machine in Hyper-V manager.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M02/8B/CE/wKioL1hZ4KfTTrC5AABJN9jwFSE259.png "height=" 476 "/>

6. Log in to the Recovery Console using the Administrator account and password that you provided when you ran the script in step 3.

650) this.width=650; "title=" clipboard "style=" Border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clipboard "Src=" Http://s3.51cto.com/wyfs02/M01/8B/CE/wKioL1hZ4KjAkIziAABlRjLHRss305.png "height=" 484 "/>

7. Obtain the IP address of the Nano Server virtual machine and use Windows PowerShell remoting or other remote administration tools to connect to and remotely administer the virtual machine.

Refer to the previous article on how to connect the virtual machine remotely:

Windows Nano Server Installation configuration in detail 03: Remotely manage Nano server-The technology column of Zeng Xin-51CTO technology Blog

http://543925535.blog.51cto.com/639838/1862572

Windows Nano Server Installation configuration in detail 02: Initialize Configuration-The technology column of Zeng Xin-51CTO technology Blog http://543925535.blog.51cto.com/639838/1862322

This article from "Zeng Hung Xin Technical column" blog, declined to reprint!

Windows Nano Server Installation configuration in detail 05: Deploying Nanoserver in virtual machines

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.