Windows Nano Server Installation configuration in detail 07: Deploying IIS

Source: Internet
Author: User

The first approach: integrate the IIS role when generating a nano VHD image

Install the Internet information Services (IIS) server role on the Nano server by using the-package parameter together with the Microsoft-nanoserver-iis-package.

For an offline installation, use the package parameter New-nanoserverimage to add the package, as shown in this example:

New-nanoserverimage-edition standard-deploymenttype guest-mediapath d:\-basepath C:\Base\-TargetPath C:\Nan

O1\nano-iis.vhd-computername Nano-iis-package Microsoft-nanoserver-iis-package

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/ED/wKiom1hchBDiNgkJAADeab1vd_M722.png "height=" 123 "/>

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/E9/wKioL1hchBHgwi3XAAD5wgRvRFw371.png "height=" 138 "/>

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/ED/wKiom1hchBLCYr_uAADc9T2HZBE201.png "height="/>

Second way: Install with the DISM tool for an existing VHD file

We first put the running Nano1 virtual machine and then update his VHD file.

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/ED/wKiom1hchBPyHOcuAACC22n1Wn8657.png "height=" 171 "/>

Mount the VHD file for the Nano1.

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/ED/wKiom1hchBOik39yAAC0b2u_Wns501.png "height=" 258 "/>

or mount to the MountDir folder by command. The base directory is a directory that already exists, which was generated before using New-nanoserverimage. The package directory contains a lot of cab installation packages.

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/ED/wKiom1hchBSRWEhMAADopHVCS0Q275.png "height=" 266 "/>

The following example procedure assumes that you are running from a directory specified by BasePath and that the directory was created after you run New-nanoserverimage.

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/E9/wKioL1hchBWhHu3tAAF-JLVOGF8123.png "height=" 191 "/>

After adding IIS finishes, unmount this 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/E9/wKioL1hchBbjsmCzAACEiHr_jV4088.png "height=" 149 "/>

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/ED/wKiom1hchBfQMbe4AADExSWsyME091.png "height="/>

We mount the updated VHD file in virtualization Hyper-V and look at it.

Two more rules for firewalls

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/E9/wKioL1hchBjwZkEdAAGGVH-1Grw840.png "height=" 484 "/>

Remote connection to Nano Server via PowerShell requires that remote connections be configured on the management station first.

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/ED/wKiom1hchBnzfxt-AADXwRk6Qp0124.png "height="/>

You can determine whether IIS is already installed by accessing the IP of the machine where the nano server for IIS is located.

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/ED/wKiom1hchBry__I3AAFcaEReGdU918.png "height=" 421 "/>

Switch to another nano Server, where IIS is not installed.

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/E9/wKioL1hchBuSftZkAACMURynyBk254.png "height=" 289 "/>

The directory of IIS can be accessed through UNC.

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/E9/wKioL1hchBzgxxdYAACjaQ1ISxQ905.png "height=" 241 "/>

Third Way: Install IIS online

Copy the package folder below the base directory to the C drive of the nano server. The base directory is a directory that already exists, which was generated before using New-nanoserverimage.

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/E9/wKioL1hchByifC1aAACv9UAVIAA952.png "height=" 175 "/>

Copy to drive C. The IP of the nano server here is 172.168.1.26

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/ED/wKiom1hchB3BIAt0AAC9CTPhvAI777.png "height=" 205 "/>

Check through remote PowerShell and the copy is over.

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/E9/wKioL1hchB_D-kNWAAFPYUQ57R8710.png "height=" 281 "/>

Create a Unattend.xml file with the following file contents.

<unattend xmlns= "Urn:schemas-microsoft-com:unattend" >

<servicing>

<package action= "Install" >

<assemblyidentity name= "Microsoft-nanoserver-iis-package" version= "10.0.14393.0" processorArchitecture= "AMD64" Publickeytoken= "31bf3856ad364e35" language= "neutral"/>

<source location= "C:\packages\Microsoft-NanoServer-IIS-Package.cab"/>

</package>

<package action= "Install" >

<assemblyidentity name= "Microsoft-nanoserver-iis-package" version= "10.0.14393.0" processorArchitecture= "AMD64" Publickeytoken= "31bf3856ad364e35" language= "en-US"/>

<source location= "C:\packages\en-us\Microsoft-NanoServer-IIS-Package_en-us.cab"/>

</package>

</servicing>

<cpi:offlineimage cpi:source= "" xmlns:cpi= "URN:SCHEMAS-MICROSOFT-COM:CPI"/>

</unattend>

Put the created XML file under the C packing directory of the nano server. The XML file inside the custom installation file path is the installation package for IIS and the English language pack for IIS. The source location in the file is important to note, where the package is placed and where the path is written.

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/ED/wKiom1hchB_j4kk2AAEMYaqxFJI027.png "height=" 234 "/>

Switch to the directory and run with the newly created XML file

Dism/online/apply-unattend:.\unattend.xml

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/E9/wKioL1hchCDhtKJWAAERtv0f7JQ031.png "height=" 531 "/>

Installation 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/M02/8B/E9/wKioL1hchCHwZbh0AAB0tHfYSuQ364.png "height=" 345 "/>

Determine that the IIS package and its associated language packs are installed correctly by running the following command:

Dism/online/get-packages

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/E9/wKioL1hchCTyQZkcAANEErHIa7Q854.png "height=" 484 "/>

You should see "Package ID: microsoft-nanoserver-iis-package~31bf3856ad364e35~amd64~~10.0.14393.1000" listed two times, one time for release type: Language Pack, Once for the release type: Feature Pack.

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/ED/wKiom1hchCXiHUKfAAFyZ-MsgPk969.png "height=" 228 "/>

Start the W3SVC service by using the net start w3svc or by restarting the Nano Server.

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/E9/wKioL1hchCWSnIf4AACpT9Yb4gA937.png "height="/>

The default IIS site can be accessed through the browser.

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/ED/wKiom1hchCaTe8qgAAFdghUlBHA388.png "height=" 425 "/>

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

Windows Nano Server Installation configuration in detail 07: Deploying IIS

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.