Nano Server - How to enable iSCISI Target, MPIO and File Services Roles

No comments

Nano Server - How to enable iSCISI Target, MPIO and File Services Roles

image
On this example I’m going to be utilizing an existing Hyper-V Nano I have deployed via Nano Server Image builder  in the past. In order to get the iSCSI Target Services enabled you will need to install the File Server role and Other Storage components Package.

Step by step

On the Nano Server Image builder packages page, select File Server Role and other storage components.
image
After the Nano Server image is created and deployed then connect with your Server Manager Console.
After connecting to your Nano Server navigate to Server Manager,  All Servers then right click on your Nano Server and select Add Roles and Features.
On the Add Roles and Features Wizard select your Nano Server and Next.
clip_image001
On the Server Roles page, select File and iSCSI Service, File Server and Data Deduplication.
clip_image001[6]
On Features page, select MPIO and Windows Standards-Based Storage Management. I selected them all as I’m going to be using them later.
clip_image001[8]
Confirm the installation of the new Roles and click on Install
clip_image001[10]
Restart your Nano Server and connect via Powershell and access the iSCSI cmdlets.

On the current  Powershell Session and type in Get-Command - Module iSCSI to list all the Cmdlets.
clip_image001[12]
Now you can configure your iSCSI Target server and map your LUN’s.

Here’s some examples from the TechNet library More here.
New-IscsiTargetPortal -TargetPortalAddress testIscsi
#Conect to iSCSI target on your Nano Server.
$Tar = Get-IscsiTarget
Disconnect-IscsiTarget -NodeAddress $Tar.NodeAddress
Connect-IscsiTarget -NodeAddress $Tar.NodeAddress







No comments :

Post a Comment

Nano Server - How to deploy IIS Web Services Role on Nano Server 2016 and create custom IIS websites step by step

No comments

How to deploy IIS Web Services Role on Nano Server 2016 and create custom IIS websites step by step.

image
On this tutorial I'm going to be using Nano Server Image builder (Here's a post on how to install) and Windows 10 Hyper-V as my virtualization host. I will cover the Nano Server image creation, deployment and management.

Step by Step

  • On the Nano Server Image builder select Create a new Nano Server image and then continue to the packages selection.
clip_image002
  1. On the Packages selection page, select Web Server (IIS) and any other needed then Next.
clip_image003
  • On the Destination Machine info page, specify the details for your new Nano IIS Web Server and then Next.
clip_image004
clip_image005
  • After Creating the Nano VHDX then Create a VM GEN2 in my case and startup, then login.
clip_image006
  • From the Remote system connect to the IIS default Website with the IP or name you assigned to your Nano IIS Web Server.
clip_image007
  • Connecting to your Nano Web Server via PowerShell PSSession
clip_image008
Important: You might get the following error if WinRM is not configured correctly.
clip_image009

How to Configure WinRM and enable Nano Server Remote Management

  • winrm quickconfig
  • winrm set winrm/config/client @{TrustedHosts="NanoServerIP"}
  • chcp 65001
Now you should be able to execute commands remotely on the Nano Server. F
  • winrs -r:NanoServerIP -u:Administrator -p:Password ipconfig
clip_image010
  • Managing via the Server Manager Console, All Servers, right click on the new server and Manage As… (`\Administrator and Password) then Ok and the server should come up. After discovering the services you will be able to manage the installed roles/services.
clip_image011
clip_image012
clip_image013
  • Now you should be able to manage your Nano IIS Web Server and also install more features to the IIS role if required. In this demo I have installed some extra features so I can customize and utilize other features.
clip_image014

Creating a new IIS Website on Nano Server via PowerShell

Before creating the website make sure you have an active connection to the Nano Server. In my case it’s a bit different because is a workgroup machine, if you have it in a domain is much easier.
  • Connect via PowerShell to your Nano IIS Web Server
clip_image015
  • Import-module IISAdministration
  • Get-IISSite to check the module importation worked as expected.
clip_image016
  • To create the new site use the following command line:
Important: if you a creating a new site that will utilize the port 80 then you will need to either stop or delete the default IIS site.
New-IISSite -Name "NanoWebSite" -bindinginformation "*:80:" -PhysicalPath C:\Inetpub\yourpath
clip_image017
  • Stopping the Default IIS Website and starting the new Custom Nano IIS Website
clip_image018
  • That's it now you should be able to access your new IIS website.
clip_image007[1]

Customizing your new website

You could customize the site contents by utilizing the Copy-Item PowerShell Command line or the Windows Explorer and copy your custom HTML/CSS files.
clip_image019
This is my new customized Nano IIS Website.
clip_image001[1]
That’s it you have now deployed a Nano IIS Web Server and Sites.

























No comments :

Post a Comment

How to Deploy a Secondary Domain Controller (DC) on Windows Server 2016

No comments

How to Promote a Secondary Domain Controller (DC) on Windows Server 2016  


Prerequisites 


Step by Step  


1. On the Server Manager Console notifications flag and select Promote this server to a domain controller. 

2. On the Deployment Configuration page, select Add domain controller to an existing domain then Next.  

3. On the Domain Controller options page, keeps default and assign the password for the DSRM then Next. 
4. On the DNS Options page, click Next.
 
5. On the Additional Options page, select the IFM options if required and replication then Next. 
6. On the Paths page, Next. (you can always change this one if you need to, in my case I just keep default values) 

7. On the Review Options page, review and click Next to proceed to the Prerequisites check and then installation.  
Note: Please make sure you fix any warning or errors before installing. 
The Server will be restarted and then it will be ready to go. 


That's it now you have deployed a secondary Domain Controller. 

No comments :

Post a Comment

How to Deploy DHCP Services Role on Windows Server 2016

Deploying DHCP Services Role on Windows Server 2016

This is a quick guide on how to deploy Dynamic Host Configuration Protocol Services which enables you as an admin to centrally configure, manage and provide IP addresses to client computers.

Step by Step

1. Open Server Manager Console, select Manage then Add Roles and Features.

2. On the Add Roles and Features dialog, next up the Server Roles page then Select DHCP Server plus the required features and Next.

3. After selecting the DHCP Server role continue to the Confrmation page and click Install.

4. Open the DHCP Console to create your first scope and configure your server.
5. That’s it! you have now deployed DHCP services Role in your Windows Server 2016 environment. How to create a DHCP Scope? Click here for my next post.  

Note: This is also applicable for Server 2012 and 2012 R2

Fixing up the IIS Worker WsusPool issue which takes 90+ % of CPU on Windows Server 2012 and 2016

2 comments

Fixing up the IIS Worker WsusPool issue which takes 90+ % of CPU on Windows Server 2012 and 2016


Problem

If you have a default install of WSUS it will automatically deploy the IIS WSUS Pool. Now there's a problem with this deployment and it's that the WSUSPool gets pre-configured the WSUS Application Pool Private Memory Limit to a default og 1843200 Kilobytes. You will just need to change this from that number to “0” which means no limit

Resolution

1. Go to your IIS Manager Console,  expand the Server and select Application Pools.
2. Right Click on the WsusPool then Advanced Settings…
image
3. On Advanced Settings page, the Navigate to the Recycling/Private Memory Limit(KB) and change to 0.
image
image
4. After updating the Private Memory Value, Recycle the WsusPool and you should see the IIS Worker will not be consuming that much of CPU and after a few mins it will be under the 50% usage.
image 
Now the process is utilizing around 0.6-20% of CPU. 

image

That’s it! hope if helps

2 comments :

Post a Comment

How to Join a Nano Server 2016 to a Domain Offline Mode via PowerShell

No comments

How to Join a Nano Server 2016 to a Domain Offline Mode via PowerShell

In this post I will cover the step by step of joining an already deployed non-domain joined Nano Server.
clip_image001
 

Non-domain joined Nano Server

clip_image002

Step by Step

  1. Make sure you have access to the Nano Server via PowerShell
  2. Create a offline Join File
  3. Copy the file to the Nano Server
  4. Run the offline join command line

Creating the Offline Join file

Open PowerShell as admin and run the following commands:
#Joining a Nano Server to a domain offline mode
$Domain=’YourDomain’
$Computername=’NanoServerName’
$Filename=’domainjoin.djoin’
Djoin.exe /Provision /Domain $Domain /Machine $Computername /Savefile $Filename
clip_image003
Successfully created
clip_image004
Important: The file will be placed on C:\Windows\System32 if you didn't assigned a path.

Copy the File to the Nano Server using explorer (in my case I copied to C:\SysMgr)

Connect the Nano server

clip_image005

Run the offline join command line to join the Nano Server to the domain

On the already opened session run the following command:
Djoin.exe /RequestODJ /loadfile C:\Windows\setup\scripts\domainjoin.djoin /windowspath c:\windows /localos
clip_image006
Restart (Ctl+F6) the Nano Server and then validate the Server is joined and also accessible via the server manager console.
clip_image007

clip_image008

That's it! you have now joined your Nano Server to a domain.




















No comments :

Post a Comment