Docsity

Windows Server and Azure Essentials, Essays (university) of Computer Science

Partial preview of the text

Download Windows Server and Azure Essentials and more Essays (university) Computer Science in PDF only on Docsity!

Introducing

John McCabe with the Windows Server team

Windows Server 2016

PUBLISHED BY

Microsoft Press A division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052- 6399 Copyright © 2016 by Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. ISBN: 978 - 0 - 7356 - 9774 - 4 Microsoft Press books are available through booksellers and distributors worldwide. If you need support related to this book, email Microsoft Press Support at [email protected]. Please tell us what you think of this book at http://aka.ms/tellpress. This book is provided “as-is” and expresses the author’s views and opinions. The views, opinions and information expressed in this book, including URL and other Internet website references, may change without notice. Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred. Microsoft and the trademarks listed at http://www.microsoft.com on the “Trademarks” webpage are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. Acquisitions Editor: Kim Spilker Developmental Editor: Bob Russell, Octal Publishing, Inc. Editorial Production: Dianne Russell, Octal Publishing, Inc. Copyeditor: Bob Russell

ii Contents Contents Introduction ............................................................................................................................................. vi Acknowledgments .................................................................................................................................................................. vi Free ebooks from Microsoft Press .................................................................................................................................. vii Errata, updates, & book support ..................................................................................................................................... vii We want to hear from you ................................................................................................................................................ viii Stay in touch ........................................................................................................................................................................... viii Chapter 1: Introduction to Microsoft Windows Server 2016 ............................................................. 1 Introduction ............................................................................................................................................................................... 1 Cloud ready with Windows Server 2016......................................................................................................................... 2 Security .................................................................................................................................................................................... 3 Software-defined datacenter.......................................................................................................................................... 3 Microsoft loves Linux! ....................................................................................................................................................... 5 System Center 2016 ................................................................................................................................................................ 6 Chapter 2: Software-defined datacenter............................................................................................... 9 Compute...................................................................................................................................................................................... 9 Hyper-V ................................................................................................................................................................................... 9 VM groups .......................................................................................................................................................................... 12 True VM mobility.............................................................................................................................................................. 17 VM configuration version ............................................................................................................................................. 22 New configuration file format..................................................................................................................................... 24 Production checkpoints ................................................................................................................................................. 25 Hot add and hot remove for network adapters and memory ....................................................................... 27 Failover cluster ....................................................................................................................................................................... 31

iii Contents

 - Creating a cloud witness by using Azure................................................................................................................ - Shared VHDX improvements....................................................................................................................................... - Improved cluster logs - Active memory dump - Network name diagnostics........................................................................................................................................... - Cluster operating system rolling upgrade - Workgroup and multidomain clusters..................................................................................................................... - SMB multichannel and multi-NIC cluster networks - VM improvements 
  • Storage......................................................................................................................................................................................
    • Storage Replica
    • Scenarios
    • Storage Replica in Windows Server
  • Storage Spaces Direct
    • Implementation details
    • Improved scalability
    • Storage Spaces Direct optimized pool
    • Failure scenarios
  • Deduplication
  • Storage Quality of Service
  • Networking..............................................................................................................................................................................
    • Network Controller
    • RAS Gateway multitenant BGP router......................................................................................................................
    • Software Load Balancing
    • Datacenter firewall
    • Web Application Proxy
    • Web Application Proxy troubleshooting
  • Chapter 3: Application platform
    • Modernizing traditional apps
    • Microservices
    • Azure Hybrid Use Benefit
    • Nano Server
      • Understanding Nano Server
      • Deploying Nano Server
      • Specializing Nano Server
      • Remotely managing Nano Server
    • Service branching
    • Containers................................................................................................................................................................................
      • What is a container? iv Contents
      • Why use containers?
      • Windows Server containers versus Hyper-V containers
  • Chapter 4: Security and identity.........................................................................................................
    • Shielded VMs........................................................................................................................................................................
    • Threat-resistant technologies
      • Control Flow Guard
      • Device Guard on Windows Server 2016................................................................................................................
      • What is Device Guard
      • Enhanced Kernel Mode protection using Hypervisor Code Integrity
      • Deploy configurable code Integrity policy...........................................................................................................
      • Create code Integrity policy for general server usage
      • Create code integrity policy for lockdown server
      • Deploy code integrity policy......................................................................................................................................
      • Credential Guard
      • Remote credential guard
      • Windows Defender
    • Threat detection technologies.......................................................................................................................................
    • Securing privileged access
    • Just-in-Time and Just Enough Administration
    • A strategy for securing privileged access..................................................................................................................
      • Short-term plan
      • Medium-term plan
      • Long-term plan
    • Identity
      • Active Directory Domain Services............................................................................................................................
  • Chapter 5: Systems management.......................................................................................................
    • Windows PowerShell improvements
    • Package management
      • Windows PowershellGet and NuGet
    • Windows PowerShell Classes
    • Windows PowerShell script debugging
      • Break All
      • Remote editing
      • Remote debugging
      • Job debugging
      • Runspace debugging....................................................................................................................................................
    • Desired State Configuration
      • DSC Local Configuration Manager.......................................................................................................................... v Contents
      • New methods in LCM
      • DSC partial configurations..........................................................................................................................................
      • Setting up the LCM Meta Configuration
      • Authoring the configurations
      • Deploying the configurations
    • System Center
      • Operations Management Suite
    • Server management tools
  • About the author

[Type text] vi Introduction Introduction Windows Server has powered a generation of organizations, from small businesses to large enterprises. No matter what your role in IT, you can be guaranteed you that have touched Windows Server at some point in your career or at very least you have seen it from afar! This book introduces you to Windows Server 2016, which is the next version of Windows Server. No matter what your area of expertise, this book will introduce you to the latest developments in Windows Server 2016. Each chapter has been written by either field experts or members of the product group, giving you the latest information on every improvement or new feature that is included in this version of Windows Server. This information will help you to prepare for Windows Server 2016 and give you the means to develop and design a path to introduce Windows Server 2016 into your environment and take full advantage of what is to come. This book is being written at a time when the product is still evolving and it should be noted that things might change or not appear in the final version of Windows Server 2016 when released. All guidance in the chapters is meant to be tried and evaluated in a test environment; you should not implement it in a production environment. This book assumes that you are familiar with key concepts surrounding Windows Server (i.e., Microsoft Hyper-V, Networking, and Storage) as well as cloud technologies such as Microsoft Azure. In this book, we cover a variety of concepts irelated to the technology and present scenarios with a customer focus, but it is not intended as a how-to or design manual. You can use other sources, including the online Microsoft resources, to stay up to date with the latest developments on the roles and features of Windows Server 2016. The online resources will also contain the latest how-to procedures and information about designing a Windows Server 2016 infrastructure for your business. Acknowledgments We’d like to thank all of the contributors who made this book possible:

 David Holladay

 Mitch Tulloch

 Ned Pyle

 Claus Joergensen

 Matt Garson

 John Marlin

 Robert Mitchell

 Deepak Srivastava

 Shababir Ahmed

viii Introduction We want to hear from you At Microsoft Press, your satisfaction is our top priority, and your feedback our most valuable asset. Please tell us what you think of this book at: http://aka.ms/tellpress The survey is short, and we read every one of your comments and ideas. Thanks in advance for your input! Stay in touch Let’s keep the conversation going! We’re on Twitter: http://twitter.com/MicrosoftPress_._

1 CHAP TER 1 | Introduction to Microsoft Windows Server 2016 C H A P T E R (^1) Introduction to Microsoft Windows Server 2016 Whether you are a small- to mid-size business, a large enterprise, or a cloud service provider, the demand on what IT must deliver is a rapidly changing landscape. Customers want to access their applications in a variety of ways and be confident that they can complete their daily tasks in a secure and efficient manner. They simply are not concerned about how IT infrastructures are made up and the challenges that team’s supporting these environments experience a day-to-day basis. Introduction If you run an IT environment today, how do you meet the aforementioned challenges? Can your applications and infrastructure meet the demands placed on it? Can you meet the rate of innovation the cloud offers or the agility and speed of delivery? In these respects, there are an increasing number of challenges facing the on-premises infrastructure. However, not everyone is ready to move to the cloud, and there will be many cases in which you can’t because of a multitude of reasons; for example, contractual commitments that stipulate data can’t move to the cloud.

3 CHAP TER 1 | Introduction to Microsoft Windows Server 2016 The following subsections dive deeper into the pillars and what Microsoft promises to deliver and, more important, how it will deliver on these promises. Security Windows Server 2016 gives you the power to prevent attacks and detect suspicious activity with new features to control privileged access, protect virtual machines (VMs), and harden the platform against emerging threats. Here’s what Windows Server 2016 can do for you:

 Prevent the risk associated with compromised administrative credentials

Using the new privileged identity management features, you can limit access to Just Enough and Just-in-Time 1. And, using Credential Guard, you can prevent administrative credentials from being stolen by Pass-the-Hash attacks.

 Protect your VMs from compromised fabric administrators by using shielded VMs

A shielded VM is a Generation 2 VM that has a virtual Trusted Platform Module (TPM), is encrypted by using BitLocker, and can run only on approved hosts in the fabric.

 Reduce your datacenter footprint and increase availability with just-enough OS.

The new Nano Server deployment option is 25 times smaller than Windows Server, while still offering a desktop experience. This minimizes the attack surface, increases availability, and reduces deployment time, resource usage, and startup time.

 Add even more protection to every deployment of Windows Server 2016.

Whether you’re running in any cloud or on-premises, you can take advantage of additional security features such as Code Integrity and Control Flow Guard to ensure that only permitted binaries are run and protect against unknown vulnerabilities.

 Detect malicious behavior through enhanced security auditing optimized for threat detection.

Using new audit categories for group membership and PNP to identify and add additional information to audit events, administrators can dive deeper than ever to discover new threats

 Defend against malware attacks by using the built-in antimalware

Windows Defender is now included in Windows Server 2016 and optimized to support the various server roles and integrate with Windows PowerShell for malware scanning.

 Limit exposure in case of a security intrusion

If you were to suffer a security breach, Windows Server 2016 can limit the exposure by segmenting your network based on workload or business needs using a distributed firewall and network security groups. You can apply rich policies within and across segments.

 Use Hyper-V Containers for a unique additional level of isolation for containerized applications

without any changes to the container image. Hyper-V containers provide isolation at the hardware level, giving administrators the peace of mind that they have come to appreciate with hardware-based virtualization protection as it incorporates the same isolation methods. Software-defined datacenter Windows Server 2016 delivers a more flexible and cost-efficient OS for your datacenter, using software-defined compute, storage, and network virtualization features inspired by Azure.

4 CHAP TER 1 | Introduction to Microsoft Windows Server 2016

Software-defined compute

The following list presents just some of the amazing new features that fall under the software-defined compute stack for Windows Server 2016:

 Minimize attack surface, increase availability, and reduce resource usage with just-enough OS

using the Nano Server deployment option, which is 25 times smaller than Windows Server while still providing a desktop experience.

 Make the move to the cloud easier by running your workloads in Microsoft Hyper-V, the same

hypervisor that runs Azure and Azure Stack.

 Deploy applications on multiple operating systems with best-in-class support for Linux on

Hyper-V.

 Upgrade infrastructure clusters to Windows Server 2016 with zero downtime for your

application/workload, and without requiring new hardware, using mixed-mode cluster upgrades. Support.

 Increase application availability with improved cluster resiliency to transient failures in the network

and storage.

 Add incremental resiliency to your clusters by using Cloud Witness to connect to resources in

Azure.

 Automate server management with native tools such as Desired State Configuration and Windows

PowerShell 5.0.

 Manage Windows servers from anywhere by using the new web-based GUI—Server management

tool—a service running in Azure. Especially useful for managing headless deployment options such as Nano Server and Server Core.

Software-defined storage

The following list introduces some of the enterprise grade storage features coming in Windows Server 2016:

 Build highly available and scalable software-defined storage at a fraction of the cost of a Storage-

Area Network (SAN) or Network-Attached Storage (NAS). Storage Spaces Direct uses standard servers with local storage to create converged or hyper-converged storage architectures.

 Create affordable business continuity and disaster recovery among datacenters with Storage

Replica synchronous storage replication.

 Ensure that users of business-critical applications have priority access to storage resources using

Storage Quality of Service (QoS) features.

Software-defined networking

The following lists some of the new features around software-defined networking coming in Windows Server 2016:

 Deploy complex workloads with hundreds of networking policies (isolation, QoS, security, load

balancing, switching, routing, gateway, DNS, etc.) using a scalable network controller in a matter of seconds, similar to how we do it in Azure.

 Dynamically segment your network based on workload needs using an Azure-inspired distributed

firewall and network security groups to apply rich policies within and across segments. Route or mirror traffic to third-party virtual appliances for even higher levels of security.

6 CHAP TER 1 | Introduction to Microsoft Windows Server 2016

 Ubuntu

 Debian

 Oracle Linux

Table 1-1 lists just some of the investments that have been made to the LIS. Table 1-1: Key investment areas for LIS Focus area Description Networking Full virtual Receive-Side Scaling (vRSS) support to optimize Linux networking performance Hot-Add/Remove of virtual NICS Storage Hot-Add disk support and online re-size of storage Management Simplified management with common tools like PowerShell DSC Performance Linux performance on Hyper-V is fully competitive versus competitive hypervisors System Center 2016 As we have mentioned, Windows Server 2016 is a cloud-ready OS boasting many new features that have been inspired by Azure. These features can act as the foundation of a software-defined datacenter (SDDC). However, clouds—be they public or private—need to be managed and System Center 2016 is the datacenter management tool that has benefitted from the key investments to achieve this. System Center 2016 has been updated to unlock all of the key capabilities within Windows Server 2016, which make it possible for you to implement and manage a full SDDC based on Windows Server 2016. The following are just a few of the investments included in the release for System Center 2016:

 Device Management

This includes support for Windows 10 deployments, MDM enrollment with Azure Active Directory, and access restriction based on device enrollment and policy.

 Provisioning

Investments here include support for Windows Server 2016 Hyper-V features, rolling cluster upgrades, simplified networking, shielded VM provisioning, guarded host management, and support for vCenter 5.5.

 Monitoring

For the category, Microsoft has added support for Nano Server, Windows storage, SMI-S, MP catalog, performance improvements, Enhanced Data Visualization, and the SCOM Partner Program.

 Automation

Improvements here include easier migration to the cloud, SCO integration packs, and runbooks.

7 CHAP TER 1 | Introduction to Microsoft Windows Server 2016

 Self-Service

In the area of self-service, you can benefit from improved usability and performance, an HTML self-service portal, and the new exchange connector.

 Data Protection

Here, you can take advantage of investments that include support for Azure Express Route, shielded VM, and Storage spaces direct. All of these improvements in the System Center suite give organizations the power they need to create the next generation of the cloud. However, the investments don’t stop there, System Center 2016 can now natively access new integrations into Microsoft Operations Management Suite. This integration unlocks new possibilities to complement the already wide-ranging capabilities of System Center and gives administrators greater visibility, protection, control, and security into their IT environment at cloud scale. Operations Management Suite reporting capabilities and native integration into Microsoft Power BI with which administrators can create powerful and dynamic reports and visualizations in a matter of clicks. Figure 1-3 shows you a sample dashboard that is driven from the default intelligence packs included with the Operations Management Suite subscription. You can see that by default when you deploy these intelligence packs and connect data sources, you can work with rich visual information. Figure 1-3: The Operations Management Suite dashboard When you click a “Tile,” you can explore yet more in-depth information about the area of focus. By default, each intelligence pack comes with its own set of rules, but within a few clicks, administrators can generate rulesets related to their needs and subsequently create visualizations of that information in more powerful and creative ways. Operations Management Suite can complement your existing deployment of System Center, or it can act as a standalone platform, managing systems deployed across any cloud and on-premises environment.

9 CHAP TER 2 | Software-defined datacenter C H A P T E R (^2) Software-defined datacenter In this chapter, we dive into the new or improved features in Windows Server 2016 that can bring a software-defined datacenter to life. If you are cloud service provider or want to build a platform to host your next generation of applications, Windows Server 2016 is the key to achieving this task. This chapter is broken into three main components: Compute, Storage, and Networking. These components are the underpinning to any software-defined datacenter, and in each section we will examine them into more detail. Compute In this section we focus on everything Compute with a major focus on Hyper-V and what is new within Windows Server 2016. We will discuss all the features which will underpin world class software defined datacenters. Hyper-V By Robert Mitchell, Deepak Srivastava, Shabbir Ahmed, and Ramnish Singh Microsoft Hyper-V virtualization technology has been enhanced in a number of ways in Windows Server 2016, and this section describes several of these improvements. Robert Mitchell demonstrates a new feature called Virtual Machine Groups and also describes the new cross-version virtual machine (VM) mobility capabilities of the platform. Deepak Srivastava walks you through the new VM configuration version, new configuration file format, and new support for using checkpoints in production environments. Finally, Shababir Ahmed and Ramnish Singh demonstrate the new hot add and remove capability for network adapters and memory that is now supported by the Hyper-V role.

10 CHAP TER 2 | Software-defined datacenter

Scale

Windows Server 2016, delivers new industry-leading scalability to virtualize any and every workload without exception. The following table shows you a comparison of the journey we have taken from Windows Server 2012/2012R2 to now: Description Windows Server 2012/2012 R2, Standard and Datacenter Windows Server 2016 Standard, and Datacenter Physical (host) memory support Up to 4 TB per physical server Up to 24 TB per physical server (6x) Physical (host) logical processor support Up to 320 LPs Up to 512 LPs VM memory support Up to 1 TB per VM Up to 16 TB per VM (16x) VM virtual processor support Up to 64 VPs per VM Up to 240 VPs per VM (3.75x)

Nested virtualization

Nested virtualization makes it possible for you to run Hyper-V as a guest VM running on Hyper-V! It exposes hardware virtualization extensions to a VM. There are some requirements for running this technology:

 Windows Server 2016 or Windows 10

 Minimum 4 GB RAM for the Host

 Intel VT-x processors (as of this writing)

 EPT Support

 Nested VM running Hyper-V must have dynamic memory disabled

To turn on nested virtualization, first, on the host, you must run the following Windows PowerShell command against a VM that you have created but have not yet turned on. Set-VMProcessor - VMName - ExposeVirtualizationExtensions $true If you want to provide connectivity options for the guest VMs that will reside within your nested Hyper-V machine, you have two choices. The first option is to turn on MAC spoofing for the guest VM. This will allow its guest VMs to send traffic over the network. To turn on MAC spoofing on the host Hyper-V switch, use the following command: Get-VMNetworkAdapter - VMName | Set-VMNetworkAdapter - MacAddressSpoofing On Your second option is NAT. You need to turn on NAT on the nested Hyper-V VM by using the following commands: new-vmswitch - name VmNAT - SwitchType Internal New-NetNat – Name LocalNAT – InternalIPInterfaceAddressPrefix “192.168.100.0/24” When this is done, you need to assign an IP address to the new internal adapter. This essentially will be the gateway address for the VMs running under the nested Hyper-V. Here’s the Windows PowerShell command to do this: get-netadapter "vEthernet (VmNat)" | New-NetIPAddress - IPAddress 192.168.100.1 - AddressFamily IPv

  • PrefixLength 24